Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: src/heap.h

Issue 9113060: Revert 10502 (smaller number string cache) due to test failures. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/heap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 // Allocates a small number to string cache. 1801 // Initializes the number to string cache based on the max semispace size.
1802 MUST_USE_RESULT MaybeObject* AllocateInitialNumberStringCache(); 1802 MUST_USE_RESULT MaybeObject* InitializeNumberStringCache();
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();
1808 // Flush the number to string cache. 1803 // Flush the number to string cache.
1809 void FlushNumberStringCache(); 1804 void FlushNumberStringCache();
1810 1805
1811 void UpdateSurvivalRateTrend(int start_new_space_size); 1806 void UpdateSurvivalRateTrend(int start_new_space_size);
1812 1807
1813 enum SurvivalRateTrend { INCREASING, STABLE, DECREASING, FLUCTUATING }; 1808 enum SurvivalRateTrend { INCREASING, STABLE, DECREASING, FLUCTUATING };
1814 1809
1815 static const int kYoungSurvivalRateHighThreshold = 90; 1810 static const int kYoungSurvivalRateHighThreshold = 90;
1816 static const int kYoungSurvivalRateLowThreshold = 10; 1811 static const int kYoungSurvivalRateLowThreshold = 10;
1817 static const int kYoungSurvivalRateAllowedDeviation = 15; 1812 static const int kYoungSurvivalRateAllowedDeviation = 15;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
1894 return true; 1889 return true;
1895 } 1890 }
1896 return incremental_marking()->WorthActivating(); 1891 return incremental_marking()->WorthActivating();
1897 } 1892 }
1898 1893
1899 // Returns true if no more GC work is left. 1894 // Returns true if no more GC work is left.
1900 bool IdleGlobalGC(); 1895 bool IdleGlobalGC();
1901 1896
1902 static const int kInitialSymbolTableSize = 2048; 1897 static const int kInitialSymbolTableSize = 2048;
1903 static const int kInitialEvalCacheSize = 64; 1898 static const int kInitialEvalCacheSize = 64;
1904 static const int kInitialNumberStringCacheSize = 256;
1905 1899
1906 // Maximum GC pause. 1900 // Maximum GC pause.
1907 int max_gc_pause_; 1901 int max_gc_pause_;
1908 1902
1909 // Maximum size of objects alive after GC. 1903 // Maximum size of objects alive after GC.
1910 intptr_t max_alive_after_gc_; 1904 intptr_t max_alive_after_gc_;
1911 1905
1912 // Minimal interval between two subsequent collections. 1906 // Minimal interval between two subsequent collections.
1913 int min_in_mutator_; 1907 int min_in_mutator_;
1914 1908
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
2648 private: 2642 private:
2649 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2643 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2650 }; 2644 };
2651 #endif // DEBUG || LIVE_OBJECT_LIST 2645 #endif // DEBUG || LIVE_OBJECT_LIST
2652 2646
2653 } } // namespace v8::internal 2647 } } // namespace v8::internal
2654 2648
2655 #undef HEAP 2649 #undef HEAP
2656 2650
2657 #endif // V8_HEAP_H_ 2651 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698