Index: src/ppc/codegen-ppc.cc |
diff --git a/src/ppc/codegen-ppc.cc b/src/ppc/codegen-ppc.cc |
index 48f0c75bc166a49d5631fc36f53a143862d9b3a8..bb365b4e632b56ad25729d71f7e55ca3b5b2ffae 100644 |
--- a/src/ppc/codegen-ppc.cc |
+++ b/src/ppc/codegen-ppc.cc |
@@ -195,31 +195,25 @@ 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 { |
- Code* code = NULL; |
- Address target_address = |
- Assembler::target_address_at(sequence + kCodeAgingTargetDelta, code); |
- Code* stub = GetCodeFromTargetAddress(target_address); |
- GetCodeAgeAndParity(stub, age, parity); |
- } |
+Code::Age Code::GetCodeAge(Isolate* isolate, byte* sequence) { |
+ if (IsYoungSequence(isolate, sequence)) return kNoAgeCodeAge; |
+ |
+ Code* code = NULL; |
+ Address target_address = |
+ Assembler::target_address_at(sequence + kCodeAgingTargetDelta, code); |
+ 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 { |
// FIXED_SEQUENCE |
- Code* stub = GetCodeAgeStub(isolate, age, parity); |
+ Code* stub = GetCodeAgeStub(isolate, age); |
CodePatcher patcher(isolate, sequence, |
young_length / Assembler::kInstrSize); |
Assembler::BlockTrampolinePoolScope block_trampoline_pool(patcher.masm()); |