<!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>[208404] trunk</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/208404">208404</a></dd>
<dt>Author</dt> <dd>ggaren@apple.com</dd>
<dt>Date</dt> <dd>2016-11-04 16:02:19 -0700 (Fri, 04 Nov 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>EvalCodeCache should not give up in strict mode and other cases
https://bugs.webkit.org/show_bug.cgi?id=164357

Reviewed by Michael Saboff.

JSTests:

* microbenchmarks/eval-cached.js: Added. 45x faster now.
* stress/eval-cached.js: Added. Try running the same eval text in a bunch
of different scopes and verify that we access the right scope.

Source/JavaScriptCore:

EvalCodeCache gives up in non-trivial cases because generated eval code
can't soundly migrate from, for example, a let scope to a non-let scope.
The number of cases has grown over time.

Instead, let's cache eval code based on the location of the call to
eval(). That way, we never relocate the code, and it's sound to make
normal assumptions about our surrounding scope.

* bytecode/EvalCodeCache.h:
(JSC::EvalCodeCache::CacheKey::CacheKey): Use CallSiteIndex to uniquely
identify the location of our call to eval().

(JSC::EvalCodeCache::CacheKey::hash):
(JSC::EvalCodeCache::CacheKey::operator==):
(JSC::EvalCodeCache::CacheKey::Hash::equal): Use CallSiteIndex instead
of lots of other flags.

(JSC::EvalCodeCache::tryGet): No need to include details that are implied
by our CallSiteIndex.

(JSC::EvalCodeCache::getSlow): No need to skip caching in complex
situations. We promise we'll never relocate the cached code.

(JSC::EvalCodeCache::isCacheableScope): Deleted.
(JSC::EvalCodeCache::isCacheable): Deleted.

* interpreter/Interpreter.cpp:
(JSC::eval): Pass through a CallSiteIndex to uniquely identify this call
to eval().</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkJSTestsChangeLog">trunk/JSTests/ChangeLog</a></li>
<li><a href="#trunkSourceJavaScriptCoreChangeLog">trunk/Source/JavaScriptCore/ChangeLog</a></li>
<li><a href="#trunkSourceJavaScriptCorebytecodeEvalCodeCacheh">trunk/Source/JavaScriptCore/bytecode/EvalCodeCache.h</a></li>
<li><a href="#trunkSourceJavaScriptCoreinterpreterCallFrameh">trunk/Source/JavaScriptCore/interpreter/CallFrame.h</a></li>
<li><a href="#trunkSourceJavaScriptCoreinterpreterInterpretercpp">trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkJSTestsmicrobenchmarksevalcachedjs">trunk/JSTests/microbenchmarks/eval-cached.js</a></li>
<li><a href="#trunkJSTestsstressevalcachedjs">trunk/JSTests/stress/eval-cached.js</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkJSTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/JSTests/ChangeLog (208403 => 208404)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/JSTests/ChangeLog        2016-11-04 22:53:33 UTC (rev 208403)
+++ trunk/JSTests/ChangeLog        2016-11-04 23:02:19 UTC (rev 208404)
</span><span class="lines">@@ -1,3 +1,14 @@
</span><ins>+2016-11-03  Geoffrey Garen  &lt;ggaren@apple.com&gt;
+
+        EvalCodeCache should not give up in strict mode and other cases
+        https://bugs.webkit.org/show_bug.cgi?id=164357
+
+        Reviewed by Michael Saboff.
+
+        * microbenchmarks/eval-cached.js: Added. 45x faster now.
+        * stress/eval-cached.js: Added. Try running the same eval text in a bunch
+        of different scopes and verify that we access the right scope.
+
</ins><span class="cx"> 2016-11-04  JF Bastien  &lt;jfbastien@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         WebAssembly JS API: implement more sections
</span></span></pre></div>
<a id="trunkJSTestsmicrobenchmarksevalcachedjs"></a>
<div class="addfile"><h4>Added: trunk/JSTests/microbenchmarks/eval-cached.js (0 => 208404)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/JSTests/microbenchmarks/eval-cached.js                                (rev 0)
+++ trunk/JSTests/microbenchmarks/eval-cached.js        2016-11-04 23:02:19 UTC (rev 208404)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+function foo(string) {
+    let result = 42;
+    for (let i = 0; i &lt; 1000; ++i)
+        eval(string);
+    return result;
+}
+
+noInline(foo);
+
+for (let i = 0; i &lt; 200; ++i) {
+    let result = foo(&quot;++result&quot;);
+    if (result != 42 + 1000)
+        throw &quot;Error: bad result: &quot; + result;
+}
</ins></span></pre></div>
<a id="trunkJSTestsstressevalcachedjs"></a>
<div class="addfile"><h4>Added: trunk/JSTests/stress/eval-cached.js (0 => 208404)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/JSTests/stress/eval-cached.js                                (rev 0)
+++ trunk/JSTests/stress/eval-cached.js        2016-11-04 23:02:19 UTC (rev 208404)
</span><span class="lines">@@ -0,0 +1,79 @@
</span><ins>+(function () {
+    &quot;use strict&quot;;
+
+    function verify() {
+        for (var i = 0; i &lt; counter; ++i) {
+            if (results[i] != i)
+                throw &quot;strict mode verify() failed for item &quot; + i + &quot;.&quot;
+        }
+    }
+
+    let results = [ ];
+    let counter = 0;
+
+    let x = counter++;
+    results.push(eval(&quot;x&quot;));
+
+    {
+        let x = counter++;
+        results.push(eval(&quot;x&quot;));
+    }
+
+    try {
+        throw counter++;
+    } catch (x) {
+        results.push(eval(&quot;x&quot;));
+    }
+
+    (() =&gt; {
+        var x = counter++;
+        results.push(eval(&quot;x&quot;));
+    })();
+
+    (function (x) {
+        results.push(eval(&quot;x&quot;));
+    })(counter++);
+
+    verify();
+})();
+
+(function () {
+    function verify() {
+        for (var i = 0; i &lt; counter; ++i) {
+            if (results[i] != i)
+                throw &quot;non-strict mode verify() failed for item &quot; + i + &quot;.&quot;
+        }
+    }
+
+    let results = [ ];
+    let counter = 0;
+
+    let x = counter++;
+    results.push(eval(&quot;x&quot;));
+
+    {
+        let x = counter++;
+        results.push(eval(&quot;x&quot;));
+    }
+
+    try {
+        throw counter++;
+    } catch (x) {
+        results.push(eval(&quot;x&quot;));
+    }
+
+    (() =&gt; {
+        var x = counter++;
+        results.push(eval(&quot;x&quot;));
+    })();
+
+    (function (x) {
+        results.push(eval(&quot;x&quot;));
+    })(counter++);
+
+    with ({ x : counter++ }) {
+        results.push(eval(&quot;x&quot;));
+    }
+
+    verify();
+})();
</ins></span></pre></div>
<a id="trunkSourceJavaScriptCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/ChangeLog (208403 => 208404)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/ChangeLog        2016-11-04 22:53:33 UTC (rev 208403)
+++ trunk/Source/JavaScriptCore/ChangeLog        2016-11-04 23:02:19 UTC (rev 208404)
</span><span class="lines">@@ -1,3 +1,40 @@
</span><ins>+2016-11-02  Geoffrey Garen  &lt;ggaren@apple.com&gt;
+
+        EvalCodeCache should not give up in strict mode and other cases
+        https://bugs.webkit.org/show_bug.cgi?id=164357
+
+        Reviewed by Michael Saboff.
+
+        EvalCodeCache gives up in non-trivial cases because generated eval code
+        can't soundly migrate from, for example, a let scope to a non-let scope.
+        The number of cases has grown over time.
+
+        Instead, let's cache eval code based on the location of the call to
+        eval(). That way, we never relocate the code, and it's sound to make
+        normal assumptions about our surrounding scope.
+
+        * bytecode/EvalCodeCache.h:
+        (JSC::EvalCodeCache::CacheKey::CacheKey): Use CallSiteIndex to uniquely
+        identify the location of our call to eval().
+
+        (JSC::EvalCodeCache::CacheKey::hash):
+        (JSC::EvalCodeCache::CacheKey::operator==):
+        (JSC::EvalCodeCache::CacheKey::Hash::equal): Use CallSiteIndex instead
+        of lots of other flags.
+
+        (JSC::EvalCodeCache::tryGet): No need to include details that are implied
+        by our CallSiteIndex.
+
+        (JSC::EvalCodeCache::getSlow): No need to skip caching in complex
+        situations. We promise we'll never relocate the cached code.
+
+        (JSC::EvalCodeCache::isCacheableScope): Deleted.
+        (JSC::EvalCodeCache::isCacheable): Deleted.
+
+        * interpreter/Interpreter.cpp:
+        (JSC::eval): Pass through a CallSiteIndex to uniquely identify this call
+        to eval().
+
</ins><span class="cx"> 2016-11-04  Keith Miller  &lt;keith_miller@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Add support for Wasm br_table
</span></span></pre></div>
<a id="trunkSourceJavaScriptCorebytecodeEvalCodeCacheh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/bytecode/EvalCodeCache.h (208403 => 208404)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/bytecode/EvalCodeCache.h        2016-11-04 22:53:33 UTC (rev 208403)
+++ trunk/Source/JavaScriptCore/bytecode/EvalCodeCache.h        2016-11-04 23:02:19 UTC (rev 208404)
</span><span class="lines">@@ -47,9 +47,9 @@
</span><span class="cx">         // Specialized cache key (compared with SourceCodeKey) for eval code cache.
</span><span class="cx">         class CacheKey {
</span><span class="cx">         public:
</span><del>-            CacheKey(const String&amp; source, DerivedContextType derivedContextType, EvalContextType evalContextType, bool isArrowFunctionContext)
</del><ins>+            CacheKey(const String&amp; source, CallSiteIndex callSiteIndex)
</ins><span class="cx">                 : m_source(source.impl())
</span><del>-                , m_flags(SourceCodeType::EvalType, JSParserBuiltinMode::NotBuiltin, JSParserStrictMode::NotStrict, JSParserScriptMode::Classic, derivedContextType, evalContextType, isArrowFunctionContext)
</del><ins>+                , m_callSiteIndex(callSiteIndex)
</ins><span class="cx">             {
</span><span class="cx">             }
</span><span class="cx"> 
</span><span class="lines">@@ -60,13 +60,13 @@
</span><span class="cx"> 
</span><span class="cx">             CacheKey() = default;
</span><span class="cx"> 
</span><del>-            unsigned hash() const { return m_source-&gt;hash(); }
</del><ins>+            unsigned hash() const { return m_source-&gt;hash() ^ m_callSiteIndex.bits(); }
</ins><span class="cx"> 
</span><span class="cx">             bool isEmptyValue() const { return !m_source; }
</span><span class="cx"> 
</span><span class="cx">             bool operator==(const CacheKey&amp; other) const
</span><span class="cx">             {
</span><del>-                return m_source == other.m_source &amp;&amp; m_flags == other.m_flags;
</del><ins>+                return m_callSiteIndex == other.m_callSiteIndex &amp;&amp; m_source == other.m_source;
</ins><span class="cx">             }
</span><span class="cx"> 
</span><span class="cx">             bool isHashTableDeletedValue() const { return m_source.isHashTableDeletedValue(); }
</span><span class="lines">@@ -78,7 +78,7 @@
</span><span class="cx">                 }
</span><span class="cx">                 static bool equal(const CacheKey&amp; lhs, const CacheKey&amp; rhs)
</span><span class="cx">                 {
</span><del>-                    return StringHash::equal(lhs.m_source, rhs.m_source) &amp;&amp; lhs.m_flags == rhs.m_flags;
</del><ins>+                    return lhs == rhs;
</ins><span class="cx">                 }
</span><span class="cx">                 static const bool safeToCompareToEmptyOrDeleted = false;
</span><span class="cx">             };
</span><span class="lines">@@ -87,19 +87,15 @@
</span><span class="cx"> 
</span><span class="cx">         private:
</span><span class="cx">             RefPtr&lt;StringImpl&gt; m_source;
</span><del>-            SourceCodeFlags m_flags;
</del><ins>+            CallSiteIndex m_callSiteIndex;
</ins><span class="cx">         };
</span><span class="cx"> 
</span><del>-        EvalExecutable* tryGet(bool inStrictContext, const String&amp; evalSource, DerivedContextType derivedContextType, EvalContextType evalContextType, bool isArrowFunctionContext, JSScope* scope)
</del><ins>+        EvalExecutable* tryGet(const String&amp; evalSource, CallSiteIndex callSiteIndex)
</ins><span class="cx">         {
</span><del>-            if (isCacheable(inStrictContext, evalSource, scope)) {
-                ASSERT(!inStrictContext);
-                return m_cacheMap.fastGet(CacheKey(evalSource, derivedContextType, evalContextType, isArrowFunctionContext)).get();
-            }
-            return nullptr;
</del><ins>+            return m_cacheMap.fastGet(CacheKey(evalSource, callSiteIndex)).get();
</ins><span class="cx">         }
</span><span class="cx">         
</span><del>-        EvalExecutable* getSlow(ExecState* exec, JSCell* owner, bool inStrictContext, DerivedContextType derivedContextType, EvalContextType evalContextType, bool isArrowFunctionContext, const String&amp; evalSource, JSScope* scope)
</del><ins>+        EvalExecutable* getSlow(ExecState* exec, JSCell* owner, const String&amp; evalSource, CallSiteIndex callSiteIndex, bool inStrictContext, DerivedContextType derivedContextType, EvalContextType evalContextType, bool isArrowFunctionContext, JSScope* scope)
</ins><span class="cx">         {
</span><span class="cx">             VariableEnvironment variablesUnderTDZ;
</span><span class="cx">             JSScope::collectVariablesUnderTDZ(scope, variablesUnderTDZ);
</span><span class="lines">@@ -107,11 +103,9 @@
</span><span class="cx">             if (!evalExecutable)
</span><span class="cx">                 return nullptr;
</span><span class="cx"> 
</span><del>-            if (isCacheable(inStrictContext, evalSource, scope) &amp;&amp; m_cacheMap.size() &lt; maxCacheEntries) {
-                ASSERT(!inStrictContext);
-                m_cacheMap.set(CacheKey(evalSource, derivedContextType, evalContextType, isArrowFunctionContext), WriteBarrier&lt;EvalExecutable&gt;(exec-&gt;vm(), owner, evalExecutable));
-            }
-            
</del><ins>+            if (m_cacheMap.size() &lt; maxCacheEntries)
+                m_cacheMap.set(CacheKey(evalSource, callSiteIndex), WriteBarrier&lt;EvalExecutable&gt;(exec-&gt;vm(), owner, evalExecutable));
+
</ins><span class="cx">             return evalExecutable;
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="lines">@@ -125,19 +119,6 @@
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">     private:
</span><del>-        ALWAYS_INLINE bool isCacheableScope(JSScope* scope)
-        {
-            return scope-&gt;isGlobalLexicalEnvironment() || scope-&gt;isFunctionNameScopeObject() || scope-&gt;isVarScope();
-        }
-
-        ALWAYS_INLINE bool isCacheable(bool inStrictContext, const String&amp; evalSource, JSScope* scope)
-        {
-            // If eval() is called and it has access to a lexical scope, we can't soundly cache it.
-            // If the eval() only has access to the &quot;var&quot; scope, then we can cache it.
-            return !inStrictContext 
-                &amp;&amp; static_cast&lt;size_t&gt;(evalSource.length()) &lt; Options::maximumEvalCacheableSourceLength()
-                &amp;&amp; isCacheableScope(scope);
-        }
</del><span class="cx">         static const int maxCacheEntries = 64;
</span><span class="cx"> 
</span><span class="cx">         typedef HashMap&lt;CacheKey, WriteBarrier&lt;EvalExecutable&gt;, CacheKey::Hash, CacheKey::HashTraits&gt; EvalCacheMap;
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreinterpreterCallFrameh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/interpreter/CallFrame.h (208403 => 208404)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/interpreter/CallFrame.h        2016-11-04 22:53:33 UTC (rev 208403)
+++ trunk/Source/JavaScriptCore/interpreter/CallFrame.h        2016-11-04 23:02:19 UTC (rev 208404)
</span><span class="lines">@@ -57,6 +57,7 @@
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx">         explicit operator bool() const { return m_bits != UINT_MAX; }
</span><ins>+        bool operator==(const CallSiteIndex&amp; other) const { return m_bits == other.m_bits; }
</ins><span class="cx">         
</span><span class="cx">         inline uint32_t bits() const { return m_bits; }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreinterpreterInterpretercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp (208403 => 208404)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp        2016-11-04 22:53:33 UTC (rev 208403)
+++ trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp        2016-11-04 23:02:19 UTC (rev 208404)
</span><span class="lines">@@ -109,6 +109,7 @@
</span><span class="cx">     RETURN_IF_EXCEPTION(scope, JSValue());
</span><span class="cx">     
</span><span class="cx">     CallFrame* callerFrame = callFrame-&gt;callerFrame();
</span><ins>+    CallSiteIndex callerCallSiteIndex = callerFrame-&gt;callSiteIndex();
</ins><span class="cx">     CodeBlock* callerCodeBlock = callerFrame-&gt;codeBlock();
</span><span class="cx">     JSScope* callerScopeChain = callerFrame-&gt;uncheckedR(callerCodeBlock-&gt;scopeRegister().offset()).Register::scope();
</span><span class="cx">     UnlinkedCodeBlock* callerUnlinkedCodeBlock = callerCodeBlock-&gt;unlinkedCodeBlock();
</span><span class="lines">@@ -130,7 +131,7 @@
</span><span class="cx">     else
</span><span class="cx">         evalContextType = EvalContextType::None;
</span><span class="cx"> 
</span><del>-    EvalExecutable* eval = callerCodeBlock-&gt;evalCodeCache().tryGet(callerCodeBlock-&gt;isStrictMode(), programSource, derivedContextType, evalContextType, isArrowFunctionContext, callerScopeChain);
</del><ins>+    EvalExecutable* eval = callerCodeBlock-&gt;evalCodeCache().tryGet(programSource, callerCallSiteIndex);
</ins><span class="cx">     if (!eval) {
</span><span class="cx">         if (!callerCodeBlock-&gt;isStrictMode()) {
</span><span class="cx">             if (programSource.is8Bit()) {
</span><span class="lines">@@ -147,7 +148,7 @@
</span><span class="cx">         // If the literal parser bailed, it should not have thrown exceptions.
</span><span class="cx">         ASSERT(!scope.exception());
</span><span class="cx"> 
</span><del>-        eval = callerCodeBlock-&gt;evalCodeCache().getSlow(callFrame, callerCodeBlock, callerCodeBlock-&gt;isStrictMode(), derivedContextType, evalContextType, isArrowFunctionContext, programSource, callerScopeChain);
</del><ins>+        eval = callerCodeBlock-&gt;evalCodeCache().getSlow(callFrame, callerCodeBlock, programSource, callerCallSiteIndex, callerCodeBlock-&gt;isStrictMode(), derivedContextType, evalContextType, isArrowFunctionContext, callerScopeChain);
</ins><span class="cx"> 
</span><span class="cx">         if (!eval)
</span><span class="cx">             return jsUndefined();
</span></span></pre>
</div>
</div>

</body>
</html>