| 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 2109 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2120   unsigned int maximum_size_scavenges_; | 2120   unsigned int maximum_size_scavenges_; | 
| 2121 | 2121 | 
| 2122   // TODO(hpayer): Allocation site pretenuring may make this method obsolete. | 2122   // TODO(hpayer): Allocation site pretenuring may make this method obsolete. | 
| 2123   // Re-visit incremental marking heuristics. | 2123   // Re-visit incremental marking heuristics. | 
| 2124   bool IsHighSurvivalRate() { return high_survival_rate_period_length_ > 0; } | 2124   bool IsHighSurvivalRate() { return high_survival_rate_period_length_ > 0; } | 
| 2125 | 2125 | 
| 2126   void ConfigureInitialOldGenerationSize(); | 2126   void ConfigureInitialOldGenerationSize(); | 
| 2127 | 2127 | 
| 2128   void SelectScavengingVisitorsTable(); | 2128   void SelectScavengingVisitorsTable(); | 
| 2129 | 2129 | 
|  | 2130   void ReduceNewSpaceSize(GCIdleTimeAction action); | 
|  | 2131 | 
| 2130   bool TryFinalizeIdleIncrementalMarking( | 2132   bool TryFinalizeIdleIncrementalMarking( | 
| 2131       double idle_time_in_ms, size_t size_of_objects, | 2133       double idle_time_in_ms, size_t size_of_objects, | 
| 2132       size_t mark_compact_speed_in_bytes_per_ms); | 2134       size_t mark_compact_speed_in_bytes_per_ms); | 
| 2133 | 2135 | 
| 2134   GCIdleTimeHandler::HeapState ComputeHeapState(bool reduce_memory); | 2136   GCIdleTimeHandler::HeapState ComputeHeapState(bool reduce_memory); | 
| 2135 | 2137 | 
| 2136   bool PerformIdleTimeAction(GCIdleTimeAction action, | 2138   bool PerformIdleTimeAction(GCIdleTimeAction action, | 
| 2137                              GCIdleTimeHandler::HeapState heap_state, | 2139                              GCIdleTimeHandler::HeapState heap_state, | 
| 2138                              double deadline_in_ms, | 2140                              double deadline_in_ms, | 
| 2139                              bool is_long_idle_notification); | 2141                              bool is_long_idle_notification); | 
| (...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2692   DisallowHeapAllocation no_allocation;  // i.e. no gc allowed. | 2694   DisallowHeapAllocation no_allocation;  // i.e. no gc allowed. | 
| 2693 | 2695 | 
| 2694  private: | 2696  private: | 
| 2695   DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2697   DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 
| 2696 }; | 2698 }; | 
| 2697 #endif  // DEBUG | 2699 #endif  // DEBUG | 
| 2698 } | 2700 } | 
| 2699 }  // namespace v8::internal | 2701 }  // namespace v8::internal | 
| 2700 | 2702 | 
| 2701 #endif  // V8_HEAP_HEAP_H_ | 2703 #endif  // V8_HEAP_HEAP_H_ | 
| OLD | NEW | 
|---|