1.1 --- a/src/share/vm/interpreter/bytecodes.hpp Wed Oct 22 20:47:00 2008 -0700 1.2 +++ b/src/share/vm/interpreter/bytecodes.hpp Thu Oct 30 15:48:59 2008 -0400 1.3 @@ -340,8 +340,10 @@ 1.4 const char* wf = wide_format(code); 1.5 return (wf == NULL) ? 0 : (int)strlen(wf); 1.6 } 1.7 - static int special_length_at(address bcp); 1.8 - static int raw_special_length_at(address bcp); 1.9 + // if 'end' is provided, it indicates the end of the code buffer which 1.10 + // should not be read past when parsing. 1.11 + static int special_length_at(address bcp, address end = NULL); 1.12 + static int raw_special_length_at(address bcp, address end = NULL); 1.13 static int length_at (address bcp) { int l = length_for(code_at(bcp)); return l > 0 ? l : special_length_at(bcp); } 1.14 static int java_length_at (address bcp) { int l = length_for(java_code_at(bcp)); return l > 0 ? l : special_length_at(bcp); } 1.15 static bool is_java_code (Code code) { return 0 <= code && code < number_of_java_codes; }