Index: src/x87/codegen-x87.cc |
diff --git a/src/x87/codegen-x87.cc b/src/x87/codegen-x87.cc |
index 3069db3b22b3a8d36dd0fe2f547e91bab13e7ac2..a2bba1dcd7c565c0544a8f6d6a3903fddefb1d06 100644 |
--- a/src/x87/codegen-x87.cc |
+++ b/src/x87/codegen-x87.cc |
@@ -344,32 +344,24 @@ bool Code::IsYoungSequence(Isolate* isolate, byte* sequence) { |
return result; |
} |
- |
-void Code::GetCodeAgeAndParity(Isolate* isolate, byte* sequence, Age* age, |
- MarkingParity* parity) { |
- if (IsYoungSequence(isolate, sequence)) { |
- *age = kNoAgeCodeAge; |
- *parity = NO_MARKING_PARITY; |
- } else { |
- sequence++; // Skip the kCallOpcode byte |
- Address target_address = sequence + *reinterpret_cast<int*>(sequence) + |
- Assembler::kCallTargetAddressOffset; |
- Code* stub = GetCodeFromTargetAddress(target_address); |
- GetCodeAgeAndParity(stub, age, parity); |
- } |
+Code::Age Code::GetCodeAge(Isolate* isolate, byte* sequence) { |
+ if (IsYoungSequence(isolate, sequence)) return kNoAgeCodeAge; |
+ |
+ sequence++; // Skip the kCallOpcode byte |
+ Address target_address = sequence + *reinterpret_cast<int*>(sequence) + |
+ Assembler::kCallTargetAddressOffset; |
+ 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); |
patcher.masm()->call(stub->instruction_start(), RelocInfo::NONE32); |
} |