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_H_ | 5 #ifndef V8_HEAP_H_ |
6 #define V8_HEAP_H_ | 6 #define V8_HEAP_H_ |
7 | 7 |
8 #include <cmath> | 8 #include <cmath> |
9 | 9 |
10 #include "allocation.h" | 10 #include "allocation.h" |
(...skipping 1956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1967 static void ScavengeStoreBufferCallback(Heap* heap, | 1967 static void ScavengeStoreBufferCallback(Heap* heap, |
1968 MemoryChunk* page, | 1968 MemoryChunk* page, |
1969 StoreBufferEvent event); | 1969 StoreBufferEvent event); |
1970 | 1970 |
1971 // Performs a major collection in the whole heap. | 1971 // Performs a major collection in the whole heap. |
1972 void MarkCompact(GCTracer* tracer); | 1972 void MarkCompact(GCTracer* tracer); |
1973 | 1973 |
1974 // Code to be run before and after mark-compact. | 1974 // Code to be run before and after mark-compact. |
1975 void MarkCompactPrologue(); | 1975 void MarkCompactPrologue(); |
1976 | 1976 |
1977 void ProcessNativeContexts(WeakObjectRetainer* retainer, bool record_slots); | 1977 void ProcessNativeContexts(WeakObjectRetainer* retainer); |
1978 void ProcessArrayBuffers(WeakObjectRetainer* retainer, bool record_slots); | 1978 void ProcessArrayBuffers(WeakObjectRetainer* retainer); |
1979 void ProcessAllocationSites(WeakObjectRetainer* retainer, bool record_slots); | 1979 void ProcessAllocationSites(WeakObjectRetainer* retainer); |
1980 | 1980 |
1981 // Deopts all code that contains allocation instruction which are tenured or | 1981 // Deopts all code that contains allocation instruction which are tenured or |
1982 // not tenured. Moreover it clears the pretenuring allocation site statistics. | 1982 // not tenured. Moreover it clears the pretenuring allocation site statistics. |
1983 void ResetAllAllocationSitesDependentCode(PretenureFlag flag); | 1983 void ResetAllAllocationSitesDependentCode(PretenureFlag flag); |
1984 | 1984 |
1985 // Evaluates local pretenuring for the old space and calls | 1985 // Evaluates local pretenuring for the old space and calls |
1986 // ResetAllTenuredAllocationSitesDependentCode if too many objects died in | 1986 // ResetAllTenuredAllocationSitesDependentCode if too many objects died in |
1987 // the old space. | 1987 // the old space. |
1988 void EvaluateOldSpaceLocalPretenuring(uint64_t size_of_objects_before_gc); | 1988 void EvaluateOldSpaceLocalPretenuring(uint64_t size_of_objects_before_gc); |
1989 | 1989 |
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2818 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2818 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2819 | 2819 |
2820 private: | 2820 private: |
2821 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2821 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2822 }; | 2822 }; |
2823 #endif // DEBUG | 2823 #endif // DEBUG |
2824 | 2824 |
2825 } } // namespace v8::internal | 2825 } } // namespace v8::internal |
2826 | 2826 |
2827 #endif // V8_HEAP_H_ | 2827 #endif // V8_HEAP_H_ |
OLD | NEW |