Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 0288bfb81b7e54558da93d22665009a8c30f7d1e..d2d92bf678474bff42434869e40d5844564c0093 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -767,6 +767,14 @@ bool Object::IsNativeContext() const { |
} |
+bool Object::IsGlobalContextTable() const { |
+ if (!Object::IsHeapObject()) return false; |
+ Map* map = HeapObject::cast(this)->map(); |
+ Heap* heap = map->GetHeap(); |
+ return map == heap->global_context_table_map(); |
+} |
+ |
+ |
bool Object::IsScopeInfo() const { |
return Object::IsHeapObject() && |
HeapObject::cast(this)->map() == |