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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 V(MAP_HAS_METHOD_INDEX, JSFunction, map_has) \ | 88 V(MAP_HAS_METHOD_INDEX, JSFunction, map_has) \ |
89 V(MAP_SET_METHOD_INDEX, JSFunction, map_set) \ | 89 V(MAP_SET_METHOD_INDEX, JSFunction, map_set) \ |
90 V(OBJECT_VALUE_OF, JSFunction, object_value_of) \ | 90 V(OBJECT_VALUE_OF, JSFunction, object_value_of) \ |
91 V(OBJECT_TO_STRING, JSFunction, object_to_string) \ | 91 V(OBJECT_TO_STRING, JSFunction, object_to_string) \ |
92 V(PROMISE_CATCH_INDEX, JSFunction, promise_catch) \ | 92 V(PROMISE_CATCH_INDEX, JSFunction, promise_catch) \ |
93 V(PROMISE_CREATE_INDEX, JSFunction, promise_create) \ | 93 V(PROMISE_CREATE_INDEX, JSFunction, promise_create) \ |
94 V(PROMISE_FUNCTION_INDEX, JSFunction, promise_function) \ | 94 V(PROMISE_FUNCTION_INDEX, JSFunction, promise_function) \ |
95 V(PROMISE_HANDLE_INDEX, JSFunction, promise_handle) \ | 95 V(PROMISE_HANDLE_INDEX, JSFunction, promise_handle) \ |
96 V(PROMISE_HAS_USER_DEFINED_REJECT_HANDLER_INDEX, JSFunction, \ | 96 V(PROMISE_HAS_USER_DEFINED_REJECT_HANDLER_INDEX, JSFunction, \ |
97 promise_has_user_defined_reject_handler) \ | 97 promise_has_user_defined_reject_handler) \ |
| 98 V(PROMISE_DEBUG_GET_INFO_INDEX, JSFunction, promise_debug_get_info) \ |
98 V(PROMISE_REJECT_INDEX, JSFunction, promise_reject) \ | 99 V(PROMISE_REJECT_INDEX, JSFunction, promise_reject) \ |
99 V(PROMISE_RESOLVE_INDEX, JSFunction, promise_resolve) \ | 100 V(PROMISE_RESOLVE_INDEX, JSFunction, promise_resolve) \ |
100 V(PROMISE_THEN_INDEX, JSFunction, promise_then) \ | 101 V(PROMISE_THEN_INDEX, JSFunction, promise_then) \ |
101 V(RANGE_ERROR_FUNCTION_INDEX, JSFunction, range_error_function) \ | 102 V(RANGE_ERROR_FUNCTION_INDEX, JSFunction, range_error_function) \ |
102 V(REJECT_PROMISE_NO_DEBUG_EVENT_INDEX, JSFunction, \ | 103 V(REJECT_PROMISE_NO_DEBUG_EVENT_INDEX, JSFunction, \ |
103 reject_promise_no_debug_event) \ | 104 reject_promise_no_debug_event) \ |
104 V(REFERENCE_ERROR_FUNCTION_INDEX, JSFunction, reference_error_function) \ | 105 V(REFERENCE_ERROR_FUNCTION_INDEX, JSFunction, reference_error_function) \ |
105 V(SET_ADD_METHOD_INDEX, JSFunction, set_add) \ | 106 V(SET_ADD_METHOD_INDEX, JSFunction, set_add) \ |
106 V(SET_DELETE_METHOD_INDEX, JSFunction, set_delete) \ | 107 V(SET_DELETE_METHOD_INDEX, JSFunction, set_delete) \ |
107 V(SET_HAS_METHOD_INDEX, JSFunction, set_has) \ | 108 V(SET_HAS_METHOD_INDEX, JSFunction, set_has) \ |
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
643 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 644 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
644 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 645 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
645 }; | 646 }; |
646 | 647 |
647 typedef Context::Field ContextField; | 648 typedef Context::Field ContextField; |
648 | 649 |
649 } // namespace internal | 650 } // namespace internal |
650 } // namespace v8 | 651 } // namespace v8 |
651 | 652 |
652 #endif // V8_CONTEXTS_H_ | 653 #endif // V8_CONTEXTS_H_ |
OLD | NEW |