Index: runtime/vm/intermediate_language.h |
diff --git a/runtime/vm/intermediate_language.h b/runtime/vm/intermediate_language.h |
index 00dcde25d54e763c6902c56f38a2dd77ce49acf5..8df33ee0dc622f68cdd65f99e2bcec317959044e 100644 |
--- a/runtime/vm/intermediate_language.h |
+++ b/runtime/vm/intermediate_language.h |
@@ -336,6 +336,7 @@ class ConstantVal: public Value { |
explicit ConstantVal(const Object& value) |
: value_(value) { |
ASSERT(value.IsZoneHandle()); |
+ ASSERT(value.IsSmi() || value.IsOld()); |
} |
DECLARE_VALUE(Constant) |