<!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>[208736] 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/208736">208736</a></dd>
<dt>Author</dt> <dd>ggaren@apple.com</dd>
<dt>Date</dt> <dd>2016-11-15 11:04:22 -0800 (Tue, 15 Nov 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>CodeCache should stop pretending to cache builtins
https://bugs.webkit.org/show_bug.cgi?id=164750

Reviewed by Saam Barati.

We were passing JSParserBuiltinMode to all CodeCache functions, but the
passed-in value was always NotBuiltin.

Let's stop passing it.

* parser/SourceCodeKey.h:
(JSC::SourceCodeFlags::SourceCodeFlags):
(JSC::SourceCodeKey::SourceCodeKey):
* runtime/CodeCache.cpp:
(JSC::CodeCache::getUnlinkedGlobalCodeBlock):
(JSC::CodeCache::getUnlinkedProgramCodeBlock):
(JSC::CodeCache::getUnlinkedGlobalEvalCodeBlock):
(JSC::CodeCache::getUnlinkedModuleProgramCodeBlock):
(JSC::CodeCache::getUnlinkedGlobalFunctionExecutable):
* runtime/CodeCache.h:
(JSC::generateUnlinkedCodeBlock):
* runtime/JSGlobalObject.cpp:
(JSC::JSGlobalObject::createProgramCodeBlock):
(JSC::JSGlobalObject::createLocalEvalCodeBlock):
(JSC::JSGlobalObject::createGlobalEvalCodeBlock):
(JSC::JSGlobalObject::createModuleProgramCodeBlock):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceJavaScriptCoreChangeLog">trunk/Source/JavaScriptCore/ChangeLog</a></li>
<li><a href="#trunkSourceJavaScriptCoreparserSourceCodeKeyh">trunk/Source/JavaScriptCore/parser/SourceCodeKey.h</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimeCodeCachecpp">trunk/Source/JavaScriptCore/runtime/CodeCache.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimeCodeCacheh">trunk/Source/JavaScriptCore/runtime/CodeCache.h</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimeJSGlobalObjectcpp">trunk/Source/JavaScriptCore/runtime/JSGlobalObject.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceJavaScriptCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/ChangeLog (208735 => 208736)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/ChangeLog        2016-11-15 18:19:19 UTC (rev 208735)
+++ trunk/Source/JavaScriptCore/ChangeLog        2016-11-15 19:04:22 UTC (rev 208736)
</span><span class="lines">@@ -1,3 +1,32 @@
</span><ins>+2016-11-14  Geoffrey Garen  &lt;ggaren@apple.com&gt;
+
+        CodeCache should stop pretending to cache builtins
+        https://bugs.webkit.org/show_bug.cgi?id=164750
+
+        Reviewed by Saam Barati.
+
+        We were passing JSParserBuiltinMode to all CodeCache functions, but the
+        passed-in value was always NotBuiltin.
+
+        Let's stop passing it.
+
+        * parser/SourceCodeKey.h:
+        (JSC::SourceCodeFlags::SourceCodeFlags):
+        (JSC::SourceCodeKey::SourceCodeKey):
+        * runtime/CodeCache.cpp:
+        (JSC::CodeCache::getUnlinkedGlobalCodeBlock):
+        (JSC::CodeCache::getUnlinkedProgramCodeBlock):
+        (JSC::CodeCache::getUnlinkedGlobalEvalCodeBlock):
+        (JSC::CodeCache::getUnlinkedModuleProgramCodeBlock):
+        (JSC::CodeCache::getUnlinkedGlobalFunctionExecutable):
+        * runtime/CodeCache.h:
+        (JSC::generateUnlinkedCodeBlock):
+        * runtime/JSGlobalObject.cpp:
+        (JSC::JSGlobalObject::createProgramCodeBlock):
+        (JSC::JSGlobalObject::createLocalEvalCodeBlock):
+        (JSC::JSGlobalObject::createGlobalEvalCodeBlock):
+        (JSC::JSGlobalObject::createModuleProgramCodeBlock):
+
</ins><span class="cx"> 2016-11-15  Filip Pizlo  &lt;fpizlo@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         REGRESSION (r208711-r208722): ASSERTION FAILED: hasInlineStorage()
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreparserSourceCodeKeyh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/parser/SourceCodeKey.h (208735 => 208736)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/parser/SourceCodeKey.h        2016-11-15 18:19:19 UTC (rev 208735)
+++ trunk/Source/JavaScriptCore/parser/SourceCodeKey.h        2016-11-15 19:04:22 UTC (rev 208736)
</span><span class="lines">@@ -38,14 +38,13 @@
</span><span class="cx"> public:
</span><span class="cx">     SourceCodeFlags() = default;
</span><span class="cx"> 
</span><del>-    SourceCodeFlags(SourceCodeType codeType, JSParserBuiltinMode builtinMode, JSParserStrictMode strictMode, JSParserScriptMode scriptMode, DerivedContextType derivedContextType, EvalContextType evalContextType, bool isArrowFunctionContext)
</del><ins>+    SourceCodeFlags(SourceCodeType codeType, JSParserStrictMode strictMode, JSParserScriptMode scriptMode, DerivedContextType derivedContextType, EvalContextType evalContextType, bool isArrowFunctionContext)
</ins><span class="cx">         : m_flags(
</span><del>-            (static_cast&lt;unsigned&gt;(scriptMode) &lt;&lt; 8) |
-            (static_cast&lt;unsigned&gt;(isArrowFunctionContext) &lt;&lt; 7) |
-            (static_cast&lt;unsigned&gt;(evalContextType) &lt;&lt; 6) |
-            (static_cast&lt;unsigned&gt;(derivedContextType) &lt;&lt; 4) |
-            (static_cast&lt;unsigned&gt;(codeType) &lt;&lt; 2) |
-            (static_cast&lt;unsigned&gt;(builtinMode) &lt;&lt; 1) |
</del><ins>+            (static_cast&lt;unsigned&gt;(scriptMode) &lt;&lt; 5) |
+            (static_cast&lt;unsigned&gt;(isArrowFunctionContext) &lt;&lt; 4) |
+            (static_cast&lt;unsigned&gt;(evalContextType) &lt;&lt; 3) |
+            (static_cast&lt;unsigned&gt;(derivedContextType) &lt;&lt; 2) |
+            (static_cast&lt;unsigned&gt;(codeType) &lt;&lt; 1) |
</ins><span class="cx">             (static_cast&lt;unsigned&gt;(strictMode))
</span><span class="cx">         )
</span><span class="cx">     {
</span><span class="lines">@@ -66,10 +65,10 @@
</span><span class="cx">     {
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    SourceCodeKey(const SourceCode&amp; sourceCode, const String&amp; name, SourceCodeType codeType, JSParserBuiltinMode builtinMode, JSParserStrictMode strictMode, JSParserScriptMode scriptMode, DerivedContextType derivedContextType, EvalContextType evalContextType, bool isArrowFunctionContext)
</del><ins>+    SourceCodeKey(const SourceCode&amp; sourceCode, const String&amp; name, SourceCodeType codeType, JSParserStrictMode strictMode, JSParserScriptMode scriptMode, DerivedContextType derivedContextType, EvalContextType evalContextType, bool isArrowFunctionContext)
</ins><span class="cx">         : m_sourceCode(sourceCode)
</span><span class="cx">         , m_name(name)
</span><del>-        , m_flags(codeType, builtinMode, strictMode, scriptMode, derivedContextType, evalContextType, isArrowFunctionContext)
</del><ins>+        , m_flags(codeType, strictMode, scriptMode, derivedContextType, evalContextType, isArrowFunctionContext)
</ins><span class="cx">         , m_hash(sourceCode.hash())
</span><span class="cx">     {
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimeCodeCachecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/CodeCache.cpp (208735 => 208736)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/CodeCache.cpp        2016-11-15 18:19:19 UTC (rev 208735)
+++ trunk/Source/JavaScriptCore/runtime/CodeCache.cpp        2016-11-15 19:04:22 UTC (rev 208736)
</span><span class="lines">@@ -49,11 +49,11 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> template &lt;class UnlinkedCodeBlockType, class ExecutableType&gt;
</span><del>-UnlinkedCodeBlockType* CodeCache::getUnlinkedGlobalCodeBlock(VM&amp; vm, ExecutableType* executable, const SourceCode&amp; source, JSParserBuiltinMode builtinMode, JSParserStrictMode strictMode, JSParserScriptMode scriptMode, DebuggerMode debuggerMode, ParserError&amp; error, EvalContextType evalContextType)
</del><ins>+UnlinkedCodeBlockType* CodeCache::getUnlinkedGlobalCodeBlock(VM&amp; vm, ExecutableType* executable, const SourceCode&amp; source, JSParserStrictMode strictMode, JSParserScriptMode scriptMode, DebuggerMode debuggerMode, ParserError&amp; error, EvalContextType evalContextType)
</ins><span class="cx"> {
</span><span class="cx">     DerivedContextType derivedContextType = executable-&gt;derivedContextType();
</span><span class="cx">     bool isArrowFunctionContext = executable-&gt;isArrowFunctionContext();
</span><del>-    SourceCodeKey key(source, String(), CacheTypes&lt;UnlinkedCodeBlockType&gt;::codeType, builtinMode, strictMode, scriptMode, derivedContextType, evalContextType, isArrowFunctionContext);
</del><ins>+    SourceCodeKey key(source, String(), CacheTypes&lt;UnlinkedCodeBlockType&gt;::codeType, strictMode, scriptMode, derivedContextType, evalContextType, isArrowFunctionContext);
</ins><span class="cx">     SourceCodeValue* cache = m_sourceCode.findCacheAndUpdateAge(key);
</span><span class="cx">     bool canCache = debuggerMode == DebuggerOff &amp;&amp; !vm.typeProfiler() &amp;&amp; !vm.controlFlowProfiler() &amp;&amp; Options::useCodeCache();
</span><span class="cx">     if (cache &amp;&amp; canCache) {
</span><span class="lines">@@ -70,7 +70,7 @@
</span><span class="cx">     }
</span><span class="cx">     
</span><span class="cx">     VariableEnvironment variablesUnderTDZ;
</span><del>-    UnlinkedCodeBlockType* unlinkedCodeBlock = generateUnlinkedCodeBlock&lt;UnlinkedCodeBlockType, ExecutableType&gt;(vm, executable, source, builtinMode, strictMode, scriptMode, debuggerMode, error, evalContextType, &amp;variablesUnderTDZ);
</del><ins>+    UnlinkedCodeBlockType* unlinkedCodeBlock = generateUnlinkedCodeBlock&lt;UnlinkedCodeBlockType, ExecutableType&gt;(vm, executable, source, strictMode, scriptMode, debuggerMode, error, evalContextType, &amp;variablesUnderTDZ);
</ins><span class="cx"> 
</span><span class="cx">     if (unlinkedCodeBlock &amp;&amp; canCache)
</span><span class="cx">         m_sourceCode.addCache(key, SourceCodeValue(vm, unlinkedCodeBlock, m_sourceCode.age()));
</span><span class="lines">@@ -78,19 +78,19 @@
</span><span class="cx">     return unlinkedCodeBlock;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-UnlinkedProgramCodeBlock* CodeCache::getUnlinkedProgramCodeBlock(VM&amp; vm, ProgramExecutable* executable, const SourceCode&amp; source, JSParserBuiltinMode builtinMode, JSParserStrictMode strictMode, DebuggerMode debuggerMode, ParserError&amp; error)
</del><ins>+UnlinkedProgramCodeBlock* CodeCache::getUnlinkedProgramCodeBlock(VM&amp; vm, ProgramExecutable* executable, const SourceCode&amp; source, JSParserStrictMode strictMode, DebuggerMode debuggerMode, ParserError&amp; error)
</ins><span class="cx"> {
</span><del>-    return getUnlinkedGlobalCodeBlock&lt;UnlinkedProgramCodeBlock&gt;(vm, executable, source, builtinMode, strictMode, JSParserScriptMode::Classic, debuggerMode, error, EvalContextType::None);
</del><ins>+    return getUnlinkedGlobalCodeBlock&lt;UnlinkedProgramCodeBlock&gt;(vm, executable, source, strictMode, JSParserScriptMode::Classic, debuggerMode, error, EvalContextType::None);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-UnlinkedEvalCodeBlock* CodeCache::getUnlinkedGlobalEvalCodeBlock(VM&amp; vm, IndirectEvalExecutable* executable, const SourceCode&amp; source, JSParserBuiltinMode builtinMode, JSParserStrictMode strictMode, DebuggerMode debuggerMode, ParserError&amp; error, EvalContextType evalContextType)
</del><ins>+UnlinkedEvalCodeBlock* CodeCache::getUnlinkedGlobalEvalCodeBlock(VM&amp; vm, IndirectEvalExecutable* executable, const SourceCode&amp; source, JSParserStrictMode strictMode, DebuggerMode debuggerMode, ParserError&amp; error, EvalContextType evalContextType)
</ins><span class="cx"> {
</span><del>-    return getUnlinkedGlobalCodeBlock&lt;UnlinkedEvalCodeBlock&gt;(vm, executable, source, builtinMode, strictMode, JSParserScriptMode::Classic, debuggerMode, error, evalContextType);
</del><ins>+    return getUnlinkedGlobalCodeBlock&lt;UnlinkedEvalCodeBlock&gt;(vm, executable, source, strictMode, JSParserScriptMode::Classic, debuggerMode, error, evalContextType);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-UnlinkedModuleProgramCodeBlock* CodeCache::getUnlinkedModuleProgramCodeBlock(VM&amp; vm, ModuleProgramExecutable* executable, const SourceCode&amp; source, JSParserBuiltinMode builtinMode, DebuggerMode debuggerMode, ParserError&amp; error)
</del><ins>+UnlinkedModuleProgramCodeBlock* CodeCache::getUnlinkedModuleProgramCodeBlock(VM&amp; vm, ModuleProgramExecutable* executable, const SourceCode&amp; source, DebuggerMode debuggerMode, ParserError&amp; error)
</ins><span class="cx"> {
</span><del>-    return getUnlinkedGlobalCodeBlock&lt;UnlinkedModuleProgramCodeBlock&gt;(vm, executable, source, builtinMode, JSParserStrictMode::Strict, JSParserScriptMode::Module, debuggerMode, error, EvalContextType::None);
</del><ins>+    return getUnlinkedGlobalCodeBlock&lt;UnlinkedModuleProgramCodeBlock&gt;(vm, executable, source, JSParserStrictMode::Strict, JSParserScriptMode::Module, debuggerMode, error, EvalContextType::None);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> UnlinkedFunctionExecutable* CodeCache::getUnlinkedGlobalFunctionExecutable(VM&amp; vm, const Identifier&amp; name, const SourceCode&amp; source, ParserError&amp; error)
</span><span class="lines">@@ -98,7 +98,6 @@
</span><span class="cx">     bool isArrowFunctionContext = false;
</span><span class="cx">     SourceCodeKey key(
</span><span class="cx">         source, name.string(), SourceCodeType::FunctionType,
</span><del>-        JSParserBuiltinMode::NotBuiltin,
</del><span class="cx">         JSParserStrictMode::NotStrict,
</span><span class="cx">         JSParserScriptMode::Classic,
</span><span class="cx">         DerivedContextType::None,
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimeCodeCacheh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/CodeCache.h (208735 => 208736)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/CodeCache.h        2016-11-15 18:19:19 UTC (rev 208735)
+++ trunk/Source/JavaScriptCore/runtime/CodeCache.h        2016-11-15 19:04:22 UTC (rev 208736)
</span><span class="lines">@@ -193,9 +193,9 @@
</span><span class="cx"> class CodeCache {
</span><span class="cx">     WTF_MAKE_FAST_ALLOCATED;
</span><span class="cx"> public:
</span><del>-    UnlinkedProgramCodeBlock* getUnlinkedProgramCodeBlock(VM&amp;, ProgramExecutable*, const SourceCode&amp;, JSParserBuiltinMode, JSParserStrictMode, DebuggerMode, ParserError&amp;);
-    UnlinkedEvalCodeBlock* getUnlinkedGlobalEvalCodeBlock(VM&amp;, IndirectEvalExecutable*, const SourceCode&amp;, JSParserBuiltinMode, JSParserStrictMode, DebuggerMode, ParserError&amp;, EvalContextType);
-    UnlinkedModuleProgramCodeBlock* getUnlinkedModuleProgramCodeBlock(VM&amp;, ModuleProgramExecutable*, const SourceCode&amp;, JSParserBuiltinMode, DebuggerMode, ParserError&amp;);
</del><ins>+    UnlinkedProgramCodeBlock* getUnlinkedProgramCodeBlock(VM&amp;, ProgramExecutable*, const SourceCode&amp;, JSParserStrictMode, DebuggerMode, ParserError&amp;);
+    UnlinkedEvalCodeBlock* getUnlinkedGlobalEvalCodeBlock(VM&amp;, IndirectEvalExecutable*, const SourceCode&amp;, JSParserStrictMode, DebuggerMode, ParserError&amp;, EvalContextType);
+    UnlinkedModuleProgramCodeBlock* getUnlinkedModuleProgramCodeBlock(VM&amp;, ModuleProgramExecutable*, const SourceCode&amp;, DebuggerMode, ParserError&amp;);
</ins><span class="cx">     UnlinkedFunctionExecutable* getUnlinkedGlobalFunctionExecutable(VM&amp;, const Identifier&amp;, const SourceCode&amp;, ParserError&amp;);
</span><span class="cx"> 
</span><span class="cx">     void clear() { m_sourceCode.clear(); }
</span><span class="lines">@@ -202,7 +202,7 @@
</span><span class="cx"> 
</span><span class="cx"> private:
</span><span class="cx">     template &lt;class UnlinkedCodeBlockType, class ExecutableType&gt; 
</span><del>-    UnlinkedCodeBlockType* getUnlinkedGlobalCodeBlock(VM&amp;, ExecutableType*, const SourceCode&amp;, JSParserBuiltinMode, JSParserStrictMode, JSParserScriptMode, DebuggerMode, ParserError&amp;, EvalContextType);
</del><ins>+    UnlinkedCodeBlockType* getUnlinkedGlobalCodeBlock(VM&amp;, ExecutableType*, const SourceCode&amp;, JSParserStrictMode, JSParserScriptMode, DebuggerMode, ParserError&amp;, EvalContextType);
</ins><span class="cx"> 
</span><span class="cx">     CodeCacheMap m_sourceCode;
</span><span class="cx"> };
</span><span class="lines">@@ -228,12 +228,12 @@
</span><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> template &lt;class UnlinkedCodeBlockType, class ExecutableType&gt;
</span><del>-UnlinkedCodeBlockType* generateUnlinkedCodeBlock(VM&amp; vm, ExecutableType* executable, const SourceCode&amp; source, JSParserBuiltinMode builtinMode, JSParserStrictMode strictMode, JSParserScriptMode scriptMode, DebuggerMode debuggerMode, ParserError&amp; error, EvalContextType evalContextType, const VariableEnvironment* variablesUnderTDZ)
</del><ins>+UnlinkedCodeBlockType* generateUnlinkedCodeBlock(VM&amp; vm, ExecutableType* executable, const SourceCode&amp; source, JSParserStrictMode strictMode, JSParserScriptMode scriptMode, DebuggerMode debuggerMode, ParserError&amp; error, EvalContextType evalContextType, const VariableEnvironment* variablesUnderTDZ)
</ins><span class="cx"> {
</span><span class="cx">     typedef typename CacheTypes&lt;UnlinkedCodeBlockType&gt;::RootNode RootNode;
</span><span class="cx">     DerivedContextType derivedContextType = executable-&gt;derivedContextType();
</span><span class="cx">     std::unique_ptr&lt;RootNode&gt; rootNode = parse&lt;RootNode&gt;(
</span><del>-        &amp;vm, source, Identifier(), builtinMode, strictMode, scriptMode, CacheTypes&lt;UnlinkedCodeBlockType&gt;::parseMode, SuperBinding::NotNeeded, error, nullptr, ConstructorKind::None, derivedContextType, evalContextType);
</del><ins>+        &amp;vm, source, Identifier(), JSParserBuiltinMode::NotBuiltin, strictMode, scriptMode, CacheTypes&lt;UnlinkedCodeBlockType&gt;::parseMode, SuperBinding::NotNeeded, error, nullptr, ConstructorKind::None, derivedContextType, evalContextType);
</ins><span class="cx">     if (!rootNode)
</span><span class="cx">         return nullptr;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimeJSGlobalObjectcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/JSGlobalObject.cpp (208735 => 208736)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/JSGlobalObject.cpp        2016-11-15 18:19:19 UTC (rev 208735)
+++ trunk/Source/JavaScriptCore/runtime/JSGlobalObject.cpp        2016-11-15 19:04:22 UTC (rev 208736)
</span><span class="lines">@@ -1320,7 +1320,7 @@
</span><span class="cx">     JSParserStrictMode strictMode = executable-&gt;isStrictMode() ? JSParserStrictMode::Strict : JSParserStrictMode::NotStrict;
</span><span class="cx">     DebuggerMode debuggerMode = hasInteractiveDebugger() ? DebuggerOn : DebuggerOff;
</span><span class="cx">     UnlinkedProgramCodeBlock* unlinkedCodeBlock = vm().codeCache()-&gt;getUnlinkedProgramCodeBlock(
</span><del>-        vm(), executable, executable-&gt;source(), JSParserBuiltinMode::NotBuiltin, strictMode, 
</del><ins>+        vm(), executable, executable-&gt;source(), strictMode, 
</ins><span class="cx">         debuggerMode, error);
</span><span class="cx"> 
</span><span class="cx">     if (hasDebugger())
</span><span class="lines">@@ -1346,7 +1346,7 @@
</span><span class="cx"> 
</span><span class="cx">     // We don't bother with CodeCache here because local eval uses a specialized EvalCodeCache.
</span><span class="cx">     UnlinkedEvalCodeBlock* unlinkedCodeBlock = generateUnlinkedCodeBlock&lt;UnlinkedEvalCodeBlock&gt;(
</span><del>-        vm, executable, executable-&gt;source(), JSParserBuiltinMode::NotBuiltin, strictMode, JSParserScriptMode::Classic, debuggerMode, error, evalContextType, variablesUnderTDZ);
</del><ins>+        vm, executable, executable-&gt;source(), strictMode, JSParserScriptMode::Classic, debuggerMode, error, evalContextType, variablesUnderTDZ);
</ins><span class="cx"> 
</span><span class="cx">     if (hasDebugger())
</span><span class="cx">         debugger()-&gt;sourceParsed(callFrame, executable-&gt;source().provider(), error.line(), error.message());
</span><span class="lines">@@ -1370,7 +1370,7 @@
</span><span class="cx">     EvalContextType evalContextType = executable-&gt;executableInfo().evalContextType();
</span><span class="cx">     
</span><span class="cx">     UnlinkedEvalCodeBlock* unlinkedCodeBlock = vm.codeCache()-&gt;getUnlinkedGlobalEvalCodeBlock(
</span><del>-        vm, executable, executable-&gt;source(), JSParserBuiltinMode::NotBuiltin, strictMode, debuggerMode, error, evalContextType);
</del><ins>+        vm, executable, executable-&gt;source(), strictMode, debuggerMode, error, evalContextType);
</ins><span class="cx"> 
</span><span class="cx">     if (hasDebugger())
</span><span class="cx">         debugger()-&gt;sourceParsed(callFrame, executable-&gt;source().provider(), error.line(), error.message());
</span><span class="lines">@@ -1391,7 +1391,7 @@
</span><span class="cx">     ParserError error;
</span><span class="cx">     DebuggerMode debuggerMode = hasInteractiveDebugger() ? DebuggerOn : DebuggerOff;
</span><span class="cx">     UnlinkedModuleProgramCodeBlock* unlinkedCodeBlock = vm.codeCache()-&gt;getUnlinkedModuleProgramCodeBlock(
</span><del>-        vm, executable, executable-&gt;source(), JSParserBuiltinMode::NotBuiltin, debuggerMode, error);
</del><ins>+        vm, executable, executable-&gt;source(), debuggerMode, error);
</ins><span class="cx"> 
</span><span class="cx">     if (hasDebugger())
</span><span class="cx">         debugger()-&gt;sourceParsed(callFrame, executable-&gt;source().provider(), error.line(), error.message());
</span></span></pre>
</div>
</div>

</body>
</html>