<?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>65313</bug_id>
          
          <creation_ts>2011-07-28 06:39:09 -0700</creation_ts>
          <short_desc>MinGW-w64 - JIT causes build failure</short_desc>
          <delta_ts>2012-09-27 04:25:08 -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>PC</rep_platform>
          <op_sys>Windows 7</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>Blocker</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>61235</dependson>
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Jonathan Liu">net147</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ademar</cc>
    
    <cc>ap</cc>
    
    <cc>barraclough</cc>
    
    <cc>hausmann</cc>
    
    <cc>kai.koehne</cc>
    
    <cc>vanboxem.ruben</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>443465</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Liu">net147</who>
    <bug_when>2011-07-28 06:39:09 -0700</bug_when>
    <thetext>JIT shouldn&apos;t be enabled on MinGW-w64 as it is unstable and causes crash when executing JavaScript.

The following should be added to JavaScriptCore/wtf/Platform.h:
/* JIT is not implemented for 64 bit on MinGW-w64 */
#if !defined(ENABLE_JIT) &amp;&amp; COMPILER(MINGW64) &amp;&amp; CPU(X86_64)
#define ENABLE_JIT 0
#endif</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>444019</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-07-29 11:13:26 -0700</bug_when>
    <thetext>Would you be willing to contribute this code to WebKit as described in &lt;http://www.webkit.org/coding/contributing.html&gt;?

I do not mean to diminish the contribution you made already by pointing out this bug, but historically, patches that aren&apos;t submitted according to the process almost never get landed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>446693</commentid>
    <comment_count>2</comment_count>
    <who name="">vanboxem.ruben</who>
    <bug_when>2011-08-04 12:45:25 -0700</bug_when>
    <thetext>I believe this wouldn&apos;t work on 64-bit MSVC either. IMHO I think that the COMPILER(MINGW64) check is superfluous (and wrong). Last I knew, Win64 had no working JIT.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>458001</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Liu">net147</who>
    <bug_when>2011-08-28 01:00:12 -0700</bug_when>
    <thetext>This issue causes build failure as indicated in bug 61235.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>458003</commentid>
    <comment_count>4</comment_count>
      <attachid>105446</attachid>
    <who name="Jonathan Liu">net147</who>
    <bug_when>2011-08-28 02:47:23 -0700</bug_when>
    <thetext>Created attachment 105446
proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>458004</commentid>
    <comment_count>5</comment_count>
    <who name="Jonathan Liu">net147</who>
    <bug_when>2011-08-28 02:51:43 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Would you be willing to contribute this code to WebKit as described in &lt;http://www.webkit.org/coding/contributing.html&gt;?
&gt; 
&gt; I do not mean to diminish the contribution you made already by pointing out this bug, but historically, patches that aren&apos;t submitted according to the process almost never get landed.

Patch contributed as requested.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>458005</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-08-28 02:52:11 -0700</bug_when>
    <thetext>Attachment 105446 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/ChangeLog:3:  Line contains tab character.  [whitespace/tab] [5]
Source/JavaScriptCore/ChangeLog:4:  Line contains tab character.  [whitespace/tab] [5]
Source/JavaScriptCore/ChangeLog:5:  Line contains tab character.  [whitespace/tab] [5]
Source/JavaScriptCore/ChangeLog:9:  Line contains tab character.  [whitespace/tab] [5]
Source/JavaScriptCore/ChangeLog:10:  Line contains tab character.  [whitespace/tab] [5]
Total errors found: 5 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>458006</commentid>
    <comment_count>7</comment_count>
      <attachid>105447</attachid>
    <who name="Jonathan Liu">net147</who>
    <bug_when>2011-08-28 02:55:07 -0700</bug_when>
    <thetext>Created attachment 105447
proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>458015</commentid>
    <comment_count>8</comment_count>
      <attachid>105447</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-08-28 12:24:53 -0700</bug_when>
    <thetext>Comment on attachment 105447
proposed patch

Clearing flags on attachment: 105447

Committed r93950: &lt;http://trac.webkit.org/changeset/93950&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>458016</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-08-28 12:24:58 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>458207</commentid>
    <comment_count>10</comment_count>
    <who name="Ademar Reis">ademar</who>
    <bug_when>2011-08-29 07:26:13 -0700</bug_when>
    <thetext>Revision r93950 cherry-picked into qtwebkit-2.2 with commit b017396 &lt;http://gitorious.org/webkit/qtwebkit/commit/b017396&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>729388</commentid>
    <comment_count>11</comment_count>
    <who name="Kai Koehne">kai.koehne</who>
    <bug_when>2012-09-27 03:26:28 -0700</bug_when>
    <thetext>Unfortunately this is broken again in latest qtwebkit: 

jit\ExecutableAllocatorFixedVMPool.cpp:34:22: fatal error: sys/mman.h: No such file or directory 

I&apos;ve yet to find out what goes wrong this time ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>729415</commentid>
    <comment_count>12</comment_count>
    <who name="Kai Koehne">kai.koehne</who>
    <bug_when>2012-09-27 04:25:08 -0700</bug_when>
    <thetext>Created another bug report for the regression: https://bugs.webkit.org/show_bug.cgi?id=97772</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>105446</attachid>
            <date>2011-08-28 02:47:23 -0700</date>
            <delta_ts>2011-08-28 02:54:34 -0700</delta_ts>
            <desc>proposed patch</desc>
            <filename>65313.patch</filename>
            <type>text/plain</type>
            <size>1240</size>
            <attacher name="Jonathan Liu">net147</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkocmV2aXNpb24gOTM5NDgpCisrKyBTb3VyY2Uv
SmF2YVNjcmlwdENvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTYgQEAK
KzIwMTEtMDgtMjggIEpvbmF0aGFuIExpdSAgPG5ldDE0N0BnbWFpbC5jb20+CisKKwlGaXggYnVp
bGQgZXJyb3Igd2hlbiBjb21waWxpbmcgd2l0aCBNaW5HVy13NjQg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2luZG93
cyA2NC1iaXQgKi8KKyNpZiAhZGVmaW5lZChFTkFCTEVfSklUKSAmJiBPUyhXSU5ET1dTKSAmJiBD
UFUoWDg2XzY0KQogI2RlZmluZSBFTkFCTEVfSklUIDAKICNlbmRpZgogCg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>105447</attachid>
            <date>2011-08-28 02:55:07 -0700</date>
            <delta_ts>2011-08-28 12:24:53 -0700</delta_ts>
            <desc>proposed patch</desc>
            <filename>65313.patch</filename>
            <type>text/plain</type>
            <size>1275</size>
            <attacher name="Jonathan Liu">net147</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkocmV2aXNpb24gOTM5NDgpCisrKyBTb3VyY2Uv
SmF2YVNjcmlwdENvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTYgQEAK
KzIwMTEtMDgtMjggIEpvbmF0aGFuIExpdSAgPG5ldDE0N0BnbWFpbC5jb20+CisKKyAgICAgICAg
Rml4IGJ1aWxkIGVycm9yIHdoZW4gY29tcGlsaW5nIHdpdGggTWluR1ctdzY0IGJ5IGRpc2FibGlu
ZyBKSVQKKyAgICAgICAgb24gV2luZG93cyA2NC1iaXQKKyAgICAgICAgaHR0cHM6Ly9idWdzLndl
YmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTYxMjM1CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9C
T0RZIChPT1BTISkuCisKKyAgICAgICAgVGhlIGZpeGVkIG1tYXAgZXhlY3V0YWJsZSBhbGxvY2F0
b3IgZm9yIEpJVCBvbiB4ODZfNjQgcmVxdWlyZXMKKyAgICAgICAgc3lzL21tYW4uaCB3aGljaCBp
cyBub3QgYXZhaWxhYmxlIG9uIFdpbmRvd3MuCisKKyAgICAgICAgKiB3dGYvUGxhdGZvcm0uaDoK
KwogMjAxMS0wOC0yNyAgRmlsaXAgUGl6bG8gIDxmcGl6bG9AYXBwbGUuY29tPgogCiAgICAgICAg
IEpTQzo6RXhlY3V0YWJsZSBpcyBpbmNvbnNpc3RlbnQgYWJvdXQgdXNpbmcgd2VhayBoYW5kbGUg
ZmluYWxpemVycwpJbmRleDogU291cmNlL0phdmFTY3JpcHRDb3JlL3d0Zi9QbGF0Zm9ybS5oCj09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT0KLS0tIFNvdXJjZS9KYXZhU2NyaXB0Q29yZS93dGYvUGxhdGZvcm0uaAkocmV2aXNp
b24gOTM5NDgpCisrKyBTb3VyY2UvSmF2YVNjcmlwdENvcmUvd3RmL1BsYXRmb3JtLmgJKHdvcmtp
bmcgY29weSkKQEAgLTkzNSw4ICs5MzUsOCBAQAogI2RlZmluZSBFTkFCTEVfSklUIDAKICNlbmRp
ZgogCi0vKiBKSVQgaXMgbm90IGltcGxlbWVudGVkIGZvciA2NCBiaXQgb24gTVNWQyAqLwotI2lm
ICFkZWZpbmVkKEVOQUJMRV9KSVQpICYmIENPTVBJTEVSKE1TVkMpICYmIENQVShYODZfNjQpCisv
KiBKSVQgaXMgbm90IGltcGxlbWVudGVkIGZvciBXaW5kb3dzIDY0LWJpdCAqLworI2lmICFkZWZp
bmVkKEVOQUJMRV9KSVQpICYmIE9TKFdJTkRPV1MpICYmIENQVShYODZfNjQpCiAjZGVmaW5lIEVO
QUJMRV9KSVQgMAogI2VuZGlmCiAK
</data>

          </attachment>
      

    </bug>

</bugzilla>