Index: src/x64/assembler-x64-inl.h |
diff --git a/src/x64/assembler-x64-inl.h b/src/x64/assembler-x64-inl.h |
index e8f90c6aca5c39c2f7983a5c17be787e600886fd..de30c0a3b339e6fef78920f16aa74ffe188edee8 100644 |
--- a/src/x64/assembler-x64-inl.h |
+++ b/src/x64/assembler-x64-inl.h |
@@ -265,6 +265,12 @@ void Assembler::set_target_address_at(Address pc, |
} |
+void Assembler::deserialization_set_target_internal_reference_at( |
+ Address pc, Address target) { |
+ Memory::Address_at(pc) = target; |
+} |
+ |
+ |
Address Assembler::target_address_from_return_address(Address pc) { |
return pc - kCallTargetAddressOffset; |
} |
@@ -378,9 +384,9 @@ Address RelocInfo::target_internal_reference() { |
} |
-void RelocInfo::set_target_internal_reference(Address target) { |
+Address RelocInfo::target_internal_reference_address() { |
DCHECK(rmode_ == INTERNAL_REFERENCE); |
- Memory::Address_at(pc_) = target; |
+ return reinterpret_cast<Address>(pc_); |
} |
@@ -450,7 +456,8 @@ void RelocInfo::set_target_cell(Cell* cell, |
void RelocInfo::WipeOut() { |
- if (IsEmbeddedObject(rmode_) || IsExternalReference(rmode_)) { |
+ if (IsEmbeddedObject(rmode_) || IsExternalReference(rmode_) || |
+ IsInternalReference(rmode_)) { |
Memory::Address_at(pc_) = NULL; |
} else if (IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_)) { |
// Effectively write zero into the relocation. |
@@ -554,7 +561,8 @@ void RelocInfo::Visit(Isolate* isolate, ObjectVisitor* visitor) { |
visitor->VisitCell(this); |
} else if (mode == RelocInfo::EXTERNAL_REFERENCE) { |
visitor->VisitExternalReference(this); |
- CpuFeatures::FlushICache(pc_, sizeof(Address)); |
+ } else if (mode == RelocInfo::INTERNAL_REFERENCE) { |
+ visitor->VisitInternalReference(this); |
} else if (RelocInfo::IsCodeAgeSequence(mode)) { |
visitor->VisitCodeAgeSequence(this); |
} else if (((RelocInfo::IsJSReturn(mode) && |
@@ -581,7 +589,8 @@ void RelocInfo::Visit(Heap* heap) { |
StaticVisitor::VisitCell(heap, this); |
} else if (mode == RelocInfo::EXTERNAL_REFERENCE) { |
StaticVisitor::VisitExternalReference(this); |
- CpuFeatures::FlushICache(pc_, sizeof(Address)); |
+ } else if (mode == RelocInfo::INTERNAL_REFERENCE) { |
+ StaticVisitor::VisitInternalReference(this); |
} else if (RelocInfo::IsCodeAgeSequence(mode)) { |
StaticVisitor::VisitCodeAgeSequence(heap, this); |
} else if (heap->isolate()->debug()->has_break_points() && |