<?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>168402</bug_id>
          
          <creation_ts>2017-02-15 18:38:32 -0800</creation_ts>
          <short_desc>JSC: fix compilation errors for MIPS</short_desc>
          <delta_ts>2017-03-13 17:34:36 -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>Other</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>1</everconfirmed>
          <reporter name="Guillaume Emont">guijemont</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>annulen</cc>
    
    <cc>commit-queue</cc>
    
    <cc>jbriance</cc>
    
    <cc>keith_miller</cc>
    
    <cc>mark.lam</cc>
    
    <cc>msaboff</cc>
    
    <cc>saam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1277449</commentid>
    <comment_count>0</comment_count>
    <who name="Guillaume Emont">guijemont</who>
    <bug_when>2017-02-15 18:38:32 -0800</bug_when>
    <thetext>This is to introduce a patch that fixes misceallaneous issues for MIPS compilation (small missing bits).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1277457</commentid>
    <comment_count>1</comment_count>
      <attachid>301689</attachid>
    <who name="Guillaume Emont">guijemont</who>
    <bug_when>2017-02-15 19:27:36 -0800</bug_when>
    <thetext>Created attachment 301689
Patch

Patch by Suresh Kumar with small modifications by myself.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1277458</commentid>
    <comment_count>2</comment_count>
    <who name="Guillaume Emont">guijemont</who>
    <bug_when>2017-02-15 19:29:19 -0800</bug_when>
    <thetext>(In reply to comment #1)
&gt; Created attachment 301689 [details]
&gt; Patch
&gt; 
&gt; Patch by Suresh Kumar with small modifications by myself.

Note that there is a style error in the order of includes in MacroAssemblerMIPS.h. I don&apos;t know how to solve it since compilation fails if the includes are in the opposite order. I imagine this means we miss an include somewhere, but I could not find which one so far.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1277459</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-02-15 19:30:16 -0800</bug_when>
    <thetext>Attachment 301689 did not pass style-queue:


ERROR: Source/JavaScriptCore/assembler/MacroAssemblerMIPS.h:32:  Alphabetical sorting problem.  [build/include_order] [4]
Total errors found: 1 in 4 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>1277761</commentid>
    <comment_count>4</comment_count>
    <who name="Guillaume Emont">guijemont</who>
    <bug_when>2017-02-16 11:15:41 -0800</bug_when>
    <thetext>(In reply to comment #2)

&gt; Note that there is a style error in the order of includes in
&gt; MacroAssemblerMIPS.h. I don&apos;t know how to solve it since compilation fails
&gt; if the includes are in the opposite order. I imagine this means we miss an
&gt; include somewhere, but I could not find which one so far.

Note that MacroAssemblerX86Common.h has the same non-alphabetical order of includes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1278062</commentid>
    <comment_count>5</comment_count>
    <who name="Guillaume Emont">guijemont</who>
    <bug_when>2017-02-16 18:30:15 -0800</bug_when>
    <thetext>Just fount that the header issue is due to AbstractMacroAssembler.h not including wtf/Vector.h, which means in some cases its use of Vector ends up using the template in wtf/Forward.h which requires 4 arguments. Will send a patch for that later tonight or tomorrow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1278504</commentid>
    <comment_count>6</comment_count>
    <who name="Guillaume Emont">guijemont</who>
    <bug_when>2017-02-17 16:34:35 -0800</bug_when>
    <thetext>I proposed a patch for the header issue in https://bugs.webkit.org/show_bug.cgi?id=168537 but it seems to create compilation issues on Mac so I think I need to examine that further.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1287426</commentid>
    <comment_count>7</comment_count>
    <who name="Guillaume Emont">guijemont</who>
    <bug_when>2017-03-13 16:54:20 -0700</bug_when>
    <thetext>After further investigation, I don&apos;t think there is an easy fix for the header issue. Can this patch be accepted despite this issue?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1287430</commentid>
    <comment_count>8</comment_count>
      <attachid>301689</attachid>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2017-03-13 17:05:48 -0700</bug_when>
    <thetext>Comment on attachment 301689
Patch

rs=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1287436</commentid>
    <comment_count>9</comment_count>
      <attachid>301689</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-03-13 17:34:32 -0700</bug_when>
    <thetext>Comment on attachment 301689
Patch

Clearing flags on attachment: 301689

Committed r213881: &lt;http://trac.webkit.org/changeset/213881&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1287437</commentid>
    <comment_count>10</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-03-13 17:34:36 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>301689</attachid>
            <date>2017-02-15 19:27:36 -0800</date>
            <delta_ts>2017-03-13 17:34:32 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-168402-20170215212500.patch</filename>
            <type>text/plain</type>
            <size>3684</size>
            <attacher name="Guillaume Emont">guijemont</attacher>
            
              <data encoding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