@@ -296,7 +296,6 @@ void InterpreterMacroAssembler::call_VM_leaf_base(address entry_point,
296296}
297297
298298void InterpreterMacroAssembler::call_VM_base (Register oop_result,
299- Register java_thread,
300299 Register last_java_sp,
301300 address entry_point,
302301 int number_of_arguments,
@@ -319,7 +318,7 @@ void InterpreterMacroAssembler::call_VM_base(Register oop_result,
319318 }
320319#endif /* ASSERT */
321320 // super call
322- MacroAssembler::call_VM_base (oop_result, noreg, last_java_sp,
321+ MacroAssembler::call_VM_base (oop_result, last_java_sp,
323322 entry_point, number_of_arguments,
324323 check_exceptions);
325324 // interpreter specific
@@ -379,7 +378,7 @@ void InterpreterMacroAssembler::restore_after_resume(bool is_native) {
379378 }
380379}
381380
382- void InterpreterMacroAssembler::check_and_handle_popframe (Register java_thread ) {
381+ void InterpreterMacroAssembler::check_and_handle_popframe () {
383382 if (JvmtiExport::can_pop_frame ()) {
384383 Label L;
385384 // Initiate popframe handling only if it is not already being
@@ -389,7 +388,7 @@ void InterpreterMacroAssembler::check_and_handle_popframe(Register java_thread)
389388 // This method is only called just after the call into the vm in
390389 // call_VM_base, so the arg registers are available.
391390 Register pop_cond = c_rarg0;
392- movl (pop_cond, Address (java_thread , JavaThread::popframe_condition_offset ()));
391+ movl (pop_cond, Address (r15_thread , JavaThread::popframe_condition_offset ()));
393392 testl (pop_cond, JavaThread::popframe_pending_bit);
394393 jcc (Assembler::zero, L);
395394 testl (pop_cond, JavaThread::popframe_processing_bit);
@@ -430,7 +429,7 @@ void InterpreterMacroAssembler::load_earlyret_value(TosState state) {
430429}
431430
432431
433- void InterpreterMacroAssembler::check_and_handle_earlyret (Register java_thread ) {
432+ void InterpreterMacroAssembler::check_and_handle_earlyret () {
434433 if (JvmtiExport::can_force_early_return ()) {
435434 Label L;
436435 Register tmp = c_rarg0;
@@ -810,13 +809,13 @@ void InterpreterMacroAssembler::remove_activation(
810809 // the stack, will call InterpreterRuntime::at_unwind.
811810 Label slow_path;
812811 Label fast_path;
813- safepoint_poll (slow_path, rthread, true /* at_return */ , false /* in_nmethod */ );
812+ safepoint_poll (slow_path, true /* at_return */ , false /* in_nmethod */ );
814813 jmp (fast_path);
815814 bind (slow_path);
816815 push (state);
817- set_last_Java_frame (rthread, noreg, rbp, (address)pc (), rscratch1);
816+ set_last_Java_frame (noreg, rbp, (address)pc (), rscratch1);
818817 super_call_VM_leaf (CAST_FROM_FN_PTR (address, InterpreterRuntime::at_unwind), rthread);
819- reset_last_Java_frame (rthread, true );
818+ reset_last_Java_frame (true );
820819 pop (state);
821820 bind (fast_path);
822821
@@ -1031,8 +1030,7 @@ void InterpreterMacroAssembler::lock_object(Register lock_reg) {
10311030 }
10321031
10331032 if (LockingMode == LM_LIGHTWEIGHT) {
1034- const Register thread = r15_thread;
1035- lightweight_lock (lock_reg, obj_reg, swap_reg, thread, tmp_reg, slow_case);
1033+ lightweight_lock (lock_reg, obj_reg, swap_reg, tmp_reg, slow_case);
10361034 } else if (LockingMode == LM_LEGACY) {
10371035 // Load immediate 1 into swap_reg %rax
10381036 movl (swap_reg, 1 );
@@ -1141,7 +1139,7 @@ void InterpreterMacroAssembler::unlock_object(Register lock_reg) {
11411139 movptr (Address (lock_reg, BasicObjectLock::obj_offset ()), NULL_WORD);
11421140
11431141 if (LockingMode == LM_LIGHTWEIGHT) {
1144- lightweight_unlock (obj_reg, swap_reg, r15_thread, header_reg, slow_case);
1142+ lightweight_unlock (obj_reg, swap_reg, header_reg, slow_case);
11451143 } else if (LockingMode == LM_LEGACY) {
11461144 // Load the old header from BasicLock structure
11471145 movptr (header_reg, Address (swap_reg,
0 commit comments