Index: src/contexts.h |
diff --git a/src/contexts.h b/src/contexts.h |
index 53b40f127d8efac2f45ebfdca2dd55d116cf945b..3d9e7f4bfe06b481071d7f571a8240c756716980 100644 |
--- a/src/contexts.h |
+++ b/src/contexts.h |
@@ -295,6 +295,10 @@ class Context: public FixedArray { |
Map* map = this->map(); |
return map == map->GetHeap()->with_context_map(); |
} |
+ bool IsBlockContext() { |
+ Map* map = this->map(); |
+ return map == map->GetHeap()->block_context_map(); |
+ } |
// Tells whether the global context is marked with out of memory. |
inline bool has_out_of_memory(); |