Bug 1059064 - OdinMonkey: avoid referencing AsmJSGlobalRegBias except for the ARM and MIPS backends. r=luke

This commit is contained in:
Douglas Crosher 2014-08-27 14:23:03 +10:00
parent 9f492bd227
commit f278ccf4cf

View File

@ -7061,7 +7061,7 @@ GenerateFFIIonExit(ModuleCompiler &m, const ModuleCompiler::ExitDescriptor &exit
m.masm().append(AsmJSGlobalAccess(masm.leaRipRelative(callee), globalDataOffset));
#elif defined(JS_CODEGEN_X86)
m.masm().append(AsmJSGlobalAccess(masm.movlWithPatch(Imm32(0), callee), globalDataOffset));
#else
#elif defined(JS_CODEGEN_ARM) || defined(JS_CODEGEN_MIPS)
masm.computeEffectiveAddress(Address(GlobalReg, globalDataOffset - AsmJSGlobalRegBias), callee);
#endif