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 1778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1789 JSFunction* function, | 1789 JSFunction* function, |
1790 SharedFunctionInfo* shared, | 1790 SharedFunctionInfo* shared, |
1791 Object* prototype); | 1791 Object* prototype); |
1792 | 1792 |
1793 // Total RegExp code ever generated | 1793 // Total RegExp code ever generated |
1794 double total_regexp_code_generated_; | 1794 double total_regexp_code_generated_; |
1795 | 1795 |
1796 GCTracer* tracer_; | 1796 GCTracer* tracer_; |
1797 | 1797 |
1798 | 1798 |
1799 // Allocates a small number to string cache. | |
1800 MUST_USE_RESULT MaybeObject* AllocateInitialNumberStringCache(); | |
1801 // Creates and installs the full-sized number string cache. | |
1802 void AllocateFullSizeNumberStringCache(); | |
1803 int FullSizeNumberStringCacheLength(); | |
1799 // Initializes the number to string cache based on the max semispace size. | 1804 // Initializes the number to string cache based on the max semispace size. |
Michael Starzinger
2012/01/25 13:00:56
This comment line should either be moved up two li
Erik Corry
2012/01/25 14:37:26
Done.
| |
1800 MUST_USE_RESULT MaybeObject* InitializeNumberStringCache(); | |
1801 // Flush the number to string cache. | 1805 // Flush the number to string cache. |
1802 void FlushNumberStringCache(); | 1806 void FlushNumberStringCache(); |
1803 | 1807 |
1804 void UpdateSurvivalRateTrend(int start_new_space_size); | 1808 void UpdateSurvivalRateTrend(int start_new_space_size); |
1805 | 1809 |
1806 enum SurvivalRateTrend { INCREASING, STABLE, DECREASING, FLUCTUATING }; | 1810 enum SurvivalRateTrend { INCREASING, STABLE, DECREASING, FLUCTUATING }; |
1807 | 1811 |
1808 static const int kYoungSurvivalRateThreshold = 90; | 1812 static const int kYoungSurvivalRateThreshold = 90; |
1809 static const int kYoungSurvivalRateAllowedDeviation = 15; | 1813 static const int kYoungSurvivalRateAllowedDeviation = 15; |
1810 | 1814 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1875 return true; | 1879 return true; |
1876 } | 1880 } |
1877 return incremental_marking()->WorthActivating(); | 1881 return incremental_marking()->WorthActivating(); |
1878 } | 1882 } |
1879 | 1883 |
1880 // Returns true if no more GC work is left. | 1884 // Returns true if no more GC work is left. |
1881 bool IdleGlobalGC(); | 1885 bool IdleGlobalGC(); |
1882 | 1886 |
1883 static const int kInitialSymbolTableSize = 2048; | 1887 static const int kInitialSymbolTableSize = 2048; |
1884 static const int kInitialEvalCacheSize = 64; | 1888 static const int kInitialEvalCacheSize = 64; |
1889 static const int kInitialNumberStringCacheSize = 256; | |
1885 | 1890 |
1886 // Maximum GC pause. | 1891 // Maximum GC pause. |
1887 int max_gc_pause_; | 1892 int max_gc_pause_; |
1888 | 1893 |
1889 // Maximum size of objects alive after GC. | 1894 // Maximum size of objects alive after GC. |
1890 intptr_t max_alive_after_gc_; | 1895 intptr_t max_alive_after_gc_; |
1891 | 1896 |
1892 // Minimal interval between two subsequent collections. | 1897 // Minimal interval between two subsequent collections. |
1893 int min_in_mutator_; | 1898 int min_in_mutator_; |
1894 | 1899 |
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2628 private: | 2633 private: |
2629 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2634 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2630 }; | 2635 }; |
2631 #endif // DEBUG || LIVE_OBJECT_LIST | 2636 #endif // DEBUG || LIVE_OBJECT_LIST |
2632 | 2637 |
2633 } } // namespace v8::internal | 2638 } } // namespace v8::internal |
2634 | 2639 |
2635 #undef HEAP | 2640 #undef HEAP |
2636 | 2641 |
2637 #endif // V8_HEAP_H_ | 2642 #endif // V8_HEAP_H_ |
OLD | NEW |