< prev index next >

src/hotspot/cpu/x86/c1_Runtime1_x86.cpp

Print this page
*** 1097,11 ***
  
          // rax,: new instance
        }
  
        break;
! 
      case counter_overflow_id:
        {
          Register bci = rax, method = rbx;
          __ enter();
          OopMap* map = save_live_registers(sasm, 3);
--- 1097,21 ---
  
          // rax,: new instance
        }
  
        break;
! #ifdef _LP64
+     case load_klass_id:
+       {
+         StubFrame f(sasm, "load_klass", dont_gc_arguments);
+         sasm->save_live_registers_no_oop_map(true);
+         f.load_argument(0, c_rarg0); // obj
+         __ call_VM_leaf(CAST_FROM_FN_PTR(address, oopDesc::load_nklass_runtime), c_rarg0);
+         sasm->restore_live_registers_except_rax(true);
+       }
+       break;
+ #endif
      case counter_overflow_id:
        {
          Register bci = rax, method = rbx;
          __ enter();
          OopMap* map = save_live_registers(sasm, 3);
< prev index next >