Index: src/arm/codegen-arm.cc |
diff --git a/src/arm/codegen-arm.cc b/src/arm/codegen-arm.cc |
index e80bac47dccb6aeef1e381716924a9986a7ad56a..06e92168b6f7c1a2e6966d0e8af408de9ef936a9 100644 |
--- a/src/arm/codegen-arm.cc |
+++ b/src/arm/codegen-arm.cc |
@@ -440,31 +440,23 @@ bool Code::IsYoungSequence(Isolate* isolate, byte* sequence) { |
return result; |
} |
+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 { |
- Address target_address = Memory::Address_at( |
- sequence + (kNoCodeAgeSequenceLength - Assembler::kInstrSize)); |
- Code* stub = GetCodeFromTargetAddress(target_address); |
- GetCodeAgeAndParity(stub, age, parity); |
- } |
+ Address target_address = Memory::Address_at( |
+ sequence + (kNoCodeAgeSequenceLength - Assembler::kInstrSize)); |
+ Code* stub = GetCodeFromTargetAddress(target_address); |
+ 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) { |
uint32_t young_length = isolate->code_aging_helper()->young_sequence_length(); |
if (age == kNoAgeCodeAge) { |
isolate->code_aging_helper()->CopyYoungSequenceTo(sequence); |
Assembler::FlushICache(isolate, sequence, young_length); |
} else { |
- Code* stub = GetCodeAgeStub(isolate, age, parity); |
+ Code* stub = GetCodeAgeStub(isolate, age); |
CodePatcher patcher(isolate, sequence, |
young_length / Assembler::kInstrSize); |
patcher.masm()->add(r0, pc, Operand(-8)); |
@@ -473,7 +465,6 @@ void Code::PatchPlatformCodeAge(Isolate* isolate, |
} |
} |
- |
} // namespace internal |
} // namespace v8 |