Bug 478205: assert in new tableswitch generator with non-numeric input, r=gal

This commit is contained in:
David Mandelin 2009-02-12 12:57:45 -08:00
parent da4228a018
commit 209914f4aa

View File

@ -5029,6 +5029,9 @@ TraceRecorder::tableswitch()
if (v_ins->isconst() || v_ins->isconstq())
return NULL;
if (!isNumber(v))
return NULL;
jsbytecode* pc = cx->fp->regs->pc;
/* Starting a new trace after exiting a trace via switch. */
if (anchor && (anchor->exitType == CASE_EXIT ||