| Index: src/ppc/assembler-ppc-inl.h
|
| diff --git a/src/ppc/assembler-ppc-inl.h b/src/ppc/assembler-ppc-inl.h
|
| index 4f6a35d66e87fa5dcdbc556475bbddc11ad13ca9..b384d3f4f9683f5bdff9c00bd7d2784277b82c9b 100644
|
| --- a/src/ppc/assembler-ppc-inl.h
|
| +++ b/src/ppc/assembler-ppc-inl.h
|
| @@ -60,7 +60,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(pc_, host_, target + delta,
|
| + Assembler::set_target_address_at(isolate_, pc_, host_, target + delta,
|
| SKIP_ICACHE_FLUSH);
|
| }
|
| }
|
| @@ -136,7 +136,8 @@ void RelocInfo::set_target_address(Address target,
|
| WriteBarrierMode write_barrier_mode,
|
| ICacheFlushMode icache_flush_mode) {
|
| DCHECK(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_));
|
| - Assembler::set_target_address_at(pc_, host_, target, icache_flush_mode);
|
| + Assembler::set_target_address_at(isolate_, pc_, host_, target,
|
| + icache_flush_mode);
|
| if (write_barrier_mode == UPDATE_WRITE_BARRIER && host() != NULL &&
|
| IsCodeTarget(rmode_)) {
|
| Object* target_code = Code::GetCodeFromTargetAddress(target);
|
| @@ -196,8 +197,9 @@ void RelocInfo::set_target_object(Object* target,
|
| WriteBarrierMode write_barrier_mode,
|
| ICacheFlushMode icache_flush_mode) {
|
| DCHECK(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT);
|
| - Assembler::set_target_address_at(
|
| - pc_, host_, reinterpret_cast<Address>(target), icache_flush_mode);
|
| + Assembler::set_target_address_at(isolate_, pc_, host_,
|
| + reinterpret_cast<Address>(target),
|
| + icache_flush_mode);
|
| if (write_barrier_mode == UPDATE_WRITE_BARRIER && host() != NULL &&
|
| target->IsHeapObject()) {
|
| host()->GetHeap()->incremental_marking()->RecordWrite(
|
| @@ -286,7 +288,7 @@ 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(pc_ + kCodeAgingTargetDelta, host_,
|
| + Assembler::set_target_address_at(isolate_, pc_ + kCodeAgingTargetDelta, host_,
|
| stub->instruction_start(),
|
| icache_flush_mode);
|
| }
|
| @@ -300,7 +302,7 @@ Address RelocInfo::debug_call_address() {
|
|
|
| void RelocInfo::set_debug_call_address(Address target) {
|
| DCHECK(IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence());
|
| - Assembler::set_target_address_at(pc_, host_, target);
|
| + Assembler::set_target_address_at(isolate_, pc_, host_, target);
|
| if (host() != NULL) {
|
| Object* target_code = Code::GetCodeFromTargetAddress(target);
|
| host()->GetHeap()->incremental_marking()->RecordWriteIntoCode(
|
| @@ -319,9 +321,10 @@ void RelocInfo::WipeOut() {
|
| } else if (IsInternalReferenceEncoded(rmode_)) {
|
| // mov sequence
|
| // Currently used only by deserializer, no need to flush.
|
| - Assembler::set_target_address_at(pc_, host_, NULL, SKIP_ICACHE_FLUSH);
|
| + Assembler::set_target_address_at(isolate_, pc_, host_, NULL,
|
| + SKIP_ICACHE_FLUSH);
|
| } else {
|
| - Assembler::set_target_address_at(pc_, host_, NULL);
|
| + Assembler::set_target_address_at(isolate_, pc_, host_, NULL);
|
| }
|
| }
|
|
|
| @@ -637,16 +640,16 @@ Address Assembler::target_constant_pool_address_at(
|
| // has already deserialized the mov instructions etc.
|
| // There is a FIXED_SEQUENCE assumption here
|
| void Assembler::deserialization_set_special_target_at(
|
| - Address instruction_payload, Code* code, Address target) {
|
| - set_target_address_at(instruction_payload, code, target);
|
| + Isolate* isolate, Address instruction_payload, Code* code, Address target) {
|
| + set_target_address_at(isolate, instruction_payload, code, target);
|
| }
|
|
|
|
|
| void Assembler::deserialization_set_target_internal_reference_at(
|
| - Address pc, Address target, RelocInfo::Mode mode) {
|
| + Isolate* isolate, Address pc, Address target, RelocInfo::Mode mode) {
|
| if (RelocInfo::IsInternalReferenceEncoded(mode)) {
|
| Code* code = NULL;
|
| - set_target_address_at(pc, code, target, SKIP_ICACHE_FLUSH);
|
| + set_target_address_at(isolate, pc, code, target, SKIP_ICACHE_FLUSH);
|
| } else {
|
| Memory::Address_at(pc) = target;
|
| }
|
| @@ -654,8 +657,8 @@ void Assembler::deserialization_set_target_internal_reference_at(
|
|
|
|
|
| // This code assumes the FIXED_SEQUENCE of lis/ori
|
| -void Assembler::set_target_address_at(Address pc, Address constant_pool,
|
| - Address target,
|
| +void Assembler::set_target_address_at(Isolate* isolate, Address pc,
|
| + Address constant_pool, Address target,
|
| ICacheFlushMode icache_flush_mode) {
|
| if (FLAG_enable_embedded_constant_pool && constant_pool) {
|
| ConstantPoolEntry::Access access;
|
| @@ -698,7 +701,7 @@ void Assembler::set_target_address_at(Address pc, Address constant_pool,
|
| *(p + 3) = instr4;
|
| *(p + 4) = instr5;
|
| if (icache_flush_mode != SKIP_ICACHE_FLUSH) {
|
| - Assembler::FlushICacheWithoutIsolate(p, 5 * kInstrSize);
|
| + Assembler::FlushICache(isolate, p, 5 * kInstrSize);
|
| }
|
| #else
|
| uint32_t* p = reinterpret_cast<uint32_t*>(pc);
|
| @@ -713,7 +716,7 @@ void Assembler::set_target_address_at(Address pc, Address constant_pool,
|
| *p = instr1;
|
| *(p + 1) = instr2;
|
| if (icache_flush_mode != SKIP_ICACHE_FLUSH) {
|
| - Assembler::FlushICacheWithoutIsolate(p, 2 * kInstrSize);
|
| + Assembler::FlushICache(isolate, p, 2 * kInstrSize);
|
| }
|
| #endif
|
| return;
|
|
|