CALLARG, CALLVAR

This commit is contained in:
shaver@mozilla.org 2008-07-15 23:37:57 -04:00
parent 4937938676
commit f8c80ec490
2 changed files with 7 additions and 7 deletions

View File

@ -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()

View File

@ -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");