Index: src/mips64/assembler-mips64-inl.h |
diff --git a/src/mips64/assembler-mips64-inl.h b/src/mips64/assembler-mips64-inl.h |
index bfeb3002eb631e169302d7575d62c3b5432120ad..599c2b54490527916373ac689db3cc9038e5ad49 100644 |
--- a/src/mips64/assembler-mips64-inl.h |
+++ b/src/mips64/assembler-mips64-inl.h |
@@ -117,7 +117,7 @@ int FPURegister::ToAllocationIndex(FPURegister reg) { |
// ----------------------------------------------------------------------------- |
// RelocInfo. |
-void RelocInfo::apply(intptr_t delta, ICacheFlushMode icache_flush_mode) { |
+void RelocInfo::apply(intptr_t delta) { |
if (IsInternalReference(rmode_) || IsInternalReferenceEncoded(rmode_)) { |
// Absolute code pointer inside code object moves with the code object. |
byte* p = reinterpret_cast<byte*>(pc_); |
@@ -189,11 +189,6 @@ Address Assembler::target_address_from_return_address(Address pc) { |
} |
-Address Assembler::break_address_from_return_address(Address pc) { |
- return pc - Assembler::kPatchDebugBreakSlotReturnOffset; |
-} |
- |
- |
void Assembler::set_target_internal_reference_encoded_at(Address pc, |
Address target) { |
// Encoded internal references are j/jal instructions. |
@@ -349,19 +344,17 @@ void RelocInfo::set_code_age_stub(Code* stub, |
} |
-Address RelocInfo::call_address() { |
- DCHECK((IsJSReturn(rmode()) && IsPatchedReturnSequence()) || |
- (IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence())); |
+Address RelocInfo::debug_call_address() { |
// The pc_ offset of 0 assumes mips patched return sequence per |
// debug-mips.cc BreakLocation::SetDebugBreakAtReturn(), or |
// debug break slot per BreakLocation::SetDebugBreakAtSlot(). |
+ DCHECK(IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence()); |
return Assembler::target_address_at(pc_, host_); |
} |
-void RelocInfo::set_call_address(Address target) { |
- DCHECK((IsJSReturn(rmode()) && IsPatchedReturnSequence()) || |
- (IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence())); |
+void RelocInfo::set_debug_call_address(Address target) { |
+ DCHECK(IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence()); |
// The pc_ offset of 0 assumes mips patched return sequence per |
// debug-mips.cc BreakLocation::SetDebugBreakAtReturn(), or |
// debug break slot per BreakLocation::SetDebugBreakAtSlot(). |
paul.l...
2015/07/14 19:15:59
comment nit: remove ref to removed function SetDeb
balazs.kilvady
2015/07/14 19:30:22
Done.
|
@@ -374,23 +367,6 @@ void RelocInfo::set_call_address(Address target) { |
} |
-Object* RelocInfo::call_object() { |
- return *call_object_address(); |
-} |
- |
- |
-Object** RelocInfo::call_object_address() { |
- DCHECK((IsJSReturn(rmode()) && IsPatchedReturnSequence()) || |
- (IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence())); |
- return reinterpret_cast<Object**>(pc_ + 6 * Assembler::kInstrSize); |
-} |
- |
- |
-void RelocInfo::set_call_object(Object* target) { |
- *call_object_address() = target; |
-} |
- |
- |
void RelocInfo::WipeOut() { |
DCHECK(IsEmbeddedObject(rmode_) || IsCodeTarget(rmode_) || |
IsRuntimeEntry(rmode_) || IsExternalReference(rmode_) || |
@@ -442,10 +418,8 @@ void RelocInfo::Visit(Isolate* isolate, ObjectVisitor* visitor) { |
visitor->VisitInternalReference(this); |
} else if (RelocInfo::IsCodeAgeSequence(mode)) { |
visitor->VisitCodeAgeSequence(this); |
- } else if (((RelocInfo::IsJSReturn(mode) && |
- IsPatchedReturnSequence()) || |
- (RelocInfo::IsDebugBreakSlot(mode) && |
- IsPatchedDebugBreakSlotSequence())) && |
+ } else if (RelocInfo::IsDebugBreakSlot(mode) && |
+ IsPatchedDebugBreakSlotSequence() && |
isolate->debug()->has_break_points()) { |
visitor->VisitDebugTarget(this); |
} else if (RelocInfo::IsRuntimeEntry(mode)) { |
@@ -471,10 +445,8 @@ void RelocInfo::Visit(Heap* heap) { |
} else if (RelocInfo::IsCodeAgeSequence(mode)) { |
StaticVisitor::VisitCodeAgeSequence(heap, this); |
} else if (heap->isolate()->debug()->has_break_points() && |
- ((RelocInfo::IsJSReturn(mode) && |
- IsPatchedReturnSequence()) || |
- (RelocInfo::IsDebugBreakSlot(mode) && |
- IsPatchedDebugBreakSlotSequence()))) { |
+ RelocInfo::IsDebugBreakSlot(mode) && |
+ IsPatchedDebugBreakSlotSequence()) { |
StaticVisitor::VisitDebugTarget(heap, this); |
} else if (RelocInfo::IsRuntimeEntry(mode)) { |
StaticVisitor::VisitRuntimeEntry(this); |