Index: Source/bindings/tests/results/V8TestInterfacePython.cpp |
diff --git a/Source/bindings/tests/results/V8TestInterfacePython.cpp b/Source/bindings/tests/results/V8TestInterfacePython.cpp |
index d00193c7c720aed0f223adec580435e57cda5ca3..2743a56d4494d90bc82a2635212f52f4a2d22284 100644 |
--- a/Source/bindings/tests/results/V8TestInterfacePython.cpp |
+++ b/Source/bindings/tests/results/V8TestInterfacePython.cpp |
@@ -235,7 +235,8 @@ static void implementsStaticStringAttributeAttributeSetterCallback(v8::Local<v8: |
static void implementsReadonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(info.Holder()); |
- v8SetReturnValueString(info, TestImplements::implementsReadonlyStringAttribute(imp), info.GetIsolate()); |
+ ASSERT(imp); |
+ v8SetReturnValueString(info, TestImplements::implementsReadonlyStringAttribute(*imp), info.GetIsolate()); |
} |
static void implementsReadonlyStringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
@@ -248,7 +249,8 @@ static void implementsReadonlyStringAttributeAttributeGetterCallback(v8::Local<v |
static void implementsStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(info.Holder()); |
- v8SetReturnValueString(info, TestImplements::implementsStringAttribute(imp), info.GetIsolate()); |
+ ASSERT(imp); |
+ v8SetReturnValueString(info, TestImplements::implementsStringAttribute(*imp), info.GetIsolate()); |
} |
static void implementsStringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
@@ -262,7 +264,8 @@ static void implementsStringAttributeAttributeSetter(v8::Local<v8::Value> jsValu |
{ |
TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(info.Holder()); |
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
- TestImplements::setImplementsStringAttribute(imp, cppValue); |
+ ASSERT(imp); |
+ TestImplements::setImplementsStringAttribute(*imp, cppValue); |
} |
static void implementsStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
@@ -275,7 +278,8 @@ static void implementsStringAttributeAttributeSetterCallback(v8::Local<v8::Strin |
static void implementsNodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(info.Holder()); |
- v8SetReturnValueFast(info, TestImplements::implementsNodeAttribute(imp), imp); |
+ ASSERT(imp); |
+ v8SetReturnValueFast(info, TestImplements::implementsNodeAttribute(*imp), imp); |
} |
static void implementsNodeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
@@ -295,7 +299,8 @@ static void implementsNodeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, |
} |
TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(info.Holder()); |
V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolate()) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
- TestImplements::setImplementsNodeAttribute(imp, WTF::getPtr(cppValue)); |
+ ASSERT(imp); |
+ TestImplements::setImplementsNodeAttribute(*imp, WTF::getPtr(cppValue)); |
} |
static void implementsNodeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
@@ -308,7 +313,9 @@ static void implementsNodeAttributeAttributeSetterCallback(v8::Local<v8::String> |
static void implementsEventHandlerAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(info.Holder()); |
- EventListener* jsValue = TestImplements::implementsEventHandlerAttribute(imp); |
+ ASSERT(imp); |
+ ASSERT(imp); |
+ EventListener* jsValue = TestImplements::implementsEventHandlerAttribute(*imp); |
v8SetReturnValue(info, jsValue ? v8::Handle<v8::Value>(V8AbstractEventListener::cast(jsValue)->getListenerObject(imp->executionContext())) : v8::Handle<v8::Value>(v8::Null(info.GetIsolate()))); |
} |
@@ -322,8 +329,10 @@ static void implementsEventHandlerAttributeAttributeGetterCallback(v8::Local<v8: |
static void implementsEventHandlerAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(info.Holder()); |
- moveEventListenerToNewWrapper(info.Holder(), TestImplements::implementsEventHandlerAttribute(imp), jsValue, V8TestInterfacePython::eventListenerCacheIndex, info.GetIsolate()); |
- TestImplements::setImplementsEventHandlerAttribute(imp, V8EventListenerList::getEventListener(jsValue, true, ListenerFindOrCreate)); |
+ ASSERT(imp); |
+ moveEventListenerToNewWrapper(info.Holder(), TestImplements::implementsEventHandlerAttribute(*imp), jsValue, V8TestInterfacePython::eventListenerCacheIndex, info.GetIsolate()); |
+ ASSERT(imp); |
+ TestImplements::setImplementsEventHandlerAttribute(*imp, V8EventListenerList::getEventListener(jsValue, true, ListenerFindOrCreate)); |
} |
static void implementsEventHandlerAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
@@ -336,7 +345,8 @@ static void implementsEventHandlerAttributeAttributeSetterCallback(v8::Local<v8: |
static void implementsRuntimeEnabledNodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(info.Holder()); |
- v8SetReturnValueFast(info, TestImplements::implementsRuntimeEnabledNodeAttribute(imp), imp); |
+ ASSERT(imp); |
+ v8SetReturnValueFast(info, TestImplements::implementsRuntimeEnabledNodeAttribute(*imp), imp); |
} |
static void implementsRuntimeEnabledNodeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
@@ -356,7 +366,8 @@ static void implementsRuntimeEnabledNodeAttributeAttributeSetter(v8::Local<v8::V |
} |
TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(info.Holder()); |
V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolate()) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
- TestImplements::setImplementsRuntimeEnabledNodeAttribute(imp, WTF::getPtr(cppValue)); |
+ ASSERT(imp); |
+ TestImplements::setImplementsRuntimeEnabledNodeAttribute(*imp, WTF::getPtr(cppValue)); |
} |
static void implementsRuntimeEnabledNodeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
@@ -369,7 +380,8 @@ static void implementsRuntimeEnabledNodeAttributeAttributeSetterCallback(v8::Loc |
static void implementsPerContextEnabledNodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(info.Holder()); |
- v8SetReturnValueFast(info, TestImplements::implementsPerContextEnabledNodeAttribute(imp), imp); |
+ ASSERT(imp); |
+ v8SetReturnValueFast(info, TestImplements::implementsPerContextEnabledNodeAttribute(*imp), imp); |
} |
static void implementsPerContextEnabledNodeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
@@ -389,7 +401,8 @@ static void implementsPerContextEnabledNodeAttributeAttributeSetter(v8::Local<v8 |
} |
TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(info.Holder()); |
V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolate()) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
- TestImplements::setImplementsPerContextEnabledNodeAttribute(imp, WTF::getPtr(cppValue)); |
+ ASSERT(imp); |
+ TestImplements::setImplementsPerContextEnabledNodeAttribute(*imp, WTF::getPtr(cppValue)); |
} |
static void implementsPerContextEnabledNodeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
@@ -427,7 +440,8 @@ static void implements2StaticStringAttributeAttributeSetterCallback(v8::Local<v8 |
static void implements2StringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(info.Holder()); |
- v8SetReturnValueString(info, TestImplements2Implementation::implements2StringAttribute(imp), info.GetIsolate()); |
+ ASSERT(imp); |
+ v8SetReturnValueString(info, TestImplements2Implementation::implements2StringAttribute(*imp), info.GetIsolate()); |
} |
static void implements2StringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
@@ -441,7 +455,8 @@ static void implements2StringAttributeAttributeSetter(v8::Local<v8::Value> jsVal |
{ |
TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(info.Holder()); |
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
- TestImplements2Implementation::setImplements2StringAttribute(imp, cppValue); |
+ ASSERT(imp); |
+ TestImplements2Implementation::setImplements2StringAttribute(*imp, cppValue); |
} |
static void implements2StringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
@@ -454,7 +469,8 @@ static void implements2StringAttributeAttributeSetterCallback(v8::Local<v8::Stri |
static void implements3StringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(info.Holder()); |
- v8SetReturnValueString(info, TestImplements3::implements3StringAttribute(imp), info.GetIsolate()); |
+ ASSERT(imp); |
+ v8SetReturnValueString(info, TestImplements3::implements3StringAttribute(*imp), info.GetIsolate()); |
} |
static void implements3StringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
@@ -468,7 +484,8 @@ static void implements3StringAttributeAttributeSetter(v8::Local<v8::Value> jsVal |
{ |
TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(info.Holder()); |
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
- TestImplements3::setImplements3StringAttribute(imp, cppValue); |
+ ASSERT(imp); |
+ TestImplements3::setImplements3StringAttribute(*imp, cppValue); |
} |
static void implements3StringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
@@ -507,7 +524,8 @@ static void implements3StaticStringAttributeAttributeSetterCallback(v8::Local<v8 |
static void partialLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(info.Holder()); |
- v8SetReturnValueInt(info, TestPartialInterfacePython::partialLongAttribute(imp)); |
+ ASSERT(imp); |
+ v8SetReturnValueInt(info, TestPartialInterfacePython::partialLongAttribute(*imp)); |
} |
#endif // ENABLE(PARTIAL_CONDITION) |
@@ -526,7 +544,8 @@ static void partialLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, co |
ExceptionState exceptionState(ExceptionState::SetterContext, "partialLongAttribute", "TestInterfacePython", info.Holder(), info.GetIsolate()); |
TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(info.Holder()); |
V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), exceptionState); |
- TestPartialInterfacePython::setPartialLongAttribute(imp, cppValue); |
+ ASSERT(imp); |
+ TestPartialInterfacePython::setPartialLongAttribute(*imp, cppValue); |
} |
#endif // ENABLE(PARTIAL_CONDITION) |
@@ -577,8 +596,9 @@ static void partialStaticLongAttributeAttributeSetterCallback(v8::Local<v8::Stri |
static void partialCallWithExecutionContextLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(info.Holder()); |
+ ASSERT(imp); |
ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()); |
- v8SetReturnValueInt(info, TestPartialInterfacePython::partialCallWithExecutionContextLongAttribute(scriptContext, imp)); |
+ v8SetReturnValueInt(info, TestPartialInterfacePython::partialCallWithExecutionContextLongAttribute(scriptContext, *imp)); |
} |
#endif // ENABLE(PARTIAL_CONDITION) |
@@ -597,8 +617,9 @@ static void partialCallWithExecutionContextLongAttributeAttributeSetter(v8::Loca |
ExceptionState exceptionState(ExceptionState::SetterContext, "partialCallWithExecutionContextLongAttribute", "TestInterfacePython", info.Holder(), info.GetIsolate()); |
TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(info.Holder()); |
V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), exceptionState); |
+ ASSERT(imp); |
ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()); |
- TestPartialInterfacePython::setPartialCallWithExecutionContextLongAttribute(scriptContext, imp, cppValue); |
+ TestPartialInterfacePython::setPartialCallWithExecutionContextLongAttribute(scriptContext, *imp, cppValue); |
} |
#endif // ENABLE(PARTIAL_CONDITION) |
@@ -614,7 +635,8 @@ static void partialCallWithExecutionContextLongAttributeAttributeSetterCallback( |
static void partial2LongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(info.Holder()); |
- v8SetReturnValueInt(info, TestPartialInterfacePythonImplementation::partial2LongAttribute(imp)); |
+ ASSERT(imp); |
+ v8SetReturnValueInt(info, TestPartialInterfacePythonImplementation::partial2LongAttribute(*imp)); |
} |
static void partial2LongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
@@ -629,7 +651,8 @@ static void partial2LongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c |
ExceptionState exceptionState(ExceptionState::SetterContext, "partial2LongAttribute", "TestInterfacePython", info.Holder(), info.GetIsolate()); |
TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(info.Holder()); |
V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), exceptionState); |
- TestPartialInterfacePythonImplementation::setPartial2LongAttribute(imp, cppValue); |
+ ASSERT(imp); |
+ TestPartialInterfacePythonImplementation::setPartial2LongAttribute(*imp, cppValue); |
} |
static void partial2LongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
@@ -736,7 +759,8 @@ static void voidMethodMethodCallbackForMainWorld(const v8::FunctionCallbackInfo< |
static void implementsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(info.Holder()); |
- TestImplements::implementsVoidMethod(imp); |
+ ASSERT(imp); |
+ TestImplements::implementsVoidMethod(*imp); |
} |
static void implementsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
@@ -762,8 +786,9 @@ static void implementsComplexMethodMethod(const v8::FunctionCallbackInfo<v8::Val |
return; |
} |
V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmpty::hasInstance(info[1], info.GetIsolate()) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(info[1])) : 0); |
+ ASSERT(imp); |
ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()); |
- RefPtr<TestInterfaceEmpty> result = TestImplements::implementsComplexMethod(scriptContext, imp, strArg, testInterfaceEmptyArg, exceptionState); |
+ RefPtr<TestInterfaceEmpty> result = TestImplements::implementsComplexMethod(scriptContext, *imp, strArg, testInterfaceEmptyArg, exceptionState); |
if (exceptionState.throwIfNeeded()) |
return; |
v8SetReturnValue(info, result.release()); |
@@ -798,7 +823,8 @@ static void implementsStaticVoidMethodMethodCallback(const v8::FunctionCallbackI |
static void implements2VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(info.Holder()); |
- TestImplements2Implementation::implements2VoidMethod(imp); |
+ ASSERT(imp); |
+ TestImplements2Implementation::implements2VoidMethod(*imp); |
} |
static void implements2VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
@@ -811,7 +837,8 @@ static void implements2VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v |
static void implements3VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(info.Holder()); |
- TestImplements3::implements3VoidMethod(imp); |
+ ASSERT(imp); |
+ TestImplements3::implements3VoidMethod(*imp); |
} |
static void implements3VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
@@ -837,7 +864,8 @@ static void implements3StaticVoidMethodMethodCallback(const v8::FunctionCallback |
static void partialVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(info.Holder()); |
- TestPartialInterfacePython::partialVoidMethod(imp); |
+ ASSERT(imp); |
+ TestPartialInterfacePython::partialVoidMethod(*imp); |
} |
#endif // ENABLE(PARTIAL_CONDITION) |
@@ -877,7 +905,8 @@ static void partialVoidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Va |
} |
TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(info.Holder()); |
V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), exceptionState); |
- TestPartialInterfacePython::partialVoidMethodLongArg(imp, longArg); |
+ ASSERT(imp); |
+ TestPartialInterfacePython::partialVoidMethodLongArg(*imp, longArg); |
} |
#endif // ENABLE(PARTIAL_CONDITION) |
@@ -895,8 +924,9 @@ static void partialCallWithExecutionContextRaisesExceptionVoidMethodMethod(const |
{ |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "partialCallWithExecutionContextRaisesExceptionVoidMethod", "TestInterfacePython", info.Holder(), info.GetIsolate()); |
TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(info.Holder()); |
+ ASSERT(imp); |
ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()); |
- TestPartialInterfacePython::partialCallWithExecutionContextRaisesExceptionVoidMethod(scriptContext, imp, exceptionState); |
+ TestPartialInterfacePython::partialCallWithExecutionContextRaisesExceptionVoidMethod(scriptContext, *imp, exceptionState); |
if (exceptionState.throwIfNeeded()) |
return; |
} |
@@ -914,7 +944,8 @@ static void partialCallWithExecutionContextRaisesExceptionVoidMethodMethodCallba |
static void partial2VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TestInterfacePythonImplementation* imp = V8TestInterfacePython::toNative(info.Holder()); |
- TestPartialInterfacePythonImplementation::partial2VoidMethod(imp); |
+ ASSERT(imp); |
+ TestPartialInterfacePythonImplementation::partial2VoidMethod(*imp); |
} |
static void partial2VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |