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 1957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1968 // the code that belongs to the allocation site and derive the lifetime | 1968 // the code that belongs to the allocation site and derive the lifetime |
1969 // of the allocation site. | 1969 // of the allocation site. |
1970 unsigned int maximum_size_scavenges_; | 1970 unsigned int maximum_size_scavenges_; |
1971 | 1971 |
1972 // TODO(hpayer): Allocation site pretenuring may make this method obsolete. | 1972 // TODO(hpayer): Allocation site pretenuring may make this method obsolete. |
1973 // Re-visit incremental marking heuristics. | 1973 // Re-visit incremental marking heuristics. |
1974 bool IsHighSurvivalRate() { return high_survival_rate_period_length_ > 0; } | 1974 bool IsHighSurvivalRate() { return high_survival_rate_period_length_ > 0; } |
1975 | 1975 |
1976 void SelectScavengingVisitorsTable(); | 1976 void SelectScavengingVisitorsTable(); |
1977 | 1977 |
| 1978 void IdleMarkCompact(const char* message); |
| 1979 |
1978 void TryFinalizeIdleIncrementalMarking( | 1980 void TryFinalizeIdleIncrementalMarking( |
1979 size_t idle_time_in_ms, size_t size_of_objects, | 1981 size_t idle_time_in_ms, size_t size_of_objects, |
1980 size_t mark_compact_speed_in_bytes_per_ms); | 1982 size_t mark_compact_speed_in_bytes_per_ms); |
1981 | 1983 |
1982 bool WorthActivatingIncrementalMarking(); | 1984 bool WorthActivatingIncrementalMarking(); |
1983 | 1985 |
1984 void ClearObjectStats(bool clear_last_time_stats = false); | 1986 void ClearObjectStats(bool clear_last_time_stats = false); |
1985 | 1987 |
1986 void set_weak_object_to_code_table(Object* value) { | 1988 void set_weak_object_to_code_table(Object* value) { |
1987 DCHECK(!InNewSpace(value)); | 1989 DCHECK(!InNewSpace(value)); |
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2546 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2548 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2547 | 2549 |
2548 private: | 2550 private: |
2549 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2551 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2550 }; | 2552 }; |
2551 #endif // DEBUG | 2553 #endif // DEBUG |
2552 } | 2554 } |
2553 } // namespace v8::internal | 2555 } // namespace v8::internal |
2554 | 2556 |
2555 #endif // V8_HEAP_HEAP_H_ | 2557 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |