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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 V(MAP_HAS_METHOD_INDEX, JSFunction, map_has) \ | 100 V(MAP_HAS_METHOD_INDEX, JSFunction, map_has) \ |
101 V(MAP_SET_METHOD_INDEX, JSFunction, map_set) \ | 101 V(MAP_SET_METHOD_INDEX, JSFunction, map_set) \ |
102 V(FUNCTION_HAS_INSTANCE_INDEX, JSFunction, function_has_instance) \ | 102 V(FUNCTION_HAS_INSTANCE_INDEX, JSFunction, function_has_instance) \ |
103 V(OBJECT_VALUE_OF, JSFunction, object_value_of) \ | 103 V(OBJECT_VALUE_OF, JSFunction, object_value_of) \ |
104 V(OBJECT_TO_STRING, JSFunction, object_to_string) \ | 104 V(OBJECT_TO_STRING, JSFunction, object_to_string) \ |
105 V(PROMISE_CATCH_INDEX, JSFunction, promise_catch) \ | 105 V(PROMISE_CATCH_INDEX, JSFunction, promise_catch) \ |
106 V(PROMISE_FUNCTION_INDEX, JSFunction, promise_function) \ | 106 V(PROMISE_FUNCTION_INDEX, JSFunction, promise_function) \ |
107 V(PROMISE_ID_RESOLVE_HANDLER_INDEX, JSFunction, promise_id_resolve_handler) \ | 107 V(PROMISE_ID_RESOLVE_HANDLER_INDEX, JSFunction, promise_id_resolve_handler) \ |
108 V(PROMISE_ID_REJECT_HANDLER_INDEX, JSFunction, promise_id_reject_handler) \ | 108 V(PROMISE_ID_REJECT_HANDLER_INDEX, JSFunction, promise_id_reject_handler) \ |
109 V(RANGE_ERROR_FUNCTION_INDEX, JSFunction, range_error_function) \ | 109 V(RANGE_ERROR_FUNCTION_INDEX, JSFunction, range_error_function) \ |
110 V(REJECT_PROMISE_NO_DEBUG_EVENT_INDEX, JSFunction, \ | |
111 reject_promise_no_debug_event) \ | |
112 V(REFERENCE_ERROR_FUNCTION_INDEX, JSFunction, reference_error_function) \ | 110 V(REFERENCE_ERROR_FUNCTION_INDEX, JSFunction, reference_error_function) \ |
113 V(SET_ADD_METHOD_INDEX, JSFunction, set_add) \ | 111 V(SET_ADD_METHOD_INDEX, JSFunction, set_add) \ |
114 V(SET_DELETE_METHOD_INDEX, JSFunction, set_delete) \ | 112 V(SET_DELETE_METHOD_INDEX, JSFunction, set_delete) \ |
115 V(SET_HAS_METHOD_INDEX, JSFunction, set_has) \ | 113 V(SET_HAS_METHOD_INDEX, JSFunction, set_has) \ |
116 V(SYNTAX_ERROR_FUNCTION_INDEX, JSFunction, syntax_error_function) \ | 114 V(SYNTAX_ERROR_FUNCTION_INDEX, JSFunction, syntax_error_function) \ |
117 V(TYPE_ERROR_FUNCTION_INDEX, JSFunction, type_error_function) \ | 115 V(TYPE_ERROR_FUNCTION_INDEX, JSFunction, type_error_function) \ |
118 V(URI_ERROR_FUNCTION_INDEX, JSFunction, uri_error_function) \ | 116 V(URI_ERROR_FUNCTION_INDEX, JSFunction, uri_error_function) \ |
119 V(WASM_COMPILE_ERROR_FUNCTION_INDEX, JSFunction, \ | 117 V(WASM_COMPILE_ERROR_FUNCTION_INDEX, JSFunction, \ |
120 wasm_compile_error_function) \ | 118 wasm_compile_error_function) \ |
121 V(WASM_LINK_ERROR_FUNCTION_INDEX, JSFunction, wasm_link_error_function) \ | 119 V(WASM_LINK_ERROR_FUNCTION_INDEX, JSFunction, wasm_link_error_function) \ |
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 688 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
691 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 689 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
692 }; | 690 }; |
693 | 691 |
694 typedef Context::Field ContextField; | 692 typedef Context::Field ContextField; |
695 | 693 |
696 } // namespace internal | 694 } // namespace internal |
697 } // namespace v8 | 695 } // namespace v8 |
698 | 696 |
699 #endif // V8_CONTEXTS_H_ | 697 #endif // V8_CONTEXTS_H_ |
OLD | NEW |