Index: Source/bindings/tests/results/V8TestInterface.cpp |
diff --git a/Source/bindings/tests/results/V8TestInterface.cpp b/Source/bindings/tests/results/V8TestInterface.cpp |
index 42f7012230b86c038016549216449e44c4a506ac..ad7a468d50140eac5fa85574cf1f38c2c6baa6c4 100644 |
--- a/Source/bindings/tests/results/V8TestInterface.cpp |
+++ b/Source/bindings/tests/results/V8TestInterface.cpp |
@@ -111,6 +111,7 @@ static void implementsStaticAttrAttributeGetterCallback(v8::Local<v8::String>, c |
static void implementsStaticAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "implementsStaticAttr", "TestInterface", info.Holder(), info.GetIsolate()); |
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
TestImplements::setImplementsStaticAttr(cppValue); |
} |
@@ -150,6 +151,7 @@ static void implementsStr2AttributeGetterCallback(v8::Local<v8::String>, const v |
static void implementsStr2AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "implementsStr2", "TestInterface", info.Holder(), info.GetIsolate()); |
TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
TestImplements::setImplementsStr2(imp, cppValue); |
@@ -191,6 +193,7 @@ static void implementsNodeAttributeGetterCallback(v8::Local<v8::String>, const v |
static void implementsNodeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "implementsNode", "TestInterface", info.Holder(), info.GetIsolate()); |
TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
TestImplements::setImplementsNode(imp, WTF::getPtr(cppValue)); |
@@ -219,6 +222,7 @@ static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String>, |
static void eventHandlerAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "eventHandlerAttribute", "TestInterface", info.Holder(), info.GetIsolate()); |
TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
transferHiddenDependency(info.Holder(), TestImplements::eventHandlerAttribute(imp, isolatedWorldForIsolate(info.GetIsolate())), jsValue, V8TestInterface::eventListenerCacheIndex, info.GetIsolate()); |
TestImplements::setEventHandlerAttribute(imp, V8EventListenerList::getEventListener(jsValue, true, ListenerFindOrCreate), isolatedWorldForIsolate(info.GetIsolate())); |
@@ -246,6 +250,7 @@ static void Node23AttributeGetterCallback(v8::Local<v8::String>, const v8::Prope |
static void Node23AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "Node23", "TestInterface", info.Holder(), info.GetIsolate()); |
TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
TestImplements::setNode23(imp, WTF::getPtr(cppValue)); |
@@ -273,6 +278,7 @@ static void Node24AttributeGetterCallback(v8::Local<v8::String>, const v8::Prope |
static void Node24AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "Node24", "TestInterface", info.Holder(), info.GetIsolate()); |
TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
TestImplements::setNode24(imp, WTF::getPtr(cppValue)); |
@@ -320,6 +326,7 @@ static void supplementalStaticAttrAttributeGetterCallback(v8::Local<v8::String>, |
#if ENABLE(Condition11) || ENABLE(Condition12) |
static void supplementalStaticAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "supplementalStaticAttr", "TestInterface", info.Holder(), info.GetIsolate()); |
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
TestPartialInterface::setSupplementalStaticAttr(cppValue); |
} |
@@ -371,6 +378,7 @@ static void supplementalStr2AttributeGetterCallback(v8::Local<v8::String>, const |
#if ENABLE(Condition11) || ENABLE(Condition12) |
static void supplementalStr2AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "supplementalStr2", "TestInterface", info.Holder(), info.GetIsolate()); |
TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
TestPartialInterface::setSupplementalStr2(imp, cppValue); |
@@ -424,6 +432,7 @@ static void supplementalNodeAttributeGetterCallback(v8::Local<v8::String>, const |
#if ENABLE(Condition11) || ENABLE(Condition12) |
static void supplementalNodeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "supplementalNode", "TestInterface", info.Holder(), info.GetIsolate()); |
TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
TestPartialInterface::setSupplementalNode(imp, WTF::getPtr(cppValue)); |
@@ -459,6 +468,7 @@ static void Node13AttributeGetterCallback(v8::Local<v8::String>, const v8::Prope |
#if ENABLE(Condition11) || ENABLE(Condition12) |
static void Node13AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "Node13", "TestInterface", info.Holder(), info.GetIsolate()); |
TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
TestPartialInterface::setNode13(imp, WTF::getPtr(cppValue)); |
@@ -494,6 +504,7 @@ static void Node14AttributeGetterCallback(v8::Local<v8::String>, const v8::Prope |
#if ENABLE(Condition11) || ENABLE(Condition12) |
static void Node14AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "Node14", "TestInterface", info.Holder(), info.GetIsolate()); |
TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
TestPartialInterface::setNode14(imp, WTF::getPtr(cppValue)); |
@@ -529,6 +540,7 @@ static void Node15AttributeGetterCallback(v8::Local<v8::String>, const v8::Prope |
#if ENABLE(Condition11) || ENABLE(Condition12) |
static void Node15AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::SetterContext, "Node15", "TestInterface", info.Holder(), info.GetIsolate()); |
TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
V8TRYCATCH_VOID(Node*, cppValue, V8Node::hasInstance(jsValue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0); |
TestPartialInterface::setNode15(imp, WTF::getPtr(cppValue)); |
@@ -546,6 +558,7 @@ static void Node15AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V |
static void implementsMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "implementsMethod1", "TestInterface", info.Holder(), info.GetIsolate()); |
TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
TestImplements::implementsMethod1(imp); |
} |
@@ -559,12 +572,12 @@ static void implementsMethod1MethodCallback(const v8::FunctionCallbackInfo<v8::V |
static void implementsMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "implementsMethod2", "TestInterface", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 2)) { |
throwTypeError(ExceptionMessages::failedToExecute("implementsMethod2", "TestInterface", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate()); |
return; |
} |
TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
- ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, info[0]); |
V8TRYCATCH_VOID(TestObj*, objArg, V8TestObject::hasInstance(info[1], info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8::Object>::Cast(info[1])) : 0); |
ExecutionContext* scriptContext = getExecutionContext(); |
@@ -590,6 +603,7 @@ static void implementsMethod3MethodCallback(const v8::FunctionCallbackInfo<v8::V |
static void implementsMethod4Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "implementsMethod4", "TestInterface", info.Holder(), info.GetIsolate()); |
TestImplements::implementsMethod4(); |
} |
@@ -603,6 +617,7 @@ static void implementsMethod4MethodCallback(const v8::FunctionCallbackInfo<v8::V |
#if ENABLE(Condition11) || ENABLE(Condition12) |
static void supplementalMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "supplementalMethod1", "TestInterface", info.Holder(), info.GetIsolate()); |
TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
TestPartialInterface::supplementalMethod1(imp); |
} |
@@ -620,12 +635,12 @@ static void supplementalMethod1MethodCallback(const v8::FunctionCallbackInfo<v8: |
#if ENABLE(Condition11) || ENABLE(Condition12) |
static void supplementalMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "supplementalMethod2", "TestInterface", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 2)) { |
throwTypeError(ExceptionMessages::failedToExecute("supplementalMethod2", "TestInterface", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate()); |
return; |
} |
TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
- ExceptionState exceptionState(info.Holder(), info.GetIsolate()); |
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, info[0]); |
V8TRYCATCH_VOID(TestObj*, objArg, V8TestObject::hasInstance(info[1], info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8::Object>::Cast(info[1])) : 0); |
ExecutionContext* scriptContext = getExecutionContext(); |
@@ -657,6 +672,7 @@ static void supplementalMethod3MethodCallback(const v8::FunctionCallbackInfo<v8: |
#if ENABLE(Condition11) || ENABLE(Condition12) |
static void supplementalMethod4Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "supplementalMethod4", "TestInterface", info.Holder(), info.GetIsolate()); |
TestPartialInterface::supplementalMethod4(); |
} |
#endif // ENABLE(Condition11) || ENABLE(Condition12) |