Index: src/hydrogen-instructions.cc |
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc |
index 5a9510f8e31349117533232d5a4eca93263ecdda..e99f90920a9ac6cf4f252ab3472217e424247d5f 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"; |