| Index: src/hydrogen.cc
|
| diff --git a/src/hydrogen.cc b/src/hydrogen.cc
|
| index 09e3fe9c47310195bc269cc6fa55da7dd9c44acf..6174886f8cf231fb9635b82002cde858aab4e36b 100644
|
| --- a/src/hydrogen.cc
|
| +++ b/src/hydrogen.cc
|
| @@ -3851,8 +3851,8 @@ bool Uint32Analysis::CheckPhiOperands(HPhi* phi) {
|
| HValue* operand = phi->OperandAt(j);
|
| if (!operand->CheckFlag(HInstruction::kUint32)) {
|
| // Lazyly mark constants that fit into uint32 range with kUint32 flag.
|
| - if (operand->IsConstant() &&
|
| - HConstant::cast(operand)->IsUint32()) {
|
| + if (operand->IsInteger32Constant() &&
|
| + operand->GetInteger32Constant() >= 0) {
|
| operand->SetFlag(HInstruction::kUint32);
|
| continue;
|
| }
|
| @@ -8622,9 +8622,7 @@ bool HOptimizedGraphBuilder::TryInlineBuiltinMethodCall(
|
| } else if (exponent == 2.0) {
|
| result = HMul::New(zone(), context, left, left);
|
| }
|
| - } else if (right->IsConstant() &&
|
| - HConstant::cast(right)->HasInteger32Value() &&
|
| - HConstant::cast(right)->Integer32Value() == 2) {
|
| + } else if (right->EqualsInteger32Constant(2)) {
|
| result = HMul::New(zone(), context, left, left);
|
| }
|
|
|
|
|