<!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>[212707] releases/WebKitGTK/webkit-2.16/Source</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/212707">212707</a></dd>
<dt>Author</dt> <dd>carlosgc@webkit.org</dd>
<dt>Date</dt> <dd>2017-02-21 00:38:51 -0800 (Tue, 21 Feb 2017)</dd>
</dl>

<h3>Log Message</h3>
<pre>Merge <a href="http://trac.webkit.org/projects/webkit/changeset/212665">r212665</a> - Unreviewed, rolling out <a href="http://trac.webkit.org/projects/webkit/changeset/212618">r212618</a>.
https://bugs.webkit.org/show_bug.cgi?id=168609

&quot;Appears to cause PLT regression&quot; (Requested by mlam on

Reverted changeset:

&quot;CachedCall should let GC know to keep its arguments alive.&quot;
https://bugs.webkit.org/show_bug.cgi?id=168567
http://trac.webkit.org/changeset/212618</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#releasesWebKitGTKwebkit216SourceJavaScriptCoreChangeLog">releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/ChangeLog</a></li>
<li><a href="#releasesWebKitGTKwebkit216SourceJavaScriptCoreinterpreterCachedCallh">releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/interpreter/CachedCall.h</a></li>
<li><a href="#releasesWebKitGTKwebkit216SourceJavaScriptCoreinterpreterCallFrameh">releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/interpreter/CallFrame.h</a></li>
<li><a href="#releasesWebKitGTKwebkit216SourceJavaScriptCoreinterpreterInterpretercpp">releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/interpreter/Interpreter.cpp</a></li>
<li><a href="#releasesWebKitGTKwebkit216SourceJavaScriptCoreinterpreterInterpreterh">releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/interpreter/Interpreter.h</a></li>
<li><a href="#releasesWebKitGTKwebkit216SourceJavaScriptCoreinterpreterProtoCallFrameh">releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/interpreter/ProtoCallFrame.h</a></li>
<li><a href="#releasesWebKitGTKwebkit216SourceJavaScriptCoreruntimeArgListcpp">releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/runtime/ArgList.cpp</a></li>
<li><a href="#releasesWebKitGTKwebkit216SourceJavaScriptCoreruntimeArgListh">releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/runtime/ArgList.h</a></li>
<li><a href="#releasesWebKitGTKwebkit216SourceJavaScriptCoreruntimeStringPrototypecpp">releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/runtime/StringPrototype.cpp</a></li>
<li><a href="#releasesWebKitGTKwebkit216SourceJavaScriptCoreruntimeVMcpp">releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/runtime/VM.cpp</a></li>
<li><a href="#releasesWebKitGTKwebkit216SourceJavaScriptCoreruntimeVMh">releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/runtime/VM.h</a></li>
<li><a href="#releasesWebKitGTKwebkit216SourceWTFChangeLog">releases/WebKitGTK/webkit-2.16/Source/WTF/ChangeLog</a></li>
<li><a href="#releasesWebKitGTKwebkit216SourceWTFWTFxcodeprojprojectpbxproj">releases/WebKitGTK/webkit-2.16/Source/WTF/WTF.xcodeproj/project.pbxproj</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#releasesWebKitGTKwebkit216SourceWTFwtfForbidHeapAllocationh">releases/WebKitGTK/webkit-2.16/Source/WTF/wtf/ForbidHeapAllocation.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="releasesWebKitGTKwebkit216SourceJavaScriptCoreChangeLog"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/ChangeLog (212706 => 212707)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/ChangeLog        2017-02-21 08:38:40 UTC (rev 212706)
+++ releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/ChangeLog        2017-02-21 08:38:51 UTC (rev 212707)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2017-02-20  Commit Queue  &lt;commit-queue@webkit.org&gt;
+
+        Unreviewed, rolling out r212618.
+        https://bugs.webkit.org/show_bug.cgi?id=168609
+
+        &quot;Appears to cause PLT regression&quot; (Requested by mlam on
+        #webkit).
+
+        Reverted changeset:
+
+        &quot;CachedCall should let GC know to keep its arguments alive.&quot;
+        https://bugs.webkit.org/show_bug.cgi?id=168567
+        http://trac.webkit.org/changeset/212618
+
</ins><span class="cx"> 2017-02-19  Mark Lam  &lt;mark.lam@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         BytecodeGenerator should not iterate its m_controlFlowScopeStack using a pointer bump.
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit216SourceJavaScriptCoreinterpreterCachedCallh"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/interpreter/CachedCall.h (212706 => 212707)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/interpreter/CachedCall.h        2017-02-21 08:38:40 UTC (rev 212706)
+++ releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/interpreter/CachedCall.h        2017-02-21 08:38:51 UTC (rev 212707)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * Copyright (C) 2009-2017 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2009, 2013, 2016 Apple Inc. All rights reserved.
</ins><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="cx">  * modification, are permitted provided that the following conditions
</span><span class="lines">@@ -33,12 +33,10 @@
</span><span class="cx"> #include &quot;ProtoCallFrame.h&quot;
</span><span class="cx"> #include &quot;VMEntryScope.h&quot;
</span><span class="cx"> #include &quot;VMInlines.h&quot;
</span><del>-#include &lt;wtf/ForbidHeapAllocation.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace JSC {
</span><span class="cx">     class CachedCall {
</span><del>-        WTF_MAKE_NONCOPYABLE(CachedCall);
-        WTF_FORBID_HEAP_ALLOCATION;
</del><ins>+        WTF_MAKE_NONCOPYABLE(CachedCall); WTF_MAKE_FAST_ALLOCATED;
</ins><span class="cx">     public:
</span><span class="cx">         CachedCall(CallFrame* callFrame, JSFunction* function, int argumentCount)
</span><span class="cx">             : m_valid(false)
</span><span class="lines">@@ -51,8 +49,8 @@
</span><span class="cx"> 
</span><span class="cx">             ASSERT(!function-&gt;isHostFunctionNonInline());
</span><span class="cx">             if (UNLIKELY(vm.isSafeToRecurseSoft())) {
</span><del>-                m_arguments.ensureCapacity(argumentCount);
-                m_closure = m_interpreter-&gt;prepareForRepeatCall(function-&gt;jsExecutable(), callFrame, &amp;m_protoCallFrame, function, argumentCount + 1, function-&gt;scope(), m_arguments);
</del><ins>+                m_arguments.resize(argumentCount);
+                m_closure = m_interpreter-&gt;prepareForRepeatCall(function-&gt;jsExecutable(), callFrame, &amp;m_protoCallFrame, function, argumentCount + 1, function-&gt;scope(), m_arguments.data());
</ins><span class="cx">             } else
</span><span class="cx">                 throwStackOverflowError(callFrame, scope);
</span><span class="cx">             m_valid = !scope.exception();
</span><span class="lines">@@ -61,14 +59,11 @@
</span><span class="cx">         JSValue call()
</span><span class="cx">         { 
</span><span class="cx">             ASSERT(m_valid);
</span><del>-            ASSERT(m_arguments.size() == static_cast&lt;size_t&gt;(m_protoCallFrame.argumentCount()));
</del><span class="cx">             return m_interpreter-&gt;execute(m_closure);
</span><span class="cx">         }
</span><span class="cx">         void setThis(JSValue v) { m_protoCallFrame.setThisValue(v); }
</span><ins>+        void setArgument(int n, JSValue v) { m_protoCallFrame.setArgument(n, v); }
</ins><span class="cx"> 
</span><del>-        void clearArguments() { m_arguments.clear(); }
-        void appendArgument(JSValue v) { m_arguments.append(v); }
-
</del><span class="cx">     private:
</span><span class="cx">         bool m_valid;
</span><span class="cx">         Interpreter* m_interpreter;
</span><span class="lines">@@ -75,7 +70,7 @@
</span><span class="cx">         VM&amp; m_vm;
</span><span class="cx">         VMEntryScope m_entryScope;
</span><span class="cx">         ProtoCallFrame m_protoCallFrame;
</span><del>-        MarkedArgumentBuffer m_arguments;
</del><ins>+        Vector&lt;JSValue&gt; m_arguments;
</ins><span class="cx">         CallFrameClosure m_closure;
</span><span class="cx">     };
</span><span class="cx"> }
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit216SourceJavaScriptCoreinterpreterCallFrameh"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/interpreter/CallFrame.h (212706 => 212707)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/interpreter/CallFrame.h        2017-02-21 08:38:40 UTC (rev 212706)
+++ releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/interpreter/CallFrame.h        2017-02-21 08:38:51 UTC (rev 212707)
</span><span class="lines">@@ -1,7 +1,7 @@
</span><span class="cx"> /*
</span><span class="cx">  *  Copyright (C) 1999-2001 Harri Porten (porten@kde.org)
</span><span class="cx">  *  Copyright (C) 2001 Peter Kelly (pmk@post.com)
</span><del>- *  Copyright (C) 2003-2017 Apple Inc. All rights reserved.
</del><ins>+ *  Copyright (C) 2003, 2007-2008, 2011, 2013-2016 Apple Inc. All rights reserved.
</ins><span class="cx">  *
</span><span class="cx">  *  This library is free software; you can redistribute it and/or
</span><span class="cx">  *  modify it under the terms of the GNU Library General Public
</span><span class="lines">@@ -119,7 +119,7 @@
</span><span class="cx"> 
</span><span class="cx">         AtomicStringTable* atomicStringTable() const { return vm().atomicStringTable(); }
</span><span class="cx">         const CommonIdentifiers&amp; propertyNames() const { return *vm().propertyNames; }
</span><del>-        const ArgList&amp; emptyList() const { return *vm().emptyList; }
</del><ins>+        const MarkedArgumentBuffer&amp; emptyList() const { return *vm().emptyList; }
</ins><span class="cx">         Interpreter* interpreter() { return vm().interpreter; }
</span><span class="cx">         Heap* heap() { return &amp;vm().heap; }
</span><span class="cx"> 
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit216SourceJavaScriptCoreinterpreterInterpretercpp"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/interpreter/Interpreter.cpp (212706 => 212707)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/interpreter/Interpreter.cpp        2017-02-21 08:38:40 UTC (rev 212706)
+++ releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/interpreter/Interpreter.cpp        2017-02-21 08:38:51 UTC (rev 212707)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * Copyright (C) 2008-2017 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2008-2010, 2012-2016 Apple Inc. All rights reserved.
</ins><span class="cx">  * Copyright (C) 2008 Cameron Zwarich &lt;cwzwarich@uwaterloo.ca&gt;
</span><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="lines">@@ -1005,7 +1005,7 @@
</span><span class="cx">     return checkedReturn(asObject(result));
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-CallFrameClosure Interpreter::prepareForRepeatCall(FunctionExecutable* functionExecutable, CallFrame* callFrame, ProtoCallFrame* protoCallFrame, JSFunction* function, int argumentCountIncludingThis, JSScope* scope, const ArgList&amp; args)
</del><ins>+CallFrameClosure Interpreter::prepareForRepeatCall(FunctionExecutable* functionExecutable, CallFrame* callFrame, ProtoCallFrame* protoCallFrame, JSFunction* function, int argumentCountIncludingThis, JSScope* scope, JSValue* args)
</ins><span class="cx"> {
</span><span class="cx">     VM&amp; vm = *scope-&gt;vm();
</span><span class="cx">     auto throwScope = DECLARE_THROW_SCOPE(vm);
</span><span class="lines">@@ -1025,7 +1025,7 @@
</span><span class="cx"> 
</span><span class="cx">     size_t argsCount = argumentCountIncludingThis;
</span><span class="cx"> 
</span><del>-    protoCallFrame-&gt;init(newCodeBlock, function, jsUndefined(), argsCount, args.data());
</del><ins>+    protoCallFrame-&gt;init(newCodeBlock, function, jsUndefined(), argsCount, args);
</ins><span class="cx">     // Return the successful closure:
</span><span class="cx">     CallFrameClosure result = { callFrame, protoCallFrame, function, functionExecutable, &amp;vm, scope, newCodeBlock-&gt;numParameters(), argumentCountIncludingThis };
</span><span class="cx">     return result;
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit216SourceJavaScriptCoreinterpreterInterpreterh"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/interpreter/Interpreter.h (212706 => 212707)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/interpreter/Interpreter.h        2017-02-21 08:38:40 UTC (rev 212706)
+++ releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/interpreter/Interpreter.h        2017-02-21 08:38:51 UTC (rev 212707)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * Copyright (C) 2008-2017 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2008, 2013, 2015-2016 Apple Inc. All rights reserved.
</ins><span class="cx">  * Copyright (C) 2012 Research In Motion Limited. All rights reserved.
</span><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="lines">@@ -154,7 +154,7 @@
</span><span class="cx">     private:
</span><span class="cx">         enum ExecutionFlag { Normal, InitializeAndReturn };
</span><span class="cx"> 
</span><del>-        CallFrameClosure prepareForRepeatCall(FunctionExecutable*, CallFrame*, ProtoCallFrame*, JSFunction*, int argumentCountIncludingThis, JSScope*, const ArgList&amp;);
</del><ins>+        CallFrameClosure prepareForRepeatCall(FunctionExecutable*, CallFrame*, ProtoCallFrame*, JSFunction*, int argumentCountIncludingThis, JSScope*, JSValue*);
</ins><span class="cx"> 
</span><span class="cx">         JSValue execute(CallFrameClosure&amp;);
</span><span class="cx"> 
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit216SourceJavaScriptCoreinterpreterProtoCallFrameh"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/interpreter/ProtoCallFrame.h (212706 => 212707)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/interpreter/ProtoCallFrame.h        2017-02-21 08:38:40 UTC (rev 212706)
+++ releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/interpreter/ProtoCallFrame.h        2017-02-21 08:38:51 UTC (rev 212707)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * Copyright (C) 2013-2017 Apple Inc. All Rights Reserved.
</del><ins>+ * Copyright (C) 2013 Apple Inc. All Rights Reserved.
</ins><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="cx">  * modification, are permitted provided that the following conditions
</span><span class="lines">@@ -26,13 +26,10 @@
</span><span class="cx"> #pragma once
</span><span class="cx"> 
</span><span class="cx"> #include &quot;Register.h&quot;
</span><del>-#include &lt;wtf/ForbidHeapAllocation.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace JSC {
</span><span class="cx"> 
</span><span class="cx"> struct JS_EXPORT_PRIVATE ProtoCallFrame {
</span><del>-    WTF_FORBID_HEAP_ALLOCATION;
-public:
</del><span class="cx">     Register codeBlockValue;
</span><span class="cx">     Register calleeValue;
</span><span class="cx">     Register argCountAndCodeOriginValue;
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit216SourceJavaScriptCoreruntimeArgListcpp"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/runtime/ArgList.cpp (212706 => 212707)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/runtime/ArgList.cpp        2017-02-21 08:38:40 UTC (rev 212706)
+++ releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/runtime/ArgList.cpp        2017-02-21 08:38:51 UTC (rev 212707)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- *  Copyright (C) 2003-2017 Apple Inc. All rights reserved.
</del><ins>+ *  Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2016 Apple Inc. All rights reserved.
</ins><span class="cx">  *
</span><span class="cx">  *  This library is free software; you can redistribute it and/or
</span><span class="cx">  *  modify it under the terms of the GNU Library General Public
</span><span class="lines">@@ -63,21 +63,9 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void MarkedArgumentBuffer::slowEnsureCapacity(size_t requestedCapacity)
-{
-    int newCapacity = Checked&lt;int&gt;(requestedCapacity).unsafeGet();
-    expandCapacity(newCapacity);
-}
-
</del><span class="cx"> void MarkedArgumentBuffer::expandCapacity()
</span><span class="cx"> {
</span><span class="cx">     int newCapacity = (Checked&lt;int&gt;(m_capacity) * 2).unsafeGet();
</span><del>-    expandCapacity(newCapacity);
-}
-
-void MarkedArgumentBuffer::expandCapacity(int newCapacity)
-{
-    ASSERT(m_capacity &lt; newCapacity);
</del><span class="cx">     size_t size = (Checked&lt;size_t&gt;(newCapacity) * sizeof(EncodedJSValue)).unsafeGet();
</span><span class="cx">     EncodedJSValue* newBuffer = static_cast&lt;EncodedJSValue*&gt;(fastMalloc(size));
</span><span class="cx">     for (int i = 0; i &lt; m_capacity; ++i) {
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit216SourceJavaScriptCoreruntimeArgListh"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/runtime/ArgList.h (212706 => 212707)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/runtime/ArgList.h        2017-02-21 08:38:40 UTC (rev 212706)
+++ releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/runtime/ArgList.h        2017-02-21 08:38:51 UTC (rev 212707)
</span><span class="lines">@@ -1,6 +1,6 @@
</span><span class="cx"> /*
</span><span class="cx">  *  Copyright (C) 1999-2001 Harri Porten (porten@kde.org)
</span><del>- *  Copyright (C) 2003-2017 Apple Inc. All rights reserved.
</del><ins>+ *  Copyright (C) 2003, 2007, 2008, 2009, 2016 Apple Inc. All rights reserved.
</ins><span class="cx">  *
</span><span class="cx">  *  This library is free software; you can redistribute it and/or
</span><span class="cx">  *  modify it under the terms of the GNU Library General Public
</span><span class="lines">@@ -22,7 +22,6 @@
</span><span class="cx"> #pragma once
</span><span class="cx"> 
</span><span class="cx"> #include &quot;CallFrame.h&quot;
</span><del>-#include &lt;wtf/ForbidHeapAllocation.h&gt;
</del><span class="cx"> #include &lt;wtf/HashSet.h&gt;
</span><span class="cx"> 
</span><span class="cx"> namespace JSC {
</span><span class="lines">@@ -29,7 +28,6 @@
</span><span class="cx"> 
</span><span class="cx"> class MarkedArgumentBuffer {
</span><span class="cx">     WTF_MAKE_NONCOPYABLE(MarkedArgumentBuffer);
</span><del>-    WTF_FORBID_HEAP_ALLOCATION;
</del><span class="cx">     friend class VM;
</span><span class="cx">     friend class ArgList;
</span><span class="cx"> 
</span><span class="lines">@@ -96,16 +94,8 @@
</span><span class="cx">         
</span><span class="cx">     static void markLists(SlotVisitor&amp;, ListSet&amp;);
</span><span class="cx"> 
</span><del>-    void ensureCapacity(size_t requestedCapacity)
-    {
-        if (requestedCapacity &gt; static_cast&lt;size_t&gt;(m_capacity))
-            slowEnsureCapacity(requestedCapacity);
-    }
-
</del><span class="cx"> private:
</span><span class="cx">     void expandCapacity();
</span><del>-    void expandCapacity(int newCapacity);
-    void slowEnsureCapacity(size_t requestedCapacity);
</del><span class="cx"> 
</span><span class="cx">     void addMarkSet(JSValue);
</span><span class="cx"> 
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit216SourceJavaScriptCoreruntimeStringPrototypecpp"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/runtime/StringPrototype.cpp (212706 => 212707)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/runtime/StringPrototype.cpp        2017-02-21 08:38:40 UTC (rev 212706)
+++ releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/runtime/StringPrototype.cpp        2017-02-21 08:38:51 UTC (rev 212707)
</span><span class="lines">@@ -1,6 +1,6 @@
</span><span class="cx"> /*
</span><span class="cx">  *  Copyright (C) 1999-2001 Harri Porten (porten@kde.org)
</span><del>- *  Copyright (C) 2004-2017 Apple Inc. All rights reserved.
</del><ins>+ *  Copyright (C) 2004-2008, 2013, 2016 Apple Inc. All rights reserved.
</ins><span class="cx">  *  Copyright (C) 2009 Torch Mobile, Inc.
</span><span class="cx">  *  Copyright (C) 2015 Jordan Harband (ljharb@gmail.com)
</span><span class="cx">  *
</span><span class="lines">@@ -539,19 +539,18 @@
</span><span class="cx">                     OUT_OF_MEMORY(exec, scope);
</span><span class="cx"> 
</span><span class="cx">                 unsigned i = 0;
</span><del>-                cachedCall.clearArguments();
</del><span class="cx">                 for (; i &lt; regExp-&gt;numSubpatterns() + 1; ++i) {
</span><span class="cx">                     int matchStart = ovector[i * 2];
</span><span class="cx">                     int matchLen = ovector[i * 2 + 1] - matchStart;
</span><span class="cx"> 
</span><span class="cx">                     if (matchStart &lt; 0)
</span><del>-                        cachedCall.appendArgument(jsUndefined());
</del><ins>+                        cachedCall.setArgument(i, jsUndefined());
</ins><span class="cx">                     else
</span><del>-                        cachedCall.appendArgument(jsSubstring(&amp;vm, source, matchStart, matchLen));
</del><ins>+                        cachedCall.setArgument(i, jsSubstring(&amp;vm, source, matchStart, matchLen));
</ins><span class="cx">                 }
</span><span class="cx"> 
</span><del>-                cachedCall.appendArgument(jsNumber(result.start));
-                cachedCall.appendArgument(string);
</del><ins>+                cachedCall.setArgument(i++, jsNumber(result.start));
+                cachedCall.setArgument(i++, string);
</ins><span class="cx"> 
</span><span class="cx">                 cachedCall.setThis(jsUndefined());
</span><span class="cx">                 JSValue jsResult = cachedCall.call();
</span><span class="lines">@@ -579,19 +578,18 @@
</span><span class="cx">                     OUT_OF_MEMORY(exec, scope);
</span><span class="cx"> 
</span><span class="cx">                 unsigned i = 0;
</span><del>-                cachedCall.clearArguments();
</del><span class="cx">                 for (; i &lt; regExp-&gt;numSubpatterns() + 1; ++i) {
</span><span class="cx">                     int matchStart = ovector[i * 2];
</span><span class="cx">                     int matchLen = ovector[i * 2 + 1] - matchStart;
</span><span class="cx"> 
</span><span class="cx">                     if (matchStart &lt; 0)
</span><del>-                        cachedCall.appendArgument(jsUndefined());
</del><ins>+                        cachedCall.setArgument(i, jsUndefined());
</ins><span class="cx">                     else
</span><del>-                        cachedCall.appendArgument(jsSubstring(&amp;vm, source, matchStart, matchLen));
</del><ins>+                        cachedCall.setArgument(i, jsSubstring(&amp;vm, source, matchStart, matchLen));
</ins><span class="cx">                 }
</span><span class="cx"> 
</span><del>-                cachedCall.appendArgument(jsNumber(result.start));
-                cachedCall.appendArgument(string);
</del><ins>+                cachedCall.setArgument(i++, jsNumber(result.start));
+                cachedCall.setArgument(i++, string);
</ins><span class="cx"> 
</span><span class="cx">                 cachedCall.setThis(jsUndefined());
</span><span class="cx">                 JSValue jsResult = cachedCall.call();
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit216SourceJavaScriptCoreruntimeVMcpp"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/runtime/VM.cpp (212706 => 212707)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/runtime/VM.cpp        2017-02-21 08:38:40 UTC (rev 212706)
+++ releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/runtime/VM.cpp        2017-02-21 08:38:51 UTC (rev 212707)
</span><span class="lines">@@ -180,7 +180,7 @@
</span><span class="cx">     , topJSWebAssemblyInstance(nullptr)
</span><span class="cx">     , m_atomicStringTable(vmType == Default ? wtfThreadData().atomicStringTable() : new AtomicStringTable)
</span><span class="cx">     , propertyNames(nullptr)
</span><del>-    , emptyList(new ArgList)
</del><ins>+    , emptyList(new MarkedArgumentBuffer)
</ins><span class="cx">     , machineCodeBytesPerBytecodeWordForBaselineJIT(std::make_unique&lt;SimpleStats&gt;())
</span><span class="cx">     , customGetterSetterFunctionMap(*this)
</span><span class="cx">     , stringCache(*this)
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit216SourceJavaScriptCoreruntimeVMh"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/runtime/VM.h (212706 => 212707)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/runtime/VM.h        2017-02-21 08:38:40 UTC (rev 212706)
+++ releases/WebKitGTK/webkit-2.16/Source/JavaScriptCore/runtime/VM.h        2017-02-21 08:38:51 UTC (rev 212707)
</span><span class="lines">@@ -385,7 +385,7 @@
</span><span class="cx">     WTF::SymbolRegistry m_symbolRegistry;
</span><span class="cx">     TemplateRegistryKeyTable m_templateRegistryKeytable;
</span><span class="cx">     CommonIdentifiers* propertyNames;
</span><del>-    const ArgList* emptyList;
</del><ins>+    const MarkedArgumentBuffer* emptyList; // Lists are supposed to be allocated on the stack to have their elements properly marked, which is not the case here - but this list has nothing to mark.
</ins><span class="cx">     SmallStrings smallStrings;
</span><span class="cx">     NumericStrings numericStrings;
</span><span class="cx">     DateInstanceCache dateInstanceCache;
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit216SourceWTFChangeLog"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.16/Source/WTF/ChangeLog (212706 => 212707)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.16/Source/WTF/ChangeLog        2017-02-21 08:38:40 UTC (rev 212706)
+++ releases/WebKitGTK/webkit-2.16/Source/WTF/ChangeLog        2017-02-21 08:38:51 UTC (rev 212707)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2017-02-20  Commit Queue  &lt;commit-queue@webkit.org&gt;
+
+        Unreviewed, rolling out r212618.
+        https://bugs.webkit.org/show_bug.cgi?id=168609
+
+        &quot;Appears to cause PLT regression&quot; (Requested by mlam on
+        #webkit).
+
+        Reverted changeset:
+
+        &quot;CachedCall should let GC know to keep its arguments alive.&quot;
+        https://bugs.webkit.org/show_bug.cgi?id=168567
+        http://trac.webkit.org/changeset/212618
+
</ins><span class="cx"> 2017-02-20  Carlos Garcia Campos  &lt;cgarcia@igalia.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Unreviewed, rolling out r212622.
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit216SourceWTFWTFxcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.16/Source/WTF/WTF.xcodeproj/project.pbxproj (212706 => 212707)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.16/Source/WTF/WTF.xcodeproj/project.pbxproj        2017-02-21 08:38:40 UTC (rev 212706)
+++ releases/WebKitGTK/webkit-2.16/Source/WTF/WTF.xcodeproj/project.pbxproj        2017-02-21 08:38:51 UTC (rev 212707)
</span><span class="lines">@@ -368,7 +368,6 @@
</span><span class="cx">                 E4A0AD3D1A96253C00536DF6 /* WorkQueueCocoa.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E4A0AD3C1A96253C00536DF6 /* WorkQueueCocoa.cpp */; };
</span><span class="cx">                 EB95E1F0161A72410089A2F5 /* ByteOrder.h in Headers */ = {isa = PBXBuildFile; fileRef = EB95E1EF161A72410089A2F5 /* ByteOrder.h */; };
</span><span class="cx">                 FE8225311B2A1E5B00BA68FD /* NakedPtr.h in Headers */ = {isa = PBXBuildFile; fileRef = FE8225301B2A1E5B00BA68FD /* NakedPtr.h */; };
</span><del>-                FE86A8751E59440200111BBF /* ForbidHeapAllocation.h in Headers */ = {isa = PBXBuildFile; fileRef = FE86A8741E59440200111BBF /* ForbidHeapAllocation.h */; };
</del><span class="cx">                 FE8925B01D00DAEC0046907E /* Indenter.h in Headers */ = {isa = PBXBuildFile; fileRef = FE8925AF1D00DAEC0046907E /* Indenter.h */; };
</span><span class="cx">                 FEDACD3D1630F83F00C69634 /* StackStats.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FEDACD3B1630F83F00C69634 /* StackStats.cpp */; };
</span><span class="cx">                 FEDACD3E1630F83F00C69634 /* StackStats.h in Headers */ = {isa = PBXBuildFile; fileRef = FEDACD3C1630F83F00C69634 /* StackStats.h */; };
</span><span class="lines">@@ -752,7 +751,6 @@
</span><span class="cx">                 EB95E1EF161A72410089A2F5 /* ByteOrder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ByteOrder.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 F72BBDB107FA424886178B9E /* SymbolImpl.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SymbolImpl.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 FE8225301B2A1E5B00BA68FD /* NakedPtr.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NakedPtr.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><del>-                FE86A8741E59440200111BBF /* ForbidHeapAllocation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ForbidHeapAllocation.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</del><span class="cx">                 FE8925AF1D00DAEC0046907E /* Indenter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Indenter.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 FEDACD3B1630F83F00C69634 /* StackStats.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = StackStats.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 FEDACD3C1630F83F00C69634 /* StackStats.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StackStats.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -964,7 +962,6 @@
</span><span class="cx">                                 0F9D335B165DBA73005AD387 /* FilePrintStream.cpp */,
</span><span class="cx">                                 0F9D335C165DBA73005AD387 /* FilePrintStream.h */,
</span><span class="cx">                                 0F2B66A517B6B4F700A7AE3F /* FlipBytes.h */,
</span><del>-                                FE86A8741E59440200111BBF /* ForbidHeapAllocation.h */,
</del><span class="cx">                                 A8A472A6151A825A004123FF /* Forward.h */,
</span><span class="cx">                                 83F2BADE1CF9524E003E99C3 /* Function.h */,
</span><span class="cx">                                 1A1D8B9D1731879800141DA4 /* FunctionDispatcher.cpp */,
</span><span class="lines">@@ -1421,7 +1418,6 @@
</span><span class="cx">                                 83F2BADF1CF9524E003E99C3 /* Function.h in Headers */,
</span><span class="cx">                                 1A1D8B9C173186CE00141DA4 /* FunctionDispatcher.h in Headers */,
</span><span class="cx">                                 A8A473CA151A825B004123FF /* GetPtr.h in Headers */,
</span><del>-                                FE86A8751E59440200111BBF /* ForbidHeapAllocation.h in Headers */,
</del><span class="cx">                                 0FEC84AF1BD825310080FF74 /* GraphNodeWorklist.h in Headers */,
</span><span class="cx">                                 2C05385415BC819000F21B96 /* GregorianDateTime.h in Headers */,
</span><span class="cx">                                 A8A473D3151A825B004123FF /* HashCountedSet.h in Headers */,
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit216SourceWTFwtfForbidHeapAllocationh"></a>
<div class="delfile"><h4>Deleted: releases/WebKitGTK/webkit-2.16/Source/WTF/wtf/ForbidHeapAllocation.h (212706 => 212707)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.16/Source/WTF/wtf/ForbidHeapAllocation.h        2017-02-21 08:38:40 UTC (rev 212706)
+++ releases/WebKitGTK/webkit-2.16/Source/WTF/wtf/ForbidHeapAllocation.h        2017-02-21 08:38:51 UTC (rev 212707)
</span><span class="lines">@@ -1,37 +0,0 @@
</span><del>-/*
- * Copyright (C) 2017 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#pragma once
-
-#define WTF_FORBID_HEAP_ALLOCATION \
-private: \
-    void* operator new(size_t, void*) = delete; \
-    void* operator new[](size_t, void*) = delete; \
-    void* operator new(size_t) = delete; \
-    void operator delete(void*) = delete; \
-    void* operator new[](size_t size) = delete; \
-    void operator delete[](void*) = delete; \
-    void* operator new(size_t, NotNullTag, void* location) = delete; \
-    typedef int __thisIsHereToForceASemicolonAfterThisForbidHeapAllocationMacro
</del></span></pre>
</div>
</div>

</body>
</html>