<!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>[182412] releases/WebKitGTK/webkit-2.6/Source/WebCore</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/182412">182412</a></dd>
<dt>Author</dt> <dd>carlosgc@webkit.org</dd>
<dt>Date</dt> <dd>2015-04-06 06:35:04 -0700 (Mon, 06 Apr 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Merge <a href="http://trac.webkit.org/projects/webkit/changeset/180772">r180772</a> - Use NeverDestroyed for JS wrapper owners.
&lt;https://webkit.org/b/142090&gt;

Reviewed by Chris Dumez.

Using NeverDestroyed puts these objects in BSS which is preferable
since that prevents them from pinning down entire malloc pages forever.

* bindings/scripts/CodeGeneratorJS.pm:
(GenerateHeader): Use NeverDestroyed instead of DEPRECATED_DEFINE_STATIC_LOCAL.

* bindings/scripts/test/JS/*: Rebaseline bindings tests for this change.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#releasesWebKitGTKwebkit26SourceWebCoreChangeLog">releases/WebKitGTK/webkit-2.6/Source/WebCore/ChangeLog</a></li>
<li><a href="#releasesWebKitGTKwebkit26SourceWebCorebindingsscriptsCodeGeneratorJSpm">releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm</a></li>
<li><a href="#releasesWebKitGTKwebkit26SourceWebCorebindingsscriptstestJSJSTestActiveDOMObjecth">releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.h</a></li>
<li><a href="#releasesWebKitGTKwebkit26SourceWebCorebindingsscriptstestJSJSTestCustomNamedGetterh">releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.h</a></li>
<li><a href="#releasesWebKitGTKwebkit26SourceWebCorebindingsscriptstestJSJSTestEventConstructorh">releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.h</a></li>
<li><a href="#releasesWebKitGTKwebkit26SourceWebCorebindingsscriptstestJSJSTestEventTargeth">releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.h</a></li>
<li><a href="#releasesWebKitGTKwebkit26SourceWebCorebindingsscriptstestJSJSTestExceptionh">releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestException.h</a></li>
<li><a href="#releasesWebKitGTKwebkit26SourceWebCorebindingsscriptstestJSJSTestGenerateIsReachableh">releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestGenerateIsReachable.h</a></li>
<li><a href="#releasesWebKitGTKwebkit26SourceWebCorebindingsscriptstestJSJSTestInterfaceh">releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.h</a></li>
<li><a href="#releasesWebKitGTKwebkit26SourceWebCorebindingsscriptstestJSJSTestMediaQueryListListenerh">releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.h</a></li>
<li><a href="#releasesWebKitGTKwebkit26SourceWebCorebindingsscriptstestJSJSTestNamedConstructorh">releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.h</a></li>
<li><a href="#releasesWebKitGTKwebkit26SourceWebCorebindingsscriptstestJSJSTestNondeterministich">releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestNondeterministic.h</a></li>
<li><a href="#releasesWebKitGTKwebkit26SourceWebCorebindingsscriptstestJSJSTestObjh">releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestObj.h</a></li>
<li><a href="#releasesWebKitGTKwebkit26SourceWebCorebindingsscriptstestJSJSTestOverloadedConstructorsh">releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.h</a></li>
<li><a href="#releasesWebKitGTKwebkit26SourceWebCorebindingsscriptstestJSJSTestSerializedScriptValueInterfaceh">releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.h</a></li>
<li><a href="#releasesWebKitGTKwebkit26SourceWebCorebindingsscriptstestJSJSTestTypedefsh">releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.h</a></li>
<li><a href="#releasesWebKitGTKwebkit26SourceWebCorebindingsscriptstestJSJSattributeh">releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSattribute.h</a></li>
<li><a href="#releasesWebKitGTKwebkit26SourceWebCorebindingsscriptstestJSJSreadonlyh">releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSreadonly.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="releasesWebKitGTKwebkit26SourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.6/Source/WebCore/ChangeLog (182411 => 182412)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.6/Source/WebCore/ChangeLog        2015-04-06 13:13:58 UTC (rev 182411)
+++ releases/WebKitGTK/webkit-2.6/Source/WebCore/ChangeLog        2015-04-06 13:35:04 UTC (rev 182412)
</span><span class="lines">@@ -1,3 +1,18 @@
</span><ins>+2015-02-27  Andreas Kling  &lt;akling@apple.com&gt;
+
+        Use NeverDestroyed for JS wrapper owners.
+        &lt;https://webkit.org/b/142090&gt;
+
+        Reviewed by Chris Dumez.
+
+        Using NeverDestroyed puts these objects in BSS which is preferable
+        since that prevents them from pinning down entire malloc pages forever.
+
+        * bindings/scripts/CodeGeneratorJS.pm:
+        (GenerateHeader): Use NeverDestroyed instead of DEPRECATED_DEFINE_STATIC_LOCAL.
+
+        * bindings/scripts/test/JS/*: Rebaseline bindings tests for this change.
+
</ins><span class="cx"> 2015-02-27  Zalan Bujtas  &lt;zalan@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Use after free in WebCore::RenderNamedFlowFragment::restoreRegionObjectsOriginalStyle
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit26SourceWebCorebindingsscriptsCodeGeneratorJSpm"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm (182411 => 182412)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm        2015-04-06 13:13:58 UTC (rev 182411)
+++ releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm        2015-04-06 13:35:04 UTC (rev 182412)
</span><span class="lines">@@ -1146,6 +1146,7 @@
</span><span class="cx">         } else {
</span><span class="cx">             push(@headerContent, &quot;class JS${interfaceName}Owner : public JSC::WeakHandleOwner {\n&quot;);
</span><span class="cx">         }
</span><ins>+        $headerIncludes{&quot;&lt;wtf/NeverDestroyed.h&gt;&quot;} = 1;
</ins><span class="cx">         push(@headerContent, &quot;public:\n&quot;);
</span><span class="cx">         push(@headerContent, &quot;    virtual bool isReachableFromOpaqueRoots(JSC::Handle&lt;JSC::Unknown&gt;, void* context, JSC::SlotVisitor&amp;);\n&quot;);
</span><span class="cx">         push(@headerContent, &quot;    virtual void finalize(JSC::Handle&lt;JSC::Unknown&gt;, void* context);\n&quot;);
</span><span class="lines">@@ -1153,8 +1154,8 @@
</span><span class="cx">         push(@headerContent, &quot;\n&quot;);
</span><span class="cx">         push(@headerContent, &quot;inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld&amp;, $implType*)\n&quot;);
</span><span class="cx">         push(@headerContent, &quot;{\n&quot;);
</span><del>-        push(@headerContent, &quot;    DEPRECATED_DEFINE_STATIC_LOCAL(JS${interfaceName}Owner, js${interfaceName}Owner, ());\n&quot;);
-        push(@headerContent, &quot;    return &amp;js${interfaceName}Owner;\n&quot;);
</del><ins>+        push(@headerContent, &quot;    static NeverDestroyed&lt;JS${interfaceName}Owner&gt; owner;\n&quot;);
+        push(@headerContent, &quot;    return &amp;owner.get();\n&quot;);
</ins><span class="cx">         push(@headerContent, &quot;}\n&quot;);
</span><span class="cx">         push(@headerContent, &quot;\n&quot;);
</span><span class="cx">         push(@headerContent, &quot;inline void* wrapperContext(DOMWrapperWorld&amp; world, $implType*)\n&quot;);
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit26SourceWebCorebindingsscriptstestJSJSTestActiveDOMObjecth"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.h (182411 => 182412)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.h        2015-04-06 13:13:58 UTC (rev 182411)
+++ releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.h        2015-04-06 13:35:04 UTC (rev 182412)
</span><span class="lines">@@ -23,6 +23,7 @@
</span><span class="cx"> 
</span><span class="cx"> #include &quot;JSDOMWrapper.h&quot;
</span><span class="cx"> #include &quot;TestActiveDOMObject.h&quot;
</span><ins>+#include &lt;wtf/NeverDestroyed.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -83,8 +84,8 @@
</span><span class="cx"> 
</span><span class="cx"> inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld&amp;, TestActiveDOMObject*)
</span><span class="cx"> {
</span><del>-    DEPRECATED_DEFINE_STATIC_LOCAL(JSTestActiveDOMObjectOwner, jsTestActiveDOMObjectOwner, ());
-    return &amp;jsTestActiveDOMObjectOwner;
</del><ins>+    static NeverDestroyed&lt;JSTestActiveDOMObjectOwner&gt; owner;
+    return &amp;owner.get();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> inline void* wrapperContext(DOMWrapperWorld&amp; world, TestActiveDOMObject*)
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit26SourceWebCorebindingsscriptstestJSJSTestCustomNamedGetterh"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.h (182411 => 182412)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.h        2015-04-06 13:13:58 UTC (rev 182411)
+++ releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.h        2015-04-06 13:35:04 UTC (rev 182412)
</span><span class="lines">@@ -23,6 +23,7 @@
</span><span class="cx"> 
</span><span class="cx"> #include &quot;JSDOMWrapper.h&quot;
</span><span class="cx"> #include &quot;TestCustomNamedGetter.h&quot;
</span><ins>+#include &lt;wtf/NeverDestroyed.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -87,8 +88,8 @@
</span><span class="cx"> 
</span><span class="cx"> inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld&amp;, TestCustomNamedGetter*)
</span><span class="cx"> {
</span><del>-    DEPRECATED_DEFINE_STATIC_LOCAL(JSTestCustomNamedGetterOwner, jsTestCustomNamedGetterOwner, ());
-    return &amp;jsTestCustomNamedGetterOwner;
</del><ins>+    static NeverDestroyed&lt;JSTestCustomNamedGetterOwner&gt; owner;
+    return &amp;owner.get();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> inline void* wrapperContext(DOMWrapperWorld&amp; world, TestCustomNamedGetter*)
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit26SourceWebCorebindingsscriptstestJSJSTestEventConstructorh"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.h (182411 => 182412)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.h        2015-04-06 13:13:58 UTC (rev 182411)
+++ releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.h        2015-04-06 13:35:04 UTC (rev 182412)
</span><span class="lines">@@ -23,6 +23,7 @@
</span><span class="cx"> 
</span><span class="cx"> #include &quot;JSDOMWrapper.h&quot;
</span><span class="cx"> #include &quot;TestEventConstructor.h&quot;
</span><ins>+#include &lt;wtf/NeverDestroyed.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -83,8 +84,8 @@
</span><span class="cx"> 
</span><span class="cx"> inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld&amp;, TestEventConstructor*)
</span><span class="cx"> {
</span><del>-    DEPRECATED_DEFINE_STATIC_LOCAL(JSTestEventConstructorOwner, jsTestEventConstructorOwner, ());
-    return &amp;jsTestEventConstructorOwner;
</del><ins>+    static NeverDestroyed&lt;JSTestEventConstructorOwner&gt; owner;
+    return &amp;owner.get();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> inline void* wrapperContext(DOMWrapperWorld&amp; world, TestEventConstructor*)
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit26SourceWebCorebindingsscriptstestJSJSTestEventTargeth"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.h (182411 => 182412)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.h        2015-04-06 13:13:58 UTC (rev 182411)
+++ releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.h        2015-04-06 13:35:04 UTC (rev 182412)
</span><span class="lines">@@ -23,6 +23,7 @@
</span><span class="cx"> 
</span><span class="cx"> #include &quot;JSDOMWrapper.h&quot;
</span><span class="cx"> #include &quot;TestEventTarget.h&quot;
</span><ins>+#include &lt;wtf/NeverDestroyed.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -91,8 +92,8 @@
</span><span class="cx"> 
</span><span class="cx"> inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld&amp;, TestEventTarget*)
</span><span class="cx"> {
</span><del>-    DEPRECATED_DEFINE_STATIC_LOCAL(JSTestEventTargetOwner, jsTestEventTargetOwner, ());
-    return &amp;jsTestEventTargetOwner;
</del><ins>+    static NeverDestroyed&lt;JSTestEventTargetOwner&gt; owner;
+    return &amp;owner.get();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> inline void* wrapperContext(DOMWrapperWorld&amp; world, TestEventTarget*)
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit26SourceWebCorebindingsscriptstestJSJSTestExceptionh"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestException.h (182411 => 182412)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestException.h        2015-04-06 13:13:58 UTC (rev 182411)
+++ releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestException.h        2015-04-06 13:35:04 UTC (rev 182412)
</span><span class="lines">@@ -24,6 +24,7 @@
</span><span class="cx"> #include &quot;JSDOMWrapper.h&quot;
</span><span class="cx"> #include &quot;TestException.h&quot;
</span><span class="cx"> #include &lt;runtime/ErrorPrototype.h&gt;
</span><ins>+#include &lt;wtf/NeverDestroyed.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -84,8 +85,8 @@
</span><span class="cx"> 
</span><span class="cx"> inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld&amp;, TestException*)
</span><span class="cx"> {
</span><del>-    DEPRECATED_DEFINE_STATIC_LOCAL(JSTestExceptionOwner, jsTestExceptionOwner, ());
-    return &amp;jsTestExceptionOwner;
</del><ins>+    static NeverDestroyed&lt;JSTestExceptionOwner&gt; owner;
+    return &amp;owner.get();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> inline void* wrapperContext(DOMWrapperWorld&amp; world, TestException*)
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit26SourceWebCorebindingsscriptstestJSJSTestGenerateIsReachableh"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestGenerateIsReachable.h (182411 => 182412)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestGenerateIsReachable.h        2015-04-06 13:13:58 UTC (rev 182411)
+++ releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestGenerateIsReachable.h        2015-04-06 13:35:04 UTC (rev 182412)
</span><span class="lines">@@ -23,6 +23,7 @@
</span><span class="cx"> 
</span><span class="cx"> #include &quot;JSDOMWrapper.h&quot;
</span><span class="cx"> #include &quot;TestGenerateIsReachable.h&quot;
</span><ins>+#include &lt;wtf/NeverDestroyed.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -81,8 +82,8 @@
</span><span class="cx"> 
</span><span class="cx"> inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld&amp;, TestGenerateIsReachable*)
</span><span class="cx"> {
</span><del>-    DEPRECATED_DEFINE_STATIC_LOCAL(JSTestGenerateIsReachableOwner, jsTestGenerateIsReachableOwner, ());
-    return &amp;jsTestGenerateIsReachableOwner;
</del><ins>+    static NeverDestroyed&lt;JSTestGenerateIsReachableOwner&gt; owner;
+    return &amp;owner.get();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> inline void* wrapperContext(DOMWrapperWorld&amp; world, TestGenerateIsReachable*)
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit26SourceWebCorebindingsscriptstestJSJSTestInterfaceh"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.h (182411 => 182412)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.h        2015-04-06 13:13:58 UTC (rev 182411)
+++ releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.h        2015-04-06 13:35:04 UTC (rev 182412)
</span><span class="lines">@@ -25,6 +25,7 @@
</span><span class="cx"> 
</span><span class="cx"> #include &quot;JSDOMWrapper.h&quot;
</span><span class="cx"> #include &quot;TestInterface.h&quot;
</span><ins>+#include &lt;wtf/NeverDestroyed.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -110,8 +111,8 @@
</span><span class="cx"> 
</span><span class="cx"> inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld&amp;, TestInterface*)
</span><span class="cx"> {
</span><del>-    DEPRECATED_DEFINE_STATIC_LOCAL(JSTestInterfaceOwner, jsTestInterfaceOwner, ());
-    return &amp;jsTestInterfaceOwner;
</del><ins>+    static NeverDestroyed&lt;JSTestInterfaceOwner&gt; owner;
+    return &amp;owner.get();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> inline void* wrapperContext(DOMWrapperWorld&amp; world, TestInterface*)
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit26SourceWebCorebindingsscriptstestJSJSTestMediaQueryListListenerh"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.h (182411 => 182412)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.h        2015-04-06 13:13:58 UTC (rev 182411)
+++ releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.h        2015-04-06 13:35:04 UTC (rev 182412)
</span><span class="lines">@@ -23,6 +23,7 @@
</span><span class="cx"> 
</span><span class="cx"> #include &quot;JSDOMWrapper.h&quot;
</span><span class="cx"> #include &quot;TestMediaQueryListListener.h&quot;
</span><ins>+#include &lt;wtf/NeverDestroyed.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -81,8 +82,8 @@
</span><span class="cx"> 
</span><span class="cx"> inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld&amp;, TestMediaQueryListListener*)
</span><span class="cx"> {
</span><del>-    DEPRECATED_DEFINE_STATIC_LOCAL(JSTestMediaQueryListListenerOwner, jsTestMediaQueryListListenerOwner, ());
-    return &amp;jsTestMediaQueryListListenerOwner;
</del><ins>+    static NeverDestroyed&lt;JSTestMediaQueryListListenerOwner&gt; owner;
+    return &amp;owner.get();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> inline void* wrapperContext(DOMWrapperWorld&amp; world, TestMediaQueryListListener*)
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit26SourceWebCorebindingsscriptstestJSJSTestNamedConstructorh"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.h (182411 => 182412)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.h        2015-04-06 13:13:58 UTC (rev 182411)
+++ releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.h        2015-04-06 13:35:04 UTC (rev 182412)
</span><span class="lines">@@ -23,6 +23,7 @@
</span><span class="cx"> 
</span><span class="cx"> #include &quot;JSDOMWrapper.h&quot;
</span><span class="cx"> #include &quot;TestNamedConstructor.h&quot;
</span><ins>+#include &lt;wtf/NeverDestroyed.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -82,8 +83,8 @@
</span><span class="cx"> 
</span><span class="cx"> inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld&amp;, TestNamedConstructor*)
</span><span class="cx"> {
</span><del>-    DEPRECATED_DEFINE_STATIC_LOCAL(JSTestNamedConstructorOwner, jsTestNamedConstructorOwner, ());
-    return &amp;jsTestNamedConstructorOwner;
</del><ins>+    static NeverDestroyed&lt;JSTestNamedConstructorOwner&gt; owner;
+    return &amp;owner.get();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> inline void* wrapperContext(DOMWrapperWorld&amp; world, TestNamedConstructor*)
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit26SourceWebCorebindingsscriptstestJSJSTestNondeterministich"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestNondeterministic.h (182411 => 182412)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestNondeterministic.h        2015-04-06 13:13:58 UTC (rev 182411)
+++ releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestNondeterministic.h        2015-04-06 13:35:04 UTC (rev 182412)
</span><span class="lines">@@ -23,6 +23,7 @@
</span><span class="cx"> 
</span><span class="cx"> #include &quot;JSDOMWrapper.h&quot;
</span><span class="cx"> #include &quot;TestNondeterministic.h&quot;
</span><ins>+#include &lt;wtf/NeverDestroyed.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -81,8 +82,8 @@
</span><span class="cx"> 
</span><span class="cx"> inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld&amp;, TestNondeterministic*)
</span><span class="cx"> {
</span><del>-    DEPRECATED_DEFINE_STATIC_LOCAL(JSTestNondeterministicOwner, jsTestNondeterministicOwner, ());
-    return &amp;jsTestNondeterministicOwner;
</del><ins>+    static NeverDestroyed&lt;JSTestNondeterministicOwner&gt; owner;
+    return &amp;owner.get();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> inline void* wrapperContext(DOMWrapperWorld&amp; world, TestNondeterministic*)
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit26SourceWebCorebindingsscriptstestJSJSTestObjh"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestObj.h (182411 => 182412)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestObj.h        2015-04-06 13:13:58 UTC (rev 182411)
+++ releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestObj.h        2015-04-06 13:35:04 UTC (rev 182412)
</span><span class="lines">@@ -23,6 +23,7 @@
</span><span class="cx"> 
</span><span class="cx"> #include &quot;JSDOMWrapper.h&quot;
</span><span class="cx"> #include &quot;TestObj.h&quot;
</span><ins>+#include &lt;wtf/NeverDestroyed.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -96,8 +97,8 @@
</span><span class="cx"> 
</span><span class="cx"> inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld&amp;, TestObj*)
</span><span class="cx"> {
</span><del>-    DEPRECATED_DEFINE_STATIC_LOCAL(JSTestObjOwner, jsTestObjOwner, ());
-    return &amp;jsTestObjOwner;
</del><ins>+    static NeverDestroyed&lt;JSTestObjOwner&gt; owner;
+    return &amp;owner.get();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> inline void* wrapperContext(DOMWrapperWorld&amp; world, TestObj*)
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit26SourceWebCorebindingsscriptstestJSJSTestOverloadedConstructorsh"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.h (182411 => 182412)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.h        2015-04-06 13:13:58 UTC (rev 182411)
+++ releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.h        2015-04-06 13:35:04 UTC (rev 182412)
</span><span class="lines">@@ -23,6 +23,7 @@
</span><span class="cx"> 
</span><span class="cx"> #include &quot;JSDOMWrapper.h&quot;
</span><span class="cx"> #include &quot;TestOverloadedConstructors.h&quot;
</span><ins>+#include &lt;wtf/NeverDestroyed.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -81,8 +82,8 @@
</span><span class="cx"> 
</span><span class="cx"> inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld&amp;, TestOverloadedConstructors*)
</span><span class="cx"> {
</span><del>-    DEPRECATED_DEFINE_STATIC_LOCAL(JSTestOverloadedConstructorsOwner, jsTestOverloadedConstructorsOwner, ());
-    return &amp;jsTestOverloadedConstructorsOwner;
</del><ins>+    static NeverDestroyed&lt;JSTestOverloadedConstructorsOwner&gt; owner;
+    return &amp;owner.get();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> inline void* wrapperContext(DOMWrapperWorld&amp; world, TestOverloadedConstructors*)
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit26SourceWebCorebindingsscriptstestJSJSTestSerializedScriptValueInterfaceh"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.h (182411 => 182412)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.h        2015-04-06 13:13:58 UTC (rev 182411)
+++ releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.h        2015-04-06 13:35:04 UTC (rev 182412)
</span><span class="lines">@@ -25,6 +25,7 @@
</span><span class="cx"> 
</span><span class="cx"> #include &quot;JSDOMWrapper.h&quot;
</span><span class="cx"> #include &quot;TestSerializedScriptValueInterface.h&quot;
</span><ins>+#include &lt;wtf/NeverDestroyed.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -87,8 +88,8 @@
</span><span class="cx"> 
</span><span class="cx"> inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld&amp;, TestSerializedScriptValueInterface*)
</span><span class="cx"> {
</span><del>-    DEPRECATED_DEFINE_STATIC_LOCAL(JSTestSerializedScriptValueInterfaceOwner, jsTestSerializedScriptValueInterfaceOwner, ());
-    return &amp;jsTestSerializedScriptValueInterfaceOwner;
</del><ins>+    static NeverDestroyed&lt;JSTestSerializedScriptValueInterfaceOwner&gt; owner;
+    return &amp;owner.get();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> inline void* wrapperContext(DOMWrapperWorld&amp; world, TestSerializedScriptValueInterface*)
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit26SourceWebCorebindingsscriptstestJSJSTestTypedefsh"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.h (182411 => 182412)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.h        2015-04-06 13:13:58 UTC (rev 182411)
+++ releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.h        2015-04-06 13:35:04 UTC (rev 182412)
</span><span class="lines">@@ -23,6 +23,7 @@
</span><span class="cx"> 
</span><span class="cx"> #include &quot;JSDOMWrapper.h&quot;
</span><span class="cx"> #include &quot;TestTypedefs.h&quot;
</span><ins>+#include &lt;wtf/NeverDestroyed.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -83,8 +84,8 @@
</span><span class="cx"> 
</span><span class="cx"> inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld&amp;, TestTypedefs*)
</span><span class="cx"> {
</span><del>-    DEPRECATED_DEFINE_STATIC_LOCAL(JSTestTypedefsOwner, jsTestTypedefsOwner, ());
-    return &amp;jsTestTypedefsOwner;
</del><ins>+    static NeverDestroyed&lt;JSTestTypedefsOwner&gt; owner;
+    return &amp;owner.get();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> inline void* wrapperContext(DOMWrapperWorld&amp; world, TestTypedefs*)
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit26SourceWebCorebindingsscriptstestJSJSattributeh"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSattribute.h (182411 => 182412)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSattribute.h        2015-04-06 13:13:58 UTC (rev 182411)
+++ releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSattribute.h        2015-04-06 13:35:04 UTC (rev 182412)
</span><span class="lines">@@ -24,6 +24,7 @@
</span><span class="cx"> #include &quot;JSDOMWrapper.h&quot;
</span><span class="cx"> #include &quot;attribute.h&quot;
</span><span class="cx"> #include &lt;runtime/ErrorPrototype.h&gt;
</span><ins>+#include &lt;wtf/NeverDestroyed.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -82,8 +83,8 @@
</span><span class="cx"> 
</span><span class="cx"> inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld&amp;, attribute*)
</span><span class="cx"> {
</span><del>-    DEPRECATED_DEFINE_STATIC_LOCAL(JSattributeOwner, jsattributeOwner, ());
-    return &amp;jsattributeOwner;
</del><ins>+    static NeverDestroyed&lt;JSattributeOwner&gt; owner;
+    return &amp;owner.get();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> inline void* wrapperContext(DOMWrapperWorld&amp; world, attribute*)
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit26SourceWebCorebindingsscriptstestJSJSreadonlyh"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSreadonly.h (182411 => 182412)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSreadonly.h        2015-04-06 13:13:58 UTC (rev 182411)
+++ releases/WebKitGTK/webkit-2.6/Source/WebCore/bindings/scripts/test/JS/JSreadonly.h        2015-04-06 13:35:04 UTC (rev 182412)
</span><span class="lines">@@ -23,6 +23,7 @@
</span><span class="cx"> 
</span><span class="cx"> #include &quot;JSDOMWrapper.h&quot;
</span><span class="cx"> #include &quot;readonly.h&quot;
</span><ins>+#include &lt;wtf/NeverDestroyed.h&gt;
</ins><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -81,8 +82,8 @@
</span><span class="cx"> 
</span><span class="cx"> inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld&amp;, readonly*)
</span><span class="cx"> {
</span><del>-    DEPRECATED_DEFINE_STATIC_LOCAL(JSreadonlyOwner, jsreadonlyOwner, ());
-    return &amp;jsreadonlyOwner;
</del><ins>+    static NeverDestroyed&lt;JSreadonlyOwner&gt; owner;
+    return &amp;owner.get();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> inline void* wrapperContext(DOMWrapperWorld&amp; world, readonly*)
</span></span></pre>
</div>
</div>

</body>
</html>