comparison src/share/vm/interpreter/rewriter.cpp @ 7154:5d0bb7d52783

changes to support Graal co-existing with the other HotSpot compiler(s) and being used for explicit compilation requests and code installation via the Graal API
author Doug Simon <doug.simon@oracle.com>
date Wed, 12 Dec 2012 21:36:40 +0100
parents e522a00b91aa
children 989155e2d07a
comparison
equal deleted inserted replaced
7153:c421c19b7bf8 7154:5d0bb7d52783
120 RawBytecodeStream bcs(method); 120 RawBytecodeStream bcs(method);
121 while (!bcs.is_last_bytecode()) { 121 while (!bcs.is_last_bytecode()) {
122 Bytecodes::Code opcode = bcs.raw_next(); 122 Bytecodes::Code opcode = bcs.raw_next();
123 switch (opcode) { 123 switch (opcode) {
124 case Bytecodes::_return: 124 case Bytecodes::_return:
125 #ifndef GRAAL
126 *bcs.bcp() = Bytecodes::_return_register_finalizer; 125 *bcs.bcp() = Bytecodes::_return_register_finalizer;
127 #endif
128 break; 126 break;
129 127
130 case Bytecodes::_istore: 128 case Bytecodes::_istore:
131 case Bytecodes::_lstore: 129 case Bytecodes::_lstore:
132 case Bytecodes::_fstore: 130 case Bytecodes::_fstore:
323 assert(bc_length != 0, "impossible bytecode length"); 321 assert(bc_length != 0, "impossible bytecode length");
324 322
325 switch (c) { 323 switch (c) {
326 case Bytecodes::_lookupswitch : { 324 case Bytecodes::_lookupswitch : {
327 #ifndef CC_INTERP 325 #ifndef CC_INTERP
328 #ifndef GRAAL
329 Bytecode_lookupswitch bc(method, bcp); 326 Bytecode_lookupswitch bc(method, bcp);
330 (*bcp) = ( 327 (*bcp) = (
331 bc.number_of_pairs() < BinarySwitchThreshold 328 bc.number_of_pairs() < BinarySwitchThreshold
332 ? Bytecodes::_fast_linearswitch 329 ? Bytecodes::_fast_linearswitch
333 : Bytecodes::_fast_binaryswitch 330 : Bytecodes::_fast_binaryswitch
334 ); 331 );
335 #endif
336 #endif 332 #endif
337 break; 333 break;
338 } 334 }
339 case Bytecodes::_fast_linearswitch: 335 case Bytecodes::_fast_linearswitch:
340 case Bytecodes::_fast_binaryswitch: { 336 case Bytecodes::_fast_binaryswitch: {