Lines Matching refs:Age
13755 // NextAge defines the Code::Age state transitions during a GC cycle.
13756 static Code::Age NextAge(Code::Age age) {
13757 switch (age) {
13760 case Code::kLastCodeAge: // Clamp at last Code::Age value.
13761 return age;
13763 // Pre-age code that has only been executed once.
13764 return static_cast<Code::Age>(Code::kPreAgedCodeAge + 1);
13766 return static_cast<Code::Age>(age + 1); // Default case: Increase age.
13772 static bool IsOldAge(Code::Age age) {
13773 return age >= Code::kIsOldCodeAge || age == Code::kNotExecutedCodeAge;
13800 Age age;
13803 GetCodeAgeAndParity(isolate, sequence, &age, &code_parity);
13804 Age next_age = NextAge(age);
13805 if (age != next_age && code_parity != current_parity) {
13827 Code::Age Code::GetAge() {
13832 Age age;
13834 GetCodeAgeAndParity(GetIsolate(), sequence, &age, &parity);
13835 return age;
13839 void Code::GetCodeAgeAndParity(Code* code, Age* age,
13844 #define HANDLE_CODE_AGE(AGE) \
13845 stub = *builtins->Make##AGE##CodeYoungAgainEvenMarking(); \
13847 *age = k##AGE##CodeAge; \
13851 stub = *builtins->Make##AGE##CodeYoungAgainOddMarking(); \
13853 *age = k##AGE##CodeAge; \
13861 *age = kNotExecutedCodeAge;
13867 *age = kExecutedOnceCodeAge;
13873 *age = kToBeExecutedOnceCodeAge;
13881 Code* Code::GetCodeAgeStub(Isolate* isolate, Age age, MarkingParity parity) {
13883 switch (age) {
13884 #define HANDLE_CODE_AGE(AGE) \
13885 case k##AGE##CodeAge: { \
13887 ? *builtins->Make##AGE##CodeYoungAgainEvenMarking() \
13888 : *builtins->Make##AGE##CodeYoungAgainOddMarking(); \
17189 void CompilationCacheTable::Age() {