Bug 63665 - X86Assembler does not encode byte registers in 64-bit mode correctly.
Summary: X86Assembler does not encode byte registers in 64-bit mode correctly.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-29 15:46 PDT by Filip Pizlo
Modified: 2011-06-30 14:31 PDT (History)
2 users (show)

See Also:


Attachments
the patch (3.03 KB, patch)
2011-06-29 16:05 PDT, Filip Pizlo
no flags Details | Formatted Diff | Diff
the patch (fix style) (3.04 KB, patch)
2011-06-29 16:33 PDT, Filip Pizlo
barraclough: review-
barraclough: commit-queue-
Details | Formatted Diff | Diff
the patch (redid as per review) (1.72 KB, patch)
2011-06-29 23:57 PDT, Filip Pizlo
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.