[Webkit-unassigned] [Bug 183243] [MIPS] Optimize generated JIT code for loads/stores
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Mar 15 09:00:54 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=183243
Yusuke Suzuki <utatane.tea at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #335846|review? |review-
Flags| |
--- Comment #8 from Yusuke Suzuki <utatane.tea at gmail.com> ---
Comment on attachment 335846
--> https://bugs.webkit.org/attachment.cgi?id=335846
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=335846&action=review
Overall, looks good to me. But r- because I found one bug in this patch.
> Source/JavaScriptCore/assembler/MacroAssemblerMIPS.h:269
> + if ((adr >> 15) == ((adr+4) >> 15)) {
Style nits: use `(adr + 4)` instead of `(adr+4)`.
> Source/JavaScriptCore/assembler/MacroAssemblerMIPS.h:280
> + m_assembler.lw(dataTempRegister, addrTempRegister, (adr+4) & 0xffff);
Ditto.
> Source/JavaScriptCore/assembler/MacroAssemblerMIPS.h:284
> + m_assembler.sw(dataTempRegister, addrTempRegister, (adr+4) & 0xffff);
Ditto.
> Source/JavaScriptCore/assembler/MacroAssemblerMIPS.h:709
> + li addrTemp, address
> + li immTemp, imm
> + lw dataTemp, 0(addrTemp)
> + subu dataTemp, dataTemp, immTemp
> + sw dataTemp, 0(addrTemp)
We need to fix this to align to the actual code.
> Source/JavaScriptCore/assembler/MacroAssemblerMIPS.h:807
> + }
It is wrong. ConvertibleLoadLabel's instructions need to be convertible to addPtr instruction sequence
Please check MIPSAssembler::replaceWithLoad too.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180315/88e660c0/attachment.html>
More information about the webkit-unassigned
mailing list