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 1990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2001 unsigned int maximum_size_scavenges_; | 2001 unsigned int maximum_size_scavenges_; |
2002 | 2002 |
2003 // TODO(hpayer): Allocation site pretenuring may make this method obsolete. | 2003 // TODO(hpayer): Allocation site pretenuring may make this method obsolete. |
2004 // Re-visit incremental marking heuristics. | 2004 // Re-visit incremental marking heuristics. |
2005 bool IsHighSurvivalRate() { return high_survival_rate_period_length_ > 0; } | 2005 bool IsHighSurvivalRate() { return high_survival_rate_period_length_ > 0; } |
2006 | 2006 |
2007 void SelectScavengingVisitorsTable(); | 2007 void SelectScavengingVisitorsTable(); |
2008 | 2008 |
2009 void IdleMarkCompact(const char* message); | 2009 void IdleMarkCompact(const char* message); |
2010 | 2010 |
2011 void TryFinalizeIdleIncrementalMarking( | 2011 bool TryFinalizeIdleIncrementalMarking( |
2012 double idle_time_in_ms, size_t size_of_objects, | 2012 double idle_time_in_ms, size_t size_of_objects, |
2013 size_t mark_compact_speed_in_bytes_per_ms); | 2013 size_t mark_compact_speed_in_bytes_per_ms); |
2014 | 2014 |
2015 bool WorthActivatingIncrementalMarking(); | 2015 bool WorthActivatingIncrementalMarking(); |
2016 | 2016 |
2017 void ClearObjectStats(bool clear_last_time_stats = false); | 2017 void ClearObjectStats(bool clear_last_time_stats = false); |
2018 | 2018 |
2019 void set_weak_object_to_code_table(Object* value) { | 2019 void set_weak_object_to_code_table(Object* value) { |
2020 DCHECK(!InNewSpace(value)); | 2020 DCHECK(!InNewSpace(value)); |
2021 weak_object_to_code_table_ = value; | 2021 weak_object_to_code_table_ = value; |
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2579 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2579 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2580 | 2580 |
2581 private: | 2581 private: |
2582 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2582 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2583 }; | 2583 }; |
2584 #endif // DEBUG | 2584 #endif // DEBUG |
2585 } | 2585 } |
2586 } // namespace v8::internal | 2586 } // namespace v8::internal |
2587 | 2587 |
2588 #endif // V8_HEAP_HEAP_H_ | 2588 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |