Index: src/contexts.h |
diff --git a/src/contexts.h b/src/contexts.h |
index 407e69b052c36f3f5a0ed4033bd59db1e4f71f68..a048c142e4f5b044439f6621d4119813e1784a22 100644 |
--- a/src/contexts.h |
+++ b/src/contexts.h |
@@ -135,17 +135,19 @@ enum BindingFlags { |
V(FLOAT64_ARRAY_FUN_INDEX, JSFunction, float64_array_fun) \ |
V(UINT8_CLAMPED_ARRAY_FUN_INDEX, JSFunction, uint8_clamped_array_fun) \ |
V(DATA_VIEW_FUN_INDEX, JSFunction, data_view_fun) \ |
- V(FUNCTION_MAP_INDEX, Map, function_map) \ |
- V(STRICT_MODE_FUNCTION_MAP_INDEX, Map, strict_mode_function_map) \ |
- V(FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, function_without_prototype_map) \ |
- V(STRICT_MODE_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \ |
- strict_mode_function_without_prototype_map) \ |
+ V(SLOPPY_FUNCTION_MAP_INDEX, Map, sloppy_function_map) \ |
+ V(STRICT_FUNCTION_MAP_INDEX, Map, strict_function_map) \ |
+ V(SLOPPY_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \ |
+ sloppy_function_without_prototype_map) \ |
+ V(STRICT_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \ |
+ strict_function_without_prototype_map) \ |
V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map)\ |
- V(ARGUMENTS_BOILERPLATE_INDEX, JSObject, arguments_boilerplate) \ |
+ V(SLOPPY_ARGUMENTS_BOILERPLATE_INDEX, JSObject, \ |
+ sloppy_arguments_boilerplate) \ |
V(ALIASED_ARGUMENTS_BOILERPLATE_INDEX, JSObject, \ |
aliased_arguments_boilerplate) \ |
- V(STRICT_MODE_ARGUMENTS_BOILERPLATE_INDEX, JSObject, \ |
- strict_mode_arguments_boilerplate) \ |
+ V(STRICT_ARGUMENTS_BOILERPLATE_INDEX, JSObject, \ |
+ strict_arguments_boilerplate) \ |
V(MESSAGE_LISTENERS_INDEX, JSObject, message_listeners) \ |
V(MAKE_MESSAGE_FUN_INDEX, JSFunction, make_message_fun) \ |
V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \ |
@@ -180,9 +182,8 @@ enum BindingFlags { |
observers_begin_perform_splice) \ |
V(OBSERVERS_END_SPLICE_INDEX, JSFunction, \ |
observers_end_perform_splice) \ |
- V(GENERATOR_FUNCTION_MAP_INDEX, Map, generator_function_map) \ |
- V(STRICT_MODE_GENERATOR_FUNCTION_MAP_INDEX, Map, \ |
- strict_mode_generator_function_map) \ |
+ V(SLOPPY_GENERATOR_FUNCTION_MAP_INDEX, Map, sloppy_generator_function_map) \ |
+ V(STRICT_GENERATOR_FUNCTION_MAP_INDEX, Map, strict_generator_function_map) \ |
V(GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, Map, \ |
generator_object_prototype_map) \ |
V(GENERATOR_RESULT_MAP_INDEX, Map, generator_result_map) |
@@ -256,14 +257,14 @@ class Context: public FixedArray { |
// These slots are only in native contexts. |
GLOBAL_PROXY_INDEX = MIN_CONTEXT_SLOTS, |
SECURITY_TOKEN_INDEX, |
- ARGUMENTS_BOILERPLATE_INDEX, |
+ SLOPPY_ARGUMENTS_BOILERPLATE_INDEX, |
ALIASED_ARGUMENTS_BOILERPLATE_INDEX, |
- STRICT_MODE_ARGUMENTS_BOILERPLATE_INDEX, |
+ STRICT_ARGUMENTS_BOILERPLATE_INDEX, |
REGEXP_RESULT_MAP_INDEX, |
- FUNCTION_MAP_INDEX, |
- STRICT_MODE_FUNCTION_MAP_INDEX, |
- FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, |
- STRICT_MODE_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, |
+ SLOPPY_FUNCTION_MAP_INDEX, |
+ STRICT_FUNCTION_MAP_INDEX, |
+ SLOPPY_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, |
+ STRICT_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, |
INITIAL_OBJECT_PROTOTYPE_INDEX, |
INITIAL_ARRAY_PROTOTYPE_INDEX, |
BOOLEAN_FUNCTION_INDEX, |
@@ -329,8 +330,8 @@ class Context: public FixedArray { |
OBSERVERS_ENQUEUE_SPLICE_INDEX, |
OBSERVERS_BEGIN_SPLICE_INDEX, |
OBSERVERS_END_SPLICE_INDEX, |
- GENERATOR_FUNCTION_MAP_INDEX, |
- STRICT_MODE_GENERATOR_FUNCTION_MAP_INDEX, |
+ SLOPPY_GENERATOR_FUNCTION_MAP_INDEX, |
+ STRICT_GENERATOR_FUNCTION_MAP_INDEX, |
GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, |
GENERATOR_RESULT_MAP_INDEX, |
@@ -490,14 +491,14 @@ class Context: public FixedArray { |
return kHeaderSize + index * kPointerSize - kHeapObjectTag; |
} |
- static int FunctionMapIndex(LanguageMode language_mode, bool is_generator) { |
+ static int FunctionMapIndex(StrictMode strict_mode, bool is_generator) { |
return is_generator |
- ? (language_mode == SLOPPY_MODE |
- ? GENERATOR_FUNCTION_MAP_INDEX |
- : STRICT_MODE_GENERATOR_FUNCTION_MAP_INDEX) |
- : (language_mode == SLOPPY_MODE |
- ? FUNCTION_MAP_INDEX |
- : STRICT_MODE_FUNCTION_MAP_INDEX); |
+ ? (strict_mode == SLOPPY |
+ ? SLOPPY_GENERATOR_FUNCTION_MAP_INDEX |
+ : STRICT_GENERATOR_FUNCTION_MAP_INDEX) |
+ : (strict_mode == SLOPPY |
+ ? SLOPPY_FUNCTION_MAP_INDEX |
+ : STRICT_FUNCTION_MAP_INDEX); |
} |
static const int kSize = kHeaderSize + NATIVE_CONTEXT_SLOTS * kPointerSize; |