| 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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 V(WASM_MODULE_CONSTRUCTOR_INDEX, JSFunction, wasm_module_constructor) \ | 335 V(WASM_MODULE_CONSTRUCTOR_INDEX, JSFunction, wasm_module_constructor) \ |
| 336 V(WASM_MODULE_SYM_INDEX, Symbol, wasm_module_sym) \ | 336 V(WASM_MODULE_SYM_INDEX, Symbol, wasm_module_sym) \ |
| 337 V(WASM_TABLE_CONSTRUCTOR_INDEX, JSFunction, wasm_table_constructor) \ | 337 V(WASM_TABLE_CONSTRUCTOR_INDEX, JSFunction, wasm_table_constructor) \ |
| 338 V(WASM_TABLE_SYM_INDEX, Symbol, wasm_table_sym) \ | 338 V(WASM_TABLE_SYM_INDEX, Symbol, wasm_table_sym) \ |
| 339 V(TYPED_ARRAY_FUN_INDEX, JSFunction, typed_array_function) \ | 339 V(TYPED_ARRAY_FUN_INDEX, JSFunction, typed_array_function) \ |
| 340 V(TYPED_ARRAY_PROTOTYPE_INDEX, JSObject, typed_array_prototype) \ | 340 V(TYPED_ARRAY_PROTOTYPE_INDEX, JSObject, typed_array_prototype) \ |
| 341 V(UINT16_ARRAY_FUN_INDEX, JSFunction, uint16_array_fun) \ | 341 V(UINT16_ARRAY_FUN_INDEX, JSFunction, uint16_array_fun) \ |
| 342 V(UINT32_ARRAY_FUN_INDEX, JSFunction, uint32_array_fun) \ | 342 V(UINT32_ARRAY_FUN_INDEX, JSFunction, uint32_array_fun) \ |
| 343 V(UINT8_ARRAY_FUN_INDEX, JSFunction, uint8_array_fun) \ | 343 V(UINT8_ARRAY_FUN_INDEX, JSFunction, uint8_array_fun) \ |
| 344 V(UINT8_CLAMPED_ARRAY_FUN_INDEX, JSFunction, uint8_clamped_array_fun) \ | 344 V(UINT8_CLAMPED_ARRAY_FUN_INDEX, JSFunction, uint8_clamped_array_fun) \ |
| 345 V(EXPORTS_CONTAINER, Object, exports_container) \ |
| 345 NATIVE_CONTEXT_INTRINSIC_FUNCTIONS(V) \ | 346 NATIVE_CONTEXT_INTRINSIC_FUNCTIONS(V) \ |
| 346 NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ | 347 NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ |
| 347 NATIVE_CONTEXT_JS_ARRAY_ITERATOR_MAPS(V) | 348 NATIVE_CONTEXT_JS_ARRAY_ITERATOR_MAPS(V) |
| 348 | 349 |
| 349 // A table of all script contexts. Every loaded top-level script with top-level | 350 // A table of all script contexts. Every loaded top-level script with top-level |
| 350 // lexical declarations contributes its ScriptContext into this table. | 351 // lexical declarations contributes its ScriptContext into this table. |
| 351 // | 352 // |
| 352 // The table is a fixed array, its first slot is the current used count and | 353 // The table is a fixed array, its first slot is the current used count and |
| 353 // the subsequent slots 1..used contain ScriptContexts. | 354 // the subsequent slots 1..used contain ScriptContexts. |
| 354 class ScriptContextTable : public FixedArray { | 355 class ScriptContextTable : public FixedArray { |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 684 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 685 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
| 685 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 686 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
| 686 }; | 687 }; |
| 687 | 688 |
| 688 typedef Context::Field ContextField; | 689 typedef Context::Field ContextField; |
| 689 | 690 |
| 690 } // namespace internal | 691 } // namespace internal |
| 691 } // namespace v8 | 692 } // namespace v8 |
| 692 | 693 |
| 693 #endif // V8_CONTEXTS_H_ | 694 #endif // V8_CONTEXTS_H_ |
| OLD | NEW |