Bug 1271968 - wasm: MIPS: Port mixed jump for wasm.

Tag: #1542
This commit is contained in:
Jiaxun Yang 2020-05-12 12:40:09 +08:00 • committed by Roy Tam
commit 79aee6d950

View file

@ -101,6 +101,11 @@ AssemblerMIPSShared::asmMergeWith(const AssemblerMIPSShared& other)
{
if (!AssemblerShared::asmMergeWith(size(), other))
return false;
for (size_t i = 0; i < other.numMixedJumps(); i++) {
const MixedJumpPatch& mjp = other.mixedJumps_[i];
addMixedJump(BufferOffset(size() + mjp.src.getOffset()),
ImmPtr(size() + mjp.target), mjp.kind);
}
return m_buffer.appendBuffer(other.m_buffer);
}