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 1908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1919 // the code that belongs to the allocation site and derive the lifetime | 1919 // the code that belongs to the allocation site and derive the lifetime |
1920 // of the allocation site. | 1920 // of the allocation site. |
1921 unsigned int maximum_size_scavenges_; | 1921 unsigned int maximum_size_scavenges_; |
1922 | 1922 |
1923 // TODO(hpayer): Allocation site pretenuring may make this method obsolete. | 1923 // TODO(hpayer): Allocation site pretenuring may make this method obsolete. |
1924 // Re-visit incremental marking heuristics. | 1924 // Re-visit incremental marking heuristics. |
1925 bool IsHighSurvivalRate() { return high_survival_rate_period_length_ > 0; } | 1925 bool IsHighSurvivalRate() { return high_survival_rate_period_length_ > 0; } |
1926 | 1926 |
1927 void SelectScavengingVisitorsTable(); | 1927 void SelectScavengingVisitorsTable(); |
1928 | 1928 |
| 1929 void IdleMarkCompact(const char* message); |
| 1930 |
1929 void AdvanceIdleIncrementalMarking(intptr_t step_size); | 1931 void AdvanceIdleIncrementalMarking(intptr_t step_size); |
1930 | 1932 |
1931 bool WorthActivatingIncrementalMarking(); | 1933 bool WorthActivatingIncrementalMarking(); |
1932 | 1934 |
1933 void ClearObjectStats(bool clear_last_time_stats = false); | 1935 void ClearObjectStats(bool clear_last_time_stats = false); |
1934 | 1936 |
1935 void set_weak_object_to_code_table(Object* value) { | 1937 void set_weak_object_to_code_table(Object* value) { |
1936 DCHECK(!InNewSpace(value)); | 1938 DCHECK(!InNewSpace(value)); |
1937 weak_object_to_code_table_ = value; | 1939 weak_object_to_code_table_ = value; |
1938 } | 1940 } |
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2492 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2494 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2493 | 2495 |
2494 private: | 2496 private: |
2495 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2497 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2496 }; | 2498 }; |
2497 #endif // DEBUG | 2499 #endif // DEBUG |
2498 } | 2500 } |
2499 } // namespace v8::internal | 2501 } // namespace v8::internal |
2500 | 2502 |
2501 #endif // V8_HEAP_HEAP_H_ | 2503 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |