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

Unified Diff: src/heap.h

Issue 8341014: Age the number string cache so it does not keep strings Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/heap.cc » ('j') | src/heap.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/heap.cc » ('j') | src/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698