Diff
Modified: trunk/Source/WebCore/ChangeLog (161221 => 161222)
--- trunk/Source/WebCore/ChangeLog 2014-01-02 21:00:06 UTC (rev 161221)
+++ trunk/Source/WebCore/ChangeLog 2014-01-02 21:34:51 UTC (rev 161222)
@@ -1,3 +1,40 @@
+2014-01-02 Oliver Hunt <[email protected]>
+
+ Update bindings test results
+
+ * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:
+ (WebCore::jsTestActiveDOMObjectConstructor):
+ * bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp:
+ (WebCore::jsTestCustomNamedGetterConstructor):
+ * bindings/scripts/test/JS/JSTestEventConstructor.cpp:
+ (WebCore::jsTestEventConstructorConstructor):
+ * bindings/scripts/test/JS/JSTestEventTarget.cpp:
+ (WebCore::jsTestEventTargetConstructor):
+ * bindings/scripts/test/JS/JSTestException.cpp:
+ (WebCore::jsTestExceptionConstructor):
+ * bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp:
+ (WebCore::jsTestGenerateIsReachableConstructor):
+ * bindings/scripts/test/JS/JSTestInterface.cpp:
+ (WebCore::jsTestInterfaceConstructor):
+ * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
+ (WebCore::jsTestMediaQueryListListenerConstructor):
+ * bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
+ (WebCore::jsTestNamedConstructorConstructor):
+ * bindings/scripts/test/JS/JSTestNode.cpp:
+ (WebCore::jsTestNodeConstructor):
+ * bindings/scripts/test/JS/JSTestObj.cpp:
+ (WebCore::jsTestObjConstructor):
+ * bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp:
+ (WebCore::jsTestOverloadedConstructorsConstructor):
+ * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
+ (WebCore::jsTestSerializedScriptValueInterfaceConstructor):
+ * bindings/scripts/test/JS/JSTestTypedefs.cpp:
+ (WebCore::jsTestTypedefsConstructor):
+ * bindings/scripts/test/JS/JSattribute.cpp:
+ (WebCore::jsattributeConstructor):
+ * bindings/scripts/test/JS/JSreadonly.cpp:
+ (WebCore::jsreadonlyConstructor):
+
2013-12-23 Oliver Hunt <[email protected]>
Refactor PutPropertySlot to be aware of custom properties
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.cpp (161221 => 161222)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.cpp 2014-01-02 21:00:06 UTC (rev 161221)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.cpp 2014-01-02 21:34:51 UTC (rev 161222)
@@ -145,11 +145,13 @@
}
-EncodedJSValue jsTestActiveDOMObjectConstructor(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue, PropertyName)
+EncodedJSValue jsTestActiveDOMObjectConstructor(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue, PropertyName)
{
- JSTestActiveDOMObject* domObject = jsDynamicCast<JSTestActiveDOMObject*>(JSValue::decode(slotBase));
+ JSTestActiveDOMObject* domObject = jsDynamicCast<JSTestActiveDOMObject*>(JSValue::decode(thisValue));
if (!domObject)
return throwVMTypeError(exec);
+ if (!domObject)
+ return throwVMTypeError(exec);
if (!BindingSecurity::shouldAllowAccessToDOMWindow(exec, domObject->impl()))
return JSValue::encode(jsUndefined());
return JSValue::encode(JSTestActiveDOMObject::getConstructor(exec->vm(), domObject->globalObject()));
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp (161221 => 161222)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp 2014-01-02 21:00:06 UTC (rev 161221)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp 2014-01-02 21:34:51 UTC (rev 161222)
@@ -144,11 +144,13 @@
return Base::getOwnPropertySlotByIndex(thisObject, exec, index, slot);
}
-EncodedJSValue jsTestCustomNamedGetterConstructor(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue, PropertyName)
+EncodedJSValue jsTestCustomNamedGetterConstructor(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue, PropertyName)
{
- JSTestCustomNamedGetter* domObject = jsDynamicCast<JSTestCustomNamedGetter*>(JSValue::decode(slotBase));
+ JSTestCustomNamedGetter* domObject = jsDynamicCast<JSTestCustomNamedGetter*>(JSValue::decode(thisValue));
if (!domObject)
return throwVMTypeError(exec);
+ if (!domObject)
+ return throwVMTypeError(exec);
return JSValue::encode(JSTestCustomNamedGetter::getConstructor(exec->vm(), domObject->globalObject()));
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.cpp (161221 => 161222)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.cpp 2014-01-02 21:00:06 UTC (rev 161221)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.cpp 2014-01-02 21:34:51 UTC (rev 161222)
@@ -193,11 +193,13 @@
}
-EncodedJSValue jsTestEventConstructorConstructor(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue, PropertyName)
+EncodedJSValue jsTestEventConstructorConstructor(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue, PropertyName)
{
- JSTestEventConstructor* domObject = jsDynamicCast<JSTestEventConstructor*>(JSValue::decode(slotBase));
+ JSTestEventConstructor* domObject = jsDynamicCast<JSTestEventConstructor*>(JSValue::decode(thisValue));
if (!domObject)
return throwVMTypeError(exec);
+ if (!domObject)
+ return throwVMTypeError(exec);
return JSValue::encode(JSTestEventConstructor::getConstructor(exec->vm(), domObject->globalObject()));
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.cpp (161221 => 161222)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.cpp 2014-01-02 21:00:06 UTC (rev 161221)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.cpp 2014-01-02 21:34:51 UTC (rev 161222)
@@ -169,11 +169,13 @@
return Base::getOwnPropertySlotByIndex(thisObject, exec, index, slot);
}
-EncodedJSValue jsTestEventTargetConstructor(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue, PropertyName)
+EncodedJSValue jsTestEventTargetConstructor(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue, PropertyName)
{
- JSTestEventTarget* domObject = jsDynamicCast<JSTestEventTarget*>(JSValue::decode(slotBase));
+ JSTestEventTarget* domObject = jsDynamicCast<JSTestEventTarget*>(JSValue::decode(thisValue));
if (!domObject)
return throwVMTypeError(exec);
+ if (!domObject)
+ return throwVMTypeError(exec);
return JSValue::encode(JSTestEventTarget::getConstructor(exec->vm(), domObject->globalObject()));
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestException.cpp (161221 => 161222)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestException.cpp 2014-01-02 21:00:06 UTC (rev 161221)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestException.cpp 2014-01-02 21:34:51 UTC (rev 161222)
@@ -133,11 +133,13 @@
}
-EncodedJSValue jsTestExceptionConstructor(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue, PropertyName)
+EncodedJSValue jsTestExceptionConstructor(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue, PropertyName)
{
- JSTestException* domObject = jsDynamicCast<JSTestException*>(JSValue::decode(slotBase));
+ JSTestException* domObject = jsDynamicCast<JSTestException*>(JSValue::decode(thisValue));
if (!domObject)
return throwVMTypeError(exec);
+ if (!domObject)
+ return throwVMTypeError(exec);
return JSValue::encode(JSTestException::getConstructor(exec->vm(), domObject->globalObject()));
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp (161221 => 161222)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp 2014-01-02 21:00:06 UTC (rev 161221)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp 2014-01-02 21:34:51 UTC (rev 161222)
@@ -117,11 +117,13 @@
return getStaticValueSlot<JSTestGenerateIsReachable, Base>(exec, JSTestGenerateIsReachableTable, thisObject, propertyName, slot);
}
-EncodedJSValue jsTestGenerateIsReachableConstructor(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue, PropertyName)
+EncodedJSValue jsTestGenerateIsReachableConstructor(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue, PropertyName)
{
- JSTestGenerateIsReachable* domObject = jsDynamicCast<JSTestGenerateIsReachable*>(JSValue::decode(slotBase));
+ JSTestGenerateIsReachable* domObject = jsDynamicCast<JSTestGenerateIsReachable*>(JSValue::decode(thisValue));
if (!domObject)
return throwVMTypeError(exec);
+ if (!domObject)
+ return throwVMTypeError(exec);
return JSValue::encode(JSTestGenerateIsReachable::getConstructor(exec->vm(), domObject->globalObject()));
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp (161221 => 161222)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp 2014-01-02 21:00:06 UTC (rev 161221)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp 2014-01-02 21:34:51 UTC (rev 161222)
@@ -433,11 +433,13 @@
#endif
-EncodedJSValue jsTestInterfaceConstructor(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue, PropertyName)
+EncodedJSValue jsTestInterfaceConstructor(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue, PropertyName)
{
- JSTestInterface* domObject = jsDynamicCast<JSTestInterface*>(JSValue::decode(slotBase));
+ JSTestInterface* domObject = jsDynamicCast<JSTestInterface*>(JSValue::decode(thisValue));
if (!domObject)
return throwVMTypeError(exec);
+ if (!domObject)
+ return throwVMTypeError(exec);
return JSValue::encode(JSTestInterface::getConstructor(exec->vm(), domObject->globalObject()));
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp (161221 => 161222)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp 2014-01-02 21:00:06 UTC (rev 161221)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp 2014-01-02 21:34:51 UTC (rev 161222)
@@ -128,11 +128,13 @@
return getStaticValueSlot<JSTestMediaQueryListListener, Base>(exec, JSTestMediaQueryListListenerTable, thisObject, propertyName, slot);
}
-EncodedJSValue jsTestMediaQueryListListenerConstructor(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue, PropertyName)
+EncodedJSValue jsTestMediaQueryListListenerConstructor(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue, PropertyName)
{
- JSTestMediaQueryListListener* domObject = jsDynamicCast<JSTestMediaQueryListListener*>(JSValue::decode(slotBase));
+ JSTestMediaQueryListListener* domObject = jsDynamicCast<JSTestMediaQueryListListener*>(JSValue::decode(thisValue));
if (!domObject)
return throwVMTypeError(exec);
+ if (!domObject)
+ return throwVMTypeError(exec);
return JSValue::encode(JSTestMediaQueryListListener::getConstructor(exec->vm(), domObject->globalObject()));
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp (161221 => 161222)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp 2014-01-02 21:00:06 UTC (rev 161221)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp 2014-01-02 21:34:51 UTC (rev 161222)
@@ -164,11 +164,13 @@
return getStaticValueSlot<JSTestNamedConstructor, Base>(exec, JSTestNamedConstructorTable, thisObject, propertyName, slot);
}
-EncodedJSValue jsTestNamedConstructorConstructor(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue, PropertyName)
+EncodedJSValue jsTestNamedConstructorConstructor(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue, PropertyName)
{
- JSTestNamedConstructor* domObject = jsDynamicCast<JSTestNamedConstructor*>(JSValue::decode(slotBase));
+ JSTestNamedConstructor* domObject = jsDynamicCast<JSTestNamedConstructor*>(JSValue::decode(thisValue));
if (!domObject)
return throwVMTypeError(exec);
+ if (!domObject)
+ return throwVMTypeError(exec);
return JSValue::encode(JSTestNamedConstructor::getConstructor(exec->vm(), domObject->globalObject()));
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNode.cpp (161221 => 161222)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNode.cpp 2014-01-02 21:00:06 UTC (rev 161221)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNode.cpp 2014-01-02 21:34:51 UTC (rev 161222)
@@ -121,11 +121,13 @@
return getStaticValueSlot<JSTestNode, Base>(exec, JSTestNodeTable, thisObject, propertyName, slot);
}
-EncodedJSValue jsTestNodeConstructor(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue, PropertyName)
+EncodedJSValue jsTestNodeConstructor(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue, PropertyName)
{
- JSTestNode* domObject = jsDynamicCast<JSTestNode*>(JSValue::decode(slotBase));
+ JSTestNode* domObject = jsDynamicCast<JSTestNode*>(JSValue::decode(thisValue));
if (!domObject)
return throwVMTypeError(exec);
+ if (!domObject)
+ return throwVMTypeError(exec);
return JSValue::encode(JSTestNode::getConstructor(exec->vm(), domObject->globalObject()));
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp (161221 => 161222)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp 2014-01-02 21:00:06 UTC (rev 161221)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp 2014-01-02 21:34:51 UTC (rev 161222)
@@ -1307,11 +1307,13 @@
}
-EncodedJSValue jsTestObjConstructor(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue, PropertyName)
+EncodedJSValue jsTestObjConstructor(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue, PropertyName)
{
- JSTestObj* domObject = jsDynamicCast<JSTestObj*>(JSValue::decode(slotBase));
+ JSTestObj* domObject = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
if (!domObject)
return throwVMTypeError(exec);
+ if (!domObject)
+ return throwVMTypeError(exec);
return JSValue::encode(JSTestObj::getConstructor(exec->vm(), domObject->globalObject()));
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp (161221 => 161222)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp 2014-01-02 21:00:06 UTC (rev 161221)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp 2014-01-02 21:34:51 UTC (rev 161222)
@@ -192,11 +192,13 @@
return getStaticValueSlot<JSTestOverloadedConstructors, Base>(exec, JSTestOverloadedConstructorsTable, thisObject, propertyName, slot);
}
-EncodedJSValue jsTestOverloadedConstructorsConstructor(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue, PropertyName)
+EncodedJSValue jsTestOverloadedConstructorsConstructor(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue, PropertyName)
{
- JSTestOverloadedConstructors* domObject = jsDynamicCast<JSTestOverloadedConstructors*>(JSValue::decode(slotBase));
+ JSTestOverloadedConstructors* domObject = jsDynamicCast<JSTestOverloadedConstructors*>(JSValue::decode(thisValue));
if (!domObject)
return throwVMTypeError(exec);
+ if (!domObject)
+ return throwVMTypeError(exec);
return JSValue::encode(JSTestOverloadedConstructors::getConstructor(exec->vm(), domObject->globalObject()));
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp (161221 => 161222)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp 2014-01-02 21:00:06 UTC (rev 161221)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp 2014-01-02 21:34:51 UTC (rev 161222)
@@ -200,11 +200,13 @@
}
-EncodedJSValue jsTestSerializedScriptValueInterfaceConstructor(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue, PropertyName)
+EncodedJSValue jsTestSerializedScriptValueInterfaceConstructor(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue, PropertyName)
{
- JSTestSerializedScriptValueInterface* domObject = jsDynamicCast<JSTestSerializedScriptValueInterface*>(JSValue::decode(slotBase));
+ JSTestSerializedScriptValueInterface* domObject = jsDynamicCast<JSTestSerializedScriptValueInterface*>(JSValue::decode(thisValue));
if (!domObject)
return throwVMTypeError(exec);
+ if (!domObject)
+ return throwVMTypeError(exec);
return JSValue::encode(JSTestSerializedScriptValueInterface::getConstructor(exec->vm(), domObject->globalObject()));
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp (161221 => 161222)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp 2014-01-02 21:00:06 UTC (rev 161221)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp 2014-01-02 21:34:51 UTC (rev 161222)
@@ -266,11 +266,13 @@
}
-EncodedJSValue jsTestTypedefsConstructor(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue, PropertyName)
+EncodedJSValue jsTestTypedefsConstructor(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue, PropertyName)
{
- JSTestTypedefs* domObject = jsDynamicCast<JSTestTypedefs*>(JSValue::decode(slotBase));
+ JSTestTypedefs* domObject = jsDynamicCast<JSTestTypedefs*>(JSValue::decode(thisValue));
if (!domObject)
return throwVMTypeError(exec);
+ if (!domObject)
+ return throwVMTypeError(exec);
return JSValue::encode(JSTestTypedefs::getConstructor(exec->vm(), domObject->globalObject()));
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSattribute.cpp (161221 => 161222)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSattribute.cpp 2014-01-02 21:00:06 UTC (rev 161221)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSattribute.cpp 2014-01-02 21:34:51 UTC (rev 161222)
@@ -133,11 +133,13 @@
}
-EncodedJSValue jsattributeConstructor(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue, PropertyName)
+EncodedJSValue jsattributeConstructor(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue, PropertyName)
{
- JSattribute* domObject = jsDynamicCast<JSattribute*>(JSValue::decode(slotBase));
+ JSattribute* domObject = jsDynamicCast<JSattribute*>(JSValue::decode(thisValue));
if (!domObject)
return throwVMTypeError(exec);
+ if (!domObject)
+ return throwVMTypeError(exec);
return JSValue::encode(JSattribute::getConstructor(exec->vm(), domObject->globalObject()));
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSreadonly.cpp (161221 => 161222)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSreadonly.cpp 2014-01-02 21:00:06 UTC (rev 161221)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSreadonly.cpp 2014-01-02 21:34:51 UTC (rev 161222)
@@ -117,11 +117,13 @@
return getStaticValueSlot<JSreadonly, Base>(exec, JSreadonlyTable, thisObject, propertyName, slot);
}
-EncodedJSValue jsreadonlyConstructor(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue, PropertyName)
+EncodedJSValue jsreadonlyConstructor(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue, PropertyName)
{
- JSreadonly* domObject = jsDynamicCast<JSreadonly*>(JSValue::decode(slotBase));
+ JSreadonly* domObject = jsDynamicCast<JSreadonly*>(JSValue::decode(thisValue));
if (!domObject)
return throwVMTypeError(exec);
+ if (!domObject)
+ return throwVMTypeError(exec);
return JSValue::encode(JSreadonly::getConstructor(exec->vm(), domObject->globalObject()));
}