OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_CONTEXTS_H_ | 5 #ifndef V8_CONTEXTS_H_ |
6 #define V8_CONTEXTS_H_ | 6 #define V8_CONTEXTS_H_ |
7 | 7 |
8 #include "src/heap/heap.h" | 8 #include "src/heap/heap.h" |
9 #include "src/objects.h" | 9 #include "src/objects.h" |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 V(REFLECT_DELETE_PROPERTY_INDEX, JSFunction, reflect_delete_property) \ | 58 V(REFLECT_DELETE_PROPERTY_INDEX, JSFunction, reflect_delete_property) \ |
59 V(SPREAD_ARGUMENTS_INDEX, JSFunction, spread_arguments) \ | 59 V(SPREAD_ARGUMENTS_INDEX, JSFunction, spread_arguments) \ |
60 V(SPREAD_ITERABLE_INDEX, JSFunction, spread_iterable) \ | 60 V(SPREAD_ITERABLE_INDEX, JSFunction, spread_iterable) \ |
61 V(MATH_FLOOR_INDEX, JSFunction, math_floor) \ | 61 V(MATH_FLOOR_INDEX, JSFunction, math_floor) \ |
62 V(MATH_POW_INDEX, JSFunction, math_pow) \ | 62 V(MATH_POW_INDEX, JSFunction, math_pow) \ |
63 V(CREATE_RESOLVING_FUNCTION_INDEX, JSFunction, create_resolving_functions) \ | 63 V(CREATE_RESOLVING_FUNCTION_INDEX, JSFunction, create_resolving_functions) \ |
64 V(PROMISE_INTERNAL_CONSTRUCTOR_INDEX, JSFunction, \ | 64 V(PROMISE_INTERNAL_CONSTRUCTOR_INDEX, JSFunction, \ |
65 promise_internal_constructor) \ | 65 promise_internal_constructor) \ |
66 V(IS_PROMISE_INDEX, JSFunction, is_promise) \ | 66 V(IS_PROMISE_INDEX, JSFunction, is_promise) \ |
67 V(PERFORM_PROMISE_THEN_INDEX, JSFunction, perform_promise_then) \ | 67 V(PERFORM_PROMISE_THEN_INDEX, JSFunction, perform_promise_then) \ |
68 V(PROMISE_CREATE_AND_SET_INDEX, JSFunction, promise_create_and_set) | 68 V(PROMISE_CREATE_AND_SET_INDEX, JSFunction, promise_create_and_set) \ |
| 69 V(PROMISE_RESOLVE_INDEX, JSFunction, promise_resolve) \ |
| 70 V(PROMISE_THEN_INDEX, JSFunction, promise_then) |
69 | 71 |
70 #define NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ | 72 #define NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ |
71 V(ARRAY_CONCAT_INDEX, JSFunction, array_concat) \ | 73 V(ARRAY_CONCAT_INDEX, JSFunction, array_concat) \ |
72 V(ARRAY_POP_INDEX, JSFunction, array_pop) \ | 74 V(ARRAY_POP_INDEX, JSFunction, array_pop) \ |
73 V(ARRAY_PUSH_INDEX, JSFunction, array_push) \ | 75 V(ARRAY_PUSH_INDEX, JSFunction, array_push) \ |
74 V(ARRAY_SHIFT_INDEX, JSFunction, array_shift) \ | 76 V(ARRAY_SHIFT_INDEX, JSFunction, array_shift) \ |
75 V(ARRAY_SPLICE_INDEX, JSFunction, array_splice) \ | 77 V(ARRAY_SPLICE_INDEX, JSFunction, array_splice) \ |
76 V(ARRAY_SLICE_INDEX, JSFunction, array_slice) \ | 78 V(ARRAY_SLICE_INDEX, JSFunction, array_slice) \ |
77 V(ARRAY_UNSHIFT_INDEX, JSFunction, array_unshift) \ | 79 V(ARRAY_UNSHIFT_INDEX, JSFunction, array_unshift) \ |
78 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \ | 80 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \ |
(...skipping 19 matching lines...) Expand all Loading... |
98 V(OBJECT_TO_STRING, JSFunction, object_to_string) \ | 100 V(OBJECT_TO_STRING, JSFunction, object_to_string) \ |
99 V(PROMISE_CATCH_INDEX, JSFunction, promise_catch) \ | 101 V(PROMISE_CATCH_INDEX, JSFunction, promise_catch) \ |
100 V(PROMISE_CREATE_INDEX, JSFunction, promise_create) \ | 102 V(PROMISE_CREATE_INDEX, JSFunction, promise_create) \ |
101 V(PROMISE_FUNCTION_INDEX, JSFunction, promise_function) \ | 103 V(PROMISE_FUNCTION_INDEX, JSFunction, promise_function) \ |
102 V(PROMISE_HANDLE_INDEX, JSFunction, promise_handle) \ | 104 V(PROMISE_HANDLE_INDEX, JSFunction, promise_handle) \ |
103 V(PROMISE_HAS_USER_DEFINED_REJECT_HANDLER_INDEX, JSFunction, \ | 105 V(PROMISE_HAS_USER_DEFINED_REJECT_HANDLER_INDEX, JSFunction, \ |
104 promise_has_user_defined_reject_handler) \ | 106 promise_has_user_defined_reject_handler) \ |
105 V(PROMISE_DEBUG_GET_INFO_INDEX, JSFunction, promise_debug_get_info) \ | 107 V(PROMISE_DEBUG_GET_INFO_INDEX, JSFunction, promise_debug_get_info) \ |
106 V(PROMISE_REJECT_INDEX, JSFunction, promise_reject) \ | 108 V(PROMISE_REJECT_INDEX, JSFunction, promise_reject) \ |
107 V(PROMISE_INTERNAL_REJECT_INDEX, JSFunction, promise_internal_reject) \ | 109 V(PROMISE_INTERNAL_REJECT_INDEX, JSFunction, promise_internal_reject) \ |
108 V(PROMISE_RESOLVE_INDEX, JSFunction, promise_resolve) \ | |
109 V(PROMISE_ID_RESOLVE_HANDLER_INDEX, JSFunction, promise_id_resolve_handler) \ | 110 V(PROMISE_ID_RESOLVE_HANDLER_INDEX, JSFunction, promise_id_resolve_handler) \ |
110 V(PROMISE_ID_REJECT_HANDLER_INDEX, JSFunction, promise_id_reject_handler) \ | 111 V(PROMISE_ID_REJECT_HANDLER_INDEX, JSFunction, promise_id_reject_handler) \ |
111 V(PROMISE_THEN_INDEX, JSFunction, promise_then) \ | |
112 V(NEW_PROMISE_CAPABILITY_INDEX, JSFunction, new_promise_capability) \ | 112 V(NEW_PROMISE_CAPABILITY_INDEX, JSFunction, new_promise_capability) \ |
113 V(INTERNAL_PROMISE_CAPABILITY_INDEX, JSFunction, \ | 113 V(INTERNAL_PROMISE_CAPABILITY_INDEX, JSFunction, \ |
114 internal_promise_capability) \ | 114 internal_promise_capability) \ |
115 V(RANGE_ERROR_FUNCTION_INDEX, JSFunction, range_error_function) \ | 115 V(RANGE_ERROR_FUNCTION_INDEX, JSFunction, range_error_function) \ |
116 V(REJECT_PROMISE_NO_DEBUG_EVENT_INDEX, JSFunction, \ | 116 V(REJECT_PROMISE_NO_DEBUG_EVENT_INDEX, JSFunction, \ |
117 reject_promise_no_debug_event) \ | 117 reject_promise_no_debug_event) \ |
118 V(REFERENCE_ERROR_FUNCTION_INDEX, JSFunction, reference_error_function) \ | 118 V(REFERENCE_ERROR_FUNCTION_INDEX, JSFunction, reference_error_function) \ |
119 V(SET_ADD_METHOD_INDEX, JSFunction, set_add) \ | 119 V(SET_ADD_METHOD_INDEX, JSFunction, set_add) \ |
120 V(SET_DELETE_METHOD_INDEX, JSFunction, set_delete) \ | 120 V(SET_DELETE_METHOD_INDEX, JSFunction, set_delete) \ |
121 V(SET_HAS_METHOD_INDEX, JSFunction, set_has) \ | 121 V(SET_HAS_METHOD_INDEX, JSFunction, set_has) \ |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 V(OPAQUE_REFERENCE_FUNCTION_INDEX, JSFunction, opaque_reference_function) \ | 284 V(OPAQUE_REFERENCE_FUNCTION_INDEX, JSFunction, opaque_reference_function) \ |
285 V(OSR_CODE_TABLE_INDEX, FixedArray, osr_code_table) \ | 285 V(OSR_CODE_TABLE_INDEX, FixedArray, osr_code_table) \ |
286 V(PROXY_CALLABLE_MAP_INDEX, Map, proxy_callable_map) \ | 286 V(PROXY_CALLABLE_MAP_INDEX, Map, proxy_callable_map) \ |
287 V(PROXY_CONSTRUCTOR_MAP_INDEX, Map, proxy_constructor_map) \ | 287 V(PROXY_CONSTRUCTOR_MAP_INDEX, Map, proxy_constructor_map) \ |
288 V(PROXY_FUNCTION_INDEX, JSFunction, proxy_function) \ | 288 V(PROXY_FUNCTION_INDEX, JSFunction, proxy_function) \ |
289 V(PROXY_FUNCTION_MAP_INDEX, Map, proxy_function_map) \ | 289 V(PROXY_FUNCTION_MAP_INDEX, Map, proxy_function_map) \ |
290 V(PROXY_MAP_INDEX, Map, proxy_map) \ | 290 V(PROXY_MAP_INDEX, Map, proxy_map) \ |
291 V(PROMISE_RESOLVE_SHARED_FUN, SharedFunctionInfo, \ | 291 V(PROMISE_RESOLVE_SHARED_FUN, SharedFunctionInfo, \ |
292 promise_resolve_shared_fun) \ | 292 promise_resolve_shared_fun) \ |
293 V(PROMISE_REJECT_SHARED_FUN, SharedFunctionInfo, promise_reject_shared_fun) \ | 293 V(PROMISE_REJECT_SHARED_FUN, SharedFunctionInfo, promise_reject_shared_fun) \ |
| 294 V(PROMISE_PROTOTYPE_MAP_INDEX, Map, promise_prototype_map) \ |
294 V(REGEXP_EXEC_FUNCTION_INDEX, JSFunction, regexp_exec_function) \ | 295 V(REGEXP_EXEC_FUNCTION_INDEX, JSFunction, regexp_exec_function) \ |
295 V(REGEXP_FUNCTION_INDEX, JSFunction, regexp_function) \ | 296 V(REGEXP_FUNCTION_INDEX, JSFunction, regexp_function) \ |
296 V(REGEXP_LAST_MATCH_INFO_INDEX, RegExpMatchInfo, regexp_last_match_info) \ | 297 V(REGEXP_LAST_MATCH_INFO_INDEX, RegExpMatchInfo, regexp_last_match_info) \ |
297 V(REGEXP_INTERNAL_MATCH_INFO_INDEX, RegExpMatchInfo, \ | 298 V(REGEXP_INTERNAL_MATCH_INFO_INDEX, RegExpMatchInfo, \ |
298 regexp_internal_match_info) \ | 299 regexp_internal_match_info) \ |
299 V(REGEXP_PROTOTYPE_MAP_INDEX, Map, regexp_prototype_map) \ | 300 V(REGEXP_PROTOTYPE_MAP_INDEX, Map, regexp_prototype_map) \ |
300 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map) \ | 301 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map) \ |
301 V(SCRIPT_CONTEXT_TABLE_INDEX, ScriptContextTable, script_context_table) \ | 302 V(SCRIPT_CONTEXT_TABLE_INDEX, ScriptContextTable, script_context_table) \ |
302 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \ | 303 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \ |
303 V(SECURITY_TOKEN_INDEX, Object, security_token) \ | 304 V(SECURITY_TOKEN_INDEX, Object, security_token) \ |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
689 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 690 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
690 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 691 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
691 }; | 692 }; |
692 | 693 |
693 typedef Context::Field ContextField; | 694 typedef Context::Field ContextField; |
694 | 695 |
695 } // namespace internal | 696 } // namespace internal |
696 } // namespace v8 | 697 } // namespace v8 |
697 | 698 |
698 #endif // V8_CONTEXTS_H_ | 699 #endif // V8_CONTEXTS_H_ |
OLD | NEW |