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 1884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1895 intptr_t old_gen_size); | 1895 intptr_t old_gen_size); |
1896 | 1896 |
1897 // Sets the allocation limit to trigger the next full garbage collection. | 1897 // Sets the allocation limit to trigger the next full garbage collection. |
1898 void SetOldGenerationAllocationLimit(intptr_t old_gen_size, double gc_speed, | 1898 void SetOldGenerationAllocationLimit(intptr_t old_gen_size, double gc_speed, |
1899 double mutator_speed); | 1899 double mutator_speed); |
1900 | 1900 |
1901 // =========================================================================== | 1901 // =========================================================================== |
1902 // Inline allocation. ======================================================== | 1902 // Inline allocation. ======================================================== |
1903 // =========================================================================== | 1903 // =========================================================================== |
1904 | 1904 |
1905 void LowerInlineAllocationLimit(intptr_t step); | 1905 void SetIncrementalMarkingStep(intptr_t step) { |
1906 void ResetInlineAllocationLimit(); | 1906 new_space()->SetIncrementalMarkingStep(step); |
| 1907 } |
1907 | 1908 |
1908 // =========================================================================== | 1909 // =========================================================================== |
1909 // Idle notification. ======================================================== | 1910 // Idle notification. ======================================================== |
1910 // =========================================================================== | 1911 // =========================================================================== |
1911 | 1912 |
1912 bool RecentIdleNotificationHappened(); | 1913 bool RecentIdleNotificationHappened(); |
1913 void ScheduleIdleScavengeIfNeeded(int bytes_allocated); | 1914 void ScheduleIdleScavengeIfNeeded(int bytes_allocated); |
1914 | 1915 |
1915 // =========================================================================== | 1916 // =========================================================================== |
1916 // Allocation methods. ======================================================= | 1917 // Allocation methods. ======================================================= |
(...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2727 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2728 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2728 | 2729 |
2729 private: | 2730 private: |
2730 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2731 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2731 }; | 2732 }; |
2732 #endif // DEBUG | 2733 #endif // DEBUG |
2733 } // namespace internal | 2734 } // namespace internal |
2734 } // namespace v8 | 2735 } // namespace v8 |
2735 | 2736 |
2736 #endif // V8_HEAP_HEAP_H_ | 2737 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |