Index: src/objects-inl.h |
=================================================================== |
--- src/objects-inl.h (revision 984) |
+++ src/objects-inl.h (working copy) |
@@ -348,10 +348,17 @@ |
bool Object::IsContext() { |
return Object::IsHeapObject() |
&& (HeapObject::cast(this)->map() == Heap::context_map() || |
+ HeapObject::cast(this)->map() == Heap::catch_context_map() || |
HeapObject::cast(this)->map() == Heap::global_context_map()); |
} |
+bool Object::IsCatchContext() { |
+ return Object::IsHeapObject() |
+ && HeapObject::cast(this)->map() == Heap::catch_context_map(); |
+} |
+ |
+ |
bool Object::IsGlobalContext() { |
return Object::IsHeapObject() |
&& HeapObject::cast(this)->map() == Heap::global_context_map(); |