Index: src/types-inl.h |
diff --git a/src/types-inl.h b/src/types-inl.h |
index 2c805032902d0d2bc79862dd8822e3a46a6263fc..ad1107b68cb0c3421c19f8343745268b3ff842d8 100644 |
--- a/src/types-inl.h |
+++ b/src/types-inl.h |
@@ -13,6 +13,20 @@ |
namespace v8 { |
namespace internal { |
+template<class Config> |
+bool TypeImpl<Config>::NowContains(i::Object* value) { |
+ DisallowHeapAllocation no_allocation; |
+ if (this->IsAny()) return true; |
+ if (value->IsHeapObject()) { |
+ i::Map* map = i::HeapObject::cast(value)->map(); |
+ for (Iterator<i::Map> it = this->Classes(); !it.Done(); it.Advance()) { |
+ if (*it.Current() == map) return true; |
+ } |
+ } |
+ return this->Contains(value); |
+} |
+ |
+ |
// static |
Type* ZoneTypeConfig::handle(Type* type) { |
return type; |