Mercurial > hg > truffle
comparison src/share/vm/interpreter/bytecode.cpp @ 1574:1eb493f33423
6957080: MethodComparator needs stress testing
Summary: Add a stress-test flag for running MethodComparator over many inputs. Fix bugs that crop up.
Reviewed-by: kvn
author | jrose |
---|---|
date | Sat, 29 May 2010 19:22:32 -0700 |
parents | ab102d5d923e |
children | e9ff18c4ace7 |
comparison
equal
deleted
inserted
replaced
1573:beb77f0d41b3 | 1574:1eb493f33423 |
---|---|
213 | 213 |
214 // Implementation of Bytecodes loac constant | 214 // Implementation of Bytecodes loac constant |
215 | 215 |
216 int Bytecode_loadconstant::index() const { | 216 int Bytecode_loadconstant::index() const { |
217 Bytecodes::Code stdc = Bytecodes::java_code(code()); | 217 Bytecodes::Code stdc = Bytecodes::java_code(code()); |
218 return stdc == Bytecodes::_ldc ? get_index_u1(stdc) : get_index_u2(stdc); | 218 if (stdc != Bytecodes::_wide) { |
219 if (Bytecodes::java_code(stdc) == Bytecodes::_ldc) | |
220 return get_index_u1(stdc); | |
221 else | |
222 return get_index_u2(stdc, false); | |
223 } | |
224 stdc = Bytecodes::code_at(addr_at(1)); | |
225 return get_index_u2(stdc, true); | |
219 } | 226 } |
220 | 227 |
221 //------------------------------------------------------------------------------ | 228 //------------------------------------------------------------------------------ |
222 // Non-product code | 229 // Non-product code |
223 | 230 |