I will remember that stacked values are not boxed.

I will remember that stacked values are not boxed.
I will remember that stacked values are not boxed.
I will remember that stacked values are not boxed.
This commit is contained in:
shaver@mozilla.org 2008-07-11 23:04:29 -04:00
parent 9c69964575
commit d180a6755d
2 changed files with 0 additions and 8 deletions

View File

@ -127,9 +127,6 @@ int32 FASTCALL builtin_doubleToUint32(jsdouble d)
jsdouble FASTCALL builtin_Math_dot_sin(jsdouble d)
{
#ifdef DEBUG_shaver
fprintf(stderr, "inside Math.sin helper\n");
#endif
return sin(d);
}

View File

@ -1932,12 +1932,7 @@ bool TraceRecorder::record_JSOP_CALL()
ABORT_TRACE("Math.sin: only numeric arg permitted");
LIns* arg_ins = get(&arg);
if (!unbox_jsval(arg, arg_ins))
return false;
LIns* math_sin_ins = lir->insCall(F_Math_dot_sin, &arg_ins);
if (!box_jsval(arg, math_sin_ins)) // we know arg is a number
ABORT_TRACE("Math.sin: not really a number?!");
set(&fval, math_sin_ins);
return true;
}