Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 70ed47be1f4edb17dd08033249d13b00ea273a44..3e86e394967f286df282d66a70ce419627857c1c 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -552,7 +552,8 @@ bool Object::IsContext() { |
return (map == heap->function_context_map() || |
map == heap->catch_context_map() || |
map == heap->with_context_map() || |
- map == heap->global_context_map()); |
+ map == heap->global_context_map() || |
+ map == heap->block_context_map()); |
} |
return false; |
} |
@@ -565,6 +566,13 @@ bool Object::IsGlobalContext() { |
} |
+bool Object::IsSerializedScopeInfo() { |
+ return Object::IsHeapObject() && |
+ HeapObject::cast(this)->map() == |
+ HeapObject::cast(this)->GetHeap()->serialized_scope_info_map(); |
+} |
+ |
+ |
bool Object::IsJSFunction() { |
return Object::IsHeapObject() |
&& HeapObject::cast(this)->map()->instance_type() == JS_FUNCTION_TYPE; |