Index: src/hydrogen-instructions.cc |
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc |
index 39d59582beec3d1ba57cad734dc5713e5bdda976..2f16179dc68f6918e25bc53f401c1aea82fd23a9 100644 |
--- a/src/hydrogen-instructions.cc |
+++ b/src/hydrogen-instructions.cc |
@@ -1177,6 +1177,20 @@ void HTypeofIsAndBranch::PrintDataTo(StringStream* stream) { |
} |
+bool HTypeofIsAndBranch::KnownSuccessorBlock(HBasicBlock** block) { |
+ if (value()->representation().IsSpecialization()) { |
+ if (compares_number_type()) { |
+ *block = FirstSuccessor(); |
+ } else { |
+ *block = SecondSuccessor(); |
+ } |
+ return true; |
+ } |
+ *block = NULL; |
+ return false; |
+} |
+ |
+ |
void HCheckMapValue::PrintDataTo(StringStream* stream) { |
value()->PrintNameTo(stream); |
stream->Add(" "); |