Summary: | [mips] Max value of immediate arg of logical ops is 0xffff | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Konstantin Tokarev <annulen> | ||||||
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | commit-queue, jbriance, keith_miller, mark.lam, msaboff, saam | ||||||
Priority: | P2 | ||||||||
Version: | WebKit Local Build | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
Konstantin Tokarev
2016-01-08 03:37:49 PST
Created attachment 268534 [details]
Patch
Created attachment 268536 [details]
Patch
LGTM Comment on attachment 268536 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=268536&action=review r=me > Source/JavaScriptCore/assembler/MacroAssemblerMIPS.h:292 > - else if (imm.m_value > 0 && imm.m_value < 65535 && !m_fixedWidth) > + else if (imm.m_value > 0 && imm.m_value <= 65535 && !m_fixedWidth) This is fine, but you could also write: else if ((imm.m_value & 0xffff) == imm.m_value) && !m_fixedWidth) Comment on attachment 268536 [details] Patch Clearing flags on attachment: 268536 Committed r194764: <http://trac.webkit.org/changeset/194764> All reviewed patches have been landed. Closing bug. |