Index: src/heap.h |
diff --git a/src/heap.h b/src/heap.h |
index f97344b81d856b8a7438cbc23362c62429703017..502f2a72673f06fb0c6d8622e76a5173acf412b5 100644 |
--- a/src/heap.h |
+++ b/src/heap.h |
@@ -105,8 +105,9 @@ inline Heap* _inline_get_heap_(); |
V(Map, external_unsigned_int_array_map, ExternalUnsignedIntArrayMap) \ |
V(Map, external_float_array_map, ExternalFloatArrayMap) \ |
V(Map, external_double_array_map, ExternalDoubleArrayMap) \ |
- V(Map, context_map, ContextMap) \ |
+ V(Map, function_context_map, FunctionContextMap) \ |
V(Map, catch_context_map, CatchContextMap) \ |
+ V(Map, with_context_map, WithContextMap) \ |
V(Map, code_map, CodeMap) \ |
V(Map, oddball_map, OddballMap) \ |
V(Map, global_property_cell_map, GlobalPropertyCellMap) \ |
@@ -632,10 +633,12 @@ class Heap { |
MUST_USE_RESULT MaybeObject* AllocateFunctionContext(int length, |
JSFunction* closure); |
+ // Allocate a catch context. |
+ MUST_USE_RESULT MaybeObject* AllocateCatchContext(Context* previous, |
+ JSObject* extension); |
// Allocate a 'with' context. |
MUST_USE_RESULT MaybeObject* AllocateWithContext(Context* previous, |
- JSObject* extension, |
- bool is_catch_context); |
+ JSObject* extension); |
// Allocates a new utility object in the old generation. |
MUST_USE_RESULT MaybeObject* AllocateStruct(InstanceType type); |