Index: src/interpreter/interpreter.cc |
diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc |
index bb731b455bf4afa740027200449273555cdb45bf..b5e81206b53a315a156ba5ae9fd8fdd8db6690ee 100644 |
--- a/src/interpreter/interpreter.cc |
+++ b/src/interpreter/interpreter.cc |
@@ -1047,8 +1047,7 @@ void Interpreter::DoCompareOpWithFeedback(Token::Value compare_op, |
__ Bind(&lhs_is_not_smi); |
{ |
Node* lhs_map = __ LoadMap(lhs); |
- __ GotoUnless(__ WordEqual(lhs_map, __ HeapNumberMapConstant()), |
- &lhs_is_not_number); |
+ __ GotoUnless(__ IsHeapNumberMap(lhs_map), &lhs_is_not_number); |
var_type_feedback.Bind( |
__ Int32Constant(CompareOperationFeedback::kNumber)); |
@@ -1092,8 +1091,7 @@ void Interpreter::DoCompareOpWithFeedback(Token::Value compare_op, |
__ Bind(&rhs_is_not_smi); |
{ |
Node* rhs_map = __ LoadMap(rhs); |
- __ GotoUnless(__ WordEqual(rhs_map, __ HeapNumberMapConstant()), |
- &rhs_is_not_number); |
+ __ GotoUnless(__ IsHeapNumberMap(rhs_map), &rhs_is_not_number); |
var_type_feedback.Bind( |
__ Word32Or(var_type_feedback.value(), |