Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index e8c985048455e406c77c6b4c6814261f2cb7ab41..47d94dd2dfc780e9c74c86d75c3bffca380d70e9 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -5317,8 +5317,9 @@ class Code: public HeapObject { |
kNoAgeCodeAge = 0, |
CODE_AGE_LIST(DECLARE_CODE_AGE_ENUM) |
kAfterLastCodeAge, |
+ kFirstCodeAge = kNotExecutedCodeAge, |
kLastCodeAge = kAfterLastCodeAge - 1, |
- kCodeAgeCount = kAfterLastCodeAge - 1, |
+ kCodeAgeCount = kAfterLastCodeAge - kNotExecutedCodeAge - 1, |
kIsOldCodeAge = kSexagenarianCodeAge, |
kPreAgedCodeAge = kIsOldCodeAge - 1 |
}; |
@@ -5334,6 +5335,9 @@ class Code: public HeapObject { |
static bool IsYoungSequence(byte* sequence); |
bool IsOld(); |
Age GetAge(); |
+ // Gets the raw code age, including psuedo code-age values such as |
+ // kNotExecutedCodeAge and kExecutedOnceCodeAge. |
+ Age GetRawAge(); |
static inline Code* GetPreAgedCodeAgeStub(Isolate* isolate) { |
return GetCodeAgeStub(isolate, kNotExecutedCodeAge, NO_MARKING_PARITY); |
} |