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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 V(OBJECT_VALUE_OF, JSFunction, object_value_of) \ | 123 V(OBJECT_VALUE_OF, JSFunction, object_value_of) \ |
124 V(OBJECT_TO_STRING, JSFunction, object_to_string) \ | 124 V(OBJECT_TO_STRING, JSFunction, object_to_string) \ |
125 V(PROMISE_CATCH_INDEX, JSFunction, promise_catch) \ | 125 V(PROMISE_CATCH_INDEX, JSFunction, promise_catch) \ |
126 V(PROMISE_CHAIN_INDEX, JSFunction, promise_chain) \ | 126 V(PROMISE_CHAIN_INDEX, JSFunction, promise_chain) \ |
127 V(PROMISE_CREATE_INDEX, JSFunction, promise_create) \ | 127 V(PROMISE_CREATE_INDEX, JSFunction, promise_create) \ |
128 V(PROMISE_FUNCTION_INDEX, JSFunction, promise_function) \ | 128 V(PROMISE_FUNCTION_INDEX, JSFunction, promise_function) \ |
129 V(PROMISE_HAS_USER_DEFINED_REJECT_HANDLER_INDEX, JSFunction, \ | 129 V(PROMISE_HAS_USER_DEFINED_REJECT_HANDLER_INDEX, JSFunction, \ |
130 promise_has_user_defined_reject_handler) \ | 130 promise_has_user_defined_reject_handler) \ |
131 V(PROMISE_REJECT_INDEX, JSFunction, promise_reject) \ | 131 V(PROMISE_REJECT_INDEX, JSFunction, promise_reject) \ |
132 V(PROMISE_RESOLVE_INDEX, JSFunction, promise_resolve) \ | 132 V(PROMISE_RESOLVE_INDEX, JSFunction, promise_resolve) \ |
| 133 V(PROMISE_CREATE_RESOLVED_INDEX, JSFunction, promise_create_resolved) \ |
| 134 V(PROMISE_CREATE_REJECTED_INDEX, JSFunction, promise_create_rejected) \ |
| 135 V(ASYNC_FUNCTION_AWAIT_INDEX, JSFunction, async_function_await) \ |
133 V(PROMISE_THEN_INDEX, JSFunction, promise_then) \ | 136 V(PROMISE_THEN_INDEX, JSFunction, promise_then) \ |
134 V(RANGE_ERROR_FUNCTION_INDEX, JSFunction, range_error_function) \ | 137 V(RANGE_ERROR_FUNCTION_INDEX, JSFunction, range_error_function) \ |
135 V(REFERENCE_ERROR_FUNCTION_INDEX, JSFunction, reference_error_function) \ | 138 V(REFERENCE_ERROR_FUNCTION_INDEX, JSFunction, reference_error_function) \ |
136 V(SET_ADD_METHOD_INDEX, JSFunction, set_add) \ | 139 V(SET_ADD_METHOD_INDEX, JSFunction, set_add) \ |
137 V(SET_DELETE_METHOD_INDEX, JSFunction, set_delete) \ | 140 V(SET_DELETE_METHOD_INDEX, JSFunction, set_delete) \ |
138 V(SET_HAS_METHOD_INDEX, JSFunction, set_has) \ | 141 V(SET_HAS_METHOD_INDEX, JSFunction, set_has) \ |
139 V(STACK_OVERFLOW_BOILERPLATE_INDEX, JSObject, stack_overflow_boilerplate) \ | 142 V(STACK_OVERFLOW_BOILERPLATE_INDEX, JSObject, stack_overflow_boilerplate) \ |
140 V(SYNTAX_ERROR_FUNCTION_INDEX, JSFunction, syntax_error_function) \ | 143 V(SYNTAX_ERROR_FUNCTION_INDEX, JSFunction, syntax_error_function) \ |
141 V(TYPE_ERROR_FUNCTION_INDEX, JSFunction, type_error_function) \ | 144 V(TYPE_ERROR_FUNCTION_INDEX, JSFunction, type_error_function) \ |
142 V(URI_ERROR_FUNCTION_INDEX, JSFunction, uri_error_function) | 145 V(URI_ERROR_FUNCTION_INDEX, JSFunction, uri_error_function) |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 #endif | 562 #endif |
560 | 563 |
561 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 564 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
562 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 565 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
563 }; | 566 }; |
564 | 567 |
565 } // namespace internal | 568 } // namespace internal |
566 } // namespace v8 | 569 } // namespace v8 |
567 | 570 |
568 #endif // V8_CONTEXTS_H_ | 571 #endif // V8_CONTEXTS_H_ |
OLD | NEW |