| Index: src/arm/assembler-arm-inl.h
|
| diff --git a/src/arm/assembler-arm-inl.h b/src/arm/assembler-arm-inl.h
|
| index 0be6f921e40684ccb584c05c76bc3a28bfb5a7c1..f5076c26ce14e1dd35bb1d94b6cf798479c52d9c 100644
|
| --- a/src/arm/assembler-arm-inl.h
|
| +++ b/src/arm/assembler-arm-inl.h
|
| @@ -121,7 +121,7 @@ Address RelocInfo::target_address_address() {
|
| if (FLAG_enable_ool_constant_pool ||
|
| Assembler::IsMovW(Memory::int32_at(pc_))) {
|
| // We return the PC for ool constant pool since this function is used by the
|
| - // serializerer and expects the address to reside within the code object.
|
| + // serializer and expects the address to reside within the code object.
|
| return reinterpret_cast<Address>(pc_);
|
| } else {
|
| DCHECK(Assembler::IsLdrPcImmediateOffset(Memory::int32_at(pc_)));
|
| @@ -196,9 +196,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_);
|
| }
|
|
|
|
|
| @@ -310,11 +310,14 @@ Object** RelocInfo::call_object_address() {
|
|
|
|
|
| void RelocInfo::WipeOut() {
|
| - DCHECK(IsEmbeddedObject(rmode_) ||
|
| - IsCodeTarget(rmode_) ||
|
| - IsRuntimeEntry(rmode_) ||
|
| - IsExternalReference(rmode_));
|
| - Assembler::set_target_address_at(pc_, host_, NULL);
|
| + DCHECK(IsEmbeddedObject(rmode_) || IsCodeTarget(rmode_) ||
|
| + IsRuntimeEntry(rmode_) || IsExternalReference(rmode_) ||
|
| + IsInternalReference(rmode_));
|
| + if (IsInternalReference(rmode_)) {
|
| + Memory::Address_at(pc_) = NULL;
|
| + } else {
|
| + Assembler::set_target_address_at(pc_, host_, NULL);
|
| + }
|
| }
|
|
|
|
|
| @@ -345,6 +348,8 @@ void RelocInfo::Visit(Isolate* isolate, ObjectVisitor* visitor) {
|
| visitor->VisitCell(this);
|
| } else if (mode == RelocInfo::EXTERNAL_REFERENCE) {
|
| visitor->VisitExternalReference(this);
|
| + } else if (mode == RelocInfo::INTERNAL_REFERENCE) {
|
| + visitor->VisitInternalReference(this);
|
| } else if (RelocInfo::IsCodeAgeSequence(mode)) {
|
| visitor->VisitCodeAgeSequence(this);
|
| } else if (((RelocInfo::IsJSReturn(mode) &&
|
| @@ -370,6 +375,8 @@ void RelocInfo::Visit(Heap* heap) {
|
| StaticVisitor::VisitCell(heap, this);
|
| } else if (mode == RelocInfo::EXTERNAL_REFERENCE) {
|
| StaticVisitor::VisitExternalReference(this);
|
| + } 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() &&
|
| @@ -546,6 +553,12 @@ void Assembler::deserialization_set_special_target_at(
|
| }
|
|
|
|
|
| +void Assembler::deserialization_set_target_internal_reference_at(
|
| + Address pc, Address target) {
|
| + Memory::Address_at(pc) = target;
|
| +}
|
| +
|
| +
|
| bool Assembler::is_constant_pool_load(Address pc) {
|
| if (CpuFeatures::IsSupported(ARMv7)) {
|
| return !Assembler::IsMovW(Memory::int32_at(pc)) ||
|
|
|