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