Index: src/type-cache.h |
diff --git a/src/type-cache.h b/src/type-cache.h |
index 66d5e664629197ad97a25556d9ddc258abba86d8..1a4fa2f0850cdde76d4bad6e99e01dea90d92bf3 100644 |
--- a/src/type-cache.h |
+++ b/src/type-cache.h |
@@ -42,7 +42,12 @@ class TypeCache final { |
Type* const kSingletonZero = CreateRange(0.0, 0.0); |
Type* const kSingletonOne = CreateRange(1.0, 1.0); |
+ Type* const kSingletonTen = CreateRange(10.0, 10.0); |
Type* const kSingletonMinusOne = CreateRange(-1.0, -1.0); |
+ Type* const kZeroOrUndefined = |
+ Type::Union(kSingletonZero, Type::Undefined(), zone()); |
+ Type* const kTenOrUndefined = |
+ Type::Union(kSingletonTen, Type::Undefined(), zone()); |
Type* const kMinusOneOrZero = CreateRange(-1.0, 0.0); |
Type* const kZeroOrOne = CreateRange(0.0, 1.0); |
Type* const kZeroToThirtyOne = CreateRange(0.0, 31.0); |