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_HEAP_HEAP_H_ | 5 #ifndef V8_HEAP_HEAP_H_ |
6 #define V8_HEAP_HEAP_H_ | 6 #define V8_HEAP_HEAP_H_ |
7 | 7 |
8 #include <cmath> | 8 #include <cmath> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 struct Entry* rear_; | 434 struct Entry* rear_; |
435 struct Entry* limit_; | 435 struct Entry* limit_; |
436 | 436 |
437 List<Entry>* emergency_stack_; | 437 List<Entry>* emergency_stack_; |
438 | 438 |
439 Heap* heap_; | 439 Heap* heap_; |
440 | 440 |
441 DISALLOW_COPY_AND_ASSIGN(PromotionQueue); | 441 DISALLOW_COPY_AND_ASSIGN(PromotionQueue); |
442 }; | 442 }; |
443 | 443 |
| 444 |
444 enum ArrayStorageAllocationMode { | 445 enum ArrayStorageAllocationMode { |
445 DONT_INITIALIZE_ARRAY_ELEMENTS, | 446 DONT_INITIALIZE_ARRAY_ELEMENTS, |
446 INITIALIZE_ARRAY_ELEMENTS_WITH_HOLE, | 447 INITIALIZE_ARRAY_ELEMENTS_WITH_HOLE |
447 INITIALIZE_ARRAY_ELEMENTS_WITH_UNDEFINED | |
448 }; | 448 }; |
449 | 449 |
450 enum class ClearRecordedSlots { kYes, kNo }; | 450 enum class ClearRecordedSlots { kYes, kNo }; |
451 | 451 |
452 class Heap { | 452 class Heap { |
453 public: | 453 public: |
454 // Declare all the root indices. This defines the root list order. | 454 // Declare all the root indices. This defines the root list order. |
455 enum RootListIndex { | 455 enum RootListIndex { |
456 #define ROOT_INDEX_DECLARATION(type, name, camel_name) k##camel_name##RootIndex, | 456 #define ROOT_INDEX_DECLARATION(type, name, camel_name) k##camel_name##RootIndex, |
457 STRONG_ROOT_LIST(ROOT_INDEX_DECLARATION) | 457 STRONG_ROOT_LIST(ROOT_INDEX_DECLARATION) |
(...skipping 2234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2692 friend class LargeObjectSpace; | 2692 friend class LargeObjectSpace; |
2693 friend class NewSpace; | 2693 friend class NewSpace; |
2694 friend class PagedSpace; | 2694 friend class PagedSpace; |
2695 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2695 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
2696 }; | 2696 }; |
2697 | 2697 |
2698 } // namespace internal | 2698 } // namespace internal |
2699 } // namespace v8 | 2699 } // namespace v8 |
2700 | 2700 |
2701 #endif // V8_HEAP_HEAP_H_ | 2701 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |