--- 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