mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1064251 - IonMonkey: Fold strict (not) equal on constant numbers, r=sstangl
This commit is contained in:
parent
826a042efb
commit
969d23129d
@ -2818,12 +2818,12 @@ MCompare::evaluateConstantOperands(bool *result)
|
||||
case JSOP_GE:
|
||||
*result = (lhsUint >= rhsUint);
|
||||
break;
|
||||
case JSOP_STRICTEQ: // Fall through.
|
||||
case JSOP_EQ:
|
||||
case JSOP_STRICTEQ:
|
||||
*result = (lhsUint == rhsUint);
|
||||
break;
|
||||
case JSOP_STRICTNE: // Fall through.
|
||||
case JSOP_NE:
|
||||
case JSOP_STRICTNE:
|
||||
*result = (lhsUint != rhsUint);
|
||||
break;
|
||||
default:
|
||||
@ -2849,9 +2849,11 @@ MCompare::evaluateConstantOperands(bool *result)
|
||||
case JSOP_GE:
|
||||
*result = (lhs.toNumber() >= rhs.toNumber());
|
||||
break;
|
||||
case JSOP_STRICTEQ: // Fall through.
|
||||
case JSOP_EQ:
|
||||
*result = (lhs.toNumber() == rhs.toNumber());
|
||||
break;
|
||||
case JSOP_STRICTNE: // Fall through.
|
||||
case JSOP_NE:
|
||||
*result = (lhs.toNumber() != rhs.toNumber());
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user