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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 V(ERROR_FUNCTION_INDEX, JSFunction, error_function) \ | 73 V(ERROR_FUNCTION_INDEX, JSFunction, error_function) \ |
74 V(ERROR_TO_STRING, JSFunction, error_to_string) \ | 74 V(ERROR_TO_STRING, JSFunction, error_to_string) \ |
75 V(EVAL_ERROR_FUNCTION_INDEX, JSFunction, eval_error_function) \ | 75 V(EVAL_ERROR_FUNCTION_INDEX, JSFunction, eval_error_function) \ |
76 V(GLOBAL_EVAL_FUN_INDEX, JSFunction, global_eval_fun) \ | 76 V(GLOBAL_EVAL_FUN_INDEX, JSFunction, global_eval_fun) \ |
77 V(MAP_DELETE_METHOD_INDEX, JSFunction, map_delete) \ | 77 V(MAP_DELETE_METHOD_INDEX, JSFunction, map_delete) \ |
78 V(MAP_GET_METHOD_INDEX, JSFunction, map_get) \ | 78 V(MAP_GET_METHOD_INDEX, JSFunction, map_get) \ |
79 V(MAP_HAS_METHOD_INDEX, JSFunction, map_has) \ | 79 V(MAP_HAS_METHOD_INDEX, JSFunction, map_has) \ |
80 V(MAP_SET_METHOD_INDEX, JSFunction, map_set) \ | 80 V(MAP_SET_METHOD_INDEX, JSFunction, map_set) \ |
81 V(OBJECT_VALUE_OF, JSFunction, object_value_of) \ | 81 V(OBJECT_VALUE_OF, JSFunction, object_value_of) \ |
82 V(OBJECT_TO_STRING, JSFunction, object_to_string) \ | 82 V(OBJECT_TO_STRING, JSFunction, object_to_string) \ |
| 83 V(MICROTASK_RUN_INDEX, JSFunction, microtask_run) \ |
| 84 V(MICROTASK_ENQ_INDEX, JSFunction, microtask_enq) \ |
83 V(PROMISE_CATCH_INDEX, JSFunction, promise_catch) \ | 85 V(PROMISE_CATCH_INDEX, JSFunction, promise_catch) \ |
84 V(PROMISE_CHAIN_INDEX, JSFunction, promise_chain) \ | 86 V(PROMISE_CHAIN_INDEX, JSFunction, promise_chain) \ |
85 V(PROMISE_CREATE_INDEX, JSFunction, promise_create) \ | 87 V(PROMISE_CREATE_INDEX, JSFunction, promise_create) \ |
86 V(PROMISE_FUNCTION_INDEX, JSFunction, promise_function) \ | 88 V(PROMISE_FUNCTION_INDEX, JSFunction, promise_function) \ |
87 V(PROMISE_HAS_USER_DEFINED_REJECT_HANDLER_INDEX, JSFunction, \ | 89 V(PROMISE_HAS_USER_DEFINED_REJECT_HANDLER_INDEX, JSFunction, \ |
88 promise_has_user_defined_reject_handler) \ | 90 promise_has_user_defined_reject_handler) \ |
89 V(PROMISE_REJECT_INDEX, JSFunction, promise_reject) \ | 91 V(PROMISE_REJECT_INDEX, JSFunction, promise_reject) \ |
90 V(PROMISE_RESOLVE_INDEX, JSFunction, promise_resolve) \ | 92 V(PROMISE_RESOLVE_INDEX, JSFunction, promise_resolve) \ |
91 V(PROMISE_CREATE_RESOLVED_INDEX, JSFunction, promise_create_resolved) \ | 93 V(PROMISE_CREATE_RESOLVED_INDEX, JSFunction, promise_create_resolved) \ |
92 V(PROMISE_CREATE_REJECTED_INDEX, JSFunction, promise_create_rejected) \ | 94 V(PROMISE_CREATE_REJECTED_INDEX, JSFunction, promise_create_rejected) \ |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
531 #endif | 533 #endif |
532 | 534 |
533 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 535 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
534 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 536 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
535 }; | 537 }; |
536 | 538 |
537 } // namespace internal | 539 } // namespace internal |
538 } // namespace v8 | 540 } // namespace v8 |
539 | 541 |
540 #endif // V8_CONTEXTS_H_ | 542 #endif // V8_CONTEXTS_H_ |
OLD | NEW |