Mercurial > hg > graal-jvmci-8
comparison src/share/vm/code/debugInfoRec.cpp @ 3650:0e8a2a629afb
Pass-by compilation broker.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Wed, 16 Nov 2011 21:27:28 +0100 |
parents | 5857923e563c |
children | 597bc897257d |
comparison
equal
deleted
inserted
replaced
3649:5a8c44b5fb80 | 3650:0e8a2a629afb |
---|---|
278 | 278 |
279 | 279 |
280 // must call add_safepoint before: it sets PcDesc and this routine uses | 280 // must call add_safepoint before: it sets PcDesc and this routine uses |
281 // the last PcDesc set | 281 // the last PcDesc set |
282 void DebugInformationRecorder::describe_scope(int pc_offset, | 282 void DebugInformationRecorder::describe_scope(int pc_offset, |
283 ciMethod* method, | 283 methodHandle method, |
284 int bci, | 284 int bci, |
285 bool reexecute, | 285 bool reexecute, |
286 bool rethrow_exception, | 286 bool rethrow_exception, |
287 bool is_method_handle_invoke, | 287 bool is_method_handle_invoke, |
288 bool return_oop, | 288 bool return_oop, |
305 | 305 |
306 // serialize sender stream offest | 306 // serialize sender stream offest |
307 stream()->write_int(sender_stream_offset); | 307 stream()->write_int(sender_stream_offset); |
308 | 308 |
309 // serialize scope | 309 // serialize scope |
310 jobject method_enc = (method == NULL)? NULL: method->constant_encoding(); | 310 jobject method_enc = JNIHandles::make_local(Thread::current(), method()); |
311 stream()->write_int(oop_recorder()->find_index(method_enc)); | 311 stream()->write_int(oop_recorder()->find_index(method_enc)); |
312 stream()->write_bci(bci); | 312 stream()->write_bci(bci); |
313 assert(method == NULL || | 313 assert(method == NULL || |
314 (method->is_native() && bci == 0) || | 314 (method->is_native() && bci == 0) || |
315 (!method->is_native() && 0 <= bci && bci < method->code_size()) || | 315 (!method->is_native() && 0 <= bci && bci < method->code_size()) || |