<!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>[150816] branches/dfgFourthTier</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/150816">150816</a></dd>
<dt>Author</dt> <dd>fpizlo@apple.com</dd>
<dt>Date</dt> <dd>2013-05-28 11:33:25 -0700 (Tue, 28 May 2013)</dd>
</dl>

<h3>Log Message</h3>
<pre>testRunner should have a way of disabling inlining of functions
https://bugs.webkit.org/show_bug.cgi?id=116875

Reviewed by Mark Hahnenberg.

Source/JavaScriptCore: 

* API/JSCTestRunnerUtils.cpp:
(JSC::getExecutable):
(JSC):
(JSC::numberOfDFGCompiles):
(JSC::setNeverInline):
* API/JSCTestRunnerUtils.h:
(JSC):
* bytecode/CodeBlock.cpp:
(JSC::CodeBlock::dumpAssumingJITType):
* dfg/DFGCapabilities.cpp:
(JSC::DFG::mightInlineFunctionForCall):
(JSC::DFG::mightInlineFunctionForClosureCall):
(JSC::DFG::mightInlineFunctionForConstruct):
* runtime/Executable.h:
(JSC::ScriptExecutable::ScriptExecutable):
(ScriptExecutable):
(JSC::ScriptExecutable::setNeverInline):
(JSC::ScriptExecutable::neverInline):
(JSC::ScriptExecutable::isInliningCandidate):

Tools: 

* DumpRenderTree/TestRunner.cpp:
(neverInlineFunction):
(TestRunner::staticFunctions):

LayoutTests: 

