Chromium Code Reviews| Index: src/heap.h |
| =================================================================== |
| --- src/heap.h (revision 9686) |
| +++ src/heap.h (working copy) |
| @@ -1419,6 +1419,15 @@ |
| // around a GC). |
| inline void CompletelyClearInstanceofCache(); |
| + // Constants for the NumberStringCache. |
| + static const int kNSCUnusedAge = -1; |
|
Vyacheslav Egorov (Chromium)
2011/10/18 15:30:39
I don't think abbreviation NSC is good.
|
| + static const int kNSCMinAge = 0; |
| + static const int kNSCMaxAge = 2; |
| + static const int kNSCNumberOffset = 0; |
| + static const int kNSCStringOffset = 1; |
| + static const int kNSCAgeOffset = 2; |
| + static const int kNSCSlotsPerEntry = 3; |
| + |
| private: |
| Heap(); |
| @@ -1688,7 +1697,7 @@ |
| // Initializes the number to string cache based on the max semispace size. |
| MUST_USE_RESULT MaybeObject* InitializeNumberStringCache(); |
| // Flush the number to string cache. |
| - void FlushNumberStringCache(); |
| + void AgeNumberStringCache(); |
| void UpdateSurvivalRateTrend(int start_new_space_size); |