[INFER] Fix SetName stub call in jsop_setprop, bug 649593. r=bhackett

This commit is contained in:
Jan de Mooij 2011-04-13 06:14:27 -07:00
parent 21fd2d8254
commit 601e26f3b1
2 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,10 @@
function RunSingleBenchmark(data) {
if (data == null)
return { runs: 0, elapsed: 0 };
data.runs += 10;
return data;
}
var data;
data = RunSingleBenchmark(data);
data = RunSingleBenchmark(data);
assertEq(data.runs, 10);

View File

@ -4950,7 +4950,7 @@ mjit::Compiler::jsop_setprop(JSAtom *atom, bool usePropCache, bool popGuaranteed
Jump notObject = frame.testObject(Assembler::NotEqual, lhs);
stubcc.linkExit(notObject, Uses(2));
stubcc.leave();
masm.move(ImmPtr(atom), Registers::ArgReg1);
stubcc.masm.move(ImmPtr(atom), Registers::ArgReg1);
OOL_STUBCALL(STRICT_VARIANT(stubs::SetName));
}
RegisterID reg = frame.tempRegForData(lhs);