* fast/js/script-tests/dfg-min-max.js:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#branchesdfgFourthTierLayoutTestsChangeLog">branches/dfgFourthTier/LayoutTests/ChangeLog</a></li>
<li><a href="#branchesdfgFourthTierLayoutTestsfastjsscripttestsdfgminmaxjs">branches/dfgFourthTier/LayoutTests/fast/js/script-tests/dfg-min-max.js</a></li>
<li><a href="#branchesdfgFourthTierSourceJavaScriptCoreAPIJSCTestRunnerUtilscpp">branches/dfgFourthTier/Source/JavaScriptCore/API/JSCTestRunnerUtils.cpp</a></li>
<li><a href="#branchesdfgFourthTierSourceJavaScriptCoreAPIJSCTestRunnerUtilsh">branches/dfgFourthTier/Source/JavaScriptCore/API/JSCTestRunnerUtils.h</a></li>
<li><a href="#branchesdfgFourthTierSourceJavaScriptCoreChangeLog">branches/dfgFourthTier/Source/JavaScriptCore/ChangeLog</a></li>
<li><a href="#branchesdfgFourthTierSourceJavaScriptCorebytecodeCodeBlockcpp">branches/dfgFourthTier/Source/JavaScriptCore/bytecode/CodeBlock.cpp</a></li>
<li><a href="#branchesdfgFourthTierSourceJavaScriptCoredfgDFGCapabilitiescpp">branches/dfgFourthTier/Source/JavaScriptCore/dfg/DFGCapabilities.cpp</a></li>
<li><a href="#branchesdfgFourthTierSourceJavaScriptCoreruntimeExecutableh">branches/dfgFourthTier/Source/JavaScriptCore/runtime/Executable.h</a></li>
<li><a href="#branchesdfgFourthTierToolsChangeLog">branches/dfgFourthTier/Tools/ChangeLog</a></li>
<li><a href="#branchesdfgFourthTierToolsDumpRenderTreeTestRunnercpp">branches/dfgFourthTier/Tools/DumpRenderTree/TestRunner.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="branchesdfgFourthTierLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: branches/dfgFourthTier/LayoutTests/ChangeLog (150815 => 150816)</h4>
<pre class="diff"><span>
<span class="info">--- branches/dfgFourthTier/LayoutTests/ChangeLog        2013-05-28 18:32:14 UTC (rev 150815)
+++ branches/dfgFourthTier/LayoutTests/ChangeLog        2013-05-28 18:33:25 UTC (rev 150816)
</span><span class="lines">@@ -1,3 +1,12 @@
</span><ins>+2013-05-28  Filip Pizlo  &lt;fpizlo@apple.com&gt;
+
+        testRunner should have a way of disabling inlining of functions
+        https://bugs.webkit.org/show_bug.cgi?id=116875
+
+        Reviewed by Mark Hahnenberg.
+
+        * fast/js/script-tests/dfg-min-max.js:
+
</ins><span class="cx"> 2013-05-27  Filip Pizlo  &lt;fpizlo@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         testRunner should be able to tell you if a function is DFG compiled
</span></span></pre></div>
<a id="branchesdfgFourthTierLayoutTestsfastjsscripttestsdfgminmaxjs"></a>
<div class="modfile"><h4>Modified: branches/dfgFourthTier/LayoutTests/fast/js/script-tests/dfg-min-max.js (150815 => 150816)</h4>
<pre class="diff"><span>
<span class="info">--- branches/dfgFourthTier/LayoutTests/fast/js/script-tests/dfg-min-max.js        2013-05-28 18:32:14 UTC (rev 150815)
+++ branches/dfgFourthTier/LayoutTests/fast/js/script-tests/dfg-min-max.js        2013-05-28 18:33:25 UTC (rev 150816)
</span><span class="lines">@@ -10,6 +10,9 @@
</span><span class="cx">     return Math.max(a, b);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+testRunner.neverInlineFunction(doMin);
+testRunner.neverInlineFunction(doMax);
+
</ins><span class="cx"> var count = 0;
</span><span class="cx"> while (!testRunner.numberOfDFGCompiles(doMin) || !testRunner.numberOfDFGCompiles(doMax)) {
</span><span class="cx">     doMin(1.5, 2.5);
</span></span></pre></div>
<a id="branchesdfgFourthTierSourceJavaScriptCoreAPIJSCTestRunnerUtilscpp"></a>
<div class="modfile"><h4>Modified: branches/dfgFourthTier/Source/JavaScriptCore/API/JSCTestRunnerUtils.cpp (150815 => 150816)</h4>
<pre class="diff"><span>
<span class="info">--- branches/dfgFourthTier/Source/JavaScriptCore/API/JSCTestRunnerUtils.cpp        2013-05-28 18:32:14 UTC (rev 150815)
+++ branches/dfgFourthTier/Source/JavaScriptCore/API/JSCTestRunnerUtils.cpp        2013-05-28 18:33:25 UTC (rev 150816)
</span><span class="lines">@@ -32,26 +32,40 @@
</span><span class="cx"> 
</span><span class="cx"> namespace JSC {
</span><span class="cx"> 
</span><del>-JSValueRef numberOfDFGCompiles(JSContextRef context, JSValueRef theFunctionValueRef)
</del><ins>+static FunctionExecutable* getExecutable(JSContextRef context, JSValueRef theFunctionValueRef)
</ins><span class="cx"> {
</span><span class="cx">     ExecState* exec = toJS(context);
</span><span class="cx">     JSValue theFunctionValue = toJS(exec, theFunctionValueRef);
</span><span class="cx">     
</span><span class="cx">     JSFunction* theFunction = jsDynamicCast&lt;JSFunction*&gt;(theFunctionValue);
</span><span class="cx">     if (!theFunction)
</span><del>-        return JSValueMakeUndefined(context);
</del><ins>+        return 0;
</ins><span class="cx">     
</span><span class="cx">     FunctionExecutable* executable = jsDynamicCast&lt;FunctionExecutable*&gt;(
</span><span class="cx">         theFunction-&gt;executable());
</span><del>-    if (!executable)
-        return JSValueMakeUndefined(context);
</del><ins>+    return executable;
+}
+
+JSValueRef numberOfDFGCompiles(JSContextRef context, JSValueRef theFunctionValueRef)
+{
+    if (FunctionExecutable* executable = getExecutable(context, theFunctionValueRef)) {
+        CodeBlock* baselineCodeBlock = executable-&gt;baselineCodeBlockFor(CodeForCall);
+        
+        if (!baselineCodeBlock)
+            return JSValueMakeNumber(context, 0);
+        
+        return JSValueMakeNumber(context, baselineCodeBlock-&gt;numberOfDFGCompiles());
+    }
</ins><span class="cx">     
</span><del>-    CodeBlock* baselineCodeBlock = executable-&gt;baselineCodeBlockFor(CodeForCall);
</del><ins>+    return JSValueMakeUndefined(context);
+}
+
+JSValueRef setNeverInline(JSContextRef context, JSValueRef theFunctionValueRef)
+{
+    if (FunctionExecutable* executable = getExecutable(context, theFunctionValueRef))
+        executable-&gt;setNeverInline(true);
</ins><span class="cx">     
</span><del>-    if (!baselineCodeBlock)
-        return JSValueMakeNumber(context, 0);
-    
-    return JSValueMakeNumber(context, baselineCodeBlock-&gt;numberOfDFGCompiles());
</del><ins>+    return JSValueMakeUndefined(context);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> } // namespace JSC
</span></span></pre></div>
<a id="branchesdfgFourthTierSourceJavaScriptCoreAPIJSCTestRunnerUtilsh"></a>
<div class="modfile"><h4>Modified: branches/dfgFourthTier/Source/JavaScriptCore/API/JSCTestRunnerUtils.h (150815 => 150816)</h4>
<pre class="diff"><span>
<span class="info">--- branches/dfgFourthTier/Source/JavaScriptCore/API/JSCTestRunnerUtils.h        2013-05-28 18:32:14 UTC (rev 150815)
+++ branches/dfgFourthTier/Source/JavaScriptCore/API/JSCTestRunnerUtils.h        2013-05-28 18:33:25 UTC (rev 150816)
</span><span class="lines">@@ -32,6 +32,7 @@
</span><span class="cx"> namespace JSC {
</span><span class="cx"> 
</span><span class="cx"> JS_EXPORT_PRIVATE JSValueRef numberOfDFGCompiles(JSContextRef, JSValueRef theFunction);
</span><ins>+JS_EXPORT_PRIVATE JSValueRef setNeverInline(JSContextRef, JSValueRef theFunction);
</ins><span class="cx"> 
</span><span class="cx"> } // namespace JSC
</span><span class="cx"> 
</span></span></pre></div>
<a id="branchesdfgFourthTierSourceJavaScriptCoreChangeLog"></a>
<div class="modfile"><h4>Modified: branches/dfgFourthTier/Source/JavaScriptCore/ChangeLog (150815 => 150816)</h4>
<pre class="diff"><span>
<span class="info">--- branches/dfgFourthTier/Source/JavaScriptCore/ChangeLog        2013-05-28 18:32:14 UTC (rev 150815)
+++ branches/dfgFourthTier/Source/JavaScriptCore/ChangeLog        2013-05-28 18:33:25 UTC (rev 150816)
</span><span class="lines">@@ -1,3 +1,30 @@
</span><ins>+2013-05-28  Filip Pizlo  &lt;fpizlo@apple.com&gt;
+
+        testRunner should have a way of disabling inlining of functions
+        https://bugs.webkit.org/show_bug.cgi?id=116875
+
+        Reviewed by Mark Hahnenberg.
+
+        * API/JSCTestRunnerUtils.cpp:
+        (JSC::getExecutable):
+        (JSC):
+        (JSC::numberOfDFGCompiles):
+        (JSC::setNeverInline):
+        * API/JSCTestRunnerUtils.h:
+        (JSC):
+        * bytecode/CodeBlock.cpp:
+        (JSC::CodeBlock::dumpAssumingJITType):
+        * dfg/DFGCapabilities.cpp:
+        (JSC::DFG::mightInlineFunctionForCall):
+        (JSC::DFG::mightInlineFunctionForClosureCall):
+        (JSC::DFG::mightInlineFunctionForConstruct):
+        * runtime/Executable.h:
+        (JSC::ScriptExecutable::ScriptExecutable):
+        (ScriptExecutable):
+        (JSC::ScriptExecutable::setNeverInline):
+        (JSC::ScriptExecutable::neverInline):
+        (JSC::ScriptExecutable::isInliningCandidate):
+
</ins><span class="cx"> 2013-05-27  Filip Pizlo  &lt;fpizlo@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         fourthTier: FTL should support ArithMod
</span></span></pre></div>
<a id="branchesdfgFourthTierSourceJavaScriptCorebytecodeCodeBlockcpp"></a>
<div class="modfile"><h4>Modified: branches/dfgFourthTier/Source/JavaScriptCore/bytecode/CodeBlock.cpp (150815 => 150816)</h4>
<pre class="diff"><span>
<span class="info">--- branches/dfgFourthTier/Source/JavaScriptCore/bytecode/CodeBlock.cpp        2013-05-28 18:32:14 UTC (rev 150815)
+++ branches/dfgFourthTier/Source/JavaScriptCore/bytecode/CodeBlock.cpp        2013-05-28 18:33:25 UTC (rev 150816)
</span><span class="lines">@@ -115,6 +115,8 @@
</span><span class="cx">         out.print(specializationKind());
</span><span class="cx">     if (m_shouldAlwaysBeInlined)
</span><span class="cx">         out.print(&quot; (SABI)&quot;);
</span><ins>+    if (ownerExecutable()-&gt;neverInline())
+        out.print(&quot; (NeverInline)&quot;);
</ins><span class="cx">     out.print(&quot;]&quot;);
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="branchesdfgFourthTierSourceJavaScriptCoredfgDFGCapabilitiescpp"></a>
<div class="modfile"><h4>Modified: branches/dfgFourthTier/Source/JavaScriptCore/dfg/DFGCapabilities.cpp (150815 => 150816)</h4>
<pre class="diff"><span>
<span class="info">--- branches/dfgFourthTier/Source/JavaScriptCore/dfg/DFGCapabilities.cpp        2013-05-28 18:32:14 UTC (rev 150815)
+++ branches/dfgFourthTier/Source/JavaScriptCore/dfg/DFGCapabilities.cpp        2013-05-28 18:33:25 UTC (rev 150816)
</span><span class="lines">@@ -53,17 +53,20 @@
</span><span class="cx"> bool mightInlineFunctionForCall(CodeBlock* codeBlock)
</span><span class="cx"> {
</span><span class="cx">     return codeBlock-&gt;instructionCount() &lt;= Options::maximumFunctionForCallInlineCandidateInstructionCount()
</span><del>-        &amp;&amp; !codeBlock-&gt;ownerExecutable()-&gt;needsActivation();
</del><ins>+        &amp;&amp; !codeBlock-&gt;ownerExecutable()-&gt;needsActivation()
+        &amp;&amp; codeBlock-&gt;ownerExecutable()-&gt;isInliningCandidate();
</ins><span class="cx"> }
</span><span class="cx"> bool mightInlineFunctionForClosureCall(CodeBlock* codeBlock)
</span><span class="cx"> {
</span><span class="cx">     return codeBlock-&gt;instructionCount() &lt;= Options::maximumFunctionForClosureCallInlineCandidateInstructionCount()
</span><del>-        &amp;&amp; !codeBlock-&gt;ownerExecutable()-&gt;needsActivation();
</del><ins>+        &amp;&amp; !codeBlock-&gt;ownerExecutable()-&gt;needsActivation()
+        &amp;&amp; codeBlock-&gt;ownerExecutable()-&gt;isInliningCandidate();
</ins><span class="cx"> }
</span><span class="cx"> bool mightInlineFunctionForConstruct(CodeBlock* codeBlock)
</span><span class="cx"> {
</span><span class="cx">     return codeBlock-&gt;instructionCount() &lt;= Options::maximumFunctionForConstructInlineCandidateInstructionCount()
</span><del>-        &amp;&amp; !codeBlock-&gt;ownerExecutable()-&gt;needsActivation();
</del><ins>+        &amp;&amp; !codeBlock-&gt;ownerExecutable()-&gt;needsActivation()
+        &amp;&amp; codeBlock-&gt;ownerExecutable()-&gt;isInliningCandidate();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> inline void debugFail(CodeBlock* codeBlock, OpcodeID opcodeID, CapabilityLevel result)
</span></span></pre></div>
<a id="branchesdfgFourthTierSourceJavaScriptCoreruntimeExecutableh"></a>
<div class="modfile"><h4>Modified: branches/dfgFourthTier/Source/JavaScriptCore/runtime/Executable.h (150815 => 150816)</h4>
<pre class="diff"><span>
<span class="info">--- branches/dfgFourthTier/Source/JavaScriptCore/runtime/Executable.h        2013-05-28 18:32:14 UTC (rev 150815)
+++ branches/dfgFourthTier/Source/JavaScriptCore/runtime/Executable.h        2013-05-28 18:33:25 UTC (rev 150816)
</span><span class="lines">@@ -355,6 +355,7 @@
</span><span class="cx">             : ExecutableBase(vm, structure, NUM_PARAMETERS_NOT_COMPILED)
</span><span class="cx">             , m_source(source)
</span><span class="cx">             , m_features(isInStrictContext ? StrictModeFeature : 0)
</span><ins>+            , m_neverInline(false)
</ins><span class="cx">         {
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="lines">@@ -362,6 +363,7 @@
</span><span class="cx">             : ExecutableBase(exec-&gt;vm(), structure, NUM_PARAMETERS_NOT_COMPILED)
</span><span class="cx">             , m_source(source)
</span><span class="cx">             , m_features(isInStrictContext ? StrictModeFeature : 0)
</span><ins>+            , m_neverInline(false)
</ins><span class="cx">         {
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="lines">@@ -381,6 +383,10 @@
</span><span class="cx">         bool usesArguments() const { return m_features &amp; ArgumentsFeature; }
</span><span class="cx">         bool needsActivation() const { return m_hasCapturedVariables || m_features &amp; (EvalFeature | WithFeature | CatchFeature); }
</span><span class="cx">         bool isStrictMode() const { return m_features &amp; StrictModeFeature; }
</span><ins>+        
+        void setNeverInline(bool value) { m_neverInline = value; }
+        bool neverInline() const { return m_neverInline; }
+        bool isInliningCandidate() const { return !neverInline(); }
</ins><span class="cx"> 
</span><span class="cx">         void unlinkCalls();
</span><span class="cx">         
</span><span class="lines">@@ -411,6 +417,7 @@
</span><span class="cx">         SourceCode m_source;
</span><span class="cx">         CodeFeatures m_features;
</span><span class="cx">         bool m_hasCapturedVariables;
</span><ins>+        bool m_neverInline;
</ins><span class="cx">         int m_firstLine;
</span><span class="cx">         int m_lastLine;
</span><span class="cx">     };
</span></span></pre></div>
<a id="branchesdfgFourthTierToolsChangeLog"></a>
<div class="modfile"><h4>Modified: branches/dfgFourthTier/Tools/ChangeLog (150815 => 150816)</h4>
<pre class="diff"><span>
<span class="info">--- branches/dfgFourthTier/Tools/ChangeLog        2013-05-28 18:32:14 UTC (rev 150815)
+++ branches/dfgFourthTier/Tools/ChangeLog        2013-05-28 18:33:25 UTC (rev 150816)
</span><span class="lines">@@ -1,3 +1,14 @@
</span><ins>+2013-05-28  Filip Pizlo  &lt;fpizlo@apple.com&gt;
+
+        testRunner should have a way of disabling inlining of functions
+        https://bugs.webkit.org/show_bug.cgi?id=116875
+
+        Reviewed by Mark Hahnenberg.
+
+        * DumpRenderTree/TestRunner.cpp:
+        (neverInlineFunction):
+        (TestRunner::staticFunctions):
+
</ins><span class="cx"> 2013-05-27  Filip Pizlo  &lt;fpizlo@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         testRunner should be able to tell you if a function is DFG compiled
</span></span></pre></div>
<a id="branchesdfgFourthTierToolsDumpRenderTreeTestRunnercpp"></a>
<div class="modfile"><h4>Modified: branches/dfgFourthTier/Tools/DumpRenderTree/TestRunner.cpp (150815 => 150816)</h4>
<pre class="diff"><span>
<span class="info">--- branches/dfgFourthTier/Tools/DumpRenderTree/TestRunner.cpp        2013-05-28 18:32:14 UTC (rev 150815)
+++ branches/dfgFourthTier/Tools/DumpRenderTree/TestRunner.cpp        2013-05-28 18:33:25 UTC (rev 150816)
</span><span class="lines">@@ -1964,6 +1964,14 @@
</span><span class="cx">     return JSC::numberOfDFGCompiles(context, arguments[0]);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+static JSValueRef neverInlineFunction(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
+{
+    if (argumentCount &lt; 1)
+        return JSValueMakeUndefined(context);
+    
+    return JSC::setNeverInline(context, arguments[0]);
+}
+
</ins><span class="cx"> static void testRunnerObjectFinalize(JSObjectRef object)
</span><span class="cx"> {
</span><span class="cx">     TestRunner* controller = static_cast&lt;TestRunner*&gt;(JSObjectGetPrivate(object));
</span><span class="lines">@@ -2165,6 +2173,7 @@
</span><span class="cx">         { &quot;removeAllWebNotificationPermissions&quot;, removeAllWebNotificationPermissionsCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
</span><span class="cx">         { &quot;simulateWebNotificationClick&quot;, simulateWebNotificationClickCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
</span><span class="cx">         { &quot;numberOfDFGCompiles&quot;, numberOfDFGCompiles, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
</span><ins>+        { &quot;neverInlineFunction&quot;, neverInlineFunction, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
</ins><span class="cx">         { 0, 0, 0 }
</span><span class="cx">     };
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>