<!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>[185532] trunk/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/185532">185532</a></dd>
<dt>Author</dt> <dd>gyuyoung.kim@webkit.org</dd>
<dt>Date</dt> <dd>2015-06-12 20:52:06 -0700 (Fri, 12 Jun 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Purge PassRefPtr in JavaScriptCore - 2
https://bugs.webkit.org/show_bug.cgi?id=145834

Reviewed by Darin Adler.

Source/JavaScriptCore:

As a step to remove PassRefPtr, this patch cleans up PassRefPtr as much as possible
in JavaScriptCore.

* API/JSClassRef.cpp:
(OpaqueJSClass::create):
* API/JSClassRef.h:
* debugger/DebuggerCallFrame.cpp:
(JSC::DebuggerCallFrame::callerFrame):
* debugger/DebuggerCallFrame.h:
* dfg/DFGJITCompiler.h:
(JSC::DFG::JITCompiler::jitCode):
* inspector/ScriptCallStackFactory.cpp:
(Inspector::createScriptCallStack):
(Inspector::createScriptCallStackForConsole):
(Inspector::createScriptCallStackFromException):
(Inspector::createScriptArguments):
* inspector/ScriptCallStackFactory.h:
* jit/ExecutableAllocator.cpp:
(JSC::ExecutableAllocator::allocate):
* jit/ExecutableAllocator.h:
* jit/ExecutableAllocatorFixedVMPool.cpp:
(JSC::ExecutableAllocator::allocate):
* profiler/LegacyProfiler.cpp:
(JSC::LegacyProfiler::stopProfiling):
* profiler/LegacyProfiler.h:
* runtime/DateInstanceCache.h:
* runtime/Executable.cpp:
(JSC::ScriptExecutable::newCodeBlockFor):
* runtime/Executable.h:
* runtime/GenericTypedArrayView.h:
* runtime/GenericTypedArrayViewInlines.h:
(JSC::GenericTypedArrayView&lt;Adaptor&gt;::create):
(JSC::GenericTypedArrayView&lt;Adaptor&gt;::createUninitialized):

Source/WebCore:

Fix call sites depends on changing of JSC.

* html/canvas/WebGL2RenderingContext.cpp:
(WebCore::WebGL2RenderingContext::getParameter):
* html/canvas/WebGLRenderingContext.cpp:
(WebCore::WebGLRenderingContext::getParameter):
* html/canvas/WebGLRenderingContextBase.cpp:
(WebCore::WebGLRenderingContextBase::getUniform):
(WebCore::WebGLRenderingContextBase::getVertexAttrib):
(WebCore::WebGLRenderingContextBase::getWebGLFloatArrayParameter):
(WebCore::WebGLRenderingContextBase::getWebGLIntArrayParameter):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceJavaScriptCoreAPIJSClassRefcpp">trunk/Source/JavaScriptCore/API/JSClassRef.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreAPIJSClassRefh">trunk/Source/JavaScriptCore/API/JSClassRef.h</a></li>
<li><a href="#trunkSourceJavaScriptCoreChangeLog">trunk/Source/JavaScriptCore/ChangeLog</a></li>
<li><a href="#trunkSourceJavaScriptCoredebuggerDebuggerCallFramecpp">trunk/Source/JavaScriptCore/debugger/DebuggerCallFrame.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoredebuggerDebuggerCallFrameh">trunk/Source/JavaScriptCore/debugger/DebuggerCallFrame.h</a></li>
<li><a href="#trunkSourceJavaScriptCoredfgDFGJITCompilerh">trunk/Source/JavaScriptCore/dfg/DFGJITCompiler.h</a></li>
<li><a href="#trunkSourceJavaScriptCoreinspectorScriptCallStackFactorycpp">trunk/Source/JavaScriptCore/inspector/ScriptCallStackFactory.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreinspectorScriptCallStackFactoryh">trunk/Source/JavaScriptCore/inspector/ScriptCallStackFactory.h</a></li>
<li><a href="#trunkSourceJavaScriptCorejitExecutableAllocatorcpp">trunk/Source/JavaScriptCore/jit/ExecutableAllocator.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCorejitExecutableAllocatorh">trunk/Source/JavaScriptCore/jit/ExecutableAllocator.h</a></li>
<li><a href="#trunkSourceJavaScriptCorejitExecutableAllocatorFixedVMPoolcpp">trunk/Source/JavaScriptCore/jit/ExecutableAllocatorFixedVMPool.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreprofilerLegacyProfilercpp">trunk/Source/JavaScriptCore/profiler/LegacyProfiler.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreprofilerLegacyProfilerh">trunk/Source/JavaScriptCore/profiler/LegacyProfiler.h</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimeDateInstanceCacheh">trunk/Source/JavaScriptCore/runtime/DateInstanceCache.h</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimeExecutablecpp">trunk/Source/JavaScriptCore/runtime/Executable.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimeExecutableh">trunk/Source/JavaScriptCore/runtime/Executable.h</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimeGenericTypedArrayViewh">trunk/Source/JavaScriptCore/runtime/GenericTypedArrayView.h</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimeGenericTypedArrayViewInlinesh">trunk/Source/JavaScriptCore/runtime/GenericTypedArrayViewInlines.h</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasWebGL2RenderingContextcpp">trunk/Source/WebCore/html/canvas/WebGL2RenderingContext.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasWebGLRenderingContextcpp">trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlcanvasWebGLRenderingContextBasecpp">trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceJavaScriptCoreAPIJSClassRefcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/API/JSClassRef.cpp (185531 => 185532)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/API/JSClassRef.cpp        2015-06-13 03:25:00 UTC (rev 185531)
+++ trunk/Source/JavaScriptCore/API/JSClassRef.cpp        2015-06-13 03:52:06 UTC (rev 185532)
</span><span class="lines">@@ -113,7 +113,7 @@
</span><span class="cx">     return adoptRef(*new OpaqueJSClass(definition, 0));
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;OpaqueJSClass&gt; OpaqueJSClass::create(const JSClassDefinition* clientDefinition)
</del><ins>+Ref&lt;OpaqueJSClass&gt; OpaqueJSClass::create(const JSClassDefinition* clientDefinition)
</ins><span class="cx"> {
</span><span class="cx">     JSClassDefinition definition = *clientDefinition; // Avoid modifying client copy.
</span><span class="cx"> 
</span><span class="lines">@@ -124,7 +124,7 @@
</span><span class="cx">     // We are supposed to use JSClassRetain/Release but since we know that we currently have
</span><span class="cx">     // the only reference to this class object we cheat and use a RefPtr instead.
</span><span class="cx">     RefPtr&lt;OpaqueJSClass&gt; protoClass = adoptRef(new OpaqueJSClass(&amp;protoDefinition, 0));
</span><del>-    return adoptRef(new OpaqueJSClass(&amp;definition, protoClass.get()));
</del><ins>+    return adoptRef(*new OpaqueJSClass(&amp;definition, protoClass.get()));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> OpaqueJSClassContextData::OpaqueJSClassContextData(JSC::VM&amp;, OpaqueJSClass* jsClass)
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreAPIJSClassRefh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/API/JSClassRef.h (185531 => 185532)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/API/JSClassRef.h        2015-06-13 03:25:00 UTC (rev 185531)
+++ trunk/Source/JavaScriptCore/API/JSClassRef.h        2015-06-13 03:52:06 UTC (rev 185532)
</span><span class="lines">@@ -85,7 +85,7 @@
</span><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> struct OpaqueJSClass : public ThreadSafeRefCounted&lt;OpaqueJSClass&gt; {
</span><del>-    static PassRefPtr&lt;OpaqueJSClass&gt; create(const JSClassDefinition*);
</del><ins>+    static Ref&lt;OpaqueJSClass&gt; create(const JSClassDefinition*);
</ins><span class="cx">     static Ref&lt;OpaqueJSClass&gt; createNoAutomaticPrototype(const JSClassDefinition*);
</span><span class="cx">     JS_EXPORT_PRIVATE ~OpaqueJSClass();
</span><span class="cx">     
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/ChangeLog (185531 => 185532)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/ChangeLog        2015-06-13 03:25:00 UTC (rev 185531)
+++ trunk/Source/JavaScriptCore/ChangeLog        2015-06-13 03:52:06 UTC (rev 185532)
</span><span class="lines">@@ -1,3 +1,44 @@
</span><ins>+2015-06-12  Gyuyoung Kim  &lt;gyuyoung.kim@webkit.org&gt;
+
+        Purge PassRefPtr in JavaScriptCore - 2
+        https://bugs.webkit.org/show_bug.cgi?id=145834
+
+        Reviewed by Darin Adler.
+
+        As a step to remove PassRefPtr, this patch cleans up PassRefPtr as much as possible
+        in JavaScriptCore.
+
+        * API/JSClassRef.cpp:
+        (OpaqueJSClass::create):
+        * API/JSClassRef.h:
+        * debugger/DebuggerCallFrame.cpp:
+        (JSC::DebuggerCallFrame::callerFrame):
+        * debugger/DebuggerCallFrame.h:
+        * dfg/DFGJITCompiler.h:
+        (JSC::DFG::JITCompiler::jitCode):
+        * inspector/ScriptCallStackFactory.cpp:
+        (Inspector::createScriptCallStack):
+        (Inspector::createScriptCallStackForConsole):
+        (Inspector::createScriptCallStackFromException):
+        (Inspector::createScriptArguments):
+        * inspector/ScriptCallStackFactory.h:
+        * jit/ExecutableAllocator.cpp:
+        (JSC::ExecutableAllocator::allocate):
+        * jit/ExecutableAllocator.h:
+        * jit/ExecutableAllocatorFixedVMPool.cpp:
+        (JSC::ExecutableAllocator::allocate):
+        * profiler/LegacyProfiler.cpp:
+        (JSC::LegacyProfiler::stopProfiling):
+        * profiler/LegacyProfiler.h:
+        * runtime/DateInstanceCache.h:
+        * runtime/Executable.cpp:
+        (JSC::ScriptExecutable::newCodeBlockFor):
+        * runtime/Executable.h:
+        * runtime/GenericTypedArrayView.h:
+        * runtime/GenericTypedArrayViewInlines.h:
+        (JSC::GenericTypedArrayView&lt;Adaptor&gt;::create):
+        (JSC::GenericTypedArrayView&lt;Adaptor&gt;::createUninitialized):
+
</ins><span class="cx"> 2015-06-12  Darin Adler  &lt;darin@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Fix minor ES6 compliance issue in RegExp.prototype.toString and optimize performance a little
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoredebuggerDebuggerCallFramecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/debugger/DebuggerCallFrame.cpp (185531 => 185532)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/debugger/DebuggerCallFrame.cpp        2015-06-13 03:25:00 UTC (rev 185531)
+++ trunk/Source/JavaScriptCore/debugger/DebuggerCallFrame.cpp        2015-06-13 03:52:06 UTC (rev 185532)
</span><span class="lines">@@ -88,7 +88,7 @@
</span><span class="cx">     m_position = positionForCallFrame(m_callFrame);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;DebuggerCallFrame&gt; DebuggerCallFrame::callerFrame()
</del><ins>+RefPtr&lt;DebuggerCallFrame&gt; DebuggerCallFrame::callerFrame()
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(isValid());
</span><span class="cx">     if (!isValid())
</span><span class="lines">@@ -102,7 +102,7 @@
</span><span class="cx"> 
</span><span class="cx">     CallFrame* callerFrame = functor.getCallerFrame();
</span><span class="cx">     if (!callerFrame)
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx"> 
</span><span class="cx">     m_caller = DebuggerCallFrame::create(callerFrame);
</span><span class="cx">     return m_caller;
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoredebuggerDebuggerCallFrameh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/debugger/DebuggerCallFrame.h (185531 => 185532)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/debugger/DebuggerCallFrame.h        2015-06-13 03:25:00 UTC (rev 185531)
+++ trunk/Source/JavaScriptCore/debugger/DebuggerCallFrame.h        2015-06-13 03:52:06 UTC (rev 185532)
</span><span class="lines">@@ -53,7 +53,7 @@
</span><span class="cx"> 
</span><span class="cx">     JS_EXPORT_PRIVATE explicit DebuggerCallFrame(CallFrame*);
</span><span class="cx"> 
</span><del>-    JS_EXPORT_PRIVATE PassRefPtr&lt;DebuggerCallFrame&gt; callerFrame();
</del><ins>+    JS_EXPORT_PRIVATE RefPtr&lt;DebuggerCallFrame&gt; callerFrame();
</ins><span class="cx">     ExecState* exec() const { return m_callFrame; }
</span><span class="cx">     JS_EXPORT_PRIVATE SourceID sourceID() const;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoredfgDFGJITCompilerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/dfg/DFGJITCompiler.h (185531 => 185532)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/dfg/DFGJITCompiler.h        2015-06-13 03:25:00 UTC (rev 185531)
+++ trunk/Source/JavaScriptCore/dfg/DFGJITCompiler.h        2015-06-13 03:52:06 UTC (rev 185532)
</span><span class="lines">@@ -313,7 +313,7 @@
</span><span class="cx">         entry-&gt;m_reshufflings.shrinkToFit();
</span><span class="cx">     }
</span><span class="cx">     
</span><del>-    PassRefPtr&lt;JITCode&gt; jitCode() { return m_jitCode; }
</del><ins>+    RefPtr&lt;JITCode&gt; jitCode() { return m_jitCode; }
</ins><span class="cx">     
</span><span class="cx">     Vector&lt;Label&gt;&amp; blockHeads() { return m_blockHeads; }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreinspectorScriptCallStackFactorycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/inspector/ScriptCallStackFactory.cpp (185531 => 185532)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/inspector/ScriptCallStackFactory.cpp        2015-06-13 03:25:00 UTC (rev 185531)
+++ trunk/Source/JavaScriptCore/inspector/ScriptCallStackFactory.cpp        2015-06-13 03:52:06 UTC (rev 185532)
</span><span class="lines">@@ -84,7 +84,7 @@
</span><span class="cx">     size_t m_remainingCapacityForFrameCapture;
</span><span class="cx"> };
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;ScriptCallStack&gt; createScriptCallStack(JSC::ExecState* exec, size_t maxStackSize)
</del><ins>+Ref&lt;ScriptCallStack&gt; createScriptCallStack(JSC::ExecState* exec, size_t maxStackSize)
</ins><span class="cx"> {
</span><span class="cx">     if (!exec)
</span><span class="cx">         return ScriptCallStack::create();
</span><span class="lines">@@ -98,7 +98,7 @@
</span><span class="cx">     return ScriptCallStack::create(frames);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;ScriptCallStack&gt; createScriptCallStackForConsole(JSC::ExecState* exec, size_t maxStackSize)
</del><ins>+Ref&lt;ScriptCallStack&gt; createScriptCallStackForConsole(JSC::ExecState* exec, size_t maxStackSize)
</ins><span class="cx"> {
</span><span class="cx">     if (!exec)
</span><span class="cx">         return ScriptCallStack::create();
</span><span class="lines">@@ -129,7 +129,7 @@
</span><span class="cx">     exec-&gt;clearException();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;ScriptCallStack&gt; createScriptCallStackFromException(JSC::ExecState* exec, JSC::Exception* exception, size_t maxStackSize)
</del><ins>+Ref&lt;ScriptCallStack&gt; createScriptCallStackFromException(JSC::ExecState* exec, JSC::Exception* exception, size_t maxStackSize)
</ins><span class="cx"> {
</span><span class="cx">     Vector&lt;ScriptCallFrame&gt; frames;
</span><span class="cx">     RefCountedArray&lt;StackFrame&gt; stackTrace = exception-&gt;stack();
</span><span class="lines">@@ -162,7 +162,7 @@
</span><span class="cx">     return ScriptCallStack::create(frames);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;ScriptArguments&gt; createScriptArguments(JSC::ExecState* exec, unsigned skipArgumentCount)
</del><ins>+Ref&lt;ScriptArguments&gt; createScriptArguments(JSC::ExecState* exec, unsigned skipArgumentCount)
</ins><span class="cx"> {
</span><span class="cx">     Vector&lt;Deprecated::ScriptValue&gt; arguments;
</span><span class="cx">     size_t argumentCount = exec-&gt;argumentCount();
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreinspectorScriptCallStackFactoryh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/inspector/ScriptCallStackFactory.h (185531 => 185532)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/inspector/ScriptCallStackFactory.h        2015-06-13 03:25:00 UTC (rev 185531)
+++ trunk/Source/JavaScriptCore/inspector/ScriptCallStackFactory.h        2015-06-13 03:52:06 UTC (rev 185532)
</span><span class="lines">@@ -46,10 +46,10 @@
</span><span class="cx"> class ScriptCallStack;
</span><span class="cx"> 
</span><span class="cx"> // FIXME: The subtle differences between these should be eliminated.
</span><del>-JS_EXPORT_PRIVATE PassRefPtr&lt;ScriptCallStack&gt; createScriptCallStack(JSC::ExecState*, size_t maxStackSize);
-JS_EXPORT_PRIVATE PassRefPtr&lt;ScriptCallStack&gt; createScriptCallStackForConsole(JSC::ExecState*, size_t maxStackSize);
-JS_EXPORT_PRIVATE PassRefPtr&lt;ScriptCallStack&gt; createScriptCallStackFromException(JSC::ExecState*, JSC::Exception*, size_t maxStackSize);
-JS_EXPORT_PRIVATE PassRefPtr&lt;ScriptArguments&gt; createScriptArguments(JSC::ExecState*, unsigned skipArgumentCount);
</del><ins>+JS_EXPORT_PRIVATE Ref&lt;ScriptCallStack&gt; createScriptCallStack(JSC::ExecState*, size_t maxStackSize);
+JS_EXPORT_PRIVATE Ref&lt;ScriptCallStack&gt; createScriptCallStackForConsole(JSC::ExecState*, size_t maxStackSize);
+JS_EXPORT_PRIVATE Ref&lt;ScriptCallStack&gt; createScriptCallStackFromException(JSC::ExecState*, JSC::Exception*, size_t maxStackSize);
+JS_EXPORT_PRIVATE Ref&lt;ScriptArguments&gt; createScriptArguments(JSC::ExecState*, unsigned skipArgumentCount);
</ins><span class="cx"> 
</span><span class="cx"> } // namespace Inspector
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceJavaScriptCorejitExecutableAllocatorcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/jit/ExecutableAllocator.cpp (185531 => 185532)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/jit/ExecutableAllocator.cpp        2015-06-13 03:25:00 UTC (rev 185531)
+++ trunk/Source/JavaScriptCore/jit/ExecutableAllocator.cpp        2015-06-13 03:52:06 UTC (rev 185532)
</span><span class="lines">@@ -213,11 +213,11 @@
</span><span class="cx"> 
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;ExecutableMemoryHandle&gt; ExecutableAllocator::allocate(VM&amp;, size_t sizeInBytes, void* ownerUID, JITCompilationEffort effort)
</del><ins>+RefPtr&lt;ExecutableMemoryHandle&gt; ExecutableAllocator::allocate(VM&amp;, size_t sizeInBytes, void* ownerUID, JITCompilationEffort effort)
</ins><span class="cx"> {
</span><span class="cx">     RefPtr&lt;ExecutableMemoryHandle&gt; result = allocator()-&gt;allocate(sizeInBytes, ownerUID);
</span><span class="cx">     RELEASE_ASSERT(result || effort != JITCompilationMustSucceed);
</span><del>-    return result.release();
</del><ins>+    return result;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> size_t ExecutableAllocator::committedByteCount()
</span></span></pre></div>
<a id="trunkSourceJavaScriptCorejitExecutableAllocatorh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/jit/ExecutableAllocator.h (185531 => 185532)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/jit/ExecutableAllocator.h        2015-06-13 03:25:00 UTC (rev 185531)
+++ trunk/Source/JavaScriptCore/jit/ExecutableAllocator.h        2015-06-13 03:52:06 UTC (rev 185532)
</span><span class="lines">@@ -32,7 +32,6 @@
</span><span class="cx"> #include &lt;wtf/MetaAllocatorHandle.h&gt;
</span><span class="cx"> #include &lt;wtf/MetaAllocator.h&gt;
</span><span class="cx"> #include &lt;wtf/PageAllocation.h&gt;
</span><del>-#include &lt;wtf/PassRefPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/RefCounted.h&gt;
</span><span class="cx"> #include &lt;wtf/Vector.h&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -113,7 +112,7 @@
</span><span class="cx">     static void dumpProfile() { }
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-    PassRefPtr&lt;ExecutableMemoryHandle&gt; allocate(VM&amp;, size_t sizeInBytes, void* ownerUID, JITCompilationEffort);
</del><ins>+    RefPtr&lt;ExecutableMemoryHandle&gt; allocate(VM&amp;, size_t sizeInBytes, void* ownerUID, JITCompilationEffort);
</ins><span class="cx"> 
</span><span class="cx"> #if ENABLE(ASSEMBLER_WX_EXCLUSIVE)
</span><span class="cx">     static void makeWritable(void* start, size_t size)
</span></span></pre></div>
<a id="trunkSourceJavaScriptCorejitExecutableAllocatorFixedVMPoolcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/jit/ExecutableAllocatorFixedVMPool.cpp (185531 => 185532)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/jit/ExecutableAllocatorFixedVMPool.cpp        2015-06-13 03:25:00 UTC (rev 185531)
+++ trunk/Source/JavaScriptCore/jit/ExecutableAllocatorFixedVMPool.cpp        2015-06-13 03:52:06 UTC (rev 185532)
</span><span class="lines">@@ -159,7 +159,7 @@
</span><span class="cx">     return result;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;ExecutableMemoryHandle&gt; ExecutableAllocator::allocate(VM&amp;, size_t sizeInBytes, void* ownerUID, JITCompilationEffort effort)
</del><ins>+RefPtr&lt;ExecutableMemoryHandle&gt; ExecutableAllocator::allocate(VM&amp;, size_t sizeInBytes, void* ownerUID, JITCompilationEffort effort)
</ins><span class="cx"> {
</span><span class="cx">     if (effort != JITCompilationCanFail &amp;&amp; Options::reportMustSucceedExecutableAllocations()) {
</span><span class="cx">         dataLog(&quot;Allocating &quot;, sizeInBytes, &quot; bytes of executable memory with JITCompilationMustSucceed.\n&quot;);
</span><span class="lines">@@ -178,7 +178,7 @@
</span><span class="cx">         }
</span><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><del>-    return result.release();
</del><ins>+    return result;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> size_t ExecutableAllocator::committedByteCount()
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreprofilerLegacyProfilercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/profiler/LegacyProfiler.cpp (185531 => 185532)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/profiler/LegacyProfiler.cpp        2015-06-13 03:25:00 UTC (rev 185531)
+++ trunk/Source/JavaScriptCore/profiler/LegacyProfiler.cpp        2015-06-13 03:52:06 UTC (rev 185532)
</span><span class="lines">@@ -78,7 +78,7 @@
</span><span class="cx">     m_currentProfiles.append(profileGenerator);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;Profile&gt; LegacyProfiler::stopProfiling(ExecState* exec, const String&amp; title)
</del><ins>+RefPtr&lt;Profile&gt; LegacyProfiler::stopProfiling(ExecState* exec, const String&amp; title)
</ins><span class="cx"> {
</span><span class="cx">     if (!exec)
</span><span class="cx">         return nullptr;
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreprofilerLegacyProfilerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/profiler/LegacyProfiler.h (185531 => 185532)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/profiler/LegacyProfiler.h        2015-06-13 03:25:00 UTC (rev 185531)
+++ trunk/Source/JavaScriptCore/profiler/LegacyProfiler.h        2015-06-13 03:52:06 UTC (rev 185532)
</span><span class="lines">@@ -51,7 +51,7 @@
</span><span class="cx">     static CallIdentifier createCallIdentifier(ExecState*, JSValue, const WTF::String&amp; sourceURL, unsigned defaultLineNumber, unsigned defaultColumnNumber);
</span><span class="cx"> 
</span><span class="cx">     JS_EXPORT_PRIVATE void startProfiling(ExecState*, const WTF::String&amp; title, PassRefPtr&lt;Stopwatch&gt;);
</span><del>-    JS_EXPORT_PRIVATE PassRefPtr&lt;Profile&gt; stopProfiling(ExecState*, const WTF::String&amp; title);
</del><ins>+    JS_EXPORT_PRIVATE RefPtr&lt;Profile&gt; stopProfiling(ExecState*, const WTF::String&amp; title);
</ins><span class="cx">     void stopProfiling(JSGlobalObject*);
</span><span class="cx"> 
</span><span class="cx">     // Used to ignore profile node subtrees rooted at InjectedScript calls.
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimeDateInstanceCacheh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/DateInstanceCache.h (185531 => 185532)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/DateInstanceCache.h        2015-06-13 03:25:00 UTC (rev 185531)
+++ trunk/Source/JavaScriptCore/runtime/DateInstanceCache.h        2015-06-13 03:52:06 UTC (rev 185532)
</span><span class="lines">@@ -30,7 +30,6 @@
</span><span class="cx"> #include &quot;JSDateMath.h&quot;
</span><span class="cx"> #include &lt;array&gt;
</span><span class="cx"> #include &lt;wtf/HashFunctions.h&gt;
</span><del>-#include &lt;wtf/PassRefPtr.h&gt;
</del><span class="cx"> #include &lt;wtf/RefCounted.h&gt;
</span><span class="cx"> 
</span><span class="cx"> namespace JSC {
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimeExecutablecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/Executable.cpp (185531 => 185532)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/Executable.cpp        2015-06-13 03:25:00 UTC (rev 185531)
+++ trunk/Source/JavaScriptCore/runtime/Executable.cpp        2015-06-13 03:52:06 UTC (rev 185532)
</span><span class="lines">@@ -199,7 +199,7 @@
</span><span class="cx">     Heap::heap(this)-&gt;writeBarrier(this);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-PassRefPtr&lt;CodeBlock&gt; ScriptExecutable::newCodeBlockFor(
</del><ins>+RefPtr&lt;CodeBlock&gt; ScriptExecutable::newCodeBlockFor(
</ins><span class="cx">     CodeSpecializationKind kind, JSFunction* function, JSScope* scope, JSObject*&amp; exception)
</span><span class="cx"> {
</span><span class="cx">     VM* vm = scope-&gt;vm();
</span><span class="lines">@@ -244,7 +244,7 @@
</span><span class="cx">         exception = vm-&gt;throwException(
</span><span class="cx">             globalObject-&gt;globalExec(),
</span><span class="cx">             error.toErrorObject(globalObject, executable-&gt;m_source));
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     // Parsing reveals whether our function uses features that require a separate function name object in the scope chain.
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimeExecutableh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/Executable.h (185531 => 185532)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/Executable.h        2015-06-13 03:25:00 UTC (rev 185531)
+++ trunk/Source/JavaScriptCore/runtime/Executable.h        2015-06-13 03:52:06 UTC (rev 185532)
</span><span class="lines">@@ -398,7 +398,7 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     void installCode(CodeBlock*);
</span><del>-    PassRefPtr&lt;CodeBlock&gt; newCodeBlockFor(CodeSpecializationKind, JSFunction*, JSScope*, JSObject*&amp; exception);
</del><ins>+    RefPtr&lt;CodeBlock&gt; newCodeBlockFor(CodeSpecializationKind, JSFunction*, JSScope*, JSObject*&amp; exception);
</ins><span class="cx">     PassRefPtr&lt;CodeBlock&gt; newReplacementCodeBlockFor(CodeSpecializationKind);
</span><span class="cx">     
</span><span class="cx">     JSObject* prepareForExecution(ExecState* exec, JSFunction* function, JSScope* scope, CodeSpecializationKind kind)
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimeGenericTypedArrayViewh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/GenericTypedArrayView.h (185531 => 185532)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/GenericTypedArrayView.h        2015-06-13 03:25:00 UTC (rev 185531)
+++ trunk/Source/JavaScriptCore/runtime/GenericTypedArrayView.h        2015-06-13 03:52:06 UTC (rev 185532)
</span><span class="lines">@@ -37,11 +37,11 @@
</span><span class="cx">     GenericTypedArrayView(PassRefPtr&lt;ArrayBuffer&gt;, unsigned byteOffset, unsigned length);
</span><span class="cx"> 
</span><span class="cx"> public:
</span><del>-    static PassRefPtr&lt;GenericTypedArrayView&gt; create(unsigned length);
-    static PassRefPtr&lt;GenericTypedArrayView&gt; create(const typename Adaptor::Type* array, unsigned length);
-    static PassRefPtr&lt;GenericTypedArrayView&gt; create(PassRefPtr&lt;ArrayBuffer&gt;, unsigned byteOffset, unsigned length);
</del><ins>+    static RefPtr&lt;GenericTypedArrayView&gt; create(unsigned length);
+    static RefPtr&lt;GenericTypedArrayView&gt; create(const typename Adaptor::Type* array, unsigned length);
+    static RefPtr&lt;GenericTypedArrayView&gt; create(PassRefPtr&lt;ArrayBuffer&gt;, unsigned byteOffset, unsigned length);
</ins><span class="cx">     
</span><del>-    static PassRefPtr&lt;GenericTypedArrayView&gt; createUninitialized(unsigned length);
</del><ins>+    static RefPtr&lt;GenericTypedArrayView&gt; createUninitialized(unsigned length);
</ins><span class="cx">     
</span><span class="cx">     typename Adaptor::Type* data() const { return static_cast&lt;typename Adaptor::Type*&gt;(baseAddress()); }
</span><span class="cx">     
</span><span class="lines">@@ -98,8 +98,8 @@
</span><span class="cx">             &amp;&amp; offset + pos &gt;= offset);
</span><span class="cx">     }
</span><span class="cx">     
</span><del>-    PassRefPtr&lt;GenericTypedArrayView&gt; subarray(int start) const;
-    PassRefPtr&lt;GenericTypedArrayView&gt; subarray(int start, int end) const;
</del><ins>+    RefPtr&lt;GenericTypedArrayView&gt; subarray(int start) const;
+    RefPtr&lt;GenericTypedArrayView&gt; subarray(int start, int end) const;
</ins><span class="cx">     
</span><span class="cx">     virtual TypedArrayType getType() const override
</span><span class="cx">     {
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimeGenericTypedArrayViewInlinesh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/GenericTypedArrayViewInlines.h (185531 => 185532)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/GenericTypedArrayViewInlines.h        2015-06-13 03:25:00 UTC (rev 185531)
+++ trunk/Source/JavaScriptCore/runtime/GenericTypedArrayViewInlines.h        2015-06-13 03:52:06 UTC (rev 185532)
</span><span class="lines">@@ -40,25 +40,25 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> template&lt;typename Adaptor&gt;
</span><del>-PassRefPtr&lt;GenericTypedArrayView&lt;Adaptor&gt;&gt; GenericTypedArrayView&lt;Adaptor&gt;::create(unsigned length)
</del><ins>+RefPtr&lt;GenericTypedArrayView&lt;Adaptor&gt;&gt; GenericTypedArrayView&lt;Adaptor&gt;::create(unsigned length)
</ins><span class="cx"> {
</span><span class="cx">     RefPtr&lt;ArrayBuffer&gt; buffer = ArrayBuffer::create(length, sizeof(typename Adaptor::Type));
</span><span class="cx">     if (!buffer)
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx">     return create(buffer.release(), 0, length);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> template&lt;typename Adaptor&gt;
</span><del>-PassRefPtr&lt;GenericTypedArrayView&lt;Adaptor&gt;&gt; GenericTypedArrayView&lt;Adaptor&gt;::create(
</del><ins>+RefPtr&lt;GenericTypedArrayView&lt;Adaptor&gt;&gt; GenericTypedArrayView&lt;Adaptor&gt;::create(
</ins><span class="cx">     const typename Adaptor::Type* array, unsigned length)
</span><span class="cx"> {
</span><span class="cx">     RefPtr&lt;GenericTypedArrayView&gt; result = create(length);
</span><span class="cx">     memcpy(result-&gt;data(), array, length * sizeof(typename Adaptor::Type));
</span><del>-    return result.release();
</del><ins>+    return result;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> template&lt;typename Adaptor&gt;
</span><del>-PassRefPtr&lt;GenericTypedArrayView&lt;Adaptor&gt;&gt; GenericTypedArrayView&lt;Adaptor&gt;::create(
</del><ins>+RefPtr&lt;GenericTypedArrayView&lt;Adaptor&gt;&gt; GenericTypedArrayView&lt;Adaptor&gt;::create(
</ins><span class="cx">     PassRefPtr&lt;ArrayBuffer&gt; passedBuffer, unsigned byteOffset, unsigned length)
</span><span class="cx"> {
</span><span class="cx">     RefPtr&lt;ArrayBuffer&gt; buffer = passedBuffer;
</span><span class="lines">@@ -71,25 +71,25 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> template&lt;typename Adaptor&gt;
</span><del>-PassRefPtr&lt;GenericTypedArrayView&lt;Adaptor&gt;&gt;
</del><ins>+RefPtr&lt;GenericTypedArrayView&lt;Adaptor&gt;&gt;
</ins><span class="cx"> GenericTypedArrayView&lt;Adaptor&gt;::createUninitialized(unsigned length)
</span><span class="cx"> {
</span><span class="cx">     RefPtr&lt;ArrayBuffer&gt; buffer =
</span><span class="cx">         ArrayBuffer::createUninitialized(length, sizeof(typename Adaptor::Type));
</span><span class="cx">     if (!buffer)
</span><del>-        return 0;
</del><ins>+        return nullptr;
</ins><span class="cx">     return create(buffer.release(), 0, length);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> template&lt;typename Adaptor&gt;
</span><del>-PassRefPtr&lt;GenericTypedArrayView&lt;Adaptor&gt;&gt;
</del><ins>+RefPtr&lt;GenericTypedArrayView&lt;Adaptor&gt;&gt;
</ins><span class="cx"> GenericTypedArrayView&lt;Adaptor&gt;::subarray(int start) const
</span><span class="cx"> {
</span><span class="cx">     return subarray(start, length());
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> template&lt;typename Adaptor&gt;
</span><del>-PassRefPtr&lt;GenericTypedArrayView&lt;Adaptor&gt;&gt;
</del><ins>+RefPtr&lt;GenericTypedArrayView&lt;Adaptor&gt;&gt;
</ins><span class="cx"> GenericTypedArrayView&lt;Adaptor&gt;::subarray(int start, int end) const
</span><span class="cx"> {
</span><span class="cx">     unsigned offset, length;
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (185531 => 185532)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-06-13 03:25:00 UTC (rev 185531)
+++ trunk/Source/WebCore/ChangeLog        2015-06-13 03:52:06 UTC (rev 185532)
</span><span class="lines">@@ -1,3 +1,22 @@
</span><ins>+2015-06-12  Gyuyoung Kim  &lt;gyuyoung.kim@webkit.org&gt;
+
+        Purge PassRefPtr in JavaScriptCore - 2
+        https://bugs.webkit.org/show_bug.cgi?id=145834
+
+        Reviewed by Darin Adler.
+
+        Fix call sites depends on changing of JSC.
+
+        * html/canvas/WebGL2RenderingContext.cpp:
+        (WebCore::WebGL2RenderingContext::getParameter):
+        * html/canvas/WebGLRenderingContext.cpp:
+        (WebCore::WebGLRenderingContext::getParameter):
+        * html/canvas/WebGLRenderingContextBase.cpp:
+        (WebCore::WebGLRenderingContextBase::getUniform):
+        (WebCore::WebGLRenderingContextBase::getVertexAttrib):
+        (WebCore::WebGLRenderingContextBase::getWebGLFloatArrayParameter):
+        (WebCore::WebGLRenderingContextBase::getWebGLIntArrayParameter):
+
</ins><span class="cx"> 2015-06-12  Zalan Bujtas  &lt;zalan@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Be more defensive at renderer type checking when initializing flow segments.
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasWebGL2RenderingContextcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/WebGL2RenderingContext.cpp (185531 => 185532)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/WebGL2RenderingContext.cpp        2015-06-13 03:25:00 UTC (rev 185531)
+++ trunk/Source/WebCore/html/canvas/WebGL2RenderingContext.cpp        2015-06-13 03:52:06 UTC (rev 185532)
</span><span class="lines">@@ -2117,7 +2117,7 @@
</span><span class="cx">     case GraphicsContext3D::COLOR_WRITEMASK:
</span><span class="cx">         return getBooleanArrayParameter(pname);
</span><span class="cx">     case GraphicsContext3D::COMPRESSED_TEXTURE_FORMATS:
</span><del>-        return WebGLGetInfo(Uint32Array::create(m_compressedTextureFormats.data(), m_compressedTextureFormats.size()));
</del><ins>+        return WebGLGetInfo(Uint32Array::create(m_compressedTextureFormats.data(), m_compressedTextureFormats.size()).release());
</ins><span class="cx">     case GraphicsContext3D::CULL_FACE:
</span><span class="cx">         return getBooleanParameter(pname);
</span><span class="cx">     case GraphicsContext3D::CULL_FACE_MODE:
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasWebGLRenderingContextcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp (185531 => 185532)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp        2015-06-13 03:25:00 UTC (rev 185531)
+++ trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp        2015-06-13 03:52:06 UTC (rev 185532)
</span><span class="lines">@@ -953,7 +953,7 @@
</span><span class="cx">     case GraphicsContext3D::COLOR_WRITEMASK:
</span><span class="cx">         return getBooleanArrayParameter(pname);
</span><span class="cx">     case GraphicsContext3D::COMPRESSED_TEXTURE_FORMATS:
</span><del>-        return WebGLGetInfo(Uint32Array::create(m_compressedTextureFormats.data(), m_compressedTextureFormats.size()));
</del><ins>+        return WebGLGetInfo(Uint32Array::create(m_compressedTextureFormats.data(), m_compressedTextureFormats.size()).release());
</ins><span class="cx">     case GraphicsContext3D::CULL_FACE:
</span><span class="cx">         return getBooleanParameter(pname);
</span><span class="cx">     case GraphicsContext3D::CULL_FACE_MODE:
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlcanvasWebGLRenderingContextBasecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp (185531 => 185532)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp        2015-06-13 03:25:00 UTC (rev 185531)
+++ trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp        2015-06-13 03:52:06 UTC (rev 185532)
</span><span class="lines">@@ -2498,7 +2498,7 @@
</span><span class="cx">             m_context-&gt;getUniformfv(objectOrZero(program), location, value);
</span><span class="cx">         if (length == 1)
</span><span class="cx">             return WebGLGetInfo(value[0]);
</span><del>-        return WebGLGetInfo(Float32Array::create(value, length));
</del><ins>+        return WebGLGetInfo(Float32Array::create(value, length).release());
</ins><span class="cx">     }
</span><span class="cx">     case GraphicsContext3D::INT: {
</span><span class="cx">         GC3Dint value[4] = {0};
</span><span class="lines">@@ -2508,7 +2508,7 @@
</span><span class="cx">             m_context-&gt;getUniformiv(objectOrZero(program), location, value);
</span><span class="cx">         if (length == 1)
</span><span class="cx">             return WebGLGetInfo(value[0]);
</span><del>-        return WebGLGetInfo(Int32Array::create(value, length));
</del><ins>+        return WebGLGetInfo(Int32Array::create(value, length).release());
</ins><span class="cx">     }
</span><span class="cx">     case GraphicsContext3D::BOOL: {
</span><span class="cx">         GC3Dint value[4] = {0};
</span><span class="lines">@@ -2607,7 +2607,7 @@
</span><span class="cx">     case GraphicsContext3D::VERTEX_ATTRIB_ARRAY_TYPE:
</span><span class="cx">         return WebGLGetInfo(state.type);
</span><span class="cx">     case GraphicsContext3D::CURRENT_VERTEX_ATTRIB:
</span><del>-        return WebGLGetInfo(Float32Array::create(m_vertexAttribValue[index].value, 4));
</del><ins>+        return WebGLGetInfo(Float32Array::create(m_vertexAttribValue[index].value, 4).release());
</ins><span class="cx">     default:
</span><span class="cx">         synthesizeGLError(GraphicsContext3D::INVALID_ENUM, &quot;getVertexAttrib&quot;, &quot;invalid parameter name&quot;);
</span><span class="cx">         return WebGLGetInfo();
</span><span class="lines">@@ -3986,7 +3986,7 @@
</span><span class="cx">     default:
</span><span class="cx">         notImplemented();
</span><span class="cx">     }
</span><del>-    return WebGLGetInfo(Float32Array::create(value, length));
</del><ins>+    return WebGLGetInfo(Float32Array::create(value, length).release());
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> WebGLGetInfo WebGLRenderingContextBase::getWebGLIntArrayParameter(GC3Denum pname)
</span><span class="lines">@@ -4005,7 +4005,7 @@
</span><span class="cx">     default:
</span><span class="cx">         notImplemented();
</span><span class="cx">     }
</span><del>-    return WebGLGetInfo(Int32Array::create(value, length));
</del><ins>+    return WebGLGetInfo(Int32Array::create(value, length).release());
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void WebGLRenderingContextBase::checkTextureCompleteness(const char* functionName, bool prepareToDraw)
</span></span></pre>
</div>
</div>

</body>
</html>