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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 V(PROMISE_REJECT_INDEX, JSFunction, promise_reject) \ | 126 V(PROMISE_REJECT_INDEX, JSFunction, promise_reject) \ |
127 V(PROMISE_RESOLVE_INDEX, JSFunction, promise_resolve) \ | 127 V(PROMISE_RESOLVE_INDEX, JSFunction, promise_resolve) \ |
128 V(PROMISE_CREATE_RESOLVED_INDEX, JSFunction, promise_create_resolved) \ | 128 V(PROMISE_CREATE_RESOLVED_INDEX, JSFunction, promise_create_resolved) \ |
129 V(PROMISE_CREATE_REJECTED_INDEX, JSFunction, promise_create_rejected) \ | 129 V(PROMISE_CREATE_REJECTED_INDEX, JSFunction, promise_create_rejected) \ |
130 V(PROMISE_THEN_INDEX, JSFunction, promise_then) \ | 130 V(PROMISE_THEN_INDEX, JSFunction, promise_then) \ |
131 V(RANGE_ERROR_FUNCTION_INDEX, JSFunction, range_error_function) \ | 131 V(RANGE_ERROR_FUNCTION_INDEX, JSFunction, range_error_function) \ |
132 V(REFERENCE_ERROR_FUNCTION_INDEX, JSFunction, reference_error_function) \ | 132 V(REFERENCE_ERROR_FUNCTION_INDEX, JSFunction, reference_error_function) \ |
133 V(SET_ADD_METHOD_INDEX, JSFunction, set_add) \ | 133 V(SET_ADD_METHOD_INDEX, JSFunction, set_add) \ |
134 V(SET_DELETE_METHOD_INDEX, JSFunction, set_delete) \ | 134 V(SET_DELETE_METHOD_INDEX, JSFunction, set_delete) \ |
135 V(SET_HAS_METHOD_INDEX, JSFunction, set_has) \ | 135 V(SET_HAS_METHOD_INDEX, JSFunction, set_has) \ |
136 V(STACK_OVERFLOW_BOILERPLATE_INDEX, JSObject, stack_overflow_boilerplate) \ | |
137 V(SYNTAX_ERROR_FUNCTION_INDEX, JSFunction, syntax_error_function) \ | 136 V(SYNTAX_ERROR_FUNCTION_INDEX, JSFunction, syntax_error_function) \ |
138 V(TYPE_ERROR_FUNCTION_INDEX, JSFunction, type_error_function) \ | 137 V(TYPE_ERROR_FUNCTION_INDEX, JSFunction, type_error_function) \ |
139 V(URI_ERROR_FUNCTION_INDEX, JSFunction, uri_error_function) | 138 V(URI_ERROR_FUNCTION_INDEX, JSFunction, uri_error_function) |
140 | 139 |
141 #define NATIVE_CONTEXT_FIELDS(V) \ | 140 #define NATIVE_CONTEXT_FIELDS(V) \ |
142 V(GLOBAL_PROXY_INDEX, JSObject, global_proxy_object) \ | 141 V(GLOBAL_PROXY_INDEX, JSObject, global_proxy_object) \ |
143 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \ | 142 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \ |
144 /* Below is alpha-sorted */ \ | 143 /* Below is alpha-sorted */ \ |
145 V(ACCESSOR_PROPERTY_DESCRIPTOR_MAP_INDEX, Map, \ | 144 V(ACCESSOR_PROPERTY_DESCRIPTOR_MAP_INDEX, Map, \ |
146 accessor_property_descriptor_map) \ | 145 accessor_property_descriptor_map) \ |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
571 #endif | 570 #endif |
572 | 571 |
573 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 572 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
574 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 573 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
575 }; | 574 }; |
576 | 575 |
577 } // namespace internal | 576 } // namespace internal |
578 } // namespace v8 | 577 } // namespace v8 |
579 | 578 |
580 #endif // V8_CONTEXTS_H_ | 579 #endif // V8_CONTEXTS_H_ |
OLD | NEW |