| Index: src/mips64/macro-assembler-mips64.cc
|
| diff --git a/src/mips64/macro-assembler-mips64.cc b/src/mips64/macro-assembler-mips64.cc
|
| index 83f1a783ff43889a66423c1e3702e1eda187ffd4..b6dc240c498d9cffe8dc2141d11b24e5f38ae71e 100644
|
| --- a/src/mips64/macro-assembler-mips64.cc
|
| +++ b/src/mips64/macro-assembler-mips64.cc
|
| @@ -3193,15 +3193,12 @@ void MacroAssembler::Ret(Condition cond,
|
|
|
| void MacroAssembler::J(Label* L, BranchDelaySlot bdslot) {
|
| BlockTrampolinePoolScope block_trampoline_pool(this);
|
| -
|
| - uint64_t imm28;
|
| - imm28 = jump_address(L);
|
| {
|
| BlockGrowBufferScope block_buf_growth(this);
|
| // Buffer growth (and relocation) must be blocked for internal references
|
| // until associated instructions are emitted and available to be patched.
|
| RecordRelocInfo(RelocInfo::INTERNAL_REFERENCE_ENCODED);
|
| - j(imm28);
|
| + j(L);
|
| }
|
| // Emit a nop in the branch delay slot if required.
|
| if (bdslot == PROTECT) nop();
|
| @@ -3210,15 +3207,12 @@ void MacroAssembler::J(Label* L, BranchDelaySlot bdslot) {
|
|
|
| void MacroAssembler::Jal(Label* L, BranchDelaySlot bdslot) {
|
| BlockTrampolinePoolScope block_trampoline_pool(this);
|
| -
|
| - uint64_t imm28;
|
| - imm28 = jump_address(L);
|
| {
|
| BlockGrowBufferScope block_buf_growth(this);
|
| // Buffer growth (and relocation) must be blocked for internal references
|
| // until associated instructions are emitted and available to be patched.
|
| RecordRelocInfo(RelocInfo::INTERNAL_REFERENCE_ENCODED);
|
| - jal(imm28);
|
| + jal(L);
|
| }
|
| // Emit a nop in the branch delay slot if required.
|
| if (bdslot == PROTECT) nop();
|
|
|