[JAEGER] Properly sync for calls that will always be slow (bug 573433).

This commit is contained in:
David Anderson 2010-07-02 14:19:13 -07:00
parent 84de2ed77d
commit 67e8dc98c4

View File

@ -1574,6 +1574,7 @@ mjit::Compiler::inlineCallHelper(uint32 argc, bool callingNew)
bool typeKnown = fe->isTypeKnown();
if (typeKnown && fe->getKnownType() != JSVAL_TYPE_OBJECT) {
prepareStubCall();
VoidPtrStubUInt32 stub = callingNew ? stubs::SlowNew : stubs::SlowCall;
masm.move(Imm32(argc), Registers::ArgReg1);
masm.stubCall(stub, PC, frame.stackDepth() + script->nfixed);