<?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>60283</bug_id>
          
          <creation_ts>2011-05-05 11:40:11 -0700</creation_ts>
          <short_desc>Fix MIPS build due to AssemblerLabel</short_desc>
          <delta_ts>2011-05-12 15:31:57 -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>Other</rep_platform>
          <op_sys>Linux</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>0</everconfirmed>
          <reporter name="Chao-ying Fu">fu</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>barraclough</cc>
    
    <cc>eric</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>398874</commentid>
    <comment_count>0</comment_count>
    <who name="Chao-ying Fu">fu</who>
    <bug_when>2011-05-05 11:40:11 -0700</bug_when>
    <thetext>Need to swap the header file to make MIPS build.  Will submit a patch soon.  Thanks!

Index: assembler/MacroAssemblerMIPS.h
===================================================================
--- assembler/MacroAssemblerMIPS.h      (revision 85839)
+++ assembler/MacroAssemblerMIPS.h      (working copy)
@@ -29,8 +29,8 @@

 #if ENABLE(ASSEMBLER) &amp;&amp; CPU(MIPS)

+#include &quot;MIPSAssembler.h&quot;
 #include &quot;AbstractMacroAssembler.h&quot;
-#include &quot;MIPSAssembler.h&quot;

 namespace JSC {</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>398879</commentid>
    <comment_count>1</comment_count>
      <attachid>92438</attachid>
    <who name="Chao-ying Fu">fu</who>
    <bug_when>2011-05-05 11:45:45 -0700</bug_when>
    <thetext>Created attachment 92438
Swap two header files

Here is the patch.  Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>398880</commentid>
    <comment_count>2</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-05-05 11:47:32 -0700</bug_when>
    <thetext>Attachment 92438 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/assembler/MacroAssemblerMIPS.h:33:  Alphabetical sorting problem.  [build/include_order] [4]
Total errors found: 1 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>402576</commentid>
    <comment_count>3</comment_count>
      <attachid>92438</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-05-11 20:07:49 -0700</bug_when>
    <thetext>Comment on attachment 92438
Swap two header files

Huh?  Header order should never matter in WebKit.  Should one of these be importing the other?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>402953</commentid>
    <comment_count>4</comment_count>
    <who name="Chao-ying Fu">fu</who>
    <bug_when>2011-05-12 10:48:21 -0700</bug_when>
    <thetext>1. &quot;MIPSAssembler.h&quot; includes &quot;AssemblerBuffer.h&quot; that defines &quot;struct AssemblerLabel&quot;.

2. &quot;AbstractMacroAssembler.h&quot; needs to have the definition of &quot;struct AssemblerLabel&quot;.  So, I need to include &quot;MIPSAssembler.h&quot; before including &quot;AbstractMacroAssembler.h&quot;.

Or, can we modify &quot;AbstractMacroAssembler.h&quot; to include &quot;AssemblerBuffer.h directly&quot;?

Thanks!

Regards,
Chao-ying</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>403206</commentid>
    <comment_count>5</comment_count>
    <who name="Chao-ying Fu">fu</who>
    <bug_when>2011-05-12 15:31:57 -0700</bug_when>
    <thetext>r86239 fixed this bug.  So, just close this.  Thanks!

r86239 | zecke@webkit.org | 2011-05-11 09:42:43 -0700 (Wed, 11 May 2011) | 7 lines

[MIPS] Fix compilation of the MIPS JIT

Include the MIPSAssembler.h first to indirectly include
AssemblerBuffer.h before the AbstractMacroAssembler.h. This
order is used for the ARM and X86 MacroAssembler*.h.

* assembler/MacroAssemblerMIPS.h:</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>92438</attachid>
            <date>2011-05-05 11:45:45 -0700</date>
            <delta_ts>2011-05-11 20:07:49 -0700</delta_ts>
            <desc>Swap two header files</desc>
            <filename>mips20110505.diff</filename>
            <type>text/plain</type>
            <size>1044</size>
            <attacher name="Chao-ying Fu">fu</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkocmV2aXNpb24gODU4NjYpCisrKyBTb3VyY2Uv
SmF2YVNjcmlwdENvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTMgQEAK
KzIwMTEtMDUtMDUgIENoYW8teWluZyBGdSAgPGZ1QG1pcHMuY29tPgorCisgICAgICAgIFJldmll
d2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIEZpeCBNSVBTIGJ1aWxkIGR1ZSB0byBB
c3NlbWJsZXJMYWJlbAorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5j
Z2k/aWQ9NjAyODMKKyAgICAgICAgU3dhcCB0d28gaGVhZGVyIGZpbGVzLgorCisgICAgICAgICog
YXNzZW1ibGVyL01hY3JvQXNzZW1ibGVyTUlQUy5oOgorCiAyMDExLTA1LTA1ICBBbGV4aXMgTWVu
YXJkICA8YWxleGlzLm1lbmFyZEBvcGVuYm9zc2Eub3JnPgogCiAgICAgICAgIFJldmlld2VkIGJ5
IEJlbmphbWluIFBvdWxhaW4uCkluZGV4OiBTb3VyY2UvSmF2YVNjcmlwdENvcmUvYXNzZW1ibGVy
L01hY3JvQXNzZW1ibGVyTUlQUy5oCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNvdXJjZS9KYXZhU2NyaXB0Q29y
ZS9hc3NlbWJsZXIvTWFjcm9Bc3NlbWJsZXJNSVBTLmgJKHJldmlzaW9uIDg1ODM5KQorKysgU291
cmNlL0phdmFTY3JpcHRDb3JlL2Fzc2VtYmxlci9NYWNyb0Fzc2VtYmxlck1JUFMuaAkod29ya2lu
ZyBjb3B5KQpAQCAtMjksOCArMjksOCBAQAogCiAjaWYgRU5BQkxFKEFTU0VNQkxFUikgJiYgQ1BV
KE1JUFMpCiAKLSNpbmNsdWRlICJBYnN0cmFjdE1hY3JvQXNzZW1ibGVyLmgiCiAjaW5jbHVkZSAi
TUlQU0Fzc2VtYmxlci5oIgorI2luY2x1ZGUgIkFic3RyYWN0TWFjcm9Bc3NlbWJsZXIuaCIKIAog
bmFtZXNwYWNlIEpTQyB7CiAK
</data>
<flag name="review"
          id="85410"
          type_id="1"
          status="-"
          setter="eric"
    />
          </attachment>
      

    </bug>

</bugzilla>