| Index: src/ppc/assembler-ppc-inl.h
|
| diff --git a/src/ppc/assembler-ppc-inl.h b/src/ppc/assembler-ppc-inl.h
|
| index 6de14de97ad39e76f8d6abb32432ef31bc0b0f2f..9ce247ad3829f088a751916572a76cebe10d9710 100644
|
| --- a/src/ppc/assembler-ppc-inl.h
|
| +++ b/src/ppc/assembler-ppc-inl.h
|
| @@ -61,7 +61,7 @@ void RelocInfo::apply(intptr_t delta) {
|
| // mov sequence
|
| DCHECK(IsInternalReferenceEncoded(rmode_));
|
| Address target = Assembler::target_address_at(pc_, host_);
|
| - Assembler::set_target_address_at(isolate_, pc_, host_, target + delta,
|
| + Assembler::set_target_address_at(nullptr, pc_, host_, target + delta,
|
| SKIP_ICACHE_FLUSH);
|
| }
|
| }
|
| @@ -191,13 +191,12 @@ void RelocInfo::set_target_object(HeapObject* target,
|
| WriteBarrierMode write_barrier_mode,
|
| ICacheFlushMode icache_flush_mode) {
|
| DCHECK(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT);
|
| - Assembler::set_target_address_at(isolate_, pc_, host_,
|
| + Assembler::set_target_address_at(target->GetIsolate(), pc_, host_,
|
| reinterpret_cast<Address>(target),
|
| icache_flush_mode);
|
| - if (write_barrier_mode == UPDATE_WRITE_BARRIER && host() != NULL &&
|
| - target->IsHeapObject()) {
|
| - host()->GetHeap()->incremental_marking()->RecordWriteIntoCode(
|
| - host(), this, HeapObject::cast(target));
|
| + if (write_barrier_mode == UPDATE_WRITE_BARRIER && host() != NULL) {
|
| + host()->GetHeap()->incremental_marking()->RecordWriteIntoCode(host(), this,
|
| + target);
|
| host()->GetHeap()->RecordWriteIntoCode(host(), this, target);
|
| }
|
| }
|
| @@ -214,13 +213,12 @@ Address RelocInfo::target_runtime_entry(Assembler* origin) {
|
| return target_address();
|
| }
|
|
|
| -
|
| -void RelocInfo::set_target_runtime_entry(Address target,
|
| +void RelocInfo::set_target_runtime_entry(Isolate* isolate, Address target,
|
| WriteBarrierMode write_barrier_mode,
|
| ICacheFlushMode icache_flush_mode) {
|
| DCHECK(IsRuntimeEntry(rmode_));
|
| if (target_address() != target)
|
| - set_target_address(target, write_barrier_mode, icache_flush_mode);
|
| + set_target_address(isolate, target, write_barrier_mode, icache_flush_mode);
|
| }
|
|
|
|
|
| @@ -281,9 +279,9 @@ Code* RelocInfo::code_age_stub() {
|
| void RelocInfo::set_code_age_stub(Code* stub,
|
| ICacheFlushMode icache_flush_mode) {
|
| DCHECK(rmode_ == RelocInfo::CODE_AGE_SEQUENCE);
|
| - Assembler::set_target_address_at(isolate_, pc_ + kCodeAgingTargetDelta, host_,
|
| - stub->instruction_start(),
|
| - icache_flush_mode);
|
| + Assembler::set_target_address_at(
|
| + stub->GetIsolate(), pc_ + kCodeAgingTargetDelta, host_,
|
| + stub->instruction_start(), icache_flush_mode);
|
| }
|
|
|
|
|
| @@ -292,10 +290,9 @@ Address RelocInfo::debug_call_address() {
|
| return Assembler::target_address_at(pc_, host_);
|
| }
|
|
|
| -
|
| -void RelocInfo::set_debug_call_address(Address target) {
|
| +void RelocInfo::set_debug_call_address(Isolate* isolate, Address target) {
|
| DCHECK(IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence());
|
| - Assembler::set_target_address_at(isolate_, pc_, host_, target);
|
| + Assembler::set_target_address_at(isolate, pc_, host_, target);
|
| if (host() != NULL) {
|
| Code* target_code = Code::GetCodeFromTargetAddress(target);
|
| host()->GetHeap()->incremental_marking()->RecordWriteIntoCode(host(), this,
|
| @@ -303,8 +300,7 @@ void RelocInfo::set_debug_call_address(Address target) {
|
| }
|
| }
|
|
|
| -
|
| -void RelocInfo::WipeOut() {
|
| +void RelocInfo::WipeOut(Isolate* isolate) {
|
| DCHECK(IsEmbeddedObject(rmode_) || IsCodeTarget(rmode_) ||
|
| IsRuntimeEntry(rmode_) || IsExternalReference(rmode_) ||
|
| IsInternalReference(rmode_) || IsInternalReferenceEncoded(rmode_));
|
| @@ -314,10 +310,10 @@ void RelocInfo::WipeOut() {
|
| } else if (IsInternalReferenceEncoded(rmode_)) {
|
| // mov sequence
|
| // Currently used only by deserializer, no need to flush.
|
| - Assembler::set_target_address_at(isolate_, pc_, host_, NULL,
|
| + Assembler::set_target_address_at(isolate, pc_, host_, NULL,
|
| SKIP_ICACHE_FLUSH);
|
| } else {
|
| - Assembler::set_target_address_at(isolate_, pc_, host_, NULL);
|
| + Assembler::set_target_address_at(isolate, pc_, host_, NULL);
|
| }
|
| }
|
|
|
| @@ -620,6 +616,8 @@ void Assembler::deserialization_set_target_internal_reference_at(
|
| void Assembler::set_target_address_at(Isolate* isolate, Address pc,
|
| Address constant_pool, Address target,
|
| ICacheFlushMode icache_flush_mode) {
|
| + DCHECK_IMPLIES(isolate == nullptr, icache_flush_mode == SKIP_ICACHE_FLUSH);
|
| +
|
| if (FLAG_enable_embedded_constant_pool && constant_pool) {
|
| ConstantPoolEntry::Access access;
|
| if (IsConstantPoolLoadStart(pc, &access)) {
|
|
|