Bug 575205 - JM: Make JaegerMonkey work on Solaris x86/x64 with Sun Studio 12. r=dvander

This commit is contained in:
Leon Sha
2010-06-29 21:02:49 -07:00
parent 17aa5003ba
commit 9dab43c1ef
14 changed files with 316 additions and 8 deletions

View File

@@ -445,7 +445,13 @@ mjit::Compiler::generateMethod()
frame.forgetEverything();
masm.fixScriptStack(frame.frameDepth());
masm.setupVMFrame();
#if defined(JS_NO_FASTCALL) && defined(JS_CPU_X86)
masm.push(Registers::ArgReg0);
#endif
masm.call(JS_FUNC_TO_DATA_PTR(void *, stubs::ValueToBoolean));
#if defined(JS_NO_FASTCALL) && defined(JS_CPU_X86)
masm.pop();
#endif
Assembler::Condition cond = (op == JSOP_IFEQ)
? Assembler::Zero
: Assembler::NonZero;
@@ -825,7 +831,13 @@ mjit::Compiler::generateMethod()
frame.forgetEverything();
masm.fixScriptStack(frame.frameDepth());
masm.setupVMFrame();
#if defined(JS_NO_FASTCALL) && defined(JS_CPU_X86)
masm.push(Registers::ArgReg0);
#endif
masm.call(JS_FUNC_TO_DATA_PTR(void *, stubs::ValueToBoolean));
#if defined(JS_NO_FASTCALL) && defined(JS_CPU_X86)
masm.pop();
#endif
Assembler::Condition cond = (op == JSOP_OR)
? Assembler::NonZero
: Assembler::Zero;