@@ -454,12 +454,7 @@ void MacroAssembler::call_VM_base(Register oop_result,
454
454
ld (t0, Address (java_thread, in_bytes (Thread::pending_exception_offset ())));
455
455
Label ok;
456
456
beqz (t0, ok);
457
- RuntimeAddress target (StubRoutines::forward_exception_entry ());
458
- relocate (target.rspec (), [&] {
459
- int32_t offset;
460
- la (t1, target.target (), offset);
461
- jr (t1, offset);
462
- });
457
+ j (RuntimeAddress (StubRoutines::forward_exception_entry ()));
463
458
bind (ok);
464
459
}
465
460
@@ -977,17 +972,19 @@ void MacroAssembler::j(const address dest, Register temp) {
977
972
}
978
973
}
979
974
980
- void MacroAssembler::j (const Address &adr , Register temp) {
981
- switch (adr .getMode ()) {
975
+ void MacroAssembler::j (const Address &dest , Register temp) {
976
+ switch (dest .getMode ()) {
982
977
case Address::literal: {
983
- relocate (adr.rspec (), [&] {
984
- j (adr.target (), temp);
978
+ relocate (dest.rspec (), [&] {
979
+ int32_t offset;
980
+ la (temp, dest.target (), offset);
981
+ jr (temp, offset);
985
982
});
986
983
break ;
987
984
}
988
985
case Address::base_plus_offset: {
989
- int32_t offset = ((int32_t )adr .offset () << 20 ) >> 20 ;
990
- la (temp, Address (adr .base (), adr .offset () - offset));
986
+ int32_t offset = ((int32_t )dest .offset () << 20 ) >> 20 ;
987
+ la (temp, Address (dest .base (), dest .offset () - offset));
991
988
jr (temp, offset);
992
989
break ;
993
990
}
@@ -4194,8 +4191,7 @@ void MacroAssembler::reserved_stack_check() {
4194
4191
// We have already removed our own frame.
4195
4192
// throw_delayed_StackOverflowError will think that it's been
4196
4193
// called by our caller.
4197
- la (t1, RuntimeAddress (SharedRuntime::throw_delayed_StackOverflowError_entry ()));
4198
- jr (t1);
4194
+ j (RuntimeAddress (SharedRuntime::throw_delayed_StackOverflowError_entry ()));
4199
4195
should_not_reach_here ();
4200
4196
4201
4197
bind (no_reserved_zone_enabling);
0 commit comments