Index: src/arm64/codegen-arm64.cc |
diff --git a/src/arm64/codegen-arm64.cc b/src/arm64/codegen-arm64.cc |
index 3b5e0b50f8fe6d8d4292b063ff036fe9f1d2a98a..e6ddcfadb8dadfb221c93b293f9c7430fb4edfe2 100644 |
--- a/src/arm64/codegen-arm64.cc |
+++ b/src/arm64/codegen-arm64.cc |
@@ -72,30 +72,22 @@ bool Code::IsYoungSequence(Isolate* isolate, byte* sequence) { |
return MacroAssembler::IsYoungSequence(isolate, sequence); |
} |
+Code::Age Code::GetCodeAge(Isolate* isolate, byte* sequence) { |
+ if (IsYoungSequence(isolate, sequence)) return kNoAgeCodeAge; |
-void Code::GetCodeAgeAndParity(Isolate* isolate, byte* sequence, Age* age, |
- MarkingParity* parity) { |
- if (IsYoungSequence(isolate, sequence)) { |
- *age = kNoAgeCodeAge; |
- *parity = NO_MARKING_PARITY; |
- } else { |
- byte* target = sequence + kCodeAgeStubEntryOffset; |
- Code* stub = GetCodeFromTargetAddress(Memory::Address_at(target)); |
- GetCodeAgeAndParity(stub, age, parity); |
- } |
+ byte* target = sequence + kCodeAgeStubEntryOffset; |
+ Code* stub = GetCodeFromTargetAddress(Memory::Address_at(target)); |
+ return GetAgeOfCodeAgeStub(stub); |
} |
- |
-void Code::PatchPlatformCodeAge(Isolate* isolate, |
- byte* sequence, |
- Code::Age age, |
- MarkingParity parity) { |
+void Code::PatchPlatformCodeAge(Isolate* isolate, byte* sequence, |
+ Code::Age age) { |
PatchingAssembler patcher(isolate, sequence, |
kNoCodeAgeSequenceLength / kInstructionSize); |
if (age == kNoAgeCodeAge) { |
MacroAssembler::EmitFrameSetupForCodeAgePatching(&patcher); |
} else { |
- Code * stub = GetCodeAgeStub(isolate, age, parity); |
+ Code* stub = GetCodeAgeStub(isolate, age); |
MacroAssembler::EmitCodeAgeSequence(&patcher, stub); |
} |
} |