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: |