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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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) \ | 69 V(PROMISE_RESOLVE_INDEX, JSFunction, promise_resolve) \ |
70 V(PROMISE_THEN_INDEX, JSFunction, promise_then) | 70 V(PROMISE_THEN_INDEX, JSFunction, promise_then) \ |
| 71 V(PROMISE_HANDLE_INDEX, JSFunction, promise_handle) \ |
| 72 V(PROMISE_HANDLE_REJECT_INDEX, JSFunction, promise_handle_reject) |
71 | 73 |
72 #define NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ | 74 #define NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ |
73 V(ARRAY_CONCAT_INDEX, JSFunction, array_concat) \ | 75 V(ARRAY_CONCAT_INDEX, JSFunction, array_concat) \ |
74 V(ARRAY_POP_INDEX, JSFunction, array_pop) \ | 76 V(ARRAY_POP_INDEX, JSFunction, array_pop) \ |
75 V(ARRAY_PUSH_INDEX, JSFunction, array_push) \ | 77 V(ARRAY_PUSH_INDEX, JSFunction, array_push) \ |
76 V(ARRAY_SHIFT_INDEX, JSFunction, array_shift) \ | 78 V(ARRAY_SHIFT_INDEX, JSFunction, array_shift) \ |
77 V(ARRAY_SPLICE_INDEX, JSFunction, array_splice) \ | 79 V(ARRAY_SPLICE_INDEX, JSFunction, array_splice) \ |
78 V(ARRAY_SLICE_INDEX, JSFunction, array_slice) \ | 80 V(ARRAY_SLICE_INDEX, JSFunction, array_slice) \ |
79 V(ARRAY_UNSHIFT_INDEX, JSFunction, array_unshift) \ | 81 V(ARRAY_UNSHIFT_INDEX, JSFunction, array_unshift) \ |
80 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \ | 82 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \ |
(...skipping 13 matching lines...) Expand all Loading... |
94 V(MAP_DELETE_METHOD_INDEX, JSFunction, map_delete) \ | 96 V(MAP_DELETE_METHOD_INDEX, JSFunction, map_delete) \ |
95 V(MAP_GET_METHOD_INDEX, JSFunction, map_get) \ | 97 V(MAP_GET_METHOD_INDEX, JSFunction, map_get) \ |
96 V(MAP_HAS_METHOD_INDEX, JSFunction, map_has) \ | 98 V(MAP_HAS_METHOD_INDEX, JSFunction, map_has) \ |
97 V(MAP_SET_METHOD_INDEX, JSFunction, map_set) \ | 99 V(MAP_SET_METHOD_INDEX, JSFunction, map_set) \ |
98 V(FUNCTION_HAS_INSTANCE_INDEX, JSFunction, function_has_instance) \ | 100 V(FUNCTION_HAS_INSTANCE_INDEX, JSFunction, function_has_instance) \ |
99 V(OBJECT_VALUE_OF, JSFunction, object_value_of) \ | 101 V(OBJECT_VALUE_OF, JSFunction, object_value_of) \ |
100 V(OBJECT_TO_STRING, JSFunction, object_to_string) \ | 102 V(OBJECT_TO_STRING, JSFunction, object_to_string) \ |
101 V(PROMISE_CATCH_INDEX, JSFunction, promise_catch) \ | 103 V(PROMISE_CATCH_INDEX, JSFunction, promise_catch) \ |
102 V(PROMISE_CREATE_INDEX, JSFunction, promise_create) \ | 104 V(PROMISE_CREATE_INDEX, JSFunction, promise_create) \ |
103 V(PROMISE_FUNCTION_INDEX, JSFunction, promise_function) \ | 105 V(PROMISE_FUNCTION_INDEX, JSFunction, promise_function) \ |
104 V(PROMISE_HANDLE_INDEX, JSFunction, promise_handle) \ | |
105 V(PROMISE_HAS_USER_DEFINED_REJECT_HANDLER_INDEX, JSFunction, \ | 106 V(PROMISE_HAS_USER_DEFINED_REJECT_HANDLER_INDEX, JSFunction, \ |
106 promise_has_user_defined_reject_handler) \ | 107 promise_has_user_defined_reject_handler) \ |
107 V(PROMISE_DEBUG_GET_INFO_INDEX, JSFunction, promise_debug_get_info) \ | 108 V(PROMISE_DEBUG_GET_INFO_INDEX, JSFunction, promise_debug_get_info) \ |
108 V(PROMISE_REJECT_INDEX, JSFunction, promise_reject) \ | 109 V(PROMISE_REJECT_INDEX, JSFunction, promise_reject) \ |
109 V(PROMISE_INTERNAL_REJECT_INDEX, JSFunction, promise_internal_reject) \ | 110 V(PROMISE_INTERNAL_REJECT_INDEX, JSFunction, promise_internal_reject) \ |
110 V(PROMISE_ID_RESOLVE_HANDLER_INDEX, JSFunction, promise_id_resolve_handler) \ | 111 V(PROMISE_ID_RESOLVE_HANDLER_INDEX, JSFunction, promise_id_resolve_handler) \ |
111 V(PROMISE_ID_REJECT_HANDLER_INDEX, JSFunction, promise_id_reject_handler) \ | 112 V(PROMISE_ID_REJECT_HANDLER_INDEX, JSFunction, promise_id_reject_handler) \ |
112 V(NEW_PROMISE_CAPABILITY_INDEX, JSFunction, new_promise_capability) \ | 113 V(NEW_PROMISE_CAPABILITY_INDEX, JSFunction, new_promise_capability) \ |
113 V(INTERNAL_PROMISE_CAPABILITY_INDEX, JSFunction, \ | 114 V(INTERNAL_PROMISE_CAPABILITY_INDEX, JSFunction, \ |
114 internal_promise_capability) \ | 115 internal_promise_capability) \ |
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
691 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 692 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
692 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 693 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
693 }; | 694 }; |
694 | 695 |
695 typedef Context::Field ContextField; | 696 typedef Context::Field ContextField; |
696 | 697 |
697 } // namespace internal | 698 } // namespace internal |
698 } // namespace v8 | 699 } // namespace v8 |
699 | 700 |
700 #endif // V8_CONTEXTS_H_ | 701 #endif // V8_CONTEXTS_H_ |
OLD | NEW |