src/hotspot/cpu/x86/c1_MacroAssembler_x86.cpp
changeset 49906 4bb58f644e4e
parent 49397 d3a8aa01f26f
child 50693 db0a17475826
--- a/src/hotspot/cpu/x86/c1_MacroAssembler_x86.cpp	Thu Apr 26 12:48:35 2018 -0700
+++ b/src/hotspot/cpu/x86/c1_MacroAssembler_x86.cpp	Thu Apr 26 20:42:43 2018 +0200
@@ -356,6 +356,15 @@
   verify_FPU(0, "method_entry");
 }
 
+void C1_MacroAssembler::load_parameter(int offset_in_words, Register reg) {
+  // rbp, + 0: link
+  //     + 1: return address
+  //     + 2: argument with offset 0
+  //     + 3: argument with offset 1
+  //     + 4: ...
+
+  movptr(reg, Address(rbp, (offset_in_words + 2) * BytesPerWord));
+}
 
 #ifndef PRODUCT