mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 541030 - nanojit: isconstq() should only succeed for 64-bit integer (TM-specific part). r=dvander.
This commit is contained in:
parent
22018b88a0
commit
475f3125a3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user