mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
[INFER] Fix SetName stub call in jsop_setprop, bug 649593. r=bhackett
This commit is contained in:
parent
21fd2d8254
commit
601e26f3b1
10
js/src/jit-test/tests/jaeger/bug649593.js
Normal file
10
js/src/jit-test/tests/jaeger/bug649593.js
Normal 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);
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user