OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1791 JSFunction* function, | 1791 JSFunction* function, |
1792 SharedFunctionInfo* shared, | 1792 SharedFunctionInfo* shared, |
1793 Object* prototype); | 1793 Object* prototype); |
1794 | 1794 |
1795 // Total RegExp code ever generated | 1795 // Total RegExp code ever generated |
1796 double total_regexp_code_generated_; | 1796 double total_regexp_code_generated_; |
1797 | 1797 |
1798 GCTracer* tracer_; | 1798 GCTracer* tracer_; |
1799 | 1799 |
1800 | 1800 |
1801 // Initializes the number to string cache based on the max semispace size. | 1801 // Allocates a small number to string cache. |
1802 MUST_USE_RESULT MaybeObject* InitializeNumberStringCache(); | 1802 MUST_USE_RESULT MaybeObject* AllocateInitialNumberStringCache(); |
| 1803 // Creates and installs the full-sized number string cache. |
| 1804 void AllocateFullSizeNumberStringCache(); |
| 1805 // Get the length of the number to string cache based on the max semispace |
| 1806 // size. |
| 1807 int FullSizeNumberStringCacheLength(); |
1803 // Flush the number to string cache. | 1808 // Flush the number to string cache. |
1804 void FlushNumberStringCache(); | 1809 void FlushNumberStringCache(); |
1805 | 1810 |
1806 void UpdateSurvivalRateTrend(int start_new_space_size); | 1811 void UpdateSurvivalRateTrend(int start_new_space_size); |
1807 | 1812 |
1808 enum SurvivalRateTrend { INCREASING, STABLE, DECREASING, FLUCTUATING }; | 1813 enum SurvivalRateTrend { INCREASING, STABLE, DECREASING, FLUCTUATING }; |
1809 | 1814 |
1810 static const int kYoungSurvivalRateHighThreshold = 90; | 1815 static const int kYoungSurvivalRateHighThreshold = 90; |
1811 static const int kYoungSurvivalRateLowThreshold = 10; | 1816 static const int kYoungSurvivalRateLowThreshold = 10; |
1812 static const int kYoungSurvivalRateAllowedDeviation = 15; | 1817 static const int kYoungSurvivalRateAllowedDeviation = 15; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1889 return true; | 1894 return true; |
1890 } | 1895 } |
1891 return incremental_marking()->WorthActivating(); | 1896 return incremental_marking()->WorthActivating(); |
1892 } | 1897 } |
1893 | 1898 |
1894 // Returns true if no more GC work is left. | 1899 // Returns true if no more GC work is left. |
1895 bool IdleGlobalGC(); | 1900 bool IdleGlobalGC(); |
1896 | 1901 |
1897 static const int kInitialSymbolTableSize = 2048; | 1902 static const int kInitialSymbolTableSize = 2048; |
1898 static const int kInitialEvalCacheSize = 64; | 1903 static const int kInitialEvalCacheSize = 64; |
| 1904 static const int kInitialNumberStringCacheSize = 256; |
1899 | 1905 |
1900 // Maximum GC pause. | 1906 // Maximum GC pause. |
1901 int max_gc_pause_; | 1907 int max_gc_pause_; |
1902 | 1908 |
1903 // Maximum size of objects alive after GC. | 1909 // Maximum size of objects alive after GC. |
1904 intptr_t max_alive_after_gc_; | 1910 intptr_t max_alive_after_gc_; |
1905 | 1911 |
1906 // Minimal interval between two subsequent collections. | 1912 // Minimal interval between two subsequent collections. |
1907 int min_in_mutator_; | 1913 int min_in_mutator_; |
1908 | 1914 |
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2642 private: | 2648 private: |
2643 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2649 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2644 }; | 2650 }; |
2645 #endif // DEBUG || LIVE_OBJECT_LIST | 2651 #endif // DEBUG || LIVE_OBJECT_LIST |
2646 | 2652 |
2647 } } // namespace v8::internal | 2653 } } // namespace v8::internal |
2648 | 2654 |
2649 #undef HEAP | 2655 #undef HEAP |
2650 | 2656 |
2651 #endif // V8_HEAP_H_ | 2657 #endif // V8_HEAP_H_ |
OLD | NEW |