Index: src/contexts.h |
diff --git a/src/contexts.h b/src/contexts.h |
index 6b510ab2a2ceedb9077d19498755c796d79be959..0a23c4144d6082cbeb2ce8c0fe9ba3ea47b727d3 100644 |
--- a/src/contexts.h |
+++ b/src/contexts.h |
@@ -75,13 +75,20 @@ enum BindingFlags { |
#define NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ |
V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \ |
+ V(CONCAT_ITERABLE_TO_ARRAY_INDEX, JSFunction, concat_iterable_to_array) \ |
V(CREATE_DATE_FUN_INDEX, JSFunction, create_date_fun) \ |
+ V(DERIVED_GET_TRAP_INDEX, JSFunction, derived_get_trap) \ |
+ V(DERIVED_HAS_TRAP_INDEX, JSFunction, derived_has_trap) \ |
+ V(DERIVED_SET_TRAP_INDEX, JSFunction, derived_set_trap) \ |
V(ERROR_FUNCTION_INDEX, JSFunction, error_function) \ |
V(EVAL_ERROR_FUNCTION_INDEX, JSFunction, eval_error_function) \ |
V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \ |
+ V(GET_TEMPLATE_CALL_SITE_INDEX, JSFunction, get_template_call_site) \ |
V(GLOBAL_EVAL_FUN_INDEX, JSFunction, global_eval_fun) \ |
V(JSON_SERIALIZE_ADAPTER_INDEX, JSFunction, json_serialize_adapter) \ |
V(MAKE_ERROR_FUNCTION_INDEX, JSFunction, make_error_function) \ |
+ V(MAKE_RANGE_ERROR_INDEX, JSFunction, make_range_error) \ |
+ V(MAKE_TYPE_ERROR_INDEX, JSFunction, make_type_error) \ |
V(MAP_DELETE_METHOD_INDEX, JSFunction, map_delete) \ |
V(MAP_FROM_ARRAY_INDEX, JSFunction, map_from_array) \ |
V(MAP_GET_METHOD_INDEX, JSFunction, map_get) \ |
@@ -96,6 +103,8 @@ enum BindingFlags { |
V(NATIVE_OBJECT_OBSERVE_INDEX, JSFunction, native_object_observe) \ |
V(NO_SIDE_EFFECT_TO_STRING_FUN_INDEX, JSFunction, \ |
no_side_effect_to_string_fun) \ |
+ V(NON_NUMBER_TO_NUMBER_INDEX, JSFunction, non_number_to_number) \ |
+ V(NON_STRING_TO_STRING_INDEX, JSFunction, non_string_to_string) \ |
V(OBJECT_DEFINE_OWN_PROPERTY_INDEX, JSFunction, object_define_own_property) \ |
V(OBJECT_GET_OWN_PROPERTY_DESCROPTOR_INDEX, JSFunction, \ |
object_get_own_property_descriptor) \ |
@@ -111,12 +120,17 @@ enum BindingFlags { |
V(PROMISE_REJECT_INDEX, JSFunction, promise_reject) \ |
V(PROMISE_RESOLVE_INDEX, JSFunction, promise_resolve) \ |
V(PROMISE_THEN_INDEX, JSFunction, promise_then) \ |
+ V(PROXY_ENUMERATE_INDEX, JSFunction, proxy_enumerate) \ |
V(RANGE_ERROR_FUNCTION_INDEX, JSFunction, range_error_function) \ |
V(REFERENCE_ERROR_FUNCTION_INDEX, JSFunction, reference_error_function) \ |
+ V(REFLECT_APPLY_INDEX, JSFunction, reflect_apply) \ |
+ V(REFLECT_CONSTRUCT_INDEX, JSFunction, reflect_construct) \ |
V(SET_ADD_METHOD_INDEX, JSFunction, set_add) \ |
V(SET_DELETE_METHOD_INDEX, JSFunction, set_delete) \ |
V(SET_FROM_ARRAY_INDEX, JSFunction, set_from_array) \ |
V(SET_HAS_METHOD_INDEX, JSFunction, set_has) \ |
+ V(SPREAD_ARGUMENTS_INDEX, JSFunction, spread_arguments) \ |
+ V(SPREAD_ITERABLE_INDEX, JSFunction, spread_iterable) \ |
V(STACK_OVERFLOW_BOILERPLATE_INDEX, JSObject, stack_overflow_boilerplate) \ |
V(SYNTAX_ERROR_FUNCTION_INDEX, JSFunction, syntax_error_function) \ |
V(TO_COMPLETE_PROPERTY_DESCRIPTOR_INDEX, JSFunction, \ |
@@ -124,16 +138,13 @@ enum BindingFlags { |
V(TO_DETAIL_STRING_FUN_INDEX, JSFunction, to_detail_string_fun) \ |
V(TO_INTEGER_FUN_INDEX, JSFunction, to_integer_fun) \ |
V(TO_LENGTH_FUN_INDEX, JSFunction, to_length_fun) \ |
+ V(TO_NAME_INDEX, JSFunction, to_name) \ |
V(TO_NUMBER_FUN_INDEX, JSFunction, to_number_fun) \ |
+ V(TO_PRIMITIVE_INDEX, JSFunction, to_primitive) \ |
V(TO_STRING_FUN_INDEX, JSFunction, to_string_fun) \ |
V(TYPE_ERROR_FUNCTION_INDEX, JSFunction, type_error_function) \ |
V(URI_ERROR_FUNCTION_INDEX, JSFunction, uri_error_function) |
-#define NATIVE_CONTEXT_IMPORTED_FIELDS_FOR_PROXY(V) \ |
- V(DERIVED_GET_TRAP_INDEX, JSFunction, derived_get_trap) \ |
- V(DERIVED_HAS_TRAP_INDEX, JSFunction, derived_has_trap) \ |
- V(DERIVED_SET_TRAP_INDEX, JSFunction, derived_set_trap) \ |
- V(PROXY_ENUMERATE_INDEX, JSFunction, proxy_enumerate) |
#define NATIVE_CONTEXT_FIELDS(V) \ |
V(GLOBAL_PROXY_INDEX, JSObject, global_proxy_object) \ |
@@ -219,8 +230,7 @@ enum BindingFlags { |
V(UINT32_ARRAY_FUN_INDEX, JSFunction, uint32_array_fun) \ |
V(UINT8_ARRAY_FUN_INDEX, JSFunction, uint8_array_fun) \ |
V(UINT8_CLAMPED_ARRAY_FUN_INDEX, JSFunction, uint8_clamped_array_fun) \ |
- NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ |
- NATIVE_CONTEXT_IMPORTED_FIELDS_FOR_PROXY(V) |
+ NATIVE_CONTEXT_IMPORTED_FIELDS(V) |
// A table of all script contexts. Every loaded top-level script with top-level |
// lexical declarations contributes its ScriptContext into this table. |
@@ -336,7 +346,7 @@ class Context: public FixedArray { |
} |
// The default context slot layout; indices are FixedArray slot indices. |
- enum { |
+ enum Index { |
// These slots are in all contexts. |
CLOSURE_INDEX, |
PREVIOUS_INDEX, |