| 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 #define NATIVE_CONTEXT_FIELDS(V) \ | 190 #define NATIVE_CONTEXT_FIELDS(V) \ |
| 191 V(GLOBAL_PROXY_INDEX, JSObject, global_proxy_object) \ | 191 V(GLOBAL_PROXY_INDEX, JSObject, global_proxy_object) \ |
| 192 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \ | 192 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \ |
| 193 /* Below is alpha-sorted */ \ | 193 /* Below is alpha-sorted */ \ |
| 194 V(ACCESSOR_PROPERTY_DESCRIPTOR_MAP_INDEX, Map, \ | 194 V(ACCESSOR_PROPERTY_DESCRIPTOR_MAP_INDEX, Map, \ |
| 195 accessor_property_descriptor_map) \ | 195 accessor_property_descriptor_map) \ |
| 196 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \ | 196 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \ |
| 197 V(ARRAY_BUFFER_FUN_INDEX, JSFunction, array_buffer_fun) \ | 197 V(ARRAY_BUFFER_FUN_INDEX, JSFunction, array_buffer_fun) \ |
| 198 V(ARRAY_BUFFER_MAP_INDEX, Map, array_buffer_map) \ | 198 V(ARRAY_BUFFER_MAP_INDEX, Map, array_buffer_map) \ |
| 199 V(ARRAY_FUNCTION_INDEX, JSFunction, array_function) \ | 199 V(ARRAY_FUNCTION_INDEX, JSFunction, array_function) \ |
| 200 V(ASYNC_FROM_SYNC_ITERATOR_MAP_INDEX, Map, async_from_sync_iterator_map) \ |
| 200 V(ASYNC_FUNCTION_AWAIT_REJECT_SHARED_FUN, SharedFunctionInfo, \ | 201 V(ASYNC_FUNCTION_AWAIT_REJECT_SHARED_FUN, SharedFunctionInfo, \ |
| 201 async_function_await_reject_shared_fun) \ | 202 async_function_await_reject_shared_fun) \ |
| 202 V(ASYNC_FUNCTION_AWAIT_RESOLVE_SHARED_FUN, SharedFunctionInfo, \ | 203 V(ASYNC_FUNCTION_AWAIT_RESOLVE_SHARED_FUN, SharedFunctionInfo, \ |
| 203 async_function_await_resolve_shared_fun) \ | 204 async_function_await_resolve_shared_fun) \ |
| 204 V(ASYNC_FUNCTION_FUNCTION_INDEX, JSFunction, async_function_constructor) \ | 205 V(ASYNC_FUNCTION_FUNCTION_INDEX, JSFunction, async_function_constructor) \ |
| 206 V(ASYNC_ITERATOR_VALUE_UNWRAP_SHARED_FUN, SharedFunctionInfo, \ |
| 207 async_iterator_value_unwrap_shared_fun) \ |
| 205 V(BOOLEAN_FUNCTION_INDEX, JSFunction, boolean_function) \ | 208 V(BOOLEAN_FUNCTION_INDEX, JSFunction, boolean_function) \ |
| 206 V(BOUND_FUNCTION_WITH_CONSTRUCTOR_MAP_INDEX, Map, \ | 209 V(BOUND_FUNCTION_WITH_CONSTRUCTOR_MAP_INDEX, Map, \ |
| 207 bound_function_with_constructor_map) \ | 210 bound_function_with_constructor_map) \ |
| 208 V(BOUND_FUNCTION_WITHOUT_CONSTRUCTOR_MAP_INDEX, Map, \ | 211 V(BOUND_FUNCTION_WITHOUT_CONSTRUCTOR_MAP_INDEX, Map, \ |
| 209 bound_function_without_constructor_map) \ | 212 bound_function_without_constructor_map) \ |
| 210 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \ | 213 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \ |
| 211 call_as_constructor_delegate) \ | 214 call_as_constructor_delegate) \ |
| 212 V(CALL_AS_FUNCTION_DELEGATE_INDEX, JSFunction, call_as_function_delegate) \ | 215 V(CALL_AS_FUNCTION_DELEGATE_INDEX, JSFunction, call_as_function_delegate) \ |
| 213 V(CALLSITE_FUNCTION_INDEX, JSFunction, callsite_function) \ | 216 V(CALLSITE_FUNCTION_INDEX, JSFunction, callsite_function) \ |
| 214 V(CONTEXT_EXTENSION_FUNCTION_INDEX, JSFunction, context_extension_function) \ | 217 V(CONTEXT_EXTENSION_FUNCTION_INDEX, JSFunction, context_extension_function) \ |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 696 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
| 694 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 697 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
| 695 }; | 698 }; |
| 696 | 699 |
| 697 typedef Context::Field ContextField; | 700 typedef Context::Field ContextField; |
| 698 | 701 |
| 699 } // namespace internal | 702 } // namespace internal |
| 700 } // namespace v8 | 703 } // namespace v8 |
| 701 | 704 |
| 702 #endif // V8_CONTEXTS_H_ | 705 #endif // V8_CONTEXTS_H_ |
| OLD | NEW |