| 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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 V(WASM_TABLE_SYM_INDEX, Symbol, wasm_table_sym) \ | 347 V(WASM_TABLE_SYM_INDEX, Symbol, wasm_table_sym) \ |
| 348 V(TYPED_ARRAY_FUN_INDEX, JSFunction, typed_array_function) \ | 348 V(TYPED_ARRAY_FUN_INDEX, JSFunction, typed_array_function) \ |
| 349 V(TYPED_ARRAY_PROTOTYPE_INDEX, JSObject, typed_array_prototype) \ | 349 V(TYPED_ARRAY_PROTOTYPE_INDEX, JSObject, typed_array_prototype) \ |
| 350 V(UINT16_ARRAY_FUN_INDEX, JSFunction, uint16_array_fun) \ | 350 V(UINT16_ARRAY_FUN_INDEX, JSFunction, uint16_array_fun) \ |
| 351 V(UINT16X8_FUNCTION_INDEX, JSFunction, uint16x8_function) \ | 351 V(UINT16X8_FUNCTION_INDEX, JSFunction, uint16x8_function) \ |
| 352 V(UINT32_ARRAY_FUN_INDEX, JSFunction, uint32_array_fun) \ | 352 V(UINT32_ARRAY_FUN_INDEX, JSFunction, uint32_array_fun) \ |
| 353 V(UINT32X4_FUNCTION_INDEX, JSFunction, uint32x4_function) \ | 353 V(UINT32X4_FUNCTION_INDEX, JSFunction, uint32x4_function) \ |
| 354 V(UINT8_ARRAY_FUN_INDEX, JSFunction, uint8_array_fun) \ | 354 V(UINT8_ARRAY_FUN_INDEX, JSFunction, uint8_array_fun) \ |
| 355 V(UINT8_CLAMPED_ARRAY_FUN_INDEX, JSFunction, uint8_clamped_array_fun) \ | 355 V(UINT8_CLAMPED_ARRAY_FUN_INDEX, JSFunction, uint8_clamped_array_fun) \ |
| 356 V(UINT8X16_FUNCTION_INDEX, JSFunction, uint8x16_function) \ | 356 V(UINT8X16_FUNCTION_INDEX, JSFunction, uint8x16_function) \ |
| 357 V(EXPERIMENTAL_CONTAINER, JSObject, exports_container) \ |
| 357 NATIVE_CONTEXT_INTRINSIC_FUNCTIONS(V) \ | 358 NATIVE_CONTEXT_INTRINSIC_FUNCTIONS(V) \ |
| 358 NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ | 359 NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ |
| 359 NATIVE_CONTEXT_JS_ARRAY_ITERATOR_MAPS(V) | 360 NATIVE_CONTEXT_JS_ARRAY_ITERATOR_MAPS(V) |
| 360 | 361 |
| 361 // A table of all script contexts. Every loaded top-level script with top-level | 362 // A table of all script contexts. Every loaded top-level script with top-level |
| 362 // lexical declarations contributes its ScriptContext into this table. | 363 // lexical declarations contributes its ScriptContext into this table. |
| 363 // | 364 // |
| 364 // The table is a fixed array, its first slot is the current used count and | 365 // The table is a fixed array, its first slot is the current used count and |
| 365 // the subsequent slots 1..used contain ScriptContexts. | 366 // the subsequent slots 1..used contain ScriptContexts. |
| 366 class ScriptContextTable : public FixedArray { | 367 class ScriptContextTable : public FixedArray { |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 696 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 697 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
| 697 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 698 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
| 698 }; | 699 }; |
| 699 | 700 |
| 700 typedef Context::Field ContextField; | 701 typedef Context::Field ContextField; |
| 701 | 702 |
| 702 } // namespace internal | 703 } // namespace internal |
| 703 } // namespace v8 | 704 } // namespace v8 |
| 704 | 705 |
| 705 #endif // V8_CONTEXTS_H_ | 706 #endif // V8_CONTEXTS_H_ |
| OLD | NEW |