src/share/vm/code/debugInfo.hpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
6833129 Cdiff src/share/vm/code/debugInfo.hpp
src/share/vm/code/debugInfo.hpp
Print this page
*** 253,263 ****
return code()->oop_at(read_int());
}
ScopeValue* read_object_value();
ScopeValue* get_cached_object();
// BCI encoding is mostly unsigned, but -1 is a distinguished value
! int read_bci() { return read_int() + InvocationEntryBci; }
};
// DebugInfoWriteStream specializes CompressedWriteStream for
// writing debugging information. Used by ScopeDescRecorder.
--- 253,264 ----
return code()->oop_at(read_int());
}
ScopeValue* read_object_value();
ScopeValue* get_cached_object();
// BCI encoding is mostly unsigned, but -1 is a distinguished value
! // Decoding based on encoding: bci = InvocationEntryBci + read_int()/2; reexecute = read_int()%2 == 1 ? true : false;
! int read_bci_and_reexecute(bool& reexecute) { int i = read_int(); reexecute = (i & 1) ? true : false; return (i >> 1) + InvocationEntryBci; }
};
// DebugInfoWriteStream specializes CompressedWriteStream for
// writing debugging information. Used by ScopeDescRecorder.
*** 266,272 ****
DebugInformationRecorder* _recorder;
DebugInformationRecorder* recorder() const { return _recorder; }
public:
DebugInfoWriteStream(DebugInformationRecorder* recorder, int initial_size);
void write_handle(jobject h);
! void write_bci(int bci) { write_int(bci - InvocationEntryBci); }
};
--- 267,274 ----
DebugInformationRecorder* _recorder;
DebugInformationRecorder* recorder() const { return _recorder; }
public:
DebugInfoWriteStream(DebugInformationRecorder* recorder, int initial_size);
void write_handle(jobject h);
! //Encoding bci and reexecute into one word as (bci - InvocationEntryBci)*2 + reexecute
! void write_bci_and_reexecute(int bci, bool reexecute) { write_int(((bci - InvocationEntryBci) << 1) + (reexecute ? 1 : 0)); }
};
src/share/vm/code/debugInfo.hpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File