<!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" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { 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 #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#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>
<title>[27297] trunk/JavaScriptCore</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/27297">27297</a></dd>
<dt>Author</dt> <dd>aroben</dd>
<dt>Date</dt> <dd>2007-10-31 00:20:00 -0700 (Wed, 31 Oct 2007)</dd>
</dl>

<h3>Log Message</h3>
<pre>         Change ALWAYS_INLINE and WTF_PRIVATE_INLINE to use __forceinline on Windows

         Speeds up SunSpider by 0.4%.

         Reviewed by Steve and Maciej.

         * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj: Disable
         a warning during LTCG in release builds about double -&gt; float
         conversion.
         * wtf/AlwaysInline.h:
         * wtf/FastMalloc.h:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkJavaScriptCoreChangeLog">trunk/JavaScriptCore/ChangeLog</a></li>
<li><a href="#trunkJavaScriptCoreJavaScriptCorevcprojJavaScriptCoreJavaScriptCorevcproj">trunk/JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj</a></li>
<li><a href="#trunkJavaScriptCorewtfAlwaysInlineh">trunk/JavaScriptCore/wtf/AlwaysInline.h</a></li>
<li><a href="#trunkJavaScriptCorewtfFastMalloch">trunk/JavaScriptCore/wtf/FastMalloc.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkJavaScriptCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/JavaScriptCore/ChangeLog (27296 => 27297)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/JavaScriptCore/ChangeLog        2007-10-31 07:19:37 UTC (rev 27296)
+++ trunk/JavaScriptCore/ChangeLog        2007-10-31 07:20:00 UTC (rev 27297)
</span><span class="lines">@@ -1,5 +1,19 @@
</span><span class="cx"> 2007-10-30  Adam Roben  &lt;aroben@apple.com&gt;
</span><span class="cx"> 
</span><ins>+        Change ALWAYS_INLINE and WTF_PRIVATE_INLINE to use __forceinline on Windows
+
+        Speeds up SunSpider by 0.4%.
+
+        Reviewed by Steve and Maciej.
+
+        * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj: Disable
+        a warning during LTCG in release builds about double -&gt; float
+        conversion.
+        * wtf/AlwaysInline.h:
+        * wtf/FastMalloc.h:
+
+2007-10-30  Adam Roben  &lt;aroben@apple.com&gt;
+
</ins><span class="cx">         Use GetCurrentThreadId instead of pthread_self in FastMalloc
</span><span class="cx"> 
</span><span class="cx">         Speeds up SunSpider by 0.3%.
</span></span></pre></div>
<a id="trunkJavaScriptCoreJavaScriptCorevcprojJavaScriptCoreJavaScriptCorevcproj"></a>
<div class="modfile"><h4>Modified: trunk/JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj (27296 => 27297)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj        2007-10-31 07:19:37 UTC (rev 27296)
+++ trunk/JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj        2007-10-31 07:20:00 UTC (rev 27297)
</span><span class="lines">@@ -389,6 +389,14 @@
</span><span class="cx">                         &lt;File
</span><span class="cx">                                 RelativePath=&quot;..\..\kjs\number_object.cpp&quot;
</span><span class="cx">                                 &gt;
</span><ins>+                                &lt;FileConfiguration
+                                        Name=&quot;Release|Win32&quot;
+                                        &gt;
+                                        &lt;Tool
+                                                Name=&quot;VCCLCompilerTool&quot;
+                                                DisableSpecificWarnings=&quot;4756&quot;
+                                        /&gt;
+                                &lt;/FileConfiguration&gt;
</ins><span class="cx">                         &lt;/File&gt;
</span><span class="cx">                         &lt;File
</span><span class="cx">                                 RelativePath=&quot;..\..\kjs\number_object.h&quot;
</span></span></pre></div>
<a id="trunkJavaScriptCorewtfAlwaysInlineh"></a>
<div class="modfile"><h4>Modified: trunk/JavaScriptCore/wtf/AlwaysInline.h (27296 => 27297)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/JavaScriptCore/wtf/AlwaysInline.h        2007-10-31 07:19:37 UTC (rev 27296)
+++ trunk/JavaScriptCore/wtf/AlwaysInline.h        2007-10-31 07:20:00 UTC (rev 27297)
</span><span class="lines">@@ -22,6 +22,8 @@
</span><span class="cx"> #ifndef ALWAYS_INLINE
</span><span class="cx"> #if COMPILER(GCC) &amp;&amp; defined(NDEBUG)
</span><span class="cx"> #define ALWAYS_INLINE inline __attribute__ ((__always_inline__))
</span><ins>+#elif COMPILER(MSVC) &amp;&amp; defined(NDEBUG)
+#define ALWAYS_INLINE __forceinline
</ins><span class="cx"> #else
</span><span class="cx"> #define ALWAYS_INLINE inline
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkJavaScriptCorewtfFastMalloch"></a>
<div class="modfile"><h4>Modified: trunk/JavaScriptCore/wtf/FastMalloc.h (27296 => 27297)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/JavaScriptCore/wtf/FastMalloc.h        2007-10-31 07:19:37 UTC (rev 27296)
+++ trunk/JavaScriptCore/wtf/FastMalloc.h        2007-10-31 07:20:00 UTC (rev 27297)
</span><span class="lines">@@ -55,6 +55,8 @@
</span><span class="cx"> #define WTF_PRIVATE_INLINE __private_extern__ inline __attribute__((always_inline))
</span><span class="cx"> #elif COMPILER(GCC)
</span><span class="cx"> #define WTF_PRIVATE_INLINE inline __attribute__((always_inline))
</span><ins>+#elif COMPILER(MSVC)
+#define WTF_PRIVATE_INLINE __forceinline
</ins><span class="cx"> #else
</span><span class="cx"> #define WTF_PRIVATE_INLINE inline
</span><span class="cx"> #endif
</span></span></pre>
</div>
</div>

</body>
</html>