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 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 SET_FROM_ARRAY_INDEX, | 458 SET_FROM_ARRAY_INDEX, |
459 MAP_ITERATOR_MAP_INDEX, | 459 MAP_ITERATOR_MAP_INDEX, |
460 SET_ITERATOR_MAP_INDEX, | 460 SET_ITERATOR_MAP_INDEX, |
461 ARRAY_VALUES_ITERATOR_INDEX, | 461 ARRAY_VALUES_ITERATOR_INDEX, |
462 SCRIPT_CONTEXT_TABLE_INDEX, | 462 SCRIPT_CONTEXT_TABLE_INDEX, |
463 MAP_CACHE_INDEX, | 463 MAP_CACHE_INDEX, |
464 STRONG_MAP_CACHE_INDEX, | 464 STRONG_MAP_CACHE_INDEX, |
465 TO_LENGTH_FUN_INDEX, | 465 TO_LENGTH_FUN_INDEX, |
466 NATIVES_UTILS_OBJECT_INDEX, | 466 NATIVES_UTILS_OBJECT_INDEX, |
467 EXTRAS_EXPORTS_OBJECT_INDEX, | 467 EXTRAS_EXPORTS_OBJECT_INDEX, |
| 468 CODE_STUB_EXPORTS_OBJECT_INDEX, |
468 | 469 |
469 // Properties from here are treated as weak references by the full GC. | 470 // Properties from here are treated as weak references by the full GC. |
470 // Scavenge treats them as strong references. | 471 // Scavenge treats them as strong references. |
471 OPTIMIZED_FUNCTIONS_LIST, // Weak. | 472 OPTIMIZED_FUNCTIONS_LIST, // Weak. |
472 OPTIMIZED_CODE_LIST, // Weak. | 473 OPTIMIZED_CODE_LIST, // Weak. |
473 DEOPTIMIZED_CODE_LIST, // Weak. | 474 DEOPTIMIZED_CODE_LIST, // Weak. |
474 NEXT_CONTEXT_LINK, // Weak. | 475 NEXT_CONTEXT_LINK, // Weak. |
475 | 476 |
476 // Total number of slots. | 477 // Total number of slots. |
477 NATIVE_CONTEXT_SLOTS, | 478 NATIVE_CONTEXT_SLOTS, |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
668 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); | 669 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); |
669 #endif | 670 #endif |
670 | 671 |
671 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 672 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
672 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 673 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
673 }; | 674 }; |
674 | 675 |
675 } } // namespace v8::internal | 676 } } // namespace v8::internal |
676 | 677 |
677 #endif // V8_CONTEXTS_H_ | 678 #endif // V8_CONTEXTS_H_ |
OLD | NEW |