Index: src/hydrogen-instructions.cc |
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc |
index 79c7964d15492ead5d3312a5ef53ad82770c1154..ba8d03b6f6f8f04839fee8c07dbfcc9a1c33943c 100644 |
--- a/src/hydrogen-instructions.cc |
+++ b/src/hydrogen-instructions.cc |
@@ -3056,7 +3056,7 @@ void HCompareObjectEqAndBranch::PrintDataTo(StringStream* stream) { |
bool HCompareObjectEqAndBranch::KnownSuccessorBlock(HBasicBlock** block) { |
if (FLAG_fold_constants && left()->IsConstant() && right()->IsConstant()) { |
- *block = HConstant::cast(left())->Equals(HConstant::cast(right())) |
+ *block = HConstant::cast(left())->DataEquals(HConstant::cast(right())) |
? FirstSuccessor() : SecondSuccessor(); |
return true; |
} |