<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[184468] releases/WebKitGTK/webkit-2.4/Source/JavaScriptCore</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/184468">184468</a></dd>
<dt>Author</dt> <dd>carlosgc@webkit.org</dd>
<dt>Date</dt> <dd>2015-05-18 06:38:54 -0700 (Mon, 18 May 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>[GTK][Stable] Missing implementation of callToJavaScript/callToNativeFunction with msys/mingw32
https://bugs.webkit.org/show_bug.cgi?id=132856

Patch by Milan Crha &lt;mcrha@redhat.com&gt; on 2015-04-17

* jit/JITStubsX86.h:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#releasesWebKitGTKwebkit24SourceJavaScriptCoreChangeLog">releases/WebKitGTK/webkit-2.4/Source/JavaScriptCore/ChangeLog</a></li>
<li><a href="#releasesWebKitGTKwebkit24SourceJavaScriptCorejitJITStubsX86h">releases/WebKitGTK/webkit-2.4/Source/JavaScriptCore/jit/JITStubsX86.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="releasesWebKitGTKwebkit24SourceJavaScriptCoreChangeLog"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.4/Source/JavaScriptCore/ChangeLog (184467 => 184468)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.4/Source/JavaScriptCore/ChangeLog        2015-05-18 13:09:48 UTC (rev 184467)
+++ releases/WebKitGTK/webkit-2.4/Source/JavaScriptCore/ChangeLog        2015-05-18 13:38:54 UTC (rev 184468)
</span><span class="lines">@@ -1,3 +1,10 @@
</span><ins>+2015-04-17  Milan Crha  &lt;mcrha@redhat.com&gt;
+
+        [GTK][Stable] Missing implementation of callToJavaScript/callToNativeFunction with msys/mingw32
+        https://bugs.webkit.org/show_bug.cgi?id=132856
+
+        * jit/JITStubsX86.h:
+
</ins><span class="cx"> 2015-01-06  Philip Chimento  &lt;philip.chimento@gmail.com&gt;
</span><span class="cx"> 
</span><span class="cx">         webkit-gtk 2.3.3 fails to build on OS X - Conflicting type &quot;Fixed&quot;
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit24SourceJavaScriptCorejitJITStubsX86h"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.4/Source/JavaScriptCore/jit/JITStubsX86.h (184467 => 184468)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.4/Source/JavaScriptCore/jit/JITStubsX86.h        2015-05-18 13:09:48 UTC (rev 184467)
+++ releases/WebKitGTK/webkit-2.4/Source/JavaScriptCore/jit/JITStubsX86.h        2015-05-18 13:38:54 UTC (rev 184468)
</span><span class="lines">@@ -32,6 +32,7 @@
</span><span class="cx"> #define JITStubsX86_h
</span><span class="cx"> 
</span><span class="cx"> #include &quot;JITStubsX86Common.h&quot;
</span><ins>+#include &lt;wtf/InlineASM.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> #if !CPU(X86)
</span><span class="cx"> #error &quot;JITStubsX86.h should only be #included if CPU(X86)&quot;
</span><span class="lines">@@ -198,6 +199,225 @@
</span><span class="cx"> );
</span><span class="cx"> #endif // USE(MASM_PROBE)
</span><span class="cx"> 
</span><ins>+#if OS(WINDOWS)
+extern &quot;C&quot; {
+
+    // FIXME: Since Windows doesn't use the LLInt, we have inline stubs here.
+    // Until the LLInt is changed to support Windows, these stub needs to be updated.
+    asm (
+        &quot;.globl &quot; SYMBOL_STRING(callToJavaScript) &quot;\n&quot;
+        HIDE_SYMBOL(callToJavaScript) &quot;\n&quot;
+        SYMBOL_STRING(callToJavaScript) &quot;:&quot; &quot;\n&quot;
+            &quot;mov    (%esp),%edx&quot; &quot;\n&quot;
+            &quot;push   %ebp&quot; &quot;\n&quot;
+            &quot;mov    %ebp,%eax&quot; &quot;\n&quot;
+            &quot;mov    %esp,%ebp&quot; &quot;\n&quot;
+            &quot;push   %esi&quot; &quot;\n&quot;
+            &quot;push   %edi&quot; &quot;\n&quot;
+            &quot;push   %ebx&quot; &quot;\n&quot;
+            &quot;sub    $0x1c,%esp&quot; &quot;\n&quot;
+            &quot;mov    0x34(%esp),%ecx&quot; &quot;\n&quot;
+            &quot;mov    0x38(%esp),%esi&quot; &quot;\n&quot;
+            &quot;mov    0x3c(%esp),%ebp&quot; &quot;\n&quot;
+            &quot;sub    $0x20,%ebp&quot; &quot;\n&quot;
+            &quot;movl   $0x0,0x24(%ebp)&quot; &quot;\n&quot;
+            &quot;movl   $0x0,0x20(%ebp)&quot; &quot;\n&quot;
+            &quot;movl   $0x0,0x1c(%ebp)&quot; &quot;\n&quot;
+            &quot;mov    %ecx,0x18(%ebp)&quot; &quot;\n&quot;
+            &quot;mov    (%ecx),%ebx&quot; &quot;\n&quot;
+            &quot;movl   $0x0,0x14(%ebp)&quot; &quot;\n&quot;
+            &quot;mov    %ebx,0x10(%ebp)&quot; &quot;\n&quot;
+            &quot;movl   $0x0,0xc(%ebp)&quot; &quot;\n&quot;
+            &quot;movl   $0x1,0x8(%ebp)&quot; &quot;\n&quot;
+            &quot;mov    %edx,0x4(%ebp)&quot; &quot;\n&quot;
+            &quot;mov    %eax,0x0(%ebp)&quot; &quot;\n&quot;
+            &quot;mov    %ebp,%eax&quot; &quot;\n&quot;
+
+            &quot;mov    0x28(%esi),%edx&quot; &quot;\n&quot;
+            &quot;add    $0x5,%edx&quot; &quot;\n&quot;
+            &quot;shl    $0x3,%edx&quot; &quot;\n&quot;
+            &quot;sub    %edx,%ebp&quot; &quot;\n&quot;
+            &quot;mov    %eax,0x0(%ebp)&quot; &quot;\n&quot;
+
+            &quot;mov    $0x5,%eax&quot; &quot;\n&quot;
+
+        &quot;.copyHeaderLoop:&quot; &quot;\n&quot;
+            &quot;sub    $0x1,%eax&quot; &quot;\n&quot;
+            &quot;mov    (%esi,%eax,8),%ecx&quot; &quot;\n&quot;
+            &quot;mov    %ecx,0x8(%ebp,%eax,8)&quot; &quot;\n&quot;
+            &quot;mov    0x4(%esi,%eax,8),%ecx&quot; &quot;\n&quot;
+            &quot;mov    %ecx,0xc(%ebp,%eax,8)&quot; &quot;\n&quot;
+            &quot;test   %eax,%eax&quot; &quot;\n&quot;
+            &quot;jne .copyHeaderLoop&quot; &quot;\n&quot;
+
+            &quot;mov    0x18(%esi),%edx&quot; &quot;\n&quot;
+            &quot;sub    $0x1,%edx&quot; &quot;\n&quot;
+            &quot;mov    0x28(%esi),%ecx&quot; &quot;\n&quot;
+            &quot;sub    $0x1,%ecx&quot; &quot;\n&quot;
+
+            &quot;cmp    %ecx,%edx&quot; &quot;\n&quot;
+            &quot;je .copyArgs&quot; &quot;\n&quot;
+
+            &quot;xor    %eax,%eax&quot; &quot;\n&quot;
+            &quot;mov    $0xfffffffc,%ebx&quot; &quot;\n&quot;
+
+        &quot;.fillExtraArgsLoop:&quot; &quot;\n&quot;
+            &quot;sub    $0x1,%ecx&quot; &quot;\n&quot;
+            &quot;mov    %eax,0x30(%ebp,%ecx,8)&quot; &quot;\n&quot;
+            &quot;mov    %ebx,0x34(%ebp,%ecx,8)&quot; &quot;\n&quot;
+            &quot;cmp    %ecx,%edx&quot; &quot;\n&quot;
+            &quot;jne .fillExtraArgsLoop&quot; &quot;\n&quot;
+
+        &quot;.copyArgs:&quot; &quot;\n&quot;
+            &quot;mov    0x2c(%esi),%eax&quot; &quot;\n&quot;
+
+        &quot;.copyArgsLoop:&quot; &quot;\n&quot;
+            &quot;test   %edx,%edx&quot; &quot;\n&quot;
+            &quot;je .copyArgsDone&quot; &quot;\n&quot;
+            &quot;sub    $0x1,%edx&quot; &quot;\n&quot;
+            &quot;mov    (%eax,%edx,8),%ecx&quot; &quot;\n&quot;
+            &quot;mov    0x4(%eax,%edx,8),%ebx&quot; &quot;\n&quot;
+            &quot;mov    %ecx,0x30(%ebp,%edx,8)&quot; &quot;\n&quot;
+            &quot;mov    %ebx,0x34(%ebp,%edx,8)&quot; &quot;\n&quot;
+            &quot;jmp .copyArgsLoop&quot; &quot;\n&quot;
+
+        &quot;.copyArgsDone:&quot; &quot;\n&quot;
+            &quot;mov    0x34(%esp),%ecx&quot; &quot;\n&quot;
+            &quot;mov    %ebp,(%ecx)&quot; &quot;\n&quot;
+
+            &quot;call   *0x30(%esp)&quot; &quot;\n&quot;
+
+            &quot;cmpl   $0x1,0x8(%ebp)&quot; &quot;\n&quot;
+            &quot;je .calleeFramePopped&quot; &quot;\n&quot;
+            &quot;mov    0x0(%ebp),%ebp&quot; &quot;\n&quot;
+
+        &quot;.calleeFramePopped:&quot; &quot;\n&quot;
+            &quot;mov    0x18(%ebp),%ecx&quot; &quot;\n&quot;
+            &quot;mov    0x10(%ebp),%ebx&quot; &quot;\n&quot;
+            &quot;mov    %ebx,(%ecx)&quot; &quot;\n&quot;
+
+            &quot;add    $0x1c,%esp&quot; &quot;\n&quot;
+            &quot;pop    %ebx&quot; &quot;\n&quot;
+            &quot;pop    %edi&quot; &quot;\n&quot;
+            &quot;pop    %esi&quot; &quot;\n&quot;
+            &quot;pop    %ebp&quot; &quot;\n&quot;
+            &quot;ret&quot; &quot;\n&quot;
+
+        &quot;.globl &quot; SYMBOL_STRING(returnFromJavaScript) &quot;\n&quot;
+        HIDE_SYMBOL(returnFromJavaScript) &quot;\n&quot;
+        SYMBOL_STRING(returnFromJavaScript) &quot;:&quot; &quot;\n&quot;
+            &quot;add    $0x1c,%esp&quot; &quot;\n&quot;
+            &quot;pop    %ebx&quot; &quot;\n&quot;
+            &quot;pop    %edi&quot; &quot;\n&quot;
+            &quot;pop    %esi&quot; &quot;\n&quot;
+            &quot;pop    %ebp&quot; &quot;\n&quot;
+            &quot;ret&quot; &quot;\n&quot;
+
+        &quot;.globl &quot; SYMBOL_STRING(callToNativeFunction) &quot;\n&quot;
+        HIDE_SYMBOL(callToNativeFunction) &quot;\n&quot;
+        SYMBOL_STRING(callToNativeFunction) &quot;:&quot; &quot;\n&quot;
+            &quot;mov    (%esp),%edx&quot; &quot;\n&quot;
+            &quot;push   %ebp&quot; &quot;\n&quot;
+            &quot;mov    %ebp,%eax&quot; &quot;\n&quot;
+            &quot;mov    %esp,%ebp&quot; &quot;\n&quot;
+            &quot;push   %esi&quot; &quot;\n&quot;
+            &quot;push   %edi&quot; &quot;\n&quot;
+            &quot;push   %ebx&quot; &quot;\n&quot;
+            &quot;sub    $0x1c,%esp&quot; &quot;\n&quot;
+            &quot;mov    0x34(%esp),%ecx&quot; &quot;\n&quot;
+            &quot;mov    0x38(%esp),%esi&quot; &quot;\n&quot;
+            &quot;mov    0x3c(%esp),%ebp&quot; &quot;\n&quot;
+            &quot;sub    $0x20,%ebp&quot; &quot;\n&quot;
+            &quot;movl   $0x0,0x24(%ebp)&quot; &quot;\n&quot;
+            &quot;movl   $0x0,0x20(%ebp)&quot; &quot;\n&quot;
+            &quot;movl   $0x0,0x1c(%ebp)&quot; &quot;\n&quot;
+            &quot;mov    %ecx,0x18(%ebp)&quot; &quot;\n&quot;
+            &quot;mov    (%ecx),%ebx&quot; &quot;\n&quot;
+            &quot;movl   $0x0,0x14(%ebp)&quot; &quot;\n&quot;
+            &quot;mov    %ebx,0x10(%ebp)&quot; &quot;\n&quot;
+            &quot;movl   $0x0,0xc(%ebp)&quot; &quot;\n&quot;
+            &quot;movl   $0x1,0x8(%ebp)&quot; &quot;\n&quot;
+            &quot;mov    %edx,0x4(%ebp)&quot; &quot;\n&quot;
+            &quot;mov    %eax,0x0(%ebp)&quot; &quot;\n&quot;
+            &quot;mov    %ebp,%eax&quot; &quot;\n&quot;
+
+            &quot;mov    0x28(%esi),%edx&quot; &quot;\n&quot;
+            &quot;add    $0x5,%edx&quot; &quot;\n&quot;
+            &quot;shl    $0x3,%edx&quot; &quot;\n&quot;
+            &quot;sub    %edx,%ebp&quot; &quot;\n&quot;
+            &quot;mov    %eax,0x0(%ebp)&quot; &quot;\n&quot;
+
+            &quot;mov    $0x5,%eax&quot; &quot;\n&quot;
+
+        &quot;copyHeaderLoop:&quot; &quot;\n&quot;
+            &quot;sub    $0x1,%eax&quot; &quot;\n&quot;
+            &quot;mov    (%esi,%eax,8),%ecx&quot; &quot;\n&quot;
+            &quot;mov    %ecx,0x8(%ebp,%eax,8)&quot; &quot;\n&quot;
+            &quot;mov    0x4(%esi,%eax,8),%ecx&quot; &quot;\n&quot;
+            &quot;mov    %ecx,0xc(%ebp,%eax,8)&quot; &quot;\n&quot;
+            &quot;test   %eax,%eax&quot; &quot;\n&quot;
+            &quot;jne copyHeaderLoop&quot; &quot;\n&quot;
+
+            &quot;mov    0x18(%esi),%edx&quot; &quot;\n&quot;
+            &quot;sub    $0x1,%edx&quot; &quot;\n&quot;
+            &quot;mov    0x28(%esi),%ecx&quot; &quot;\n&quot;
+            &quot;sub    $0x1,%ecx&quot; &quot;\n&quot;
+
+            &quot;cmp    %ecx,%edx&quot; &quot;\n&quot;
+            &quot;je copyArgs&quot; &quot;\n&quot;
+
+            &quot;xor    %eax,%eax&quot; &quot;\n&quot;
+            &quot;mov    $0xfffffffc,%ebx&quot; &quot;\n&quot;
+
+        &quot;fillExtraArgsLoop:&quot; &quot;\n&quot;
+            &quot;sub    $0x1,%ecx&quot; &quot;\n&quot;
+            &quot;mov    %eax,0x30(%ebp,%ecx,8)&quot; &quot;\n&quot;
+            &quot;mov    %ebx,0x34(%ebp,%ecx,8)&quot; &quot;\n&quot;
+            &quot;cmp    %ecx,%edx&quot; &quot;\n&quot;
+            &quot;jne fillExtraArgsLoop&quot; &quot;\n&quot;
+
+        &quot;copyArgs:&quot; &quot;\n&quot;
+            &quot;mov    0x2c(%esi),%eax&quot; &quot;\n&quot;
+
+        &quot;copyArgsLoop:&quot; &quot;\n&quot;
+            &quot;test   %edx,%edx&quot; &quot;\n&quot;
+            &quot;je copyArgsDone&quot; &quot;\n&quot;
+            &quot;sub    $0x1,%edx&quot; &quot;\n&quot;
+            &quot;mov    (%eax,%edx,8),%ecx&quot; &quot;\n&quot;
+            &quot;mov    0x4(%eax,%edx,8),%ebx&quot; &quot;\n&quot;
+            &quot;mov    %ecx,0x30(%ebp,%edx,8)&quot; &quot;\n&quot;
+            &quot;mov    %ebx,0x34(%ebp,%edx,8)&quot; &quot;\n&quot;
+            &quot;jmp copyArgsLoop&quot; &quot;\n&quot;
+
+        &quot;copyArgsDone:&quot; &quot;\n&quot;
+            &quot;mov    0x34(%esp),%ecx&quot; &quot;\n&quot;
+            &quot;mov    %ebp,(%ecx)&quot; &quot;\n&quot;
+
+            &quot;mov    0x30(%esp),%edi&quot; &quot;\n&quot;
+            &quot;mov    %ebp,0x30(%esp)&quot; &quot;\n&quot;
+            &quot;mov    %ebp,%ecx&quot; &quot;\n&quot;
+            &quot;call   *%edi&quot; &quot;\n&quot;
+
+            &quot;cmpl   $0x1,0x8(%ebp)&quot; &quot;\n&quot;
+            &quot;je calleeFramePopped&quot; &quot;\n&quot;
+            &quot;mov    0x0(%ebp),%ebp&quot; &quot;\n&quot;
+
+        &quot;calleeFramePopped:&quot; &quot;\n&quot;
+            &quot;mov    0x18(%ebp),%ecx&quot; &quot;\n&quot;
+            &quot;mov    0x10(%ebp),%ebx&quot; &quot;\n&quot;
+            &quot;mov    %ebx,(%ecx)&quot; &quot;\n&quot;
+
+            &quot;add    $0x1c,%esp&quot; &quot;\n&quot;
+            &quot;pop    %ebx&quot; &quot;\n&quot;
+            &quot;pop    %edi&quot; &quot;\n&quot;
+            &quot;pop    %esi&quot; &quot;\n&quot;
+            &quot;pop    %ebp&quot; &quot;\n&quot;
+            &quot;ret&quot; &quot;\n&quot;
+        );
+}
+
+#endif // OS(WINDOWS)
+
</ins><span class="cx"> #endif // COMPILER(GCC)
</span><span class="cx"> 
</span><span class="cx"> #if COMPILER(MSVC)
</span></span></pre>
</div>
</div>

</body>
</html>