Index: src/types.cc |
diff --git a/src/types.cc b/src/types.cc |
index bea140ec4ab8879e3243f27f18ef5ad28debcad8..70ddccd6a74eeebf9f3ee0c3b3ceb941f2c80ca8 100644 |
--- a/src/types.cc |
+++ b/src/types.cc |
@@ -483,6 +483,7 @@ Type* Type::Optional(Handle<Type> type) { |
Representation Representation::FromType(Handle<Type> type) { |
if (type->Is(Type::None())) return Representation::None(); |
+ if (type->Is(Type::Smi())) return Representation::Smi(); |
if (type->Is(Type::Signed32())) return Representation::Integer32(); |
if (type->Is(Type::Number())) return Representation::Double(); |
return Representation::Tagged(); |