< prev index next >

src/hotspot/share/compiler/methodLiveness.cpp

Print this page




 461   _kill.clear();
 462 
 463   while (bytes->next() != ciBytecodeStream::EOBC()) {
 464     compute_gen_kill_single(bytes);
 465   }
 466 }
 467 
 468 void MethodLiveness::BasicBlock::compute_gen_kill_single(ciBytecodeStream *instruction) {
 469   int localNum;
 470 
 471   // We prohibit _gen and _kill from having locals in common.  If we
 472   // know that one is definitely going to be applied before the other,
 473   // we could save some computation time by relaxing this prohibition.
 474 
 475   switch (instruction->cur_bc()) {
 476     case Bytecodes::_nop:
 477     case Bytecodes::_goto:
 478     case Bytecodes::_goto_w:
 479     case Bytecodes::_aconst_null:
 480     case Bytecodes::_new:


 481     case Bytecodes::_iconst_m1:
 482     case Bytecodes::_iconst_0:
 483     case Bytecodes::_iconst_1:
 484     case Bytecodes::_iconst_2:
 485     case Bytecodes::_iconst_3:
 486     case Bytecodes::_iconst_4:
 487     case Bytecodes::_iconst_5:
 488     case Bytecodes::_fconst_0:
 489     case Bytecodes::_fconst_1:
 490     case Bytecodes::_fconst_2:
 491     case Bytecodes::_bipush:
 492     case Bytecodes::_sipush:
 493     case Bytecodes::_lconst_0:
 494     case Bytecodes::_lconst_1:
 495     case Bytecodes::_dconst_0:
 496     case Bytecodes::_dconst_1:
 497     case Bytecodes::_ldc2_w:
 498     case Bytecodes::_ldc:
 499     case Bytecodes::_ldc_w:
 500     case Bytecodes::_iaload:




 461   _kill.clear();
 462 
 463   while (bytes->next() != ciBytecodeStream::EOBC()) {
 464     compute_gen_kill_single(bytes);
 465   }
 466 }
 467 
 468 void MethodLiveness::BasicBlock::compute_gen_kill_single(ciBytecodeStream *instruction) {
 469   int localNum;
 470 
 471   // We prohibit _gen and _kill from having locals in common.  If we
 472   // know that one is definitely going to be applied before the other,
 473   // we could save some computation time by relaxing this prohibition.
 474 
 475   switch (instruction->cur_bc()) {
 476     case Bytecodes::_nop:
 477     case Bytecodes::_goto:
 478     case Bytecodes::_goto_w:
 479     case Bytecodes::_aconst_null:
 480     case Bytecodes::_new:
 481     case Bytecodes::_defaultvalue:
 482     case Bytecodes::_withfield:
 483     case Bytecodes::_iconst_m1:
 484     case Bytecodes::_iconst_0:
 485     case Bytecodes::_iconst_1:
 486     case Bytecodes::_iconst_2:
 487     case Bytecodes::_iconst_3:
 488     case Bytecodes::_iconst_4:
 489     case Bytecodes::_iconst_5:
 490     case Bytecodes::_fconst_0:
 491     case Bytecodes::_fconst_1:
 492     case Bytecodes::_fconst_2:
 493     case Bytecodes::_bipush:
 494     case Bytecodes::_sipush:
 495     case Bytecodes::_lconst_0:
 496     case Bytecodes::_lconst_1:
 497     case Bytecodes::_dconst_0:
 498     case Bytecodes::_dconst_1:
 499     case Bytecodes::_ldc2_w:
 500     case Bytecodes::_ldc:
 501     case Bytecodes::_ldc_w:
 502     case Bytecodes::_iaload:


< prev index next >