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

Unified Diff: src/heap.h

Issue 10534063: Reland r11425 "Re-enable optimization for hot functions that have optimization disabled due to many… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 6 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/deoptimizer.cc ('k') | src/heap.cc » ('j') | src/objects.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap.h
diff --git a/src/heap.h b/src/heap.h
index 55e7135609b94db45e63834f852a18a2dcc8b683..8f5064bf824a8232c524749b7213954240072154 100644
--- a/src/heap.h
+++ b/src/heap.h
@@ -1597,7 +1597,8 @@ class Heap {
}
void AgeInlineCaches() {
- ++global_ic_age_;
+ const int kMaxICAge = SharedFunctionInfo::kICAgeMask;
+ global_ic_age_ = global_ic_age_ < kMaxICAge ? global_ic_age_ + 1 : 0;
Jakob Kummerow 2012/06/11 12:13:59 I guess it doesn't really matter, but the followin
ulan 2012/06/11 16:07:31 Done. Left out ASSERT, since BitField<> guarantees
}
private:
« no previous file with comments | « src/deoptimizer.cc ('k') | src/heap.cc » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698