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(SET_HAS_METHOD_INDEX, JSFunction, set_has) \ | 148 V(SET_HAS_METHOD_INDEX, JSFunction, set_has) \ |
149 V(STACK_OVERFLOW_BOILERPLATE_INDEX, JSObject, stack_overflow_boilerplate) \ | 149 V(STACK_OVERFLOW_BOILERPLATE_INDEX, JSObject, stack_overflow_boilerplate) \ |
150 V(SYNTAX_ERROR_FUNCTION_INDEX, JSFunction, syntax_error_function) \ | 150 V(SYNTAX_ERROR_FUNCTION_INDEX, JSFunction, syntax_error_function) \ |
151 V(TYPE_ERROR_FUNCTION_INDEX, JSFunction, type_error_function) \ | 151 V(TYPE_ERROR_FUNCTION_INDEX, JSFunction, type_error_function) \ |
152 V(URI_ERROR_FUNCTION_INDEX, JSFunction, uri_error_function) | 152 V(URI_ERROR_FUNCTION_INDEX, JSFunction, uri_error_function) |
153 | 153 |
154 #define NATIVE_CONTEXT_FIELDS(V) \ | 154 #define NATIVE_CONTEXT_FIELDS(V) \ |
155 V(GLOBAL_PROXY_INDEX, JSObject, global_proxy_object) \ | 155 V(GLOBAL_PROXY_INDEX, JSObject, global_proxy_object) \ |
156 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \ | 156 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \ |
157 /* Below is alpha-sorted */ \ | 157 /* Below is alpha-sorted */ \ |
| 158 V(ACCESSOR_PROPERTY_DESCRIPTOR_MAP_INDEX, Map, \ |
| 159 accessor_property_descriptor_map) \ |
158 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \ | 160 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \ |
159 V(ARRAY_BUFFER_FUN_INDEX, JSFunction, array_buffer_fun) \ | 161 V(ARRAY_BUFFER_FUN_INDEX, JSFunction, array_buffer_fun) \ |
160 V(ARRAY_BUFFER_MAP_INDEX, Map, array_buffer_map) \ | 162 V(ARRAY_BUFFER_MAP_INDEX, Map, array_buffer_map) \ |
161 V(ARRAY_FUNCTION_INDEX, JSFunction, array_function) \ | 163 V(ARRAY_FUNCTION_INDEX, JSFunction, array_function) \ |
162 V(BOOL16X8_FUNCTION_INDEX, JSFunction, bool16x8_function) \ | 164 V(BOOL16X8_FUNCTION_INDEX, JSFunction, bool16x8_function) \ |
163 V(BOOL32X4_FUNCTION_INDEX, JSFunction, bool32x4_function) \ | 165 V(BOOL32X4_FUNCTION_INDEX, JSFunction, bool32x4_function) \ |
164 V(BOOL8X16_FUNCTION_INDEX, JSFunction, bool8x16_function) \ | 166 V(BOOL8X16_FUNCTION_INDEX, JSFunction, bool8x16_function) \ |
165 V(BOOLEAN_FUNCTION_INDEX, JSFunction, boolean_function) \ | 167 V(BOOLEAN_FUNCTION_INDEX, JSFunction, boolean_function) \ |
166 V(BOUND_FUNCTION_WITH_CONSTRUCTOR_MAP_INDEX, Map, \ | 168 V(BOUND_FUNCTION_WITH_CONSTRUCTOR_MAP_INDEX, Map, \ |
167 bound_function_with_constructor_map) \ | 169 bound_function_with_constructor_map) \ |
168 V(BOUND_FUNCTION_WITHOUT_CONSTRUCTOR_MAP_INDEX, Map, \ | 170 V(BOUND_FUNCTION_WITHOUT_CONSTRUCTOR_MAP_INDEX, Map, \ |
169 bound_function_without_constructor_map) \ | 171 bound_function_without_constructor_map) \ |
170 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \ | 172 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \ |
171 call_as_constructor_delegate) \ | 173 call_as_constructor_delegate) \ |
172 V(CALL_AS_FUNCTION_DELEGATE_INDEX, JSFunction, call_as_function_delegate) \ | 174 V(CALL_AS_FUNCTION_DELEGATE_INDEX, JSFunction, call_as_function_delegate) \ |
173 V(CONTEXT_EXTENSION_FUNCTION_INDEX, JSFunction, context_extension_function) \ | 175 V(CONTEXT_EXTENSION_FUNCTION_INDEX, JSFunction, context_extension_function) \ |
| 176 V(DATA_PROPERTY_DESCRIPTOR_MAP_INDEX, Map, data_property_descriptor_map) \ |
174 V(DATA_VIEW_FUN_INDEX, JSFunction, data_view_fun) \ | 177 V(DATA_VIEW_FUN_INDEX, JSFunction, data_view_fun) \ |
175 V(DATE_FUNCTION_INDEX, JSFunction, date_function) \ | 178 V(DATE_FUNCTION_INDEX, JSFunction, date_function) \ |
176 V(ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, Object, \ | 179 V(ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, Object, \ |
177 error_message_for_code_gen_from_strings) \ | 180 error_message_for_code_gen_from_strings) \ |
178 V(ERRORS_THROWN_INDEX, Smi, errors_thrown) \ | 181 V(ERRORS_THROWN_INDEX, Smi, errors_thrown) \ |
179 V(EXTRAS_EXPORTS_OBJECT_INDEX, JSObject, extras_binding_object) \ | 182 V(EXTRAS_EXPORTS_OBJECT_INDEX, JSObject, extras_binding_object) \ |
180 V(EXTRAS_UTILS_OBJECT_INDEX, JSObject, extras_utils_object) \ | 183 V(EXTRAS_UTILS_OBJECT_INDEX, JSObject, extras_utils_object) \ |
181 V(FAST_ALIASED_ARGUMENTS_MAP_INDEX, Map, fast_aliased_arguments_map) \ | 184 V(FAST_ALIASED_ARGUMENTS_MAP_INDEX, Map, fast_aliased_arguments_map) \ |
182 V(FLOAT32_ARRAY_FUN_INDEX, JSFunction, float32_array_fun) \ | 185 V(FLOAT32_ARRAY_FUN_INDEX, JSFunction, float32_array_fun) \ |
183 V(FLOAT32X4_FUNCTION_INDEX, JSFunction, float32x4_function) \ | 186 V(FLOAT32X4_FUNCTION_INDEX, JSFunction, float32x4_function) \ |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 #endif | 586 #endif |
584 | 587 |
585 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 588 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
586 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 589 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
587 }; | 590 }; |
588 | 591 |
589 } // namespace internal | 592 } // namespace internal |
590 } // namespace v8 | 593 } // namespace v8 |
591 | 594 |
592 #endif // V8_CONTEXTS_H_ | 595 #endif // V8_CONTEXTS_H_ |
OLD | NEW |