<!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>[211070] 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/211070">211070</a></dd>
<dt>Author</dt> <dd>sbarati@apple.com</dd>
<dt>Date</dt> <dd>2017-01-23 16:15:21 -0800 (Mon, 23 Jan 2017)</dd>
</dl>

<h3>Log Message</h3>
<pre>https://bugs.webkit.org/show_bug.cgi?id=167247
JSC: operationSpreadGeneric uses the wrong global object for the builtin function and slow_path_spread consults the wrong global object to prove if the iterator protocol is unobservable
&lt;rdar://problem/30121809&gt;

Reviewed by Filip Pizlo.

JSTests:

* stress/spread-consults-correct-global-object.js: Added.
(assert):
(spread):
* stress/spread-correct-global-object-on-exception.js: Added.
(assert):
(spread):
(const.objectText.let.o.Symbol.iterator):
(catch):

Source/JavaScriptCore:

There were two bugs in the different tiers with respect to how
spread handled global objects.
        
The first was in the LLInt/baseline inside slow_path_spread:
        
We consulted the lexical global object instead of the thing we're
spreading's global object to determine if the array iterator protocol
is unobservable. This is wrong if the incoming array is from a different
global object. We must consult the incoming array's global object
to determine if it can be spread using the fast path.
        
The second was in operationSpreadGeneric in the DFG/FTL:
        
We were always using the incoming array's global object, even
when going down the slow path. This is wrong because we were
fetching the builtin iteration function helper from the incoming
array's global object, which meant that if the iterator function
were to throw an exception, it could leak objects from a different
global object. We should be executing the iterator function with
the lexical global object.

* dfg/DFGOperations.cpp:
* jsc.cpp:
(GlobalObject::finishCreation):
(functionGlobalObjectForObject):
* runtime/CommonSlowPaths.cpp:
(JSC::SLOW_PATH_DECL):
* runtime/JSArray.h:
* runtime/JSArrayInlines.h:
(JSC::JSArray::isIteratorProtocolFastAndNonObservable):</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="#trunkSourceJavaScriptCoredfgDFGOperationscpp">trunk/Source/JavaScriptCore/dfg/DFGOperations.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCorejsccpp">trunk/Source/JavaScriptCore/jsc.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimeCommonSlowPathscpp">trunk/Source/JavaScriptCore/runtime/CommonSlowPaths.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimeJSArrayh">trunk/Source/JavaScriptCore/runtime/JSArray.h</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimeJSArrayInlinesh">trunk/Source/JavaScriptCore/runtime/JSArrayInlines.h</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkJSTestsstressspreadconsultscorrectglobalobjectjs">trunk/JSTests/stress/spread-consults-correct-global-object.js</a></li>
<li><a href="#trunkJSTestsstressspreadcorrectglobalobjectonexceptionjs">trunk/JSTests/stress/spread-correct-global-object-on-exception.js</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkJSTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/JSTests/ChangeLog (211069 => 211070)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/JSTests/ChangeLog        2017-01-24 00:01:13 UTC (rev 211069)
+++ trunk/JSTests/ChangeLog        2017-01-24 00:15:21 UTC (rev 211070)
</span><span class="lines">@@ -1,3 +1,20 @@
</span><ins>+2017-01-23  Saam Barati  &lt;sbarati@apple.com&gt;
+
+        https://bugs.webkit.org/show_bug.cgi?id=167247
+        JSC: operationSpreadGeneric uses the wrong global object for the builtin function and slow_path_spread consults the wrong global object to prove if the iterator protocol is unobservable
+        &lt;rdar://problem/30121809&gt;
+
+        Reviewed by Filip Pizlo.
+
+        * stress/spread-consults-correct-global-object.js: Added.
+        (assert):
+        (spread):
+        * stress/spread-correct-global-object-on-exception.js: Added.
+        (assert):
+        (spread):
+        (const.objectText.let.o.Symbol.iterator):
+        (catch):
+
</ins><span class="cx"> 2017-01-21  Yusuke Suzuki  &lt;utatane.tea@gmail.com&gt;
</span><span class="cx"> 
</span><span class="cx">         dynamic import is ambiguous with import declaration at module code
</span></span></pre></div>
<a id="trunkJSTestsstressspreadconsultscorrectglobalobjectjs"></a>
<div class="addfile"><h4>Added: trunk/JSTests/stress/spread-consults-correct-global-object.js (0 => 211070)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/JSTests/stress/spread-consults-correct-global-object.js                                (rev 0)
+++ trunk/JSTests/stress/spread-consults-correct-global-object.js        2017-01-24 00:15:21 UTC (rev 211070)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+function assert(b) {
+    if (!b)
+        throw new Error(&quot;Bad assertion&quot;);
+}
+function spread(a) {
+    return [...a];
+}
+noInline(spread);
+
+const foo = {};
+
+let secondGlobalObject = createGlobalObject();
+secondGlobalObject.Array.prototype[0] = foo;
+let x = secondGlobalObject.Function(&quot;return [, 20];&quot;)();
+let result = spread(x);
+assert(result.length === 2);
+assert(result[0] === foo);
+assert(result[1] === 20);
</ins></span></pre></div>
<a id="trunkJSTestsstressspreadcorrectglobalobjectonexceptionjs"></a>
<div class="addfile"><h4>Added: trunk/JSTests/stress/spread-correct-global-object-on-exception.js (0 => 211070)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/JSTests/stress/spread-correct-global-object-on-exception.js                                (rev 0)
+++ trunk/JSTests/stress/spread-correct-global-object-on-exception.js        2017-01-24 00:15:21 UTC (rev 211070)
</span><span class="lines">@@ -0,0 +1,43 @@
</span><ins>+function assert(b) {
+    if (!b)
+        throw new Error(&quot;Bad assertion&quot;);
+}
+function spread(a) {
+    return [...a];
+}
+noInline(spread);
+
+const objectText = `
+    let o = {
+        [Symbol.iterator]() {
+            return {
+                next() {
+                    return {done: true};
+                }
+            };
+        }
+    };
+    o;
+`;
+
+let o = eval(objectText);
+for (let i = 0; i &lt; 1000; i++) {
+    if (i % 23 === 0)
+        o = eval(objectText);
+    spread(o);
+}
+
+let myGlobalObject = globalObjectForObject(new Object);
+
+let secondGlobalObject = createGlobalObject();
+let o2 = secondGlobalObject.Function(&quot;return {};&quot;)();
+
+let error = null;
+try {
+    spread(o2);
+} catch(e) {
+    error = e;
+}
+
+assert(error);
+assert(globalObjectForObject(error) === myGlobalObject);
</ins></span></pre></div>
<a id="trunkSourceJavaScriptCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/ChangeLog (211069 => 211070)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/ChangeLog        2017-01-24 00:01:13 UTC (rev 211069)
+++ trunk/Source/JavaScriptCore/ChangeLog        2017-01-24 00:15:21 UTC (rev 211070)
</span><span class="lines">@@ -1,3 +1,42 @@
</span><ins>+2017-01-23  Saam Barati  &lt;sbarati@apple.com&gt;
+
+        https://bugs.webkit.org/show_bug.cgi?id=167247
+        JSC: operationSpreadGeneric uses the wrong global object for the builtin function and slow_path_spread consults the wrong global object to prove if the iterator protocol is unobservable
+        &lt;rdar://problem/30121809&gt;
+
+        Reviewed by Filip Pizlo.
+
+        There were two bugs in the different tiers with respect to how
+        spread handled global objects.
+        
+        The first was in the LLInt/baseline inside slow_path_spread:
+        
+        We consulted the lexical global object instead of the thing we're
+        spreading's global object to determine if the array iterator protocol
+        is unobservable. This is wrong if the incoming array is from a different
+        global object. We must consult the incoming array's global object
+        to determine if it can be spread using the fast path.
+        
+        The second was in operationSpreadGeneric in the DFG/FTL:
+        
+        We were always using the incoming array's global object, even
+        when going down the slow path. This is wrong because we were
+        fetching the builtin iteration function helper from the incoming
+        array's global object, which meant that if the iterator function
+        were to throw an exception, it could leak objects from a different
+        global object. We should be executing the iterator function with
+        the lexical global object.
+
+        * dfg/DFGOperations.cpp:
+        * jsc.cpp:
+        (GlobalObject::finishCreation):
+        (functionGlobalObjectForObject):
+        * runtime/CommonSlowPaths.cpp:
+        (JSC::SLOW_PATH_DECL):
+        * runtime/JSArray.h:
+        * runtime/JSArrayInlines.h:
+        (JSC::JSArray::isIteratorProtocolFastAndNonObservable):
+
</ins><span class="cx"> 2017-01-22  Filip Pizlo  &lt;fpizlo@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Land the stochastic space-time scheduler disabled
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoredfgDFGOperationscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/dfg/DFGOperations.cpp (211069 => 211070)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/dfg/DFGOperations.cpp        2017-01-24 00:01:13 UTC (rev 211069)
+++ trunk/Source/JavaScriptCore/dfg/DFGOperations.cpp        2017-01-24 00:15:21 UTC (rev 211070)
</span><span class="lines">@@ -47,6 +47,7 @@
</span><span class="cx"> #include &quot;Interpreter.h&quot;
</span><span class="cx"> #include &quot;JIT.h&quot;
</span><span class="cx"> #include &quot;JITExceptions.h&quot;
</span><ins>+#include &quot;JSArrayInlines.h&quot;
</ins><span class="cx"> #include &quot;JSCInlines.h&quot;
</span><span class="cx"> #include &quot;JSFixedArray.h&quot;
</span><span class="cx"> #include &quot;JSGenericTypedArrayViewConstructorInlines.h&quot;
</span><span class="lines">@@ -1984,19 +1985,18 @@
</span><span class="cx"> 
</span><span class="cx">     auto throwScope = DECLARE_THROW_SCOPE(vm);
</span><span class="cx"> 
</span><del>-    JSGlobalObject* globalObject = iterable-&gt;structure(vm)-&gt;globalObject();
-    if (!globalObject)
-        globalObject = exec-&gt;lexicalGlobalObject();
-
-    if (isJSArray(iterable) &amp;&amp; globalObject-&gt;isArrayIteratorProtocolFastAndNonObservable()) {
</del><ins>+    if (isJSArray(iterable)) {
</ins><span class="cx">         JSArray* array = jsCast&lt;JSArray*&gt;(iterable);
</span><del>-        throwScope.release();
-        return JSFixedArray::createFromArray(exec, vm, array);
</del><ins>+        if (array-&gt;isIteratorProtocolFastAndNonObservable()) {
+            throwScope.release();
+            return JSFixedArray::createFromArray(exec, vm, array);
+        }
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     // FIXME: we can probably make this path faster by having our caller JS code call directly into
</span><span class="cx">     // the iteration protocol builtin: https://bugs.webkit.org/show_bug.cgi?id=164520
</span><span class="cx"> 
</span><ins>+    JSGlobalObject* globalObject = exec-&gt;lexicalGlobalObject();
</ins><span class="cx">     JSArray* array;
</span><span class="cx">     {
</span><span class="cx">         JSFunction* iterationFunction = globalObject-&gt;iteratorProtocolFunction();
</span><span class="lines">@@ -2022,7 +2022,7 @@
</span><span class="cx"> 
</span><span class="cx">     ASSERT(isJSArray(cell));
</span><span class="cx">     JSArray* array = jsCast&lt;JSArray*&gt;(cell);
</span><del>-    ASSERT(array-&gt;globalObject()-&gt;isArrayIteratorProtocolFastAndNonObservable());
</del><ins>+    ASSERT(array-&gt;isIteratorProtocolFastAndNonObservable());
</ins><span class="cx"> 
</span><span class="cx">     return JSFixedArray::createFromArray(exec, vm, array);
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceJavaScriptCorejsccpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/jsc.cpp (211069 => 211070)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/jsc.cpp        2017-01-24 00:01:13 UTC (rev 211069)
+++ trunk/Source/JavaScriptCore/jsc.cpp        2017-01-24 00:15:21 UTC (rev 211070)
</span><span class="lines">@@ -1011,6 +1011,7 @@
</span><span class="cx"> static EncodedJSValue JSC_HOST_CALL functionSetRandomSeed(ExecState*);
</span><span class="cx"> static EncodedJSValue JSC_HOST_CALL functionIsRope(ExecState*);
</span><span class="cx"> static EncodedJSValue JSC_HOST_CALL functionCallerSourceOrigin(ExecState*);
</span><ins>+static EncodedJSValue JSC_HOST_CALL functionGlobalObjectForObject(ExecState*);
</ins><span class="cx"> 
</span><span class="cx"> struct Script {
</span><span class="cx">     enum class StrictMode {
</span><span class="lines">@@ -1235,6 +1236,8 @@
</span><span class="cx">         addFunction(vm, &quot;isRope&quot;, functionIsRope, 1);
</span><span class="cx">         addFunction(vm, &quot;callerSourceOrigin&quot;, functionCallerSourceOrigin, 0);
</span><span class="cx"> 
</span><ins>+        addFunction(vm, &quot;globalObjectForObject&quot;, functionGlobalObjectForObject, 1);
+
</ins><span class="cx">         addFunction(vm, &quot;is32BitPlatform&quot;, functionIs32BitPlatform, 0);
</span><span class="cx"> 
</span><span class="cx">         addFunction(vm, &quot;loadModule&quot;, functionLoadModule, 1);
</span><span class="lines">@@ -2155,6 +2158,15 @@
</span><span class="cx">     return JSValue::encode(jsString(state, sourceOrigin.string()));
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+EncodedJSValue JSC_HOST_CALL functionGlobalObjectForObject(ExecState* exec)
+{
+    JSValue value = exec-&gt;argument(0);
+    RELEASE_ASSERT(value.isObject());
+    JSGlobalObject* globalObject = jsCast&lt;JSObject*&gt;(value)-&gt;globalObject();
+    RELEASE_ASSERT(globalObject);
+    return JSValue::encode(globalObject);
+}
+
</ins><span class="cx"> EncodedJSValue JSC_HOST_CALL functionReadline(ExecState* exec)
</span><span class="cx"> {
</span><span class="cx">     Vector&lt;char, 256&gt; line;
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimeCommonSlowPathscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/CommonSlowPaths.cpp (211069 => 211070)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/CommonSlowPaths.cpp        2017-01-24 00:01:13 UTC (rev 211069)
+++ trunk/Source/JavaScriptCore/runtime/CommonSlowPaths.cpp        2017-01-24 00:15:21 UTC (rev 211070)
</span><span class="lines">@@ -43,6 +43,7 @@
</span><span class="cx"> #include &quot;Interpreter.h&quot;
</span><span class="cx"> #include &quot;IteratorOperations.h&quot;
</span><span class="cx"> #include &quot;JIT.h&quot;
</span><ins>+#include &quot;JSArrayInlines.h&quot;
</ins><span class="cx"> #include &quot;JSCInlines.h&quot;
</span><span class="cx"> #include &quot;JSCJSValue.h&quot;
</span><span class="cx"> #include &quot;JSFixedArray.h&quot;
</span><span class="lines">@@ -1034,16 +1035,18 @@
</span><span class="cx"> 
</span><span class="cx">     JSValue iterable = OP_C(2).jsValue();
</span><span class="cx"> 
</span><del>-    JSGlobalObject* globalObject = exec-&gt;lexicalGlobalObject();
-
-    if (iterable.isCell() &amp;&amp; isJSArray(iterable.asCell()) &amp;&amp; globalObject-&gt;isArrayIteratorProtocolFastAndNonObservable()) {
-        // JSFixedArray::createFromArray does not consult the prototype chain,
-        // so we must be sure that not consulting the prototype chain would
-        // produce the same value during iteration.
</del><ins>+    if (iterable.isCell() &amp;&amp; isJSArray(iterable.asCell())) {
</ins><span class="cx">         JSArray* array = jsCast&lt;JSArray*&gt;(iterable);
</span><del>-        RETURN(JSFixedArray::createFromArray(exec, vm, array));
</del><ins>+        if (array-&gt;isIteratorProtocolFastAndNonObservable()) {
+            // JSFixedArray::createFromArray does not consult the prototype chain,
+            // so we must be sure that not consulting the prototype chain would
+            // produce the same value during iteration.
+            RETURN(JSFixedArray::createFromArray(exec, vm, array));
+        }
</ins><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    JSGlobalObject* globalObject = exec-&gt;lexicalGlobalObject();
+
</ins><span class="cx">     JSArray* array;
</span><span class="cx">     {
</span><span class="cx">         JSFunction* iterationFunction = globalObject-&gt;iteratorProtocolFunction();
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimeJSArrayh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/JSArray.h (211069 => 211070)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/JSArray.h        2017-01-24 00:01:13 UTC (rev 211069)
+++ trunk/Source/JavaScriptCore/runtime/JSArray.h        2017-01-24 00:15:21 UTC (rev 211070)
</span><span class="lines">@@ -150,6 +150,8 @@
</span><span class="cx">     JS_EXPORT_PRIVATE void fillArgList(ExecState*, MarkedArgumentBuffer&amp;);
</span><span class="cx">     JS_EXPORT_PRIVATE void copyToArguments(ExecState*, VirtualRegister firstElementDest, unsigned offset, unsigned length);
</span><span class="cx"> 
</span><ins>+    bool isIteratorProtocolFastAndNonObservable();
+
</ins><span class="cx">     static Structure* createStructure(VM&amp; vm, JSGlobalObject* globalObject, JSValue prototype, IndexingType indexingType)
</span><span class="cx">     {
</span><span class="cx">         return Structure::create(vm, globalObject, prototype, TypeInfo(ArrayType, StructureFlags), info(), indexingType);
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimeJSArrayInlinesh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/JSArrayInlines.h (211069 => 211070)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/JSArrayInlines.h        2017-01-24 00:01:13 UTC (rev 211069)
+++ trunk/Source/JavaScriptCore/runtime/JSArrayInlines.h        2017-01-24 00:15:21 UTC (rev 211070)
</span><span class="lines">@@ -93,4 +93,9 @@
</span><span class="cx">     return lengthValue.toLength(exec);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+ALWAYS_INLINE bool JSArray::isIteratorProtocolFastAndNonObservable()
+{
+    return globalObject()-&gt;isArrayIteratorProtocolFastAndNonObservable();
+}
+
</ins><span class="cx"> } // namespace JSC
</span></span></pre>
</div>
</div>

</body>
</html>