diff options
author | Jiaxun Yang <jiaxun.yang@flygoat.com> | 2020-05-12 12:40:08 +0800 |
---|---|---|
committer | Jiaxun Yang <jiaxun.yang@flygoat.com> | 2020-05-14 16:31:56 +0800 |
commit | 6b56185c0b77cb4b3756fdd4b517b74c77c90afc (patch) | |
tree | 0d27f40fc49f7db56285adb0a2870e232cd67a8d /js/src/jit/mips64 | |
parent | 1a61c518b69238f340cbb1cab1d97bae27fe3ad9 (diff) | |
download | UXP-6b56185c0b77cb4b3756fdd4b517b74c77c90afc.tar UXP-6b56185c0b77cb4b3756fdd4b517b74c77c90afc.tar.gz UXP-6b56185c0b77cb4b3756fdd4b517b74c77c90afc.tar.lz UXP-6b56185c0b77cb4b3756fdd4b517b74c77c90afc.tar.xz UXP-6b56185c0b77cb4b3756fdd4b517b74c77c90afc.zip |
Bug 1271968 - IonMonkey: MIPS: Merge MacroAssembler::ma_jal.
Tag: #1542
Diffstat (limited to 'js/src/jit/mips64')
-rw-r--r-- | js/src/jit/mips64/MacroAssembler-mips64.cpp | 24 | ||||
-rw-r--r-- | js/src/jit/mips64/MacroAssembler-mips64.h | 2 |
2 files changed, 0 insertions, 26 deletions
diff --git a/js/src/jit/mips64/MacroAssembler-mips64.cpp b/js/src/jit/mips64/MacroAssembler-mips64.cpp index 137a24b59..ee6dd9d0a 100644 --- a/js/src/jit/mips64/MacroAssembler-mips64.cpp +++ b/js/src/jit/mips64/MacroAssembler-mips64.cpp @@ -757,30 +757,6 @@ MacroAssemblerMIPS64::ma_b(Address addr, ImmGCPtr imm, Label* label, Condition c } void -MacroAssemblerMIPS64::ma_jal(Label* label) -{ - if (label->bound()) { - // Generate the mixed jump. - addMixedJump(nextOffset(), ImmPtr((void*)label->offset())); - as_jal(JOffImm26(0)); - as_nop(); - return; - } - - // Second word holds a pointer to the next branch in label's chain. - uint32_t nextInChain = label->used() ? label->offset() : LabelBase::INVALID_OFFSET; - - // Make the whole branch continous in the buffer. The '2' - // instructions are writing at below (contain delay slot). - m_buffer.ensureSpace(2 * sizeof(uint32_t)); - - BufferOffset bo = as_jal(JOffImm26(0)); - writeInst(nextInChain); - if (!oom()) - label->use(bo.getOffset()); -} - -void MacroAssemblerMIPS64::branchWithCode(InstImm code, Label* label, JumpKind jumpKind) { MOZ_ASSERT(code.encode() != InstImm(op_regimm, zero, rt_bgezal, BOffImm16(0)).encode()); diff --git a/js/src/jit/mips64/MacroAssembler-mips64.h b/js/src/jit/mips64/MacroAssembler-mips64.h index d4b850096..900ff32ab 100644 --- a/js/src/jit/mips64/MacroAssembler-mips64.h +++ b/js/src/jit/mips64/MacroAssembler-mips64.h @@ -127,8 +127,6 @@ class MacroAssemblerMIPS64 : public MacroAssemblerMIPSShared ma_b(ScratchRegister, rhs, l, c, jumpKind); } - void ma_jal(Label* l); - // fp instructions void ma_lid(FloatRegister dest, double value); |