Bug 63665

Summary: X86Assembler does not encode byte registers in 64-bit mode correctly.
Product: WebKit Reporter: Filip Pizlo <fpizlo>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: barraclough, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
the patch
none
the patch (fix style)
barraclough: review-, barraclough: commit-queue-
the patch (redid as per review) none

Description Filip Pizlo 2011-06-29 15:46:14 PDT
The JSC 64-bit JITs expect to be able to use any GPR as a byte register in 64-bit mode.  But this does not work for sil, dil, spl, or bpl, because the X86Assembler fails to emit a blank REX (a REX with no bits set).
Comment 1 Filip Pizlo 2011-06-29 16:05:02 PDT
Created attachment 99169 [details]
the patch
Comment 2 WebKit Review Bot 2011-06-29 16:07:35 PDT
Attachment 99169 [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/assembler/X86Assembler.h:2005:  Missing space inside { }.  [whitespace/braces] [5]
Total errors found: 1 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Filip Pizlo 2011-06-29 16:33:17 PDT
Created attachment 99178 [details]
the patch (fix style)
Comment 4 Gavin Barraclough 2011-06-29 18:06:44 PDT
Comment on attachment 99178 [details]
the patch (fix style)

r-ing per our discussion.
Comment 5 Filip Pizlo 2011-06-29 23:57:16 PDT
Created attachment 99246 [details]
the patch (redid as per review)
Comment 6 WebKit Review Bot 2011-06-30 14:31:09 PDT
Comment on attachment 99246 [details]
the patch (redid as per review)

Clearing flags on attachment: 99246

Committed r90157: <http://trac.webkit.org/changeset/90157>
Comment 7 WebKit Review Bot 2011-06-30 14:31:13 PDT
All reviewed patches have been landed.  Closing bug.