< prev index next >

src/hotspot/cpu/aarch64/c2_CodeStubs_aarch64.cpp

Print this page
@@ -89,6 +89,17 @@
    __ strw(t, Address(rthread, JavaThread::lock_stack_top_offset()));
  
    __ b(continuation());
  }
  
+ int C2LoadNKlassStub::max_size() const {
+   return 8;
+ }
+ 
+ void C2LoadNKlassStub::emit(C2_MacroAssembler& masm) {
+   __ bind(entry());
+   Register d = dst();
+   __ ldr(d, Address(d, OM_OFFSET_NO_MONITOR_VALUE_TAG(header)));
+   __ b(continuation());
+ }
+ 
  #undef __
< prev index next >