Bug 1103108 part 1 - ARM: Remove unused ma_callJit. r=h4writer

This commit is contained in:
Nicolas B. Pierron 2015-08-25 17:50:52 +02:00
parent 995d029037
commit bb647a226c
2 changed files with 3 additions and 19 deletions

View File

@ -1892,13 +1892,8 @@ MacroAssemblerARMCompat::callWithExitFrame(JitCode* target, Register dynStack)
void
MacroAssemblerARMCompat::callJit(Register callee)
{
MOZ_ASSERT((asMasm().framePushed() & 3) == 0);
if ((asMasm().framePushed() & 7) == 4) {
MOZ_ASSERT((asMasm().framePushed() & 7) == 4);
ma_callJitHalfPush(callee);
} else {
asMasm().adjustFrame(sizeof(void*));
ma_callJit(callee);
}
}
void
@ -3659,15 +3654,6 @@ MacroAssemblerARMCompat::storeTypeTag(ImmTag tag, const BaseIndex& dest)
// ION ABI says *sp should be the address that we will return to when leaving
// this function.
void
MacroAssemblerARM::ma_callJit(const Register r)
{
// When the stack is 8 byte aligned, we want to decrement sp by 8, and write
// pc + 8 into the new sp. When we return from this call, sp will be its
// present value minus 4.
as_sub(sp, sp, Imm8(4));
as_blx(r);
}
void
MacroAssemblerARM::ma_callJitNoPush(const Register r)
{
// Since we just write the return address into the stack, which is popped on

View File

@ -423,9 +423,7 @@ class MacroAssemblerARM : public Assembler
BufferOffset ma_vstr(VFPRegister src, Register base, Register index, int32_t shift,
int32_t offset, Condition cc = Always);
// Calls an Ion function, assumes that the stack is untouched (8 byte
// aligned).
void ma_callJit(const Register reg);
// Calls an Ion function, assuming that sp has already been decremented.
void ma_callJitNoPush(const Register reg);
// Calls an ion function, assuming that the stack is currently not 8 byte