Index: src/hydrogen-instructions.cc |
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc |
index 041ef8b37408f11fcb8cdc68e26abbf3c479966e..8e7032f6ec0a285fb9fcfb70876daa0125dddb64 100644 |
--- a/src/hydrogen-instructions.cc |
+++ b/src/hydrogen-instructions.cc |
@@ -1690,6 +1690,14 @@ void HCheckFunction::PrintDataTo(StringStream* stream) { |
} |
+HValue* HCheckFunction::Canonicalize() { |
+ return (value()->IsConstant() && |
+ HConstant::cast(value())->UniqueValueIdsMatch(target_unique_id_)) |
+ ? NULL |
+ : this; |
+} |
+ |
+ |
const char* HCheckInstanceType::GetCheckName() { |
switch (check_) { |
case IS_SPEC_OBJECT: return "object"; |