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 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 2033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2044 unsigned int maximum_size_scavenges_; | 2044 unsigned int maximum_size_scavenges_; |
2045 | 2045 |
2046 // TODO(hpayer): Allocation site pretenuring may make this method obsolete. | 2046 // TODO(hpayer): Allocation site pretenuring may make this method obsolete. |
2047 // Re-visit incremental marking heuristics. | 2047 // Re-visit incremental marking heuristics. |
2048 bool IsHighSurvivalRate() { return high_survival_rate_period_length_ > 0; } | 2048 bool IsHighSurvivalRate() { return high_survival_rate_period_length_ > 0; } |
2049 | 2049 |
2050 void ConfigureInitialOldGenerationSize(); | 2050 void ConfigureInitialOldGenerationSize(); |
2051 | 2051 |
2052 void SelectScavengingVisitorsTable(); | 2052 void SelectScavengingVisitorsTable(); |
2053 | 2053 |
2054 void IdleMarkCompact(const char* message); | 2054 void IdleMarkCompact(bool reduce_memory, const char* message); |
2055 | 2055 |
2056 bool TryFinalizeIdleIncrementalMarking( | 2056 bool TryFinalizeIdleIncrementalMarking( |
2057 double idle_time_in_ms, size_t size_of_objects, | 2057 double idle_time_in_ms, size_t size_of_objects, |
2058 size_t mark_compact_speed_in_bytes_per_ms); | 2058 size_t mark_compact_speed_in_bytes_per_ms); |
2059 | 2059 |
2060 bool WorthActivatingIncrementalMarking(); | 2060 bool WorthActivatingIncrementalMarking(); |
2061 | 2061 |
2062 void ClearObjectStats(bool clear_last_time_stats = false); | 2062 void ClearObjectStats(bool clear_last_time_stats = false); |
2063 | 2063 |
2064 inline void UpdateAllocationsHash(HeapObject* object); | 2064 inline void UpdateAllocationsHash(HeapObject* object); |
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2602 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2602 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2603 | 2603 |
2604 private: | 2604 private: |
2605 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2605 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2606 }; | 2606 }; |
2607 #endif // DEBUG | 2607 #endif // DEBUG |
2608 } | 2608 } |
2609 } // namespace v8::internal | 2609 } // namespace v8::internal |
2610 | 2610 |
2611 #endif // V8_HEAP_HEAP_H_ | 2611 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |