mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
CALLARG, CALLVAR
This commit is contained in:
parent
4937938676
commit
f8c80ec490
@ -2896,12 +2896,12 @@ bool TraceRecorder::record_JSOP_CALLGVAR()
|
||||
|
||||
bool TraceRecorder::record_JSOP_CALLVAR()
|
||||
{
|
||||
return false;
|
||||
return record_JSOP_GETVAR();
|
||||
}
|
||||
|
||||
bool TraceRecorder::record_JSOP_CALLARG()
|
||||
{
|
||||
return false;
|
||||
return record_JSOP_GETARG();
|
||||
}
|
||||
|
||||
bool TraceRecorder::record_JSOP_CALLLOCAL()
|
||||
|
@ -135,15 +135,15 @@ function ursh(n)
|
||||
test("ursh", [ursh(8),ursh(33),ursh(0),ursh(1)],
|
||||
"16777215,2147483620,4294967241,2147483620");
|
||||
|
||||
// pass Math as an argument until JSOP_NAME works again
|
||||
function doMath(Math)
|
||||
function doMath(cos)
|
||||
{
|
||||
var s = 0;
|
||||
var sin = Math.sin;
|
||||
for (var i = 0; i < 200; i++)
|
||||
s = -Math.pow(Math.sin(i) + Math.cos(i * 0.75), 4);
|
||||
s = -Math.pow(sin(i) + cos(i * 0.75), 4);
|
||||
return s;
|
||||
}
|
||||
test("Math.sin/cos/pow", doMath(Math), -0.5405549555611059);
|
||||
test("Math.sin/cos/pow", doMath(Math.cos), -0.5405549555611059);
|
||||
|
||||
function unknownCall(Math)
|
||||
{
|
||||
@ -209,4 +209,4 @@ function mod()
|
||||
}
|
||||
return mods.toString();
|
||||
}
|
||||
test("mod", mod(), "4.5,0,42,4,NaN");
|
||||
test("mod", mod(), "4.5,0,42,4,NaN");
|
||||
|
Loading…
Reference in New Issue
Block a user