< prev index next >

src/share/vm/interpreter/bytecodes.cpp

Print this page




 525   def(_fast_aldc           , "fast_aldc"           , "bj"   , NULL    , T_OBJECT,   1, true,  _ldc   );
 526   def(_fast_aldc_w         , "fast_aldc_w"         , "bJJ"  , NULL    , T_OBJECT,   1, true,  _ldc_w );
 527 
 528   def(_nofast_getfield     , "nofast_getfield"     , "bJJ"  , NULL    , T_ILLEGAL,  0, true,  _getfield       );
 529   def(_nofast_putfield     , "nofast_putfield"     , "bJJ"  , NULL    , T_ILLEGAL, -2, true , _putfield       );
 530 
 531   def(_nofast_aload_0      , "nofast_aload_0"      , "b"    , NULL    , T_ILLEGAL,  1, true , _aload_0        );
 532   def(_nofast_iload        , "nofast_iload"        , "bi"   , NULL    , T_ILLEGAL,  1, false, _iload          );
 533 
 534   def(_shouldnotreachhere  , "_shouldnotreachhere" , "b"    , NULL    , T_VOID   ,  0, false);
 535 
 536   // compare can_trap information for each bytecode with the
 537   // can_trap information for the corresponding base bytecode
 538   // (if a rewritten bytecode can trap, so must the base bytecode)
 539   #ifdef ASSERT
 540     { for (int i = 0; i < number_of_codes; i++) {
 541         if (is_defined(i)) {
 542           Code code = cast(i);
 543           Code java = java_code(code);
 544           if (can_trap(code) && !can_trap(java))
 545             fatal(err_msg("%s can trap => %s can trap, too", name(code),
 546                           name(java)));
 547         }
 548       }
 549     }
 550   #endif
 551 
 552   // initialization successful
 553   _is_initialized = true;
 554 }
 555 
 556 
 557 void bytecodes_init() {
 558   Bytecodes::initialize();
 559 }
 560 
 561 // Restore optimization
 562 #ifdef _M_AMD64
 563 #pragma optimize ("", on)
 564 #endif


 525   def(_fast_aldc           , "fast_aldc"           , "bj"   , NULL    , T_OBJECT,   1, true,  _ldc   );
 526   def(_fast_aldc_w         , "fast_aldc_w"         , "bJJ"  , NULL    , T_OBJECT,   1, true,  _ldc_w );
 527 
 528   def(_nofast_getfield     , "nofast_getfield"     , "bJJ"  , NULL    , T_ILLEGAL,  0, true,  _getfield       );
 529   def(_nofast_putfield     , "nofast_putfield"     , "bJJ"  , NULL    , T_ILLEGAL, -2, true , _putfield       );
 530 
 531   def(_nofast_aload_0      , "nofast_aload_0"      , "b"    , NULL    , T_ILLEGAL,  1, true , _aload_0        );
 532   def(_nofast_iload        , "nofast_iload"        , "bi"   , NULL    , T_ILLEGAL,  1, false, _iload          );
 533 
 534   def(_shouldnotreachhere  , "_shouldnotreachhere" , "b"    , NULL    , T_VOID   ,  0, false);
 535 
 536   // compare can_trap information for each bytecode with the
 537   // can_trap information for the corresponding base bytecode
 538   // (if a rewritten bytecode can trap, so must the base bytecode)
 539   #ifdef ASSERT
 540     { for (int i = 0; i < number_of_codes; i++) {
 541         if (is_defined(i)) {
 542           Code code = cast(i);
 543           Code java = java_code(code);
 544           if (can_trap(code) && !can_trap(java))
 545             fatal("%s can trap => %s can trap, too", name(code), name(java));

 546         }
 547       }
 548     }
 549   #endif
 550 
 551   // initialization successful
 552   _is_initialized = true;
 553 }
 554 
 555 
 556 void bytecodes_init() {
 557   Bytecodes::initialize();
 558 }
 559 
 560 // Restore optimization
 561 #ifdef _M_AMD64
 562 #pragma optimize ("", on)
 563 #endif
< prev index next >