<!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>[173600] trunk/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/173600">173600</a></dd>
<dt>Author</dt> <dd>msaboff@apple.com</dd>
<dt>Date</dt> <dd>2014-09-12 22:21:44 -0700 (Fri, 12 Sep 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Add JSCallee to program and eval CallFrames
https://bugs.webkit.org/show_bug.cgi?id=136785

Reviewed by Mark Lam.

Populated Callee slot for program and call eval CallFrames with a JSCallee objects.
Made supporting changes including adding a JSCallee structure to global object and adding
JSCallee::create() method.  Added code so that the newly added callee object won't be
returned by Function.caller.  Changed null pointer checks of callee to check the if
the type is JSFunction* or JSCallee*.

* debugger/DebuggerCallFrame.cpp:
(JSC::DebuggerCallFrame::functionName):
(JSC::DebuggerCallFrame::type):
* profiler/LegacyProfiler.cpp:
(JSC::LegacyProfiler::createCallIdentifier):
* interpreter/Interpreter.cpp:
(JSC::unwindCallFrame):
Changed checks of callee is a JSFunction* or JSCallee* instead of just checking
if it is null or not.

* interpreter/Interpreter.cpp:
(JSC::Interpreter::execute): Create and use JSCallee objects for execute(EvalExecutable, ...)
and execute(ProgramExecutable, ...)

* jit/JITCode.cpp:
(JSC::JITCode::execute): Use jsDynamicCast to cast only JSFunctions.

* runtime/JSCallee.cpp:
(JSC::JSCallee::create): Not used, therefore deleted.

* runtime/JSCallee.h:
(JSC::JSCallee::create): Added.

* runtime/JSFunction.cpp:
(JSC::JSFunction::callerGetter): Added test to return null for JSCallee's that aren't
JSFunction's.  This can only be the case when the JSCallee comes from a program or
call eval CallFrame.

* runtime/JSGlobalObject.cpp:
(JSC::JSGlobalObject::reset):
(JSC::JSGlobalObject::visitChildren):
* runtime/JSGlobalObject.h:
(JSC::JSGlobalObject::calleeStructure):
Added new JSCallee structure.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceJavaScriptCoreChangeLog">trunk/Source/JavaScriptCore/ChangeLog</a></li>
<li><a href="#trunkSourceJavaScriptCoredebuggerDebuggerCallFramecpp">trunk/Source/JavaScriptCore/debugger/DebuggerCallFrame.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreinterpreterInterpretercpp">trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCorejitJITCodecpp">trunk/Source/JavaScriptCore/jit/JITCode.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreprofilerLegacyProfilercpp">trunk/Source/JavaScriptCore/profiler/LegacyProfiler.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimeJSCalleecpp">trunk/Source/JavaScriptCore/runtime/JSCallee.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimeJSCalleeh">trunk/Source/JavaScriptCore/runtime/JSCallee.h</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimeJSFunctioncpp">trunk/Source/JavaScriptCore/runtime/JSFunction.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimeJSGlobalObjectcpp">trunk/Source/JavaScriptCore/runtime/JSGlobalObject.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimeJSGlobalObjecth">trunk/Source/JavaScriptCore/runtime/JSGlobalObject.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceJavaScriptCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/ChangeLog (173599 => 173600)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/ChangeLog        2014-09-13 02:18:56 UTC (rev 173599)
+++ trunk/Source/JavaScriptCore/ChangeLog        2014-09-13 05:21:44 UTC (rev 173600)
</span><span class="lines">@@ -1,3 +1,51 @@
</span><ins>+2014-09-12  Michael Saboff  &lt;msaboff@apple.com&gt;
+
+        Add JSCallee to program and eval CallFrames
+        https://bugs.webkit.org/show_bug.cgi?id=136785
+
+        Reviewed by Mark Lam.
+
+        Populated Callee slot for program and call eval CallFrames with a JSCallee objects.
+        Made supporting changes including adding a JSCallee structure to global object and adding
+        JSCallee::create() method.  Added code so that the newly added callee object won't be
+        returned by Function.caller.  Changed null pointer checks of callee to check the if
+        the type is JSFunction* or JSCallee*.
+
+        * debugger/DebuggerCallFrame.cpp:
+        (JSC::DebuggerCallFrame::functionName):
+        (JSC::DebuggerCallFrame::type):
+        * profiler/LegacyProfiler.cpp:
+        (JSC::LegacyProfiler::createCallIdentifier):
+        * interpreter/Interpreter.cpp:
+        (JSC::unwindCallFrame):
+        Changed checks of callee is a JSFunction* or JSCallee* instead of just checking
+        if it is null or not.
+
+        * interpreter/Interpreter.cpp:
+        (JSC::Interpreter::execute): Create and use JSCallee objects for execute(EvalExecutable, ...)
+        and execute(ProgramExecutable, ...)
+
+        * jit/JITCode.cpp:
+        (JSC::JITCode::execute): Use jsDynamicCast to cast only JSFunctions.
+
+        * runtime/JSCallee.cpp:
+        (JSC::JSCallee::create): Not used, therefore deleted.
+
+        * runtime/JSCallee.h:
+        (JSC::JSCallee::create): Added.
+
+        * runtime/JSFunction.cpp:
+        (JSC::JSFunction::callerGetter): Added test to return null for JSCallee's that aren't
+        JSFunction's.  This can only be the case when the JSCallee comes from a program or
+        call eval CallFrame.
+
+        * runtime/JSGlobalObject.cpp:
+        (JSC::JSGlobalObject::reset):
+        (JSC::JSGlobalObject::visitChildren):
+        * runtime/JSGlobalObject.h:
+        (JSC::JSGlobalObject::calleeStructure):
+        Added new JSCallee structure.
+
</ins><span class="cx"> 2014-09-10  Jon Honeycutt  &lt;jhoneycutt@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Re-add the request autocomplete feature
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoredebuggerDebuggerCallFramecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/debugger/DebuggerCallFrame.cpp (173599 => 173600)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/debugger/DebuggerCallFrame.cpp        2014-09-13 02:18:56 UTC (rev 173599)
+++ trunk/Source/JavaScriptCore/debugger/DebuggerCallFrame.cpp        2014-09-13 05:21:44 UTC (rev 173600)
</span><span class="lines">@@ -128,7 +128,7 @@
</span><span class="cx">     ASSERT(isValid());
</span><span class="cx">     if (!isValid())
</span><span class="cx">         return String();
</span><del>-    JSObject* function = m_callFrame-&gt;callee();
</del><ins>+    JSFunction* function = jsDynamicCast&lt;JSFunction*&gt;(m_callFrame-&gt;callee());
</ins><span class="cx">     if (!function)
</span><span class="cx">         return String();
</span><span class="cx"> 
</span><span class="lines">@@ -162,7 +162,7 @@
</span><span class="cx">     if (!isValid())
</span><span class="cx">         return ProgramType;
</span><span class="cx"> 
</span><del>-    if (m_callFrame-&gt;callee())
</del><ins>+    if (jsDynamicCast&lt;JSFunction*&gt;(m_callFrame-&gt;callee()))
</ins><span class="cx">         return FunctionType;
</span><span class="cx"> 
</span><span class="cx">     return ProgramType;
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreinterpreterInterpretercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp (173599 => 173600)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp        2014-09-13 02:18:56 UTC (rev 173599)
+++ trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp        2014-09-13 05:21:44 UTC (rev 173600)
</span><span class="lines">@@ -443,7 +443,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (Debugger* debugger = callFrame-&gt;vmEntryGlobalObject()-&gt;debugger()) {
</span><span class="cx">         ClearExceptionScope scope(&amp;callFrame-&gt;vm());
</span><del>-        if (callFrame-&gt;callee())
</del><ins>+        if (jsDynamicCast&lt;JSFunction*&gt;(callFrame-&gt;callee()))
</ins><span class="cx">             debugger-&gt;returnEvent(callFrame);
</span><span class="cx">         else
</span><span class="cx">             debugger-&gt;didExecuteProgram(callFrame);
</span><span class="lines">@@ -914,7 +914,7 @@
</span><span class="cx">     ASSERT(codeBlock-&gt;numParameters() == 1); // 1 parameter for 'this'.
</span><span class="cx"> 
</span><span class="cx">     ProtoCallFrame protoCallFrame;
</span><del>-    protoCallFrame.init(codeBlock, scope, 0, thisObj, 1);
</del><ins>+    protoCallFrame.init(codeBlock, scope, JSCallee::create(vm, scope-&gt;globalObject(), scope), thisObj, 1);
</ins><span class="cx"> 
</span><span class="cx">     if (LegacyProfiler* profiler = vm.enabledProfiler())
</span><span class="cx">         profiler-&gt;willExecute(callFrame, program-&gt;sourceURL(), program-&gt;lineNo(), program-&gt;startColumn());
</span><span class="lines">@@ -1195,7 +1195,7 @@
</span><span class="cx">     ASSERT(codeBlock-&gt;numParameters() == 1); // 1 parameter for 'this'.
</span><span class="cx"> 
</span><span class="cx">     ProtoCallFrame protoCallFrame;
</span><del>-    protoCallFrame.init(codeBlock, scope, 0, thisValue, 1);
</del><ins>+    protoCallFrame.init(codeBlock, scope, JSCallee::create(vm, scope-&gt;globalObject(), scope), thisValue, 1);
</ins><span class="cx"> 
</span><span class="cx">     if (LegacyProfiler* profiler = vm.enabledProfiler())
</span><span class="cx">         profiler-&gt;willExecute(callFrame, eval-&gt;sourceURL(), eval-&gt;lineNo(), eval-&gt;startColumn());
</span></span></pre></div>
<a id="trunkSourceJavaScriptCorejitJITCodecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/jit/JITCode.cpp (173599 => 173600)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/jit/JITCode.cpp        2014-09-13 02:18:56 UTC (rev 173599)
+++ trunk/Source/JavaScriptCore/jit/JITCode.cpp        2014-09-13 05:21:44 UTC (rev 173600)
</span><span class="lines">@@ -46,7 +46,7 @@
</span><span class="cx"> JSValue JITCode::execute(VM* vm, ProtoCallFrame* protoCallFrame)
</span><span class="cx"> {
</span><span class="cx">     void* entryAddress;
</span><del>-    JSFunction* function = jsCast&lt;JSFunction*&gt;(protoCallFrame-&gt;callee());
</del><ins>+    JSFunction* function = jsDynamicCast&lt;JSFunction*&gt;(protoCallFrame-&gt;callee());
</ins><span class="cx"> 
</span><span class="cx">     if (!function || !protoCallFrame-&gt;needArityCheck()) {
</span><span class="cx">         ASSERT(!protoCallFrame-&gt;needArityCheck());
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreprofilerLegacyProfilercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/profiler/LegacyProfiler.cpp (173599 => 173600)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/profiler/LegacyProfiler.cpp        2014-09-13 02:18:56 UTC (rev 173599)
+++ trunk/Source/JavaScriptCore/profiler/LegacyProfiler.cpp        2014-09-13 05:21:44 UTC (rev 173600)
</span><span class="lines">@@ -198,6 +198,8 @@
</span><span class="cx">         return CallIdentifier(ASCIILiteral(&quot;(unknown)&quot;), defaultSourceURL, defaultLineNumber, defaultColumnNumber);
</span><span class="cx">     if (asObject(functionValue)-&gt;inherits(JSFunction::info()) || asObject(functionValue)-&gt;inherits(InternalFunction::info()))
</span><span class="cx">         return createCallIdentifierFromFunctionImp(exec, asObject(functionValue), defaultSourceURL, defaultLineNumber, defaultColumnNumber);
</span><ins>+    if (asObject(functionValue)-&gt;inherits(JSCallee::info()))
+        return CallIdentifier(ASCIILiteral(GlobalCodeExecution), defaultSourceURL, defaultLineNumber, defaultColumnNumber);
</ins><span class="cx">     return CallIdentifier(asObject(functionValue)-&gt;methodTable()-&gt;className(asObject(functionValue)), defaultSourceURL, defaultLineNumber, defaultColumnNumber);
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimeJSCalleecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/JSCallee.cpp (173599 => 173600)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/JSCallee.cpp        2014-09-13 02:18:56 UTC (rev 173599)
+++ trunk/Source/JavaScriptCore/runtime/JSCallee.cpp        2014-09-13 05:21:44 UTC (rev 173600)
</span><span class="lines">@@ -39,13 +39,6 @@
</span><span class="cx"> 
</span><span class="cx"> const ClassInfo JSCallee::s_info = { &quot;Callee&quot;, &amp;Base::s_info, 0, CREATE_METHOD_TABLE(JSCallee) };
</span><span class="cx"> 
</span><del>-JSCallee* JSCallee::create(VM&amp; vm, JSGlobalObject* globalObject)
-{
-    JSCallee* function = new (NotNull, allocateCell&lt;JSCallee&gt;(vm.heap)) JSCallee(vm, globalObject, globalObject-&gt;functionStructure());
-    function-&gt;finishCreation(vm);
-    return function;
-}
-
</del><span class="cx"> void JSCallee::destroy(JSCell* cell)
</span><span class="cx"> {
</span><span class="cx">     static_cast&lt;JSCallee*&gt;(cell)-&gt;JSCallee::~JSCallee();
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimeJSCalleeh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/JSCallee.h (173599 => 173600)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/JSCallee.h        2014-09-13 02:18:56 UTC (rev 173599)
+++ trunk/Source/JavaScriptCore/runtime/JSCallee.h        2014-09-13 05:21:44 UTC (rev 173600)
</span><span class="lines">@@ -27,6 +27,7 @@
</span><span class="cx"> #define JSCallee_h
</span><span class="cx"> 
</span><span class="cx"> #include &quot;JSDestructibleObject.h&quot;
</span><ins>+#include &quot;JSGlobalObject.h&quot;
</ins><span class="cx"> #include &quot;JSScope.h&quot;
</span><span class="cx"> 
</span><span class="cx"> namespace JSC {
</span><span class="lines">@@ -46,8 +47,13 @@
</span><span class="cx"> public:
</span><span class="cx">     typedef JSDestructibleObject Base;
</span><span class="cx"> 
</span><del>-    JS_EXPORT_PRIVATE static JSCallee* create(VM&amp;, JSGlobalObject*);
-
</del><ins>+    static JSCallee* create(VM&amp; vm, JSGlobalObject* globalObject, JSScope* scope)
+    {
+        JSCallee* callee = new (NotNull, allocateCell&lt;JSCallee&gt;(vm.heap)) JSCallee(vm, scope, globalObject-&gt;calleeStructure());
+        callee-&gt;finishCreation(vm);
+        return callee;
+    }
+    
</ins><span class="cx">     static void destroy(JSCell*);
</span><span class="cx"> 
</span><span class="cx">     JSScope* scope()
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimeJSFunctioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/JSFunction.cpp (173599 => 173600)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/JSFunction.cpp        2014-09-13 02:18:56 UTC (rev 173599)
+++ trunk/Source/JavaScriptCore/runtime/JSFunction.cpp        2014-09-13 05:21:44 UTC (rev 173600)
</span><span class="lines">@@ -289,8 +289,12 @@
</span><span class="cx">     JSValue caller = retrieveCallerFunction(exec, thisObj);
</span><span class="cx"> 
</span><span class="cx">     // See ES5.1 15.3.5.4 - Function.caller may not be used to retrieve a strict caller.
</span><del>-    if (!caller.isObject() || !asObject(caller)-&gt;inherits(JSFunction::info()))
</del><ins>+    if (!caller.isObject() || !asObject(caller)-&gt;inherits(JSFunction::info())) {
+        // It isn't a JSFunction, but if it is a JSCallee from a program or call eval, return null.
+        if (jsDynamicCast&lt;JSCallee*&gt;(caller))
+            return JSValue::encode(jsNull());
</ins><span class="cx">         return JSValue::encode(caller);
</span><ins>+    }
</ins><span class="cx">     JSFunction* function = jsCast&lt;JSFunction*&gt;(caller);
</span><span class="cx">     if (function-&gt;isHostOrBuiltinFunction() || !function-&gt;jsExecutable()-&gt;isStrictMode())
</span><span class="cx">         return JSValue::encode(caller);
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimeJSGlobalObjectcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/JSGlobalObject.cpp (173599 => 173600)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/JSGlobalObject.cpp        2014-09-13 02:18:56 UTC (rev 173599)
+++ trunk/Source/JavaScriptCore/runtime/JSGlobalObject.cpp        2014-09-13 05:21:44 UTC (rev 173600)
</span><span class="lines">@@ -280,6 +280,7 @@
</span><span class="cx">     VM&amp; vm = exec-&gt;vm();
</span><span class="cx"> 
</span><span class="cx">     m_functionPrototype.set(vm, this, FunctionPrototype::create(vm, FunctionPrototype::createStructure(vm, this, jsNull()))); // The real prototype will be set once ObjectPrototype is created.
</span><ins>+    m_calleeStructure.set(vm, this, JSCallee::createStructure(vm, this, jsNull()));
</ins><span class="cx">     m_functionStructure.set(vm, this, JSFunction::createStructure(vm, this, m_functionPrototype.get()));
</span><span class="cx">     m_boundFunctionStructure.set(vm, this, JSBoundFunction::createStructure(vm, this, m_functionPrototype.get()));
</span><span class="cx">     m_namedFunctionStructure.set(vm, this, Structure::addPropertyTransition(vm, m_functionStructure.get(), vm.propertyNames-&gt;name, DontDelete | ReadOnly | DontEnum, m_functionNameOffset));
</span><span class="lines">@@ -684,6 +685,7 @@
</span><span class="cx"> #endif
</span><span class="cx">     visitor.append(&amp;thisObject-&gt;m_nullPrototypeObjectStructure);
</span><span class="cx">     visitor.append(&amp;thisObject-&gt;m_errorStructure);
</span><ins>+    visitor.append(&amp;thisObject-&gt;m_calleeStructure);
</ins><span class="cx">     visitor.append(&amp;thisObject-&gt;m_functionStructure);
</span><span class="cx">     visitor.append(&amp;thisObject-&gt;m_boundFunctionStructure);
</span><span class="cx">     visitor.append(&amp;thisObject-&gt;m_namedFunctionStructure);
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimeJSGlobalObjecth"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/JSGlobalObject.h (173599 => 173600)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/JSGlobalObject.h        2014-09-13 02:18:56 UTC (rev 173599)
+++ trunk/Source/JavaScriptCore/runtime/JSGlobalObject.h        2014-09-13 05:21:44 UTC (rev 173600)
</span><span class="lines">@@ -206,6 +206,7 @@
</span><span class="cx">     WriteBarrier&lt;Structure&gt; m_objcWrapperObjectStructure;
</span><span class="cx"> #endif
</span><span class="cx">     WriteBarrier&lt;Structure&gt; m_nullPrototypeObjectStructure;
</span><ins>+    WriteBarrier&lt;Structure&gt; m_calleeStructure;
</ins><span class="cx">     WriteBarrier&lt;Structure&gt; m_functionStructure;
</span><span class="cx">     WriteBarrier&lt;Structure&gt; m_boundFunctionStructure;
</span><span class="cx">     WriteBarrier&lt;Structure&gt; m_namedFunctionStructure;
</span><span class="lines">@@ -429,6 +430,7 @@
</span><span class="cx">     Structure* dateStructure() const { return m_dateStructure.get(); }
</span><span class="cx">     Structure* nullPrototypeObjectStructure() const { return m_nullPrototypeObjectStructure.get(); }
</span><span class="cx">     Structure* errorStructure() const { return m_errorStructure.get(); }
</span><ins>+    Structure* calleeStructure() const { return m_calleeStructure.get(); }
</ins><span class="cx">     Structure* functionStructure() const { return m_functionStructure.get(); }
</span><span class="cx">     Structure* boundFunctionStructure() const { return m_boundFunctionStructure.get(); }
</span><span class="cx">     Structure* namedFunctionStructure() const { return m_namedFunctionStructure.get(); }
</span></span></pre>
</div>
</div>

</body>
</html>