Index: src/hydrogen-instructions.cc |
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc |
index 79962db8ad118ab80df7acc67298c1831e7756ac..39d59582beec3d1ba57cad734dc5713e5bdda976 100644 |
--- a/src/hydrogen-instructions.cc |
+++ b/src/hydrogen-instructions.cc |
@@ -2944,6 +2944,24 @@ void HCompareHoleAndBranch::InferRepresentation( |
} |
+bool HCompareMinusZeroAndBranch::KnownSuccessorBlock(HBasicBlock** block) { |
+ if (value()->representation().IsSmiOrInteger32()) { |
+ // A Smi or Integer32 cannot contain minus zero. |
+ *block = SecondSuccessor(); |
+ return true; |
+ } |
+ *block = NULL; |
+ return false; |
+} |
+ |
+ |
+void HCompareMinusZeroAndBranch::InferRepresentation( |
+ HInferRepresentationPhase* h_infer) { |
+ ChangeRepresentation(value()->representation()); |
+} |
+ |
+ |
+ |
void HGoto::PrintDataTo(StringStream* stream) { |
stream->Add("B%d", SuccessorAt(0)->block_id()); |
} |