Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 6512c607799dd34fd71e69aa8e656681ff3f5e42..9651b91c4556ab6cede3c0227ffd6f3c22ae45f4 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -10299,6 +10299,18 @@ byte* Code::FindCodeAgeSequence() { |
} |
+int Code::GetAge() { |
+ byte* sequence = FindCodeAgeSequence(); |
+ if (sequence == NULL) { |
+ return Code::kNoAge; |
+ } |
+ Age age; |
+ MarkingParity parity; |
+ GetCodeAgeAndParity(sequence, &age, &parity); |
+ return age; |
+} |
+ |
+ |
void Code::GetCodeAgeAndParity(Code* code, Age* age, |
MarkingParity* parity) { |
Isolate* isolate = Isolate::Current(); |