[mips32] Fix the target address when relocate relative reference.

Change-Id: Ie44615daa6e0bef13a969cfb4fa62654ce31f448
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1581239
Commit-Queue: peng fei <pfgenyun@gmail.com>
Reviewed-by: Jakob Gruber <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/master@{#61110}
This commit is contained in:
Peng Fei 2019-04-24 14:33:50 +08:00 committed by Commit Bot
parent cce8439f48
commit 1c4482ec3d
2 changed files with 2 additions and 1 deletions

View File

@ -137,6 +137,7 @@ Noj Vek <nojvek@gmail.com>
Oleksandr Chekhovskyi <oleksandr.chekhovskyi@gmail.com>
Paolo Giarrusso <p.giarrusso@gmail.com>
Patrick Gansterer <paroga@paroga.com>
Peng Fei <pfgenyun@gmail.com>
Peter Rybin <peter.rybin@gmail.com>
Peter Varga <pvarga@inf.u-szeged.hu>
Peter Wong <peter.wm.wong@gmail.com>

View File

@ -3858,7 +3858,7 @@ void Assembler::RelocateRelativeReference(RelocInfo::Mode rmode, Address pc,
if (imm == kEndOfJumpChain) {
return;
}
imm += pc_delta;
imm -= pc_delta;
DCHECK_EQ(imm & 3, 0);
PatchLuiOriImmediate(pc, imm, instr1, 0 * kInstrSize, instr2, ori_offset);
return;