hotspot/src/share/vm/code/debugInfoRec.cpp
changeset 4564 55dfb20908d0
parent 4017 0cb087a2b9a9
child 4894 8a76fd3d098d
equal deleted inserted replaced
4563:973da517fcec 4564:55dfb20908d0
   279 // the last PcDesc set
   279 // the last PcDesc set
   280 void DebugInformationRecorder::describe_scope(int         pc_offset,
   280 void DebugInformationRecorder::describe_scope(int         pc_offset,
   281                                               ciMethod*   method,
   281                                               ciMethod*   method,
   282                                               int         bci,
   282                                               int         bci,
   283                                               bool        reexecute,
   283                                               bool        reexecute,
       
   284                                               bool        is_method_handle_invoke,
   284                                               DebugToken* locals,
   285                                               DebugToken* locals,
   285                                               DebugToken* expressions,
   286                                               DebugToken* expressions,
   286                                               DebugToken* monitors) {
   287                                               DebugToken* monitors) {
   287   assert(_recording_state != rs_null, "nesting of recording calls");
   288   assert(_recording_state != rs_null, "nesting of recording calls");
   288   PcDesc* last_pd = last_pc();
   289   PcDesc* last_pd = last_pc();
   290   int sender_stream_offset = last_pd->scope_decode_offset();
   291   int sender_stream_offset = last_pd->scope_decode_offset();
   291   // update the stream offset of current pc desc
   292   // update the stream offset of current pc desc
   292   int stream_offset = stream()->position();
   293   int stream_offset = stream()->position();
   293   last_pd->set_scope_decode_offset(stream_offset);
   294   last_pd->set_scope_decode_offset(stream_offset);
   294 
   295 
   295   // Record reexecute bit into pcDesc
   296   // Record flags into pcDesc.
   296   last_pd->set_should_reexecute(reexecute);
   297   last_pd->set_should_reexecute(reexecute);
       
   298   last_pd->set_is_method_handle_invoke(is_method_handle_invoke);
   297 
   299 
   298   // serialize sender stream offest
   300   // serialize sender stream offest
   299   stream()->write_int(sender_stream_offset);
   301   stream()->write_int(sender_stream_offset);
   300 
   302 
   301   // serialize scope
   303   // serialize scope