1.1 --- a/src/share/vm/code/debugInfo.hpp Wed Aug 19 19:05:18 2009 -0700 1.2 +++ b/src/share/vm/code/debugInfo.hpp Thu Aug 20 12:42:57 2009 -0700 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved. 1.6 + * Copyright 1997-2009 Sun Microsystems, Inc. All Rights Reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -255,8 +255,7 @@ 1.11 ScopeValue* read_object_value(); 1.12 ScopeValue* get_cached_object(); 1.13 // BCI encoding is mostly unsigned, but -1 is a distinguished value 1.14 - // Decoding based on encoding: bci = InvocationEntryBci + read_int()/2; reexecute = read_int()%2 == 1 ? true : false; 1.15 - int read_bci_and_reexecute(bool& reexecute) { int i = read_int(); reexecute = (i & 1) ? true : false; return (i >> 1) + InvocationEntryBci; } 1.16 + int read_bci() { return read_int() + InvocationEntryBci; } 1.17 }; 1.18 1.19 // DebugInfoWriteStream specializes CompressedWriteStream for 1.20 @@ -269,6 +268,5 @@ 1.21 public: 1.22 DebugInfoWriteStream(DebugInformationRecorder* recorder, int initial_size); 1.23 void write_handle(jobject h); 1.24 - //Encoding bci and reexecute into one word as (bci - InvocationEntryBci)*2 + reexecute 1.25 - void write_bci_and_reexecute(int bci, bool reexecute) { write_int(((bci - InvocationEntryBci) << 1) + (reexecute ? 1 : 0)); } 1.26 + void write_bci(int bci) { write_int(bci - InvocationEntryBci); } 1.27 };