This commit is contained in:
David Anderson 2008-08-28 13:15:34 -07:00
commit 48fe80af99

View File

@ -2670,7 +2670,7 @@ TraceRecorder::cmp(LOpcode op, bool negate)
LIns* r_ins = get(&r);
jsdouble lnum;
jsdouble rnum;
LIns* args[] = { get(&l), cx_ins };
LIns* args[] = { l_ins, cx_ins };
if (JSVAL_IS_STRING(l)) {
l_ins = lir->insCall(F_StringToNumber, args);
} else if (JSVAL_TAG(l) == JSVAL_BOOLEAN) {
@ -3803,9 +3803,9 @@ TraceRecorder::record_JSOP_TYPEOF()
jsval& r = stackval(-1);
LIns* type;
if (JSVAL_IS_STRING(r)) {
type = lir->insImmPtr((void*)cx->runtime->atomState.typeAtoms[JSTYPE_STRING]);
type = INS_CONSTPTR(ATOM_TO_STRING(cx->runtime->atomState.typeAtoms[JSTYPE_STRING]));
} else if (isNumber(r)) {
type = lir->insImmPtr((void*)cx->runtime->atomState.typeAtoms[JSTYPE_NUMBER]);
type = INS_CONSTPTR(ATOM_TO_STRING(cx->runtime->atomState.typeAtoms[JSTYPE_NUMBER]));
} else {
LIns* args[] = { get(&r), cx_ins };
if (JSVAL_TAG(r) == JSVAL_BOOLEAN) {