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 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
836 | 836 |
837 bool DeoptMaybeTenuredAllocationSites() { | 837 bool DeoptMaybeTenuredAllocationSites() { |
838 return new_space_.IsAtMaximumCapacity() && maximum_size_scavenges_ == 0; | 838 return new_space_.IsAtMaximumCapacity() && maximum_size_scavenges_ == 0; |
839 } | 839 } |
840 | 840 |
841 void AddWeakObjectToCodeDependency(Handle<HeapObject> obj, | 841 void AddWeakObjectToCodeDependency(Handle<HeapObject> obj, |
842 Handle<DependentCode> dep); | 842 Handle<DependentCode> dep); |
843 | 843 |
844 DependentCode* LookupWeakObjectToCodeDependency(Handle<HeapObject> obj); | 844 DependentCode* LookupWeakObjectToCodeDependency(Handle<HeapObject> obj); |
845 | 845 |
| 846 void CompactWeakFixedArrays(); |
| 847 |
846 void AddRetainedMap(Handle<Map> map); | 848 void AddRetainedMap(Handle<Map> map); |
847 | 849 |
848 // This event is triggered after successful allocation of a new object made | 850 // This event is triggered after successful allocation of a new object made |
849 // by runtime. Allocations of target space for object evacuation do not | 851 // by runtime. Allocations of target space for object evacuation do not |
850 // trigger the event. In order to track ALL allocations one must turn off | 852 // trigger the event. In order to track ALL allocations one must turn off |
851 // FLAG_inline_new and FLAG_use_allocation_folding. | 853 // FLAG_inline_new and FLAG_use_allocation_folding. |
852 inline void OnAllocationEvent(HeapObject* object, int size_in_bytes); | 854 inline void OnAllocationEvent(HeapObject* object, int size_in_bytes); |
853 | 855 |
854 // This event is triggered after object is moved to a new place. | 856 // This event is triggered after object is moved to a new place. |
855 inline void OnMoveEvent(HeapObject* target, HeapObject* source, | 857 inline void OnMoveEvent(HeapObject* target, HeapObject* source, |
(...skipping 1812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2668 friend class LargeObjectSpace; | 2670 friend class LargeObjectSpace; |
2669 friend class NewSpace; | 2671 friend class NewSpace; |
2670 friend class PagedSpace; | 2672 friend class PagedSpace; |
2671 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2673 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
2672 }; | 2674 }; |
2673 | 2675 |
2674 } // namespace internal | 2676 } // namespace internal |
2675 } // namespace v8 | 2677 } // namespace v8 |
2676 | 2678 |
2677 #endif // V8_HEAP_HEAP_H_ | 2679 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |