Bug 1128820 - IonMonkey: MIPS: Fix checkStackAlignment break code conflict with call c++ tag. r=rankov

This commit is contained in:
Heiher 2015-02-03 05:15:00 -05:00
Родитель 34659e2cb1
Коммит fc3472190e
2 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -244,6 +244,7 @@ static const uint32_t SAMask = ((1 << SABits) - 1) << SAShift;
static const uint32_t FunctionMask = ((1 << FunctionBits) - 1) << FunctionShift; static const uint32_t FunctionMask = ((1 << FunctionBits) - 1) << FunctionShift;
static const uint32_t RegMask = Registers::Total - 1; static const uint32_t RegMask = Registers::Total - 1;
static const uint32_t BREAK_STACK_UNALIGNED = 1;
static const uint32_t MAX_BREAK_CODE = 1024 - 1; static const uint32_t MAX_BREAK_CODE = 1024 - 1;
class Instruction; class Instruction;

Просмотреть файл

@ -3355,7 +3355,7 @@ MacroAssemblerMIPSCompat::checkStackAlignment()
Label aligned; Label aligned;
as_andi(ScratchRegister, sp, ABIStackAlignment - 1); as_andi(ScratchRegister, sp, ABIStackAlignment - 1);
ma_b(ScratchRegister, zero, &aligned, Equal, ShortJump); ma_b(ScratchRegister, zero, &aligned, Equal, ShortJump);
as_break(MAX_BREAK_CODE); as_break(BREAK_STACK_UNALIGNED);
bind(&aligned); bind(&aligned);
#endif #endif
} }