Bug 68141

Summary: [n]stricteq code is bogus in JSValue32_64 JIT
Product: WebKit Reporter: Gavin Barraclough <barraclough>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
The patch sam: review+

Description Gavin Barraclough 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
Comment 1 Gavin Barraclough 2011-09-14 21:52:32 PDT
Created attachment 107453 [details]
The patch
Comment 2 WebKit Review Bot 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.
Comment 3 Sam Weinig 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!
Comment 4 Gavin Barraclough 2011-09-14 22:16:27 PDT
Fixed in r95168