Diff
Modified: trunk/Source/WebCore/ChangeLog (179352 => 179353)
--- trunk/Source/WebCore/ChangeLog 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/ChangeLog 2015-01-29 19:41:12 UTC (rev 179353)
@@ -1,3 +1,29 @@
+2015-01-29 Andreas Kling <[email protected]>
+
+ _javascript_ bindings constructors should take Ref<ImplType>&&.
+ <https://webkit.org/b/140952>
+
+ Reviewed by Darin Adler.
+
+ When constructing a JS wrapper object, there is always going to be a
+ corresponding DOM object.
+
+ Tweak the _javascript_ DOM bindings generator to spit out constructors
+ that take the DOM object by Ref&& rather than PassRefPtr.
+
+ This avoids generating unnecessary null checks around every instance
+ of wrapper construction.
+
+ * bindings/js/JSDOMBinding.h:
+ (WebCore::createWrapper):
+ * bindings/js/JSDOMWindowShell.cpp:
+ (WebCore::JSDOMWindowShell::setWindow):
+ * bindings/js/JSDocumentCustom.cpp:
+ (WebCore::JSDocument::location):
+ * bindings/scripts/CodeGeneratorJS.pm:
+ (GenerateHeader):
+ (GenerateImplementation):
+
2015-01-29 Chris Dumez <[email protected]>
Clean up / modernize PageCache class
Modified: trunk/Source/WebCore/bindings/js/JSDOMBinding.h (179352 => 179353)
--- trunk/Source/WebCore/bindings/js/JSDOMBinding.h 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/js/JSDOMBinding.h 2015-01-29 19:41:12 UTC (rev 179353)
@@ -210,7 +210,7 @@
{
ASSERT(node);
ASSERT(!getCachedWrapper(globalObject->world(), node));
- WrapperClass* wrapper = WrapperClass::create(getDOMStructure<WrapperClass>(globalObject->vm(), globalObject), globalObject, node);
+ WrapperClass* wrapper = WrapperClass::create(getDOMStructure<WrapperClass>(globalObject->vm(), globalObject), globalObject, *node);
cacheWrapper(globalObject->world(), node, wrapper);
return wrapper;
}
Modified: trunk/Source/WebCore/bindings/js/JSDOMWindowShell.cpp (179352 => 179353)
--- trunk/Source/WebCore/bindings/js/JSDOMWindowShell.cpp 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/js/JSDOMWindowShell.cpp 2015-01-29 19:41:12 UTC (rev 179353)
@@ -83,7 +83,7 @@
Strong<JSDOMWindowPrototype> prototype(vm, JSDOMWindowPrototype::create(vm, 0, prototypeStructure));
Structure* structure = JSDOMWindow::createStructure(vm, 0, prototype.get());
- JSDOMWindow* jsDOMWindow = JSDOMWindow::create(vm, structure, domWindow, this);
+ JSDOMWindow* jsDOMWindow = JSDOMWindow::create(vm, structure, *domWindow, this);
prototype->structure()->setGlobalObject(vm, jsDOMWindow);
setWindow(vm, jsDOMWindow);
ASSERT(jsDOMWindow->globalObject() == jsDOMWindow);
Modified: trunk/Source/WebCore/bindings/js/JSDocumentCustom.cpp (179352 => 179353)
--- trunk/Source/WebCore/bindings/js/JSDocumentCustom.cpp 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/js/JSDocumentCustom.cpp 2015-01-29 19:41:12 UTC (rev 179353)
@@ -59,7 +59,7 @@
if (JSObject* wrapper = getCachedWrapper(globalObject()->world(), location.get()))
return wrapper;
- JSLocation* jsLocation = JSLocation::create(getDOMStructure<JSLocation>(exec->vm(), globalObject()), globalObject(), location.get());
+ JSLocation* jsLocation = JSLocation::create(getDOMStructure<JSLocation>(exec->vm(), globalObject()), globalObject(), *location);
cacheWrapper(globalObject()->world(), location.get(), jsLocation);
return jsLocation;
}
Modified: trunk/Source/WebCore/bindings/js/WorkerScriptController.cpp (179352 => 179353)
--- trunk/Source/WebCore/bindings/js/WorkerScriptController.cpp 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/js/WorkerScriptController.cpp 2015-01-29 19:41:12 UTC (rev 179353)
@@ -81,7 +81,7 @@
Strong<JSDedicatedWorkerGlobalScopePrototype> dedicatedContextPrototype(*m_vm, JSDedicatedWorkerGlobalScopePrototype::create(*m_vm, 0, dedicatedContextPrototypeStructure));
Structure* structure = JSDedicatedWorkerGlobalScope::createStructure(*m_vm, 0, dedicatedContextPrototype.get());
- m_workerGlobalScopeWrapper.set(*m_vm, JSDedicatedWorkerGlobalScope::create(*m_vm, structure, static_cast<DedicatedWorkerGlobalScope*>(m_workerGlobalScope)));
+ m_workerGlobalScopeWrapper.set(*m_vm, JSDedicatedWorkerGlobalScope::create(*m_vm, structure, static_cast<DedicatedWorkerGlobalScope&>(*m_workerGlobalScope)));
workerGlobalScopePrototypeStructure->setGlobalObject(*m_vm, m_workerGlobalScopeWrapper.get());
dedicatedContextPrototypeStructure->setGlobalObject(*m_vm, m_workerGlobalScopeWrapper.get());
ASSERT(structure->globalObject() == m_workerGlobalScopeWrapper);
Modified: trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm 2015-01-29 19:41:12 UTC (rev 179353)
@@ -806,35 +806,35 @@
push(@headerContent, "public:\n");
push(@headerContent, " typedef $parentClassName Base;\n");
if ($interfaceName eq "DOMWindow") {
- push(@headerContent, " static $className* create(JSC::VM& vm, JSC::Structure* structure, PassRefPtr<$implType> impl, JSDOMWindowShell* windowShell)\n");
+ push(@headerContent, " static $className* create(JSC::VM& vm, JSC::Structure* structure, Ref<$implType>&& impl, JSDOMWindowShell* windowShell)\n");
push(@headerContent, " {\n");
- push(@headerContent, " $className* ptr = new (NotNull, JSC::allocateCell<$className>(vm.heap)) ${className}(vm, structure, impl, windowShell);\n");
+ push(@headerContent, " $className* ptr = new (NotNull, JSC::allocateCell<$className>(vm.heap)) ${className}(vm, structure, WTF::move(impl), windowShell);\n");
push(@headerContent, " ptr->finishCreation(vm, windowShell);\n");
push(@headerContent, " vm.heap.addFinalizer(ptr, destroy);\n");
push(@headerContent, " return ptr;\n");
push(@headerContent, " }\n\n");
} elsif ($codeGenerator->InheritsInterface($interface, "WorkerGlobalScope")) {
- push(@headerContent, " static $className* create(JSC::VM& vm, JSC::Structure* structure, PassRefPtr<$implType> impl)\n");
+ push(@headerContent, " static $className* create(JSC::VM& vm, JSC::Structure* structure, Ref<$implType>&& impl)\n");
push(@headerContent, " {\n");
- push(@headerContent, " $className* ptr = new (NotNull, JSC::allocateCell<$className>(vm.heap)) ${className}(vm, structure, impl);\n");
+ push(@headerContent, " $className* ptr = new (NotNull, JSC::allocateCell<$className>(vm.heap)) ${className}(vm, structure, WTF::move(impl));\n");
push(@headerContent, " ptr->finishCreation(vm);\n");
push(@headerContent, " vm.heap.addFinalizer(ptr, destroy);\n");
push(@headerContent, " return ptr;\n");
push(@headerContent, " }\n\n");
} elsif ($interface->extendedAttributes->{"MasqueradesAsUndefined"}) {
AddIncludesForTypeInHeader($implType) unless $svgPropertyOrListPropertyType;
- push(@headerContent, " static $className* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<$implType> impl)\n");
+ push(@headerContent, " static $className* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<$implType>&& impl)\n");
push(@headerContent, " {\n");
push(@headerContent, " globalObject->masqueradesAsUndefinedWatchpoint()->fireAll(\"Allocated masquerading object\");\n");
- push(@headerContent, " $className* ptr = new (NotNull, JSC::allocateCell<$className>(globalObject->vm().heap)) $className(structure, globalObject, impl);\n");
+ push(@headerContent, " $className* ptr = new (NotNull, JSC::allocateCell<$className>(globalObject->vm().heap)) $className(structure, globalObject, WTF::move(impl));\n");
push(@headerContent, " ptr->finishCreation(globalObject->vm());\n");
push(@headerContent, " return ptr;\n");
push(@headerContent, " }\n\n");
} else {
AddIncludesForTypeInHeader($implType) unless $svgPropertyOrListPropertyType;
- push(@headerContent, " static $className* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<$implType> impl)\n");
+ push(@headerContent, " static $className* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<$implType>&& impl)\n");
push(@headerContent, " {\n");
- push(@headerContent, " $className* ptr = new (NotNull, JSC::allocateCell<$className>(globalObject->vm().heap)) $className(structure, globalObject, impl);\n");
+ push(@headerContent, " $className* ptr = new (NotNull, JSC::allocateCell<$className>(globalObject->vm().heap)) $className(structure, globalObject, WTF::move(impl));\n");
push(@headerContent, " ptr->finishCreation(globalObject->vm());\n");
push(@headerContent, " return ptr;\n");
push(@headerContent, " }\n\n");
@@ -1090,11 +1090,11 @@
# Constructor
if ($interfaceName eq "DOMWindow") {
- push(@headerContent, " $className(JSC::VM&, JSC::Structure*, PassRefPtr<$implType>, JSDOMWindowShell*);\n");
+ push(@headerContent, " $className(JSC::VM&, JSC::Structure*, Ref<$implType>&&, JSDOMWindowShell*);\n");
} elsif ($codeGenerator->InheritsInterface($interface, "WorkerGlobalScope")) {
- push(@headerContent, " $className(JSC::VM&, JSC::Structure*, PassRefPtr<$implType>);\n");
+ push(@headerContent, " $className(JSC::VM&, JSC::Structure*, Ref<$implType>&&);\n");
} else {
- push(@headerContent, " $className(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<$implType>);\n\n");
+ push(@headerContent, " $className(JSC::Structure*, JSDOMGlobalObject*, Ref<$implType>&&);\n\n");
push(@headerContent, " void finishCreation(JSC::VM& vm)\n");
push(@headerContent, " {\n");
push(@headerContent, " Base::finishCreation(vm);\n");
@@ -2012,23 +2012,23 @@
# Constructor
if ($interfaceName eq "DOMWindow") {
AddIncludesForTypeInImpl("JSDOMWindowShell");
- push(@implContent, "${className}::$className(VM& vm, Structure* structure, PassRefPtr<$implType> impl, JSDOMWindowShell* shell)\n");
- push(@implContent, " : $parentClassName(vm, structure, impl, shell)\n");
+ push(@implContent, "${className}::$className(VM& vm, Structure* structure, Ref<$implType>&& impl, JSDOMWindowShell* shell)\n");
+ push(@implContent, " : $parentClassName(vm, structure, WTF::move(impl), shell)\n");
push(@implContent, "{\n");
push(@implContent, "}\n\n");
} elsif ($codeGenerator->InheritsInterface($interface, "WorkerGlobalScope")) {
AddIncludesForTypeInImpl($interfaceName);
- push(@implContent, "${className}::$className(VM& vm, Structure* structure, PassRefPtr<$implType> impl)\n");
- push(@implContent, " : $parentClassName(vm, structure, impl)\n");
+ push(@implContent, "${className}::$className(VM& vm, Structure* structure, Ref<$implType>&& impl)\n");
+ push(@implContent, " : $parentClassName(vm, structure, WTF::move(impl))\n");
push(@implContent, "{\n");
push(@implContent, "}\n\n");
} else {
- push(@implContent, "${className}::$className(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<$implType> impl)\n");
+ push(@implContent, "${className}::$className(Structure* structure, JSDOMGlobalObject* globalObject, Ref<$implType>&& impl)\n");
if ($hasParent) {
- push(@implContent, " : $parentClassName(structure, globalObject, impl)\n");
+ push(@implContent, " : $parentClassName(structure, globalObject, WTF::move(impl))\n");
} else {
push(@implContent, " : $parentClassName(structure, globalObject)\n");
- push(@implContent, " , m_impl(impl.leakRef())\n");
+ push(@implContent, " , m_impl(&impl.leakRef())\n");
}
push(@implContent, "{\n");
push(@implContent, "}\n\n");
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.cpp (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.cpp 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.cpp 2015-01-29 19:41:12 UTC (rev 179353)
@@ -139,9 +139,9 @@
WEBCORE_EXPORT const ClassInfo JSTestActiveDOMObject::s_info = { "TestActiveDOMObject", &Base::s_info, &JSTestActiveDOMObjectTable, CREATE_METHOD_TABLE(JSTestActiveDOMObject) };
-JSTestActiveDOMObject::JSTestActiveDOMObject(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestActiveDOMObject> impl)
+JSTestActiveDOMObject::JSTestActiveDOMObject(Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestActiveDOMObject>&& impl)
: JSDOMWrapper(structure, globalObject)
- , m_impl(impl.leakRef())
+ , m_impl(&impl.leakRef())
{
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.h (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.h 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.h 2015-01-29 19:41:12 UTC (rev 179353)
@@ -29,9 +29,9 @@
class JSTestActiveDOMObject : public JSDOMWrapper {
public:
typedef JSDOMWrapper Base;
- static JSTestActiveDOMObject* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestActiveDOMObject> impl)
+ static JSTestActiveDOMObject* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestActiveDOMObject>&& impl)
{
- JSTestActiveDOMObject* ptr = new (NotNull, JSC::allocateCell<JSTestActiveDOMObject>(globalObject->vm().heap)) JSTestActiveDOMObject(structure, globalObject, impl);
+ JSTestActiveDOMObject* ptr = new (NotNull, JSC::allocateCell<JSTestActiveDOMObject>(globalObject->vm().heap)) JSTestActiveDOMObject(structure, globalObject, WTF::move(impl));
ptr->finishCreation(globalObject->vm());
return ptr;
}
@@ -65,7 +65,7 @@
private:
TestActiveDOMObject* m_impl;
protected:
- JSTestActiveDOMObject(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<TestActiveDOMObject>);
+ JSTestActiveDOMObject(JSC::Structure*, JSDOMGlobalObject*, Ref<TestActiveDOMObject>&&);
void finishCreation(JSC::VM& vm)
{
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp 2015-01-29 19:41:12 UTC (rev 179353)
@@ -132,9 +132,9 @@
WEBCORE_EXPORT const ClassInfo JSTestCustomNamedGetter::s_info = { "TestCustomNamedGetter", &Base::s_info, &JSTestCustomNamedGetterTable, CREATE_METHOD_TABLE(JSTestCustomNamedGetter) };
-JSTestCustomNamedGetter::JSTestCustomNamedGetter(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestCustomNamedGetter> impl)
+JSTestCustomNamedGetter::JSTestCustomNamedGetter(Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestCustomNamedGetter>&& impl)
: JSDOMWrapper(structure, globalObject)
- , m_impl(impl.leakRef())
+ , m_impl(&impl.leakRef())
{
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.h (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.h 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.h 2015-01-29 19:41:12 UTC (rev 179353)
@@ -29,9 +29,9 @@
class JSTestCustomNamedGetter : public JSDOMWrapper {
public:
typedef JSDOMWrapper Base;
- static JSTestCustomNamedGetter* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestCustomNamedGetter> impl)
+ static JSTestCustomNamedGetter* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestCustomNamedGetter>&& impl)
{
- JSTestCustomNamedGetter* ptr = new (NotNull, JSC::allocateCell<JSTestCustomNamedGetter>(globalObject->vm().heap)) JSTestCustomNamedGetter(structure, globalObject, impl);
+ JSTestCustomNamedGetter* ptr = new (NotNull, JSC::allocateCell<JSTestCustomNamedGetter>(globalObject->vm().heap)) JSTestCustomNamedGetter(structure, globalObject, WTF::move(impl));
ptr->finishCreation(globalObject->vm());
return ptr;
}
@@ -66,7 +66,7 @@
private:
TestCustomNamedGetter* m_impl;
protected:
- JSTestCustomNamedGetter(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<TestCustomNamedGetter>);
+ JSTestCustomNamedGetter(JSC::Structure*, JSDOMGlobalObject*, Ref<TestCustomNamedGetter>&&);
void finishCreation(JSC::VM& vm)
{
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.cpp (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.cpp 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.cpp 2015-01-29 19:41:12 UTC (rev 179353)
@@ -167,9 +167,9 @@
WEBCORE_EXPORT const ClassInfo JSTestEventConstructor::s_info = { "TestEventConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestEventConstructor) };
-JSTestEventConstructor::JSTestEventConstructor(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestEventConstructor> impl)
+JSTestEventConstructor::JSTestEventConstructor(Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestEventConstructor>&& impl)
: JSDOMWrapper(structure, globalObject)
- , m_impl(impl.leakRef())
+ , m_impl(&impl.leakRef())
{
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.h (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.h 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.h 2015-01-29 19:41:12 UTC (rev 179353)
@@ -31,9 +31,9 @@
class JSTestEventConstructor : public JSDOMWrapper {
public:
typedef JSDOMWrapper Base;
- static JSTestEventConstructor* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestEventConstructor> impl)
+ static JSTestEventConstructor* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestEventConstructor>&& impl)
{
- JSTestEventConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestEventConstructor>(globalObject->vm().heap)) JSTestEventConstructor(structure, globalObject, impl);
+ JSTestEventConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestEventConstructor>(globalObject->vm().heap)) JSTestEventConstructor(structure, globalObject, WTF::move(impl));
ptr->finishCreation(globalObject->vm());
return ptr;
}
@@ -66,7 +66,7 @@
private:
TestEventConstructor* m_impl;
protected:
- JSTestEventConstructor(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<TestEventConstructor>);
+ JSTestEventConstructor(JSC::Structure*, JSDOMGlobalObject*, Ref<TestEventConstructor>&&);
void finishCreation(JSC::VM& vm)
{
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.cpp (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.cpp 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.cpp 2015-01-29 19:41:12 UTC (rev 179353)
@@ -144,9 +144,9 @@
WEBCORE_EXPORT const ClassInfo JSTestEventTarget::s_info = { "TestEventTarget", &Base::s_info, &JSTestEventTargetTable, CREATE_METHOD_TABLE(JSTestEventTarget) };
-JSTestEventTarget::JSTestEventTarget(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestEventTarget> impl)
+JSTestEventTarget::JSTestEventTarget(Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestEventTarget>&& impl)
: JSDOMWrapper(structure, globalObject)
- , m_impl(impl.leakRef())
+ , m_impl(&impl.leakRef())
{
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.h (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.h 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.h 2015-01-29 19:41:12 UTC (rev 179353)
@@ -29,10 +29,10 @@
class JSTestEventTarget : public JSDOMWrapper {
public:
typedef JSDOMWrapper Base;
- static JSTestEventTarget* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestEventTarget> impl)
+ static JSTestEventTarget* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestEventTarget>&& impl)
{
globalObject->masqueradesAsUndefinedWatchpoint()->fireAll("Allocated masquerading object");
- JSTestEventTarget* ptr = new (NotNull, JSC::allocateCell<JSTestEventTarget>(globalObject->vm().heap)) JSTestEventTarget(structure, globalObject, impl);
+ JSTestEventTarget* ptr = new (NotNull, JSC::allocateCell<JSTestEventTarget>(globalObject->vm().heap)) JSTestEventTarget(structure, globalObject, WTF::move(impl));
ptr->finishCreation(globalObject->vm());
return ptr;
}
@@ -70,7 +70,7 @@
private:
TestEventTarget* m_impl;
protected:
- JSTestEventTarget(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<TestEventTarget>);
+ JSTestEventTarget(JSC::Structure*, JSDOMGlobalObject*, Ref<TestEventTarget>&&);
void finishCreation(JSC::VM& vm)
{
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestException.cpp (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestException.cpp 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestException.cpp 2015-01-29 19:41:12 UTC (rev 179353)
@@ -129,9 +129,9 @@
WEBCORE_EXPORT const ClassInfo JSTestException::s_info = { "TestException", &Base::s_info, &JSTestExceptionTable, CREATE_METHOD_TABLE(JSTestException) };
-JSTestException::JSTestException(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestException> impl)
+JSTestException::JSTestException(Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestException>&& impl)
: JSDOMWrapper(structure, globalObject)
- , m_impl(impl.leakRef())
+ , m_impl(&impl.leakRef())
{
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestException.h (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestException.h 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestException.h 2015-01-29 19:41:12 UTC (rev 179353)
@@ -30,9 +30,9 @@
class JSTestException : public JSDOMWrapper {
public:
typedef JSDOMWrapper Base;
- static JSTestException* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestException> impl)
+ static JSTestException* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestException>&& impl)
{
- JSTestException* ptr = new (NotNull, JSC::allocateCell<JSTestException>(globalObject->vm().heap)) JSTestException(structure, globalObject, impl);
+ JSTestException* ptr = new (NotNull, JSC::allocateCell<JSTestException>(globalObject->vm().heap)) JSTestException(structure, globalObject, WTF::move(impl));
ptr->finishCreation(globalObject->vm());
return ptr;
}
@@ -66,7 +66,7 @@
private:
TestException* m_impl;
protected:
- JSTestException(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<TestException>);
+ JSTestException(JSC::Structure*, JSDOMGlobalObject*, Ref<TestException>&&);
void finishCreation(JSC::VM& vm)
{
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp 2015-01-29 19:41:12 UTC (rev 179353)
@@ -111,9 +111,9 @@
WEBCORE_EXPORT const ClassInfo JSTestGenerateIsReachable::s_info = { "TestGenerateIsReachable", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestGenerateIsReachable) };
-JSTestGenerateIsReachable::JSTestGenerateIsReachable(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestGenerateIsReachable> impl)
+JSTestGenerateIsReachable::JSTestGenerateIsReachable(Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestGenerateIsReachable>&& impl)
: JSDOMWrapper(structure, globalObject)
- , m_impl(impl.leakRef())
+ , m_impl(&impl.leakRef())
{
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGenerateIsReachable.h (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGenerateIsReachable.h 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGenerateIsReachable.h 2015-01-29 19:41:12 UTC (rev 179353)
@@ -29,9 +29,9 @@
class JSTestGenerateIsReachable : public JSDOMWrapper {
public:
typedef JSDOMWrapper Base;
- static JSTestGenerateIsReachable* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestGenerateIsReachable> impl)
+ static JSTestGenerateIsReachable* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestGenerateIsReachable>&& impl)
{
- JSTestGenerateIsReachable* ptr = new (NotNull, JSC::allocateCell<JSTestGenerateIsReachable>(globalObject->vm().heap)) JSTestGenerateIsReachable(structure, globalObject, impl);
+ JSTestGenerateIsReachable* ptr = new (NotNull, JSC::allocateCell<JSTestGenerateIsReachable>(globalObject->vm().heap)) JSTestGenerateIsReachable(structure, globalObject, WTF::move(impl));
ptr->finishCreation(globalObject->vm());
return ptr;
}
@@ -64,7 +64,7 @@
private:
TestGenerateIsReachable* m_impl;
protected:
- JSTestGenerateIsReachable(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<TestGenerateIsReachable>);
+ JSTestGenerateIsReachable(JSC::Structure*, JSDOMGlobalObject*, Ref<TestGenerateIsReachable>&&);
void finishCreation(JSC::VM& vm)
{
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp 2015-01-29 19:41:12 UTC (rev 179353)
@@ -413,9 +413,9 @@
WEBCORE_EXPORT const ClassInfo JSTestInterface::s_info = { "TestInterface", &Base::s_info, &JSTestInterfaceTable, CREATE_METHOD_TABLE(JSTestInterface) };
-JSTestInterface::JSTestInterface(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestInterface> impl)
+JSTestInterface::JSTestInterface(Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestInterface>&& impl)
: JSDOMWrapper(structure, globalObject)
- , m_impl(impl.leakRef())
+ , m_impl(&impl.leakRef())
{
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.h (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.h 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.h 2015-01-29 19:41:12 UTC (rev 179353)
@@ -31,9 +31,9 @@
class JSTestInterface : public JSDOMWrapper {
public:
typedef JSDOMWrapper Base;
- static JSTestInterface* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestInterface> impl)
+ static JSTestInterface* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestInterface>&& impl)
{
- JSTestInterface* ptr = new (NotNull, JSC::allocateCell<JSTestInterface>(globalObject->vm().heap)) JSTestInterface(structure, globalObject, impl);
+ JSTestInterface* ptr = new (NotNull, JSC::allocateCell<JSTestInterface>(globalObject->vm().heap)) JSTestInterface(structure, globalObject, WTF::move(impl));
ptr->finishCreation(globalObject->vm());
return ptr;
}
@@ -92,7 +92,7 @@
private:
TestInterface* m_impl;
protected:
- JSTestInterface(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<TestInterface>);
+ JSTestInterface(JSC::Structure*, JSDOMGlobalObject*, Ref<TestInterface>&&);
void finishCreation(JSC::VM& vm)
{
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp 2015-01-29 19:41:12 UTC (rev 179353)
@@ -119,9 +119,9 @@
WEBCORE_EXPORT const ClassInfo JSTestMediaQueryListListener::s_info = { "TestMediaQueryListListener", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestMediaQueryListListener) };
-JSTestMediaQueryListListener::JSTestMediaQueryListListener(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestMediaQueryListListener> impl)
+JSTestMediaQueryListListener::JSTestMediaQueryListListener(Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestMediaQueryListListener>&& impl)
: JSDOMWrapper(structure, globalObject)
- , m_impl(impl.leakRef())
+ , m_impl(&impl.leakRef())
{
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.h (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.h 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.h 2015-01-29 19:41:12 UTC (rev 179353)
@@ -29,9 +29,9 @@
class JSTestMediaQueryListListener : public JSDOMWrapper {
public:
typedef JSDOMWrapper Base;
- static JSTestMediaQueryListListener* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestMediaQueryListListener> impl)
+ static JSTestMediaQueryListListener* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestMediaQueryListListener>&& impl)
{
- JSTestMediaQueryListListener* ptr = new (NotNull, JSC::allocateCell<JSTestMediaQueryListListener>(globalObject->vm().heap)) JSTestMediaQueryListListener(structure, globalObject, impl);
+ JSTestMediaQueryListListener* ptr = new (NotNull, JSC::allocateCell<JSTestMediaQueryListListener>(globalObject->vm().heap)) JSTestMediaQueryListListener(structure, globalObject, WTF::move(impl));
ptr->finishCreation(globalObject->vm());
return ptr;
}
@@ -64,7 +64,7 @@
private:
TestMediaQueryListListener* m_impl;
protected:
- JSTestMediaQueryListListener(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<TestMediaQueryListListener>);
+ JSTestMediaQueryListListener(JSC::Structure*, JSDOMGlobalObject*, Ref<TestMediaQueryListListener>&&);
void finishCreation(JSC::VM& vm)
{
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp 2015-01-29 19:41:12 UTC (rev 179353)
@@ -183,9 +183,9 @@
WEBCORE_EXPORT const ClassInfo JSTestNamedConstructor::s_info = { "TestNamedConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestNamedConstructor) };
-JSTestNamedConstructor::JSTestNamedConstructor(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestNamedConstructor> impl)
+JSTestNamedConstructor::JSTestNamedConstructor(Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestNamedConstructor>&& impl)
: JSDOMWrapper(structure, globalObject)
- , m_impl(impl.leakRef())
+ , m_impl(&impl.leakRef())
{
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.h (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.h 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.h 2015-01-29 19:41:12 UTC (rev 179353)
@@ -29,9 +29,9 @@
class JSTestNamedConstructor : public JSDOMWrapper {
public:
typedef JSDOMWrapper Base;
- static JSTestNamedConstructor* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestNamedConstructor> impl)
+ static JSTestNamedConstructor* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestNamedConstructor>&& impl)
{
- JSTestNamedConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestNamedConstructor>(globalObject->vm().heap)) JSTestNamedConstructor(structure, globalObject, impl);
+ JSTestNamedConstructor* ptr = new (NotNull, JSC::allocateCell<JSTestNamedConstructor>(globalObject->vm().heap)) JSTestNamedConstructor(structure, globalObject, WTF::move(impl));
ptr->finishCreation(globalObject->vm());
return ptr;
}
@@ -65,7 +65,7 @@
private:
TestNamedConstructor* m_impl;
protected:
- JSTestNamedConstructor(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<TestNamedConstructor>);
+ JSTestNamedConstructor(JSC::Structure*, JSDOMGlobalObject*, Ref<TestNamedConstructor>&&);
void finishCreation(JSC::VM& vm)
{
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNode.cpp (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNode.cpp 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNode.cpp 2015-01-29 19:41:12 UTC (rev 179353)
@@ -129,8 +129,8 @@
WEBCORE_EXPORT const ClassInfo JSTestNode::s_info = { "TestNode", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestNode) };
-JSTestNode::JSTestNode(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestNode> impl)
- : JSNode(structure, globalObject, impl)
+JSTestNode::JSTestNode(Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestNode>&& impl)
+ : JSNode(structure, globalObject, WTF::move(impl))
{
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNode.h (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNode.h 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNode.h 2015-01-29 19:41:12 UTC (rev 179353)
@@ -29,9 +29,9 @@
class JSTestNode : public JSNode {
public:
typedef JSNode Base;
- static JSTestNode* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestNode> impl)
+ static JSTestNode* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestNode>&& impl)
{
- JSTestNode* ptr = new (NotNull, JSC::allocateCell<JSTestNode>(globalObject->vm().heap)) JSTestNode(structure, globalObject, impl);
+ JSTestNode* ptr = new (NotNull, JSC::allocateCell<JSTestNode>(globalObject->vm().heap)) JSTestNode(structure, globalObject, WTF::move(impl));
ptr->finishCreation(globalObject->vm());
return ptr;
}
@@ -54,7 +54,7 @@
return static_cast<TestNode&>(Base::impl());
}
protected:
- JSTestNode(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<TestNode>);
+ JSTestNode(JSC::Structure*, JSDOMGlobalObject*, Ref<TestNode>&&);
void finishCreation(JSC::VM& vm)
{
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNondeterministic.cpp (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNondeterministic.cpp 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNondeterministic.cpp 2015-01-29 19:41:12 UTC (rev 179353)
@@ -141,9 +141,9 @@
WEBCORE_EXPORT const ClassInfo JSTestNondeterministic::s_info = { "TestNondeterministic", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestNondeterministic) };
-JSTestNondeterministic::JSTestNondeterministic(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestNondeterministic> impl)
+JSTestNondeterministic::JSTestNondeterministic(Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestNondeterministic>&& impl)
: JSDOMWrapper(structure, globalObject)
- , m_impl(impl.leakRef())
+ , m_impl(&impl.leakRef())
{
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNondeterministic.h (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNondeterministic.h 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNondeterministic.h 2015-01-29 19:41:12 UTC (rev 179353)
@@ -29,9 +29,9 @@
class JSTestNondeterministic : public JSDOMWrapper {
public:
typedef JSDOMWrapper Base;
- static JSTestNondeterministic* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestNondeterministic> impl)
+ static JSTestNondeterministic* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestNondeterministic>&& impl)
{
- JSTestNondeterministic* ptr = new (NotNull, JSC::allocateCell<JSTestNondeterministic>(globalObject->vm().heap)) JSTestNondeterministic(structure, globalObject, impl);
+ JSTestNondeterministic* ptr = new (NotNull, JSC::allocateCell<JSTestNondeterministic>(globalObject->vm().heap)) JSTestNondeterministic(structure, globalObject, WTF::move(impl));
ptr->finishCreation(globalObject->vm());
return ptr;
}
@@ -64,7 +64,7 @@
private:
TestNondeterministic* m_impl;
protected:
- JSTestNondeterministic(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<TestNondeterministic>);
+ JSTestNondeterministic(JSC::Structure*, JSDOMGlobalObject*, Ref<TestNondeterministic>&&);
void finishCreation(JSC::VM& vm)
{
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp 2015-01-29 19:41:12 UTC (rev 179353)
@@ -655,9 +655,9 @@
WEBCORE_EXPORT const ClassInfo JSTestObj::s_info = { "TestObject", &Base::s_info, &JSTestObjTable, CREATE_METHOD_TABLE(JSTestObj) };
-JSTestObj::JSTestObj(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestObj> impl)
+JSTestObj::JSTestObj(Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestObj>&& impl)
: JSDOMWrapper(structure, globalObject)
- , m_impl(impl.leakRef())
+ , m_impl(&impl.leakRef())
{
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.h (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.h 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.h 2015-01-29 19:41:12 UTC (rev 179353)
@@ -29,9 +29,9 @@
class JSTestObj : public JSDOMWrapper {
public:
typedef JSDOMWrapper Base;
- static JSTestObj* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestObj> impl)
+ static JSTestObj* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestObj>&& impl)
{
- JSTestObj* ptr = new (NotNull, JSC::allocateCell<JSTestObj>(globalObject->vm().heap)) JSTestObj(structure, globalObject, impl);
+ JSTestObj* ptr = new (NotNull, JSC::allocateCell<JSTestObj>(globalObject->vm().heap)) JSTestObj(structure, globalObject, WTF::move(impl));
ptr->finishCreation(globalObject->vm());
return ptr;
}
@@ -78,7 +78,7 @@
private:
TestObj* m_impl;
protected:
- JSTestObj(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<TestObj>);
+ JSTestObj(JSC::Structure*, JSDOMGlobalObject*, Ref<TestObj>&&);
void finishCreation(JSC::VM& vm)
{
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp 2015-01-29 19:41:12 UTC (rev 179353)
@@ -192,9 +192,9 @@
WEBCORE_EXPORT const ClassInfo JSTestOverloadedConstructors::s_info = { "TestOverloadedConstructors", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestOverloadedConstructors) };
-JSTestOverloadedConstructors::JSTestOverloadedConstructors(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestOverloadedConstructors> impl)
+JSTestOverloadedConstructors::JSTestOverloadedConstructors(Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestOverloadedConstructors>&& impl)
: JSDOMWrapper(structure, globalObject)
- , m_impl(impl.leakRef())
+ , m_impl(&impl.leakRef())
{
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.h (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.h 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.h 2015-01-29 19:41:12 UTC (rev 179353)
@@ -29,9 +29,9 @@
class JSTestOverloadedConstructors : public JSDOMWrapper {
public:
typedef JSDOMWrapper Base;
- static JSTestOverloadedConstructors* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestOverloadedConstructors> impl)
+ static JSTestOverloadedConstructors* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestOverloadedConstructors>&& impl)
{
- JSTestOverloadedConstructors* ptr = new (NotNull, JSC::allocateCell<JSTestOverloadedConstructors>(globalObject->vm().heap)) JSTestOverloadedConstructors(structure, globalObject, impl);
+ JSTestOverloadedConstructors* ptr = new (NotNull, JSC::allocateCell<JSTestOverloadedConstructors>(globalObject->vm().heap)) JSTestOverloadedConstructors(structure, globalObject, WTF::move(impl));
ptr->finishCreation(globalObject->vm());
return ptr;
}
@@ -64,7 +64,7 @@
private:
TestOverloadedConstructors* m_impl;
protected:
- JSTestOverloadedConstructors(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<TestOverloadedConstructors>);
+ JSTestOverloadedConstructors(JSC::Structure*, JSDOMGlobalObject*, Ref<TestOverloadedConstructors>&&);
void finishCreation(JSC::VM& vm)
{
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp 2015-01-29 19:41:12 UTC (rev 179353)
@@ -131,9 +131,9 @@
WEBCORE_EXPORT const ClassInfo JSTestSerializedScriptValueInterface::s_info = { "TestSerializedScriptValueInterface", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestSerializedScriptValueInterface) };
-JSTestSerializedScriptValueInterface::JSTestSerializedScriptValueInterface(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestSerializedScriptValueInterface> impl)
+JSTestSerializedScriptValueInterface::JSTestSerializedScriptValueInterface(Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestSerializedScriptValueInterface>&& impl)
: JSDOMWrapper(structure, globalObject)
- , m_impl(impl.leakRef())
+ , m_impl(&impl.leakRef())
{
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.h (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.h 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.h 2015-01-29 19:41:12 UTC (rev 179353)
@@ -31,9 +31,9 @@
class JSTestSerializedScriptValueInterface : public JSDOMWrapper {
public:
typedef JSDOMWrapper Base;
- static JSTestSerializedScriptValueInterface* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestSerializedScriptValueInterface> impl)
+ static JSTestSerializedScriptValueInterface* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestSerializedScriptValueInterface>&& impl)
{
- JSTestSerializedScriptValueInterface* ptr = new (NotNull, JSC::allocateCell<JSTestSerializedScriptValueInterface>(globalObject->vm().heap)) JSTestSerializedScriptValueInterface(structure, globalObject, impl);
+ JSTestSerializedScriptValueInterface* ptr = new (NotNull, JSC::allocateCell<JSTestSerializedScriptValueInterface>(globalObject->vm().heap)) JSTestSerializedScriptValueInterface(structure, globalObject, WTF::move(impl));
ptr->finishCreation(globalObject->vm());
return ptr;
}
@@ -70,7 +70,7 @@
private:
TestSerializedScriptValueInterface* m_impl;
protected:
- JSTestSerializedScriptValueInterface(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<TestSerializedScriptValueInterface>);
+ JSTestSerializedScriptValueInterface(JSC::Structure*, JSDOMGlobalObject*, Ref<TestSerializedScriptValueInterface>&&);
void finishCreation(JSC::VM& vm)
{
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp 2015-01-29 19:41:12 UTC (rev 179353)
@@ -214,9 +214,9 @@
WEBCORE_EXPORT const ClassInfo JSTestTypedefs::s_info = { "TestTypedefs", &Base::s_info, &JSTestTypedefsTable, CREATE_METHOD_TABLE(JSTestTypedefs) };
-JSTestTypedefs::JSTestTypedefs(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestTypedefs> impl)
+JSTestTypedefs::JSTestTypedefs(Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestTypedefs>&& impl)
: JSDOMWrapper(structure, globalObject)
- , m_impl(impl.leakRef())
+ , m_impl(&impl.leakRef())
{
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.h (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.h 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.h 2015-01-29 19:41:12 UTC (rev 179353)
@@ -29,9 +29,9 @@
class JSTestTypedefs : public JSDOMWrapper {
public:
typedef JSDOMWrapper Base;
- static JSTestTypedefs* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestTypedefs> impl)
+ static JSTestTypedefs* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestTypedefs>&& impl)
{
- JSTestTypedefs* ptr = new (NotNull, JSC::allocateCell<JSTestTypedefs>(globalObject->vm().heap)) JSTestTypedefs(structure, globalObject, impl);
+ JSTestTypedefs* ptr = new (NotNull, JSC::allocateCell<JSTestTypedefs>(globalObject->vm().heap)) JSTestTypedefs(structure, globalObject, WTF::move(impl));
ptr->finishCreation(globalObject->vm());
return ptr;
}
@@ -65,7 +65,7 @@
private:
TestTypedefs* m_impl;
protected:
- JSTestTypedefs(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<TestTypedefs>);
+ JSTestTypedefs(JSC::Structure*, JSDOMGlobalObject*, Ref<TestTypedefs>&&);
void finishCreation(JSC::VM& vm)
{
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSattribute.cpp (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSattribute.cpp 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSattribute.cpp 2015-01-29 19:41:12 UTC (rev 179353)
@@ -116,9 +116,9 @@
WEBCORE_EXPORT const ClassInfo JSattribute::s_info = { "attribute", &Base::s_info, 0, CREATE_METHOD_TABLE(JSattribute) };
-JSattribute::JSattribute(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<attribute> impl)
+JSattribute::JSattribute(Structure* structure, JSDOMGlobalObject* globalObject, Ref<attribute>&& impl)
: JSDOMWrapper(structure, globalObject)
- , m_impl(impl.leakRef())
+ , m_impl(&impl.leakRef())
{
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSattribute.h (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSattribute.h 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSattribute.h 2015-01-29 19:41:12 UTC (rev 179353)
@@ -30,9 +30,9 @@
class JSattribute : public JSDOMWrapper {
public:
typedef JSDOMWrapper Base;
- static JSattribute* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<attribute> impl)
+ static JSattribute* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<attribute>&& impl)
{
- JSattribute* ptr = new (NotNull, JSC::allocateCell<JSattribute>(globalObject->vm().heap)) JSattribute(structure, globalObject, impl);
+ JSattribute* ptr = new (NotNull, JSC::allocateCell<JSattribute>(globalObject->vm().heap)) JSattribute(structure, globalObject, WTF::move(impl));
ptr->finishCreation(globalObject->vm());
return ptr;
}
@@ -65,7 +65,7 @@
private:
attribute* m_impl;
protected:
- JSattribute(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<attribute>);
+ JSattribute(JSC::Structure*, JSDOMGlobalObject*, Ref<attribute>&&);
void finishCreation(JSC::VM& vm)
{
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSreadonly.cpp (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSreadonly.cpp 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSreadonly.cpp 2015-01-29 19:41:12 UTC (rev 179353)
@@ -111,9 +111,9 @@
WEBCORE_EXPORT const ClassInfo JSreadonly::s_info = { "readonly", &Base::s_info, 0, CREATE_METHOD_TABLE(JSreadonly) };
-JSreadonly::JSreadonly(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<readonly> impl)
+JSreadonly::JSreadonly(Structure* structure, JSDOMGlobalObject* globalObject, Ref<readonly>&& impl)
: JSDOMWrapper(structure, globalObject)
- , m_impl(impl.leakRef())
+ , m_impl(&impl.leakRef())
{
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSreadonly.h (179352 => 179353)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSreadonly.h 2015-01-29 19:34:44 UTC (rev 179352)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSreadonly.h 2015-01-29 19:41:12 UTC (rev 179353)
@@ -29,9 +29,9 @@
class JSreadonly : public JSDOMWrapper {
public:
typedef JSDOMWrapper Base;
- static JSreadonly* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<readonly> impl)
+ static JSreadonly* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<readonly>&& impl)
{
- JSreadonly* ptr = new (NotNull, JSC::allocateCell<JSreadonly>(globalObject->vm().heap)) JSreadonly(structure, globalObject, impl);
+ JSreadonly* ptr = new (NotNull, JSC::allocateCell<JSreadonly>(globalObject->vm().heap)) JSreadonly(structure, globalObject, WTF::move(impl));
ptr->finishCreation(globalObject->vm());
return ptr;
}
@@ -64,7 +64,7 @@
private:
readonly* m_impl;
protected:
- JSreadonly(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<readonly>);
+ JSreadonly(JSC::Structure*, JSDOMGlobalObject*, Ref<readonly>&&);
void finishCreation(JSC::VM& vm)
{