<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>90099</bug_id>
          
          <creation_ts>2012-06-27 14:35:09 -0700</creation_ts>
          <short_desc>x86 disassembler confuses immediates with addresses</short_desc>
          <delta_ts>2012-06-27 14:45:46 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Filip Pizlo">fpizlo</reporter>
          <assigned_to name="Filip Pizlo">fpizlo</assigned_to>
          <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>658881</commentid>
    <comment_count>0</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2012-06-27 14:35:09 -0700</bug_when>
    <thetext>Consider the two following x86 instructions, written out verbosely:

1) load from address 0x12345 into register RAX
2) move immediate 0x12345 into register RAX

In AT&amp;T syntax, the two should be written thus:

1) mov 0x12345, %rax
2) mov $0x12345, %rax

But our x86 disassembler (udis86) incorrectly writes both as &quot;mov 0x12345, %rax&quot;.

In short, it omits the &quot;$&quot; prefix for immediates.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>658882</commentid>
    <comment_count>1</comment_count>
      <attachid>149797</attachid>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2012-06-27 14:37:32 -0700</bug_when>
    <thetext>Created attachment 149797
the patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>658887</commentid>
    <comment_count>2</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-06-27 14:41:02 -0700</bug_when>
    <thetext>Attachment 149797 did not pass style-queue:

Failed to run &quot;[&apos;Tools/Scripts/check-webkit-style&apos;, &apos;--diff-files&apos;, u&apos;Source/JavaScriptCore/ChangeLog&apos;, u&apos;Source...&quot; exit_code: 1
Source/JavaScriptCore/disassembler/udis86/udis86_syn-att.c:112:  Extra space after ( in function call  [whitespace/parens] [4]
Source/JavaScriptCore/disassembler/udis86/udis86_syn-att.c:112:  Extra space before )  [whitespace/parens] [2]
Total errors found: 2 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>658892</commentid>
    <comment_count>3</comment_count>
      <attachid>149797</attachid>
    <who name="Mark Hahnenberg">mhahnenberg</who>
    <bug_when>2012-06-27 14:44:08 -0700</bug_when>
    <thetext>Comment on attachment 149797
the patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>658894</commentid>
    <comment_count>4</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2012-06-27 14:45:46 -0700</bug_when>
    <thetext>Landed in http://trac.webkit.org/changeset/121374</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>149797</attachid>
            <date>2012-06-27 14:37:32 -0700</date>
            <delta_ts>2012-06-27 14:44:08 -0700</delta_ts>
            <desc>the patch</desc>
            <filename>fixattimm_patch_1.diff</filename>
            <type>text/plain</type>
            <size>1384</size>
            <attacher name="Filip Pizlo">fpizlo</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT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5bi1hdHQuYwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvSmF2YVNjcmlwdENvcmUvZGlz
YXNzZW1ibGVyL3VkaXM4Ni91ZGlzODZfc3luLWF0dC5jCShyZXZpc2lvbiAxMjEyODApCisrKyBT
b3VyY2UvSmF2YVNjcmlwdENvcmUvZGlzYXNzZW1ibGVyL3VkaXM4Ni91ZGlzODZfc3luLWF0dC5j
CSh3b3JraW5nIGNvcHkpCkBAIC0xMDksNyArMTA5LDcgQEAgZ2VuX29wZXJhbmQoc3RydWN0IHVk
KiB1LCBzdHJ1Y3QgdWRfb3BlcgogICAgICAgICB9CiAgICAgICAgIGlmICggc2V4dF9zaXplIDwg
NjQgKQogICAgICAgICAgICAgc2V4dF9tYXNrID0gKCAxdWxsIDw8IHNleHRfc2l6ZSApIC0gMTsK
LSAgICAgICAgbWthc20oIHUsICIweCIgRk1UNjQgIngiLCBpbW0gJiBzZXh0X21hc2sgKTsgCisg
ICAgICAgIG1rYXNtKCB1LCAiJDB4IiBGTVQ2NCAieCIsIGltbSAmIHNleHRfbWFzayApOyAKIAog
CQlicmVhazsKICAgICB9Cg==
</data>
<flag name="review"
          id="157905"
          type_id="1"
          status="+"
          setter="mhahnenberg"
    />
          </attachment>
      

    </bug>

</bugzilla>