RESOLVED FIXED 155104
[JSC] Improve and64() and or64() with immediate on x86
https://bugs.webkit.org/show_bug.cgi?id=155104
Summary [JSC] Improve and64() and or64() with immediate on x86
Benjamin Poulain
Reported 2016-03-07 00:28:40 PST
[JSC] Improve and64() and or64() with immediate on x86
Attachments
Patch (2.54 KB, patch)
2016-03-07 00:31 PST, Benjamin Poulain
no flags
Benjamin Poulain
Comment 1 2016-03-07 00:31:41 PST
Geoffrey Garen
Comment 2 2016-03-07 09:33:46 PST
Comment on attachment 273165 [details] Patch r=me
WebKit Commit Bot
Comment 3 2016-03-07 10:57:06 PST
Comment on attachment 273165 [details] Patch Clearing flags on attachment: 273165 Committed r197695: <http://trac.webkit.org/changeset/197695>
WebKit Commit Bot
Comment 4 2016-03-07 10:57:09 PST
All reviewed patches have been landed. Closing bug.
Darin Adler
Comment 5 2016-03-11 09:37:05 PST
Comment on attachment 273165 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=273165&action=review > Source/JavaScriptCore/assembler/MacroAssemblerX86_64.h:350 > + if (intValue <= std::numeric_limits<int32_t>::max() > + && intValue >= std::numeric_limits<int32_t>::min()) { Isn’t it more obvious to write it like this? if (intValue == static_cast<int32_t>(intValue))
Benjamin Poulain
Comment 6 2016-03-11 14:03:17 PST
(In reply to comment #5) > Comment on attachment 273165 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=273165&action=review > > > Source/JavaScriptCore/assembler/MacroAssemblerX86_64.h:350 > > + if (intValue <= std::numeric_limits<int32_t>::max() > > + && intValue >= std::numeric_limits<int32_t>::min()) { > > Isn’t it more obvious to write it like this? > > if (intValue == static_cast<int32_t>(intValue)) That's how I originally wrote it but I thought the more verbose version was making the intent more obvious.
Note You need to log in before you can comment on or make changes to this bug.