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/objects.h" | 8 #include "src/objects.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 V(GENERATOR_FUNCTION_MAP_INDEX, Map, generator_function_map) \ | 359 V(GENERATOR_FUNCTION_MAP_INDEX, Map, generator_function_map) \ |
360 V(ASYNC_GENERATOR_FUNCTION_MAP_INDEX, Map, async_generator_function_map) \ | 360 V(ASYNC_GENERATOR_FUNCTION_MAP_INDEX, Map, async_generator_function_map) \ |
361 V(CLASS_FUNCTION_MAP_INDEX, Map, class_function_map) \ | 361 V(CLASS_FUNCTION_MAP_INDEX, Map, class_function_map) \ |
362 V(STRING_FUNCTION_INDEX, JSFunction, string_function) \ | 362 V(STRING_FUNCTION_INDEX, JSFunction, string_function) \ |
363 V(STRING_FUNCTION_PROTOTYPE_MAP_INDEX, Map, string_function_prototype_map) \ | 363 V(STRING_FUNCTION_PROTOTYPE_MAP_INDEX, Map, string_function_prototype_map) \ |
364 V(STRING_ITERATOR_MAP_INDEX, Map, string_iterator_map) \ | 364 V(STRING_ITERATOR_MAP_INDEX, Map, string_iterator_map) \ |
365 V(SYMBOL_FUNCTION_INDEX, JSFunction, symbol_function) \ | 365 V(SYMBOL_FUNCTION_INDEX, JSFunction, symbol_function) \ |
366 V(NATIVE_FUNCTION_MAP_INDEX, Map, native_function_map) \ | 366 V(NATIVE_FUNCTION_MAP_INDEX, Map, native_function_map) \ |
367 V(WASM_FUNCTION_MAP_INDEX, Map, wasm_function_map) \ | 367 V(WASM_FUNCTION_MAP_INDEX, Map, wasm_function_map) \ |
368 V(WASM_INSTANCE_CONSTRUCTOR_INDEX, JSFunction, wasm_instance_constructor) \ | 368 V(WASM_INSTANCE_CONSTRUCTOR_INDEX, JSFunction, wasm_instance_constructor) \ |
369 V(WASM_INSTANCE_SYM_INDEX, Symbol, wasm_instance_sym) \ | |
370 V(WASM_MEMORY_CONSTRUCTOR_INDEX, JSFunction, wasm_memory_constructor) \ | 369 V(WASM_MEMORY_CONSTRUCTOR_INDEX, JSFunction, wasm_memory_constructor) \ |
371 V(WASM_MEMORY_SYM_INDEX, Symbol, wasm_memory_sym) \ | |
372 V(WASM_MODULE_CONSTRUCTOR_INDEX, JSFunction, wasm_module_constructor) \ | 370 V(WASM_MODULE_CONSTRUCTOR_INDEX, JSFunction, wasm_module_constructor) \ |
373 V(WASM_MODULE_SYM_INDEX, Symbol, wasm_module_sym) \ | |
374 V(WASM_TABLE_CONSTRUCTOR_INDEX, JSFunction, wasm_table_constructor) \ | 371 V(WASM_TABLE_CONSTRUCTOR_INDEX, JSFunction, wasm_table_constructor) \ |
375 V(WASM_TABLE_SYM_INDEX, Symbol, wasm_table_sym) \ | |
376 V(TYPED_ARRAY_FUN_INDEX, JSFunction, typed_array_function) \ | 372 V(TYPED_ARRAY_FUN_INDEX, JSFunction, typed_array_function) \ |
377 V(TYPED_ARRAY_PROTOTYPE_INDEX, JSObject, typed_array_prototype) \ | 373 V(TYPED_ARRAY_PROTOTYPE_INDEX, JSObject, typed_array_prototype) \ |
378 V(UINT16_ARRAY_FUN_INDEX, JSFunction, uint16_array_fun) \ | 374 V(UINT16_ARRAY_FUN_INDEX, JSFunction, uint16_array_fun) \ |
379 V(UINT32_ARRAY_FUN_INDEX, JSFunction, uint32_array_fun) \ | 375 V(UINT32_ARRAY_FUN_INDEX, JSFunction, uint32_array_fun) \ |
380 V(UINT8_ARRAY_FUN_INDEX, JSFunction, uint8_array_fun) \ | 376 V(UINT8_ARRAY_FUN_INDEX, JSFunction, uint8_array_fun) \ |
381 V(UINT8_CLAMPED_ARRAY_FUN_INDEX, JSFunction, uint8_clamped_array_fun) \ | 377 V(UINT8_CLAMPED_ARRAY_FUN_INDEX, JSFunction, uint8_clamped_array_fun) \ |
382 V(EXPORTS_CONTAINER, Object, exports_container) \ | 378 V(EXPORTS_CONTAINER, Object, exports_container) \ |
383 NATIVE_CONTEXT_INTRINSIC_FUNCTIONS(V) \ | 379 NATIVE_CONTEXT_INTRINSIC_FUNCTIONS(V) \ |
384 NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ | 380 NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ |
385 NATIVE_CONTEXT_JS_ARRAY_ITERATOR_MAPS(V) | 381 NATIVE_CONTEXT_JS_ARRAY_ITERATOR_MAPS(V) |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 706 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
711 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 707 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
712 }; | 708 }; |
713 | 709 |
714 typedef Context::Field ContextField; | 710 typedef Context::Field ContextField; |
715 | 711 |
716 } // namespace internal | 712 } // namespace internal |
717 } // namespace v8 | 713 } // namespace v8 |
718 | 714 |
719 #endif // V8_CONTEXTS_H_ | 715 #endif // V8_CONTEXTS_H_ |
OLD | NEW |