RESOLVED FIXED 68141
[n]stricteq code is bogus in JSValue32_64 JIT
https://bugs.webkit.org/show_bug.cgi?id=68141
Summary [n]stricteq code is bogus in JSValue32_64 JIT
Gavin Barraclough
Reported 2011-09-14 21:50:45 PDT
The code tries to check for both ints or cells, but this check also catches cases where values that are undefined, null, etc (probably was incorrectly assuming cell was the 2nd highest tag?). Also, there is no need not to handle int on the fast path. stricteq is just a case of comparing the payloads, if we: * handle cases of differing tags on a slow path * handle doubles a slow path * handle both-are-string on a slow path
Attachments
The patch (3.36 KB, patch)
2011-09-14 21:52 PDT, Gavin Barraclough
sam: review+
Gavin Barraclough
Comment 1 2011-09-14 21:52:32 PDT
Created attachment 107453 [details] The patch
WebKit Review Bot
Comment 2 2011-09-14 21:55:26 PDT
Attachment 107453 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/JavaScriptCore/ChangeLog', u'Source..." exit_code: 1 Source/JavaScriptCore/ChangeLog:14: Need whitespace between colon and description [changelog/filechangedescriptionwhitespace] [5] Source/JavaScriptCore/ChangeLog:15: Need whitespace between colon and description [changelog/filechangedescriptionwhitespace] [5] Source/JavaScriptCore/ChangeLog:16: Need whitespace between colon and description [changelog/filechangedescriptionwhitespace] [5] Total errors found: 3 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Sam Weinig
Comment 3 2011-09-14 21:56:28 PDT
Comment on attachment 107453 [details] The patch View in context: https://bugs.webkit.org/attachment.cgi?id=107453&action=review > Source/JavaScriptCore/jit/JITOpcodes32_64.cpp:1011 > + // Simply compare the patyloads. No patyloads here! Tyop!
Gavin Barraclough
Comment 4 2011-09-14 22:16:27 PDT
Fixed in r95168
Note You need to log in before you can comment on or make changes to this bug.