Index: src/types.h |
diff --git a/src/types.h b/src/types.h |
index 746cca764ea08e38cce14cd5614ab5cb72a48c30..63dc1d65789eccc130eafaa58df328a11307805c 100644 |
--- a/src/types.h |
+++ b/src/types.h |
@@ -764,6 +764,11 @@ class Type { |
return Of(*value, zone); |
} |
+ static Type* For(i::Map* map) { |
+ return BitsetType::New(BitsetType::ExpandInternals(BitsetType::Lub(map))); |
+ } |
+ static Type* For(i::Handle<i::Map> map) { return For(*map); } |
+ |
// Extraction of components. |
static Type* Representation(Type* t, Zone* zone); |
static Type* Semantic(Type* t, Zone* zone); |