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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \ | 148 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \ |
149 call_as_constructor_delegate) \ | 149 call_as_constructor_delegate) \ |
150 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \ | 150 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \ |
151 V(OPAQUE_REFERENCE_FUNCTION_INDEX, JSFunction, opaque_reference_function) \ | 151 V(OPAQUE_REFERENCE_FUNCTION_INDEX, JSFunction, opaque_reference_function) \ |
152 V(CONTEXT_EXTENSION_FUNCTION_INDEX, JSFunction, context_extension_function) \ | 152 V(CONTEXT_EXTENSION_FUNCTION_INDEX, JSFunction, context_extension_function) \ |
153 V(MAP_CACHE_INDEX, Object, map_cache) \ | 153 V(MAP_CACHE_INDEX, Object, map_cache) \ |
154 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \ | 154 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \ |
155 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \ | 155 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \ |
156 V(ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, Object, \ | 156 V(ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, Object, \ |
157 error_message_for_code_gen_from_strings) \ | 157 error_message_for_code_gen_from_strings) \ |
158 V(IS_PROMISE_INDEX, JSFunction, is_promise) \ | 158 V(PROMISE_STATUS_INDEX, Symbol, promise_status) \ |
159 V(PROMISE_CREATE_INDEX, JSFunction, promise_create) \ | 159 V(PROMISE_CREATE_INDEX, JSFunction, promise_create) \ |
160 V(PROMISE_RESOLVE_INDEX, JSFunction, promise_resolve) \ | 160 V(PROMISE_RESOLVE_INDEX, JSFunction, promise_resolve) \ |
161 V(PROMISE_REJECT_INDEX, JSFunction, promise_reject) \ | 161 V(PROMISE_REJECT_INDEX, JSFunction, promise_reject) \ |
162 V(PROMISE_CHAIN_INDEX, JSFunction, promise_chain) \ | 162 V(PROMISE_CHAIN_INDEX, JSFunction, promise_chain) \ |
163 V(PROMISE_CATCH_INDEX, JSFunction, promise_catch) \ | 163 V(PROMISE_CATCH_INDEX, JSFunction, promise_catch) \ |
164 V(PROMISE_THEN_INDEX, JSFunction, promise_then) \ | 164 V(PROMISE_THEN_INDEX, JSFunction, promise_then) \ |
165 V(TO_COMPLETE_PROPERTY_DESCRIPTOR_INDEX, JSFunction, \ | 165 V(TO_COMPLETE_PROPERTY_DESCRIPTOR_INDEX, JSFunction, \ |
166 to_complete_property_descriptor) \ | 166 to_complete_property_descriptor) \ |
167 V(DERIVED_HAS_TRAP_INDEX, JSFunction, derived_has_trap) \ | 167 V(DERIVED_HAS_TRAP_INDEX, JSFunction, derived_has_trap) \ |
168 V(DERIVED_GET_TRAP_INDEX, JSFunction, derived_get_trap) \ | 168 V(DERIVED_GET_TRAP_INDEX, JSFunction, derived_get_trap) \ |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, | 383 CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, |
384 SCRIPT_FUNCTION_INDEX, | 384 SCRIPT_FUNCTION_INDEX, |
385 OPAQUE_REFERENCE_FUNCTION_INDEX, | 385 OPAQUE_REFERENCE_FUNCTION_INDEX, |
386 CONTEXT_EXTENSION_FUNCTION_INDEX, | 386 CONTEXT_EXTENSION_FUNCTION_INDEX, |
387 OUT_OF_MEMORY_INDEX, | 387 OUT_OF_MEMORY_INDEX, |
388 EMBEDDER_DATA_INDEX, | 388 EMBEDDER_DATA_INDEX, |
389 ALLOW_CODE_GEN_FROM_STRINGS_INDEX, | 389 ALLOW_CODE_GEN_FROM_STRINGS_INDEX, |
390 ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, | 390 ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, |
391 RUN_MICROTASKS_INDEX, | 391 RUN_MICROTASKS_INDEX, |
392 ENQUEUE_MICROTASK_INDEX, | 392 ENQUEUE_MICROTASK_INDEX, |
393 IS_PROMISE_INDEX, | 393 PROMISE_STATUS_INDEX, |
394 PROMISE_CREATE_INDEX, | 394 PROMISE_CREATE_INDEX, |
395 PROMISE_RESOLVE_INDEX, | 395 PROMISE_RESOLVE_INDEX, |
396 PROMISE_REJECT_INDEX, | 396 PROMISE_REJECT_INDEX, |
397 PROMISE_CHAIN_INDEX, | 397 PROMISE_CHAIN_INDEX, |
398 PROMISE_CATCH_INDEX, | 398 PROMISE_CATCH_INDEX, |
399 PROMISE_THEN_INDEX, | 399 PROMISE_THEN_INDEX, |
400 TO_COMPLETE_PROPERTY_DESCRIPTOR_INDEX, | 400 TO_COMPLETE_PROPERTY_DESCRIPTOR_INDEX, |
401 DERIVED_HAS_TRAP_INDEX, | 401 DERIVED_HAS_TRAP_INDEX, |
402 DERIVED_GET_TRAP_INDEX, | 402 DERIVED_GET_TRAP_INDEX, |
403 DERIVED_SET_TRAP_INDEX, | 403 DERIVED_SET_TRAP_INDEX, |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
621 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); | 621 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); |
622 #endif | 622 #endif |
623 | 623 |
624 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 624 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
625 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 625 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
626 }; | 626 }; |
627 | 627 |
628 } } // namespace v8::internal | 628 } } // namespace v8::internal |
629 | 629 |
630 #endif // V8_CONTEXTS_H_ | 630 #endif // V8_CONTEXTS_H_ |
OLD | NEW |