Chromium Code Reviews| Index: src/heap.h |
| =================================================================== |
| --- src/heap.h (revision 10495) |
| +++ src/heap.h (working copy) |
| @@ -1796,8 +1796,12 @@ |
| GCTracer* tracer_; |
| + // Allocates a small number to string cache. |
| + MUST_USE_RESULT MaybeObject* AllocateInitialNumberStringCache(); |
| + // Creates and installs the full-sized number string cache. |
| + void AllocateFullSizeNumberStringCache(); |
| + int FullSizeNumberStringCacheLength(); |
| // 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.
|
| - MUST_USE_RESULT MaybeObject* InitializeNumberStringCache(); |
| // Flush the number to string cache. |
| void FlushNumberStringCache(); |
| @@ -1882,6 +1886,7 @@ |
| static const int kInitialSymbolTableSize = 2048; |
| static const int kInitialEvalCacheSize = 64; |
| + static const int kInitialNumberStringCacheSize = 256; |
| // Maximum GC pause. |
| int max_gc_pause_; |