diff options
Diffstat (limited to 'deps/v8/src/ppc/assembler-ppc-inl.h')
-rw-r--r-- | deps/v8/src/ppc/assembler-ppc-inl.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/deps/v8/src/ppc/assembler-ppc-inl.h b/deps/v8/src/ppc/assembler-ppc-inl.h index 73c2e8dfe2..e3dbaa96c9 100644 --- a/deps/v8/src/ppc/assembler-ppc-inl.h +++ b/deps/v8/src/ppc/assembler-ppc-inl.h @@ -54,8 +54,8 @@ void RelocInfo::apply(intptr_t delta) { // absolute code pointer inside code object moves with the code object. if (IsInternalReference(rmode_)) { // Jump table entry - Address target = Memory::Address_at(pc_); - Memory::Address_at(pc_) = target + delta; + Address target = Memory<Address>(pc_); + Memory<Address>(pc_) = target + delta; } else { // mov sequence DCHECK(IsInternalReferenceEncoded(rmode_)); @@ -69,7 +69,7 @@ void RelocInfo::apply(intptr_t delta) { Address RelocInfo::target_internal_reference() { if (IsInternalReference(rmode_)) { // Jump table entry - return Memory::Address_at(pc_); + return Memory<Address>(pc_); } else { // mov sequence DCHECK(IsInternalReferenceEncoded(rmode_)); @@ -181,8 +181,7 @@ void RelocInfo::set_target_object(Heap* heap, HeapObject* target, reinterpret_cast<Address>(target), icache_flush_mode); if (write_barrier_mode == UPDATE_WRITE_BARRIER && host() != nullptr) { - heap->incremental_marking()->RecordWriteIntoCode(host(), this, target); - heap->RecordWriteIntoCode(host(), this, target); + WriteBarrierForCode(host(), this, target); } } @@ -220,11 +219,12 @@ Address RelocInfo::target_off_heap_target() { void RelocInfo::WipeOut() { DCHECK(IsEmbeddedObject(rmode_) || IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_) || IsExternalReference(rmode_) || - IsInternalReference(rmode_) || IsInternalReferenceEncoded(rmode_)); + IsInternalReference(rmode_) || IsInternalReferenceEncoded(rmode_) || + IsOffHeapTarget(rmode_)); if (IsInternalReference(rmode_)) { // Jump table entry - Memory::Address_at(pc_) = kNullAddress; - } else if (IsInternalReferenceEncoded(rmode_)) { + Memory<Address>(pc_) = kNullAddress; + } else if (IsInternalReferenceEncoded(rmode_) || IsOffHeapTarget(rmode_)) { // mov sequence // Currently used only by deserializer, no need to flush. Assembler::set_target_address_at(pc_, constant_pool_, kNullAddress, @@ -272,7 +272,7 @@ Address Assembler::target_address_at(Address pc, Address constant_pool) { if (FLAG_enable_embedded_constant_pool && constant_pool) { ConstantPoolEntry::Access access; if (IsConstantPoolLoadStart(pc, &access)) - return Memory::Address_at(target_constant_pool_address_at( + return Memory<Address>(target_constant_pool_address_at( pc, constant_pool, access, ConstantPoolEntry::INTPTR)); } @@ -441,7 +441,7 @@ void Assembler::deserialization_set_target_internal_reference_at( if (RelocInfo::IsInternalReferenceEncoded(mode)) { set_target_address_at(pc, kNullAddress, target, SKIP_ICACHE_FLUSH); } else { - Memory::Address_at(pc) = target; + Memory<Address>(pc) = target; } } @@ -453,7 +453,7 @@ void Assembler::set_target_address_at(Address pc, Address constant_pool, if (FLAG_enable_embedded_constant_pool && constant_pool) { ConstantPoolEntry::Access access; if (IsConstantPoolLoadStart(pc, &access)) { - Memory::Address_at(target_constant_pool_address_at( + Memory<Address>(target_constant_pool_address_at( pc, constant_pool, access, ConstantPoolEntry::INTPTR)) = target; return; } |