mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 12:15:33 +00:00
Bug 478205: assert in new tableswitch generator with non-numeric input, r=gal
This commit is contained in:
parent
da4228a018
commit
209914f4aa
@ -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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user