Index: src/x87/assembler-x87-inl.h |
diff --git a/src/x87/assembler-x87-inl.h b/src/x87/assembler-x87-inl.h |
index 95cc26e9cbcfb4180e57d0ca5a06293063010f6d..800ead2803c2a430f488133e2fd088d2a8b111c2 100644 |
--- a/src/x87/assembler-x87-inl.h |
+++ b/src/x87/assembler-x87-inl.h |
@@ -167,9 +167,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_); |
} |
@@ -281,7 +281,8 @@ Object** RelocInfo::call_object_address() { |
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. |
@@ -313,7 +314,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) && |
@@ -340,7 +342,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() && |
@@ -529,6 +532,12 @@ void Assembler::emit_near_disp(Label* L) { |
} |
+void Assembler::deserialization_set_target_internal_reference_at( |
+ Address pc, Address target, RelocInfo::Mode mode) { |
+ Memory::Address_at(pc) = target; |
+} |
+ |
+ |
void Operand::set_modrm(int mod, Register rm) { |
DCHECK((mod & -4) == 0); |
buf_[0] = mod << 6 | rm.code(); |