diff --git a/js/src/jstracer.cpp b/js/src/jstracer.cpp index 85991b9569d..303577f47ce 100644 --- a/js/src/jstracer.cpp +++ b/js/src/jstracer.cpp @@ -8366,7 +8366,7 @@ TraceRecorder::tableswitch() /* No need to guard if the condition is constant. */ LIns* v_ins = f2i(get(&v)); - if (v_ins->isconst() || v_ins->isconstq()) + if (v_ins->isconst()) return ARECORD_CONTINUE; jsbytecode* pc = cx->fp->regs->pc; @@ -8428,7 +8428,7 @@ TraceRecorder::switchop() LIns* v_ins = get(&v); /* No need to guard if the condition is constant. */ - if (v_ins->isconst() || v_ins->isconstq()) + if (v_ins->isImmAny()) return RECORD_CONTINUE; if (isNumber(v)) { jsdouble d = asNumber(v);