Commit 0b2bd664 authored by Georg Neis's avatar Georg Neis Committed by Commit Bot

[mips*] Do not flush icache in RelocInfo::apply.

The callers of this function already do the flushing (as its comment demands).

BUG=

Change-Id: Iff6720f4ddecb1a4569b6cac66eba4b857c46b17
Reviewed-on: https://chromium-review.googlesource.com/452504Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#43718}
parent 53d67fe4
......@@ -92,8 +92,7 @@ void RelocInfo::apply(intptr_t delta) {
if (IsInternalReference(rmode_) || IsInternalReferenceEncoded(rmode_)) {
// Absolute code pointer inside code object moves with the code object.
byte* p = reinterpret_cast<byte*>(pc_);
int count = Assembler::RelocateInternalReference(rmode_, p, delta);
Assembler::FlushICache(isolate_, p, count * sizeof(uint32_t));
Assembler::RelocateInternalReference(rmode_, p, delta);
}
}
......
......@@ -92,8 +92,7 @@ void RelocInfo::apply(intptr_t delta) {
if (IsInternalReference(rmode_) || IsInternalReferenceEncoded(rmode_)) {
// Absolute code pointer inside code object moves with the code object.
byte* p = reinterpret_cast<byte*>(pc_);
int count = Assembler::RelocateInternalReference(rmode_, p, delta);
Assembler::FlushICache(isolate_, p, count * sizeof(uint32_t));
Assembler::RelocateInternalReference(rmode_, p, delta);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment