Index: src/hydrogen-instructions.cc |
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc |
index 2b64f89ab28f7228f4ec2cbad69e6435b4132de1..b2f1708adec28fe4e915a0dc8d6baf310b938b5f 100644 |
--- a/src/hydrogen-instructions.cc |
+++ b/src/hydrogen-instructions.cc |
@@ -3098,6 +3098,10 @@ void HCompareObjectEqAndBranch::PrintDataTo(StringStream* stream) { |
bool HCompareObjectEqAndBranch::KnownSuccessorBlock(HBasicBlock** block) { |
+ if (known_successor_index() != kNoKnownSuccessorIndex) { |
+ *block = SuccessorAt(known_successor_index()); |
+ return true; |
+ } |
if (FLAG_fold_constants && left()->IsConstant() && right()->IsConstant()) { |
*block = HConstant::cast(left())->DataEquals(HConstant::cast(right())) |
? FirstSuccessor() : SecondSuccessor(); |