Index: Source/bindings/tests/results/core/V8TestObject.cpp |
diff --git a/Source/bindings/tests/results/core/V8TestObject.cpp b/Source/bindings/tests/results/core/V8TestObject.cpp |
index 6da03640bad64dcdd9fc68086e853ee2d64335cc..74e71638a7f206b24d878c4bc6c1bf8b16d9070b 100644 |
--- a/Source/bindings/tests/results/core/V8TestObject.cpp |
+++ b/Source/bindings/tests/results/core/V8TestObject.cpp |
@@ -115,7 +115,7 @@ static void stringifierAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return); |
impl->setStringifierAttribute(cppValue); |
} |
@@ -222,7 +222,7 @@ static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return); |
impl->setStringAttribute(cppValue); |
} |
@@ -252,7 +252,7 @@ static void byteStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "byteStringAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, convertAndThrow(cppValue = toByteString(v8Value, exceptionState), exceptionState), return); |
impl->setByteStringAttribute(cppValue); |
} |
@@ -282,7 +282,7 @@ static void usvStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "usvStringAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toUSVString(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, convertAndThrow(cppValue = toUSVString(v8Value, exceptionState), exceptionState), return); |
impl->setUsvStringAttribute(cppValue); |
} |
@@ -312,7 +312,7 @@ static void domTimeStampAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "domTimeStampAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(unsigned long long, cppValue, toUInt64(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(unsigned long long, cppValue, convertAndThrow(cppValue = toUInt64(v8Value, exceptionState), exceptionState), return); |
impl->setDomTimeStampAttribute(cppValue); |
} |
@@ -371,7 +371,7 @@ static void byteAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "byteAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt8(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt8(v8Value, exceptionState), exceptionState), return); |
impl->setByteAttribute(cppValue); |
} |
@@ -401,7 +401,7 @@ static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "doubleAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(double, cppValue, toDouble(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(double, cppValue, convertAndThrow(cppValue = toDouble(v8Value, exceptionState), exceptionState), return); |
impl->setDoubleAttribute(cppValue); |
} |
@@ -431,7 +431,7 @@ static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "floatAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(float, cppValue, toFloat(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(float, cppValue, convertAndThrow(cppValue = toFloat(v8Value, exceptionState), exceptionState), return); |
impl->setFloatAttribute(cppValue); |
} |
@@ -461,7 +461,7 @@ static void longAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "longAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setLongAttribute(cppValue); |
} |
@@ -491,7 +491,7 @@ static void longLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "longLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(long long, cppValue, toInt64(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(long long, cppValue, convertAndThrow(cppValue = toInt64(v8Value, exceptionState), exceptionState), return); |
impl->setLongLongAttribute(cppValue); |
} |
@@ -521,7 +521,7 @@ static void octetAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "octetAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt8(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(unsigned, cppValue, convertAndThrow(cppValue = toUInt8(v8Value, exceptionState), exceptionState), return); |
impl->setOctetAttribute(cppValue); |
} |
@@ -551,7 +551,7 @@ static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt16(v8Value, exceptionState), exceptionState), return); |
impl->setShortAttribute(cppValue); |
} |
@@ -581,7 +581,7 @@ static void unrestrictedDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Va |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDoubleAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(double, cppValue, toDouble(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(double, cppValue, convertAndThrow(cppValue = toDouble(v8Value, exceptionState), exceptionState), return); |
impl->setUnrestrictedDoubleAttribute(cppValue); |
} |
@@ -611,7 +611,7 @@ static void unrestrictedFloatAttributeAttributeSetter(v8::Local<v8::Value> v8Val |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedFloatAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(float, cppValue, toFloat(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(float, cppValue, convertAndThrow(cppValue = toFloat(v8Value, exceptionState), exceptionState), return); |
impl->setUnrestrictedFloatAttribute(cppValue); |
} |
@@ -641,7 +641,7 @@ static void unsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(unsigned, cppValue, convertAndThrow(cppValue = toUInt32(v8Value, exceptionState), exceptionState), return); |
impl->setUnsignedLongAttribute(cppValue); |
} |
@@ -671,7 +671,7 @@ static void unsignedLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(unsigned long long, cppValue, toUInt64(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(unsigned long long, cppValue, convertAndThrow(cppValue = toUInt64(v8Value, exceptionState), exceptionState), return); |
impl->setUnsignedLongLongAttribute(cppValue); |
} |
@@ -701,7 +701,7 @@ static void unsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedShortAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt16(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(unsigned, cppValue, convertAndThrow(cppValue = toUInt16(v8Value, exceptionState), exceptionState), return); |
impl->setUnsignedShortAttribute(cppValue); |
} |
@@ -847,7 +847,7 @@ static void cssAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "cssAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setCSSAttribute(cppValue); |
} |
@@ -877,7 +877,7 @@ static void imeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "imeAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setIMEAttribute(cppValue); |
} |
@@ -907,7 +907,7 @@ static void svgAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "svgAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setSVGAttribute(cppValue); |
} |
@@ -937,7 +937,7 @@ static void xmlAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "xmlAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setXMLAttribute(cppValue); |
} |
@@ -996,7 +996,7 @@ static void serializedScriptValueAttributeAttributeSetter(v8::Local<v8::Value> v |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "serializedScriptValueAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(RefPtr<SerializedScriptValue>, cppValue, SerializedScriptValueFactory::instance().create(v8Value, 0, 0, exceptionState, info.GetIsolate()), exceptionState); |
+ TONATIVE_DECLARE(RefPtr<SerializedScriptValue>, cppValue, convertAndThrow(cppValue = SerializedScriptValueFactory::instance().create(v8Value, 0, 0, exceptionState, info.GetIsolate()), exceptionState), return); |
impl->setSerializedScriptValueAttribute(WTF::getPtr(cppValue)); |
} |
@@ -1458,7 +1458,7 @@ static void stringArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "stringArrayAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(Vector<String>, cppValue, toImplArray<String>(v8Value, 0, info.GetIsolate(), exceptionState), exceptionState); |
+ TONATIVE_DECLARE(Vector<String>, cppValue, convertAndThrow(cppValue = toImplArray<String>(v8Value, 0, info.GetIsolate(), exceptionState), exceptionState), return); |
impl->setStringArrayAttribute(cppValue); |
} |
@@ -1488,7 +1488,7 @@ static void testInterfaceEmptyArrayAttributeAttributeSetter(v8::Local<v8::Value> |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceEmptyArrayAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(Vector<RefPtr<TestInterfaceEmpty>>, cppValue, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(v8Value, 0, info.GetIsolate(), exceptionState)), exceptionState); |
+ TONATIVE_DECLARE(Vector<RefPtr<TestInterfaceEmpty>>, cppValue, convertAndThrow(cppValue = (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(v8Value, 0, info.GetIsolate(), exceptionState)), exceptionState), return); |
impl->setTestInterfaceEmptyArrayAttribute(cppValue); |
} |
@@ -1518,7 +1518,7 @@ static void floatArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "floatArrayAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(Vector<float>, cppValue, toImplArray<float>(v8Value, 0, info.GetIsolate(), exceptionState), exceptionState); |
+ TONATIVE_DECLARE(Vector<float>, cppValue, convertAndThrow(cppValue = toImplArray<float>(v8Value, 0, info.GetIsolate(), exceptionState), exceptionState), return); |
impl->setFloatArrayAttribute(cppValue); |
} |
@@ -1547,7 +1547,7 @@ static void stringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TOSTRING_VOID(V8StringResource<TreatNullAsNullString>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<TreatNullAsNullString>, cppValue, (cppValue = v8Value).prepare(), return); |
impl->setStringOrNullAttribute(cppValue); |
} |
@@ -1583,7 +1583,7 @@ static void longOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "longOrNullAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setLongOrNullAttribute(cppValue); |
} |
@@ -1641,7 +1641,7 @@ static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return); |
String string = cppValue; |
if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || string == "EnumValue3")) |
return; |
@@ -1673,7 +1673,7 @@ static void testEnumOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TOSTRING_VOID(V8StringResource<TreatNullAsNullString>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<TreatNullAsNullString>, cppValue, (cppValue = v8Value).prepare(), return); |
String string = cppValue; |
if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || string == "EnumValue3")) |
return; |
@@ -1701,7 +1701,7 @@ static void staticStringAttributeAttributeGetterCallback(v8::Local<v8::String>, |
static void staticStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
{ |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return); |
TestObject::setStaticStringAttribute(cppValue); |
} |
@@ -1727,7 +1727,7 @@ static void staticLongAttributeAttributeGetterCallback(v8::Local<v8::String>, co |
static void staticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
{ |
ExceptionState exceptionState(ExceptionState::SetterContext, "staticLongAttribute", "TestObject", holder, info.GetIsolate()); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
TestObject::setStaticLongAttribute(cppValue); |
} |
@@ -1788,9 +1788,8 @@ static void doubleOrStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrStringAttribute", "TestObject", holder, info.GetIsolate()); |
- DoubleOrString cppValue; |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrString::toImpl(info.GetIsolate(), v8Value, cppValue, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(DoubleOrString, cppValue, V8DoubleOrString::toImpl(info.GetIsolate(), v8Value, cppValue, exceptionState), return exceptionState.throwException()); |
impl->setDoubleOrStringAttribute(cppValue); |
} |
@@ -1821,9 +1820,8 @@ static void doubleOrStringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8 |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrStringOrNullAttribute", "TestObject", holder, info.GetIsolate()); |
- DoubleOrString cppValue; |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), v8Value, cppValue, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(DoubleOrString, cppValue, V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), v8Value, cppValue, exceptionState), return exceptionState.throwException()); |
impl->setDoubleOrStringOrNullAttribute(cppValue); |
} |
@@ -1854,9 +1852,8 @@ static void doubleOrNullStringAttributeAttributeSetter(v8::Local<v8::Value> v8Va |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrNullStringAttribute", "TestObject", holder, info.GetIsolate()); |
- DoubleOrString cppValue; |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), v8Value, cppValue, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(DoubleOrString, cppValue, V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), v8Value, cppValue, exceptionState), return exceptionState.throwException()); |
impl->setDoubleOrNullStringAttribute(cppValue); |
} |
@@ -1887,9 +1884,8 @@ static void stringOrStringSequenceAttributeAttributeSetter(v8::Local<v8::Value> |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "stringOrStringSequenceAttribute", "TestObject", holder, info.GetIsolate()); |
- StringOrStringSequence cppValue; |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8StringOrStringSequence::toImpl(info.GetIsolate(), v8Value, cppValue, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(StringOrStringSequence, cppValue, V8StringOrStringSequence::toImpl(info.GetIsolate(), v8Value, cppValue, exceptionState), return exceptionState.throwException()); |
impl->setStringOrStringSequenceAttribute(cppValue); |
} |
@@ -1920,9 +1916,8 @@ static void testEnumOrDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Valu |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumOrDoubleAttribute", "TestObject", holder, info.GetIsolate()); |
- TestEnumOrDouble cppValue; |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8TestEnumOrDouble::toImpl(info.GetIsolate(), v8Value, cppValue, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(TestEnumOrDouble, cppValue, V8TestEnumOrDouble::toImpl(info.GetIsolate(), v8Value, cppValue, exceptionState), return exceptionState.throwException()); |
impl->setTestEnumOrDoubleAttribute(cppValue); |
} |
@@ -1953,9 +1948,8 @@ static void unrestrictedDoubleOrStringAttributeAttributeSetter(v8::Local<v8::Val |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDoubleOrStringAttribute", "TestObject", holder, info.GetIsolate()); |
- UnrestrictedDoubleOrString cppValue; |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8UnrestrictedDoubleOrString::toImpl(info.GetIsolate(), v8Value, cppValue, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(UnrestrictedDoubleOrString, cppValue, V8UnrestrictedDoubleOrString::toImpl(info.GetIsolate(), v8Value, cppValue, exceptionState), return exceptionState.throwException()); |
impl->setUnrestrictedDoubleOrStringAttribute(cppValue); |
} |
@@ -1989,7 +1983,7 @@ static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggingAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue); |
} |
@@ -2028,7 +2022,7 @@ static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggingGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setActivityLoggingGetterForAllWorldsLongAttribute(cppValue); |
} |
@@ -2058,7 +2052,7 @@ static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Lo |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggingSetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); |
} |
@@ -2143,7 +2137,7 @@ static void cachedArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "cachedArrayAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(Vector<String>, cppValue, toImplArray<String>(v8Value, 0, info.GetIsolate(), exceptionState), exceptionState); |
+ TONATIVE_DECLARE(Vector<String>, cppValue, convertAndThrow(cppValue = toImplArray<String>(v8Value, 0, info.GetIsolate(), exceptionState), exceptionState), return); |
impl->setCachedArrayAttribute(cppValue); |
V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(info.GetIsolate(), "cachedArrayAttribute")); // Invalidate the cached value. |
} |
@@ -2183,7 +2177,7 @@ static void cachedStringOrNoneAttributeAttributeSetter(v8::Local<v8::Value> v8Va |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TOSTRING_VOID(V8StringResource<TreatNullAsNullString>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<TreatNullAsNullString>, cppValue, (cppValue = v8Value).prepare(), return); |
impl->setCachedStringOrNoneAttribute(cppValue); |
V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(info.GetIsolate(), "cachedStringOrNoneAttribute")); // Invalidate the cached value. |
} |
@@ -2332,7 +2326,7 @@ static void conditionalLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setConditionalLongAttribute(cppValue); |
} |
#endif // ENABLE(CONDITION) |
@@ -2372,7 +2366,7 @@ static void customGetterLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setCustomGetterLongAttribute(cppValue); |
} |
@@ -2463,7 +2457,7 @@ static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setDeprecatedLongAttribute(cppValue); |
} |
@@ -2494,7 +2488,7 @@ static void enforceRangeLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "enforceRangeLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, EnforceRange, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, EnforceRange, exceptionState), exceptionState), return); |
impl->setEnforceRangeLongAttribute(cppValue); |
} |
@@ -2524,7 +2518,7 @@ static void exposeJSAccessorsLongAttributeAttributeSetter(v8::Local<v8::Value> v |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "exposeJSAccessorsLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setExposeJSAccessorsLongAttribute(cppValue); |
} |
@@ -2555,7 +2549,7 @@ static void implementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "implementedAsLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setImplementedAsName(cppValue); |
} |
@@ -2592,7 +2586,7 @@ static void customGetterImplementedAsLongAttributeAttributeSetter(v8::Local<v8:: |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterImplementedAsLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setImplementedAsNameWithCustomGetter(cppValue); |
} |
@@ -2644,7 +2638,7 @@ static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setMeasureAsLongAttribute(cppValue); |
} |
@@ -2675,7 +2669,7 @@ static void notEnumerableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "notEnumerableLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setNotEnumerableLongAttribute(cppValue); |
} |
@@ -2705,7 +2699,7 @@ static void perContextEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setPerContextEnabledLongAttribute(cppValue); |
} |
@@ -2781,7 +2775,7 @@ static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8 |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggingAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); |
} |
@@ -2820,7 +2814,7 @@ static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggingAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); |
} |
@@ -2859,7 +2853,7 @@ static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute(cppValue); |
} |
@@ -2894,7 +2888,7 @@ static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute(cppValue); |
} |
@@ -2928,7 +2922,7 @@ static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8 |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggingGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); |
} |
@@ -2962,7 +2956,7 @@ static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggingGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); |
} |
@@ -2996,7 +2990,7 @@ static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute(cppValue); |
} |
@@ -3026,7 +3020,7 @@ static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute(cppValue); |
} |
@@ -3058,7 +3052,7 @@ static void locationAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Prop |
RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->location()); |
if (!impl) |
return; |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return); |
impl->setHref(cppValue); |
} |
@@ -3091,7 +3085,7 @@ static void locationWithExceptionAttributeSetter(v8::Local<v8::Value> v8Value, c |
RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithException()); |
if (!impl) |
return; |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return); |
impl->setHrefThrows(cppValue, exceptionState); |
exceptionState.throwIfNeeded(); |
} |
@@ -3124,7 +3118,7 @@ static void locationWithCallWithAttributeSetter(v8::Local<v8::Value> v8Value, co |
RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithCallWith()); |
if (!impl) |
return; |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return); |
ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate()); |
impl->setHrefCallWith(executionContext, callingDOMWindow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue); |
} |
@@ -3158,7 +3152,7 @@ static void locationByteStringAttributeSetter(v8::Local<v8::Value> v8Value, cons |
RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationByteString()); |
if (!impl) |
return; |
- TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, convertAndThrow(cppValue = toByteString(v8Value, exceptionState), exceptionState), return); |
impl->setHrefByteString(cppValue); |
} |
@@ -3190,7 +3184,7 @@ static void locationWithPerWorldBindingsAttributeSetter(v8::Local<v8::Value> v8V |
RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWorldBindings()); |
if (!impl) |
return; |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return); |
impl->setHref(cppValue); |
} |
@@ -3222,7 +3216,7 @@ static void locationWithPerWorldBindingsAttributeSetterForMainWorld(v8::Local<v8 |
RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWorldBindings()); |
if (!impl) |
return; |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return); |
impl->setHref(cppValue); |
} |
@@ -3254,7 +3248,7 @@ static void locationTypeCheckingInterfaceAttributeSetter(v8::Local<v8::Value> v8 |
RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationTypeCheckingInterface()); |
if (!impl) |
return; |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return); |
impl->setHref(cppValue); |
} |
@@ -3366,7 +3360,7 @@ static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> v8V |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptionLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setRaisesExceptionLongAttribute(cppValue, exceptionState); |
exceptionState.throwIfNeeded(); |
} |
@@ -3401,7 +3395,7 @@ static void raisesExceptionGetterLongAttributeAttributeSetter(v8::Local<v8::Valu |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptionGetterLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setRaisesExceptionGetterLongAttribute(cppValue); |
} |
@@ -3431,7 +3425,7 @@ static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesExceptionLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState); |
exceptionState.throwIfNeeded(); |
} |
@@ -3635,7 +3629,7 @@ static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
impl->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue); |
} |
@@ -3667,7 +3661,7 @@ static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8 |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsignedShortAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt16(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(unsigned, cppValue, convertAndThrow(cppValue = toUInt16(v8Value, exceptionState), exceptionState), return); |
CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
impl->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue); |
} |
@@ -3699,7 +3693,7 @@ static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8V |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsignedLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(unsigned, cppValue, convertAndThrow(cppValue = toUInt32(v8Value, exceptionState), exceptionState), return); |
CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
impl->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAttr, cppValue); |
} |
@@ -3730,7 +3724,7 @@ static void idAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCa |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return); |
CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
impl->setAttribute(HTMLNames::idAttr, cppValue); |
} |
@@ -3761,7 +3755,7 @@ static void nameAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Property |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return); |
CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
impl->setAttribute(HTMLNames::nameAttr, cppValue); |
} |
@@ -3792,7 +3786,7 @@ static void classAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Propert |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return); |
CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
impl->setAttribute(HTMLNames::classAttr, cppValue); |
} |
@@ -3823,7 +3817,7 @@ static void reflectedIdAttributeSetter(v8::Local<v8::Value> v8Value, const v8::P |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return); |
CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
impl->setAttribute(HTMLNames::idAttr, cppValue); |
} |
@@ -3854,7 +3848,7 @@ static void reflectedNameAttributeSetter(v8::Local<v8::Value> v8Value, const v8: |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return); |
CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
impl->setAttribute(HTMLNames::nameAttr, cppValue); |
} |
@@ -3885,7 +3879,7 @@ static void reflectedClassAttributeSetter(v8::Local<v8::Value> v8Value, const v8 |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return); |
CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
impl->setAttribute(HTMLNames::classAttr, cppValue); |
} |
@@ -3924,7 +3918,7 @@ static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> v8Valu |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return); |
CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
impl->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue); |
} |
@@ -3967,7 +3961,7 @@ static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return); |
CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
impl->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue); |
} |
@@ -4008,7 +4002,7 @@ static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> v8Va |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return); |
CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
impl->setAttribute(HTMLNames::otherAttr, cppValue); |
} |
@@ -4049,7 +4043,7 @@ static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return); |
CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
impl->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppValue); |
} |
@@ -4092,7 +4086,7 @@ static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return); |
CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
impl->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr, cppValue); |
} |
@@ -4196,7 +4190,7 @@ static void locationReplaceableAttributeSetter(v8::Local<v8::Value> v8Value, con |
RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationReplaceable()); |
if (!impl) |
return; |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return); |
impl->setHref(cppValue); |
} |
@@ -4226,7 +4220,7 @@ static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setRuntimeEnabledLongAttribute(cppValue); |
} |
@@ -4256,7 +4250,7 @@ static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetter(v8::Loca |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnabledRuntimeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setPerContextEnabledRuntimeEnabledLongAttribute(cppValue); |
} |
@@ -4291,7 +4285,7 @@ static void conditionalRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8:: |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalRuntimeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setConditionalRuntimeEnabledLongAttribute(cppValue); |
} |
#endif // ENABLE(CONDITION) |
@@ -4323,7 +4317,7 @@ static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return); |
impl->setSetterCallWithActiveWindowAndFirstWindowStringAttribute(callingDOMWindow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue); |
} |
@@ -4352,7 +4346,7 @@ static void setterCallWithExecutionContextStringAttributeAttributeSetter(v8::Loc |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return); |
ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate()); |
impl->setSetterCallWithExecutionContextStringAttribute(executionContext, cppValue); |
} |
@@ -4382,7 +4376,7 @@ static void treatNullAsEmptyStringStringAttributeAttributeSetter(v8::Local<v8::V |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TOSTRING_VOID(V8StringResource<TreatNullAsEmptyString>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<TreatNullAsEmptyString>, cppValue, (cppValue = v8Value).prepare(), return); |
impl->setTreatNullAsEmptyStringStringAttribute(cppValue); |
} |
@@ -4411,7 +4405,7 @@ static void treatNullAsNullStringStringAttributeAttributeSetter(v8::Local<v8::Va |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TOSTRING_VOID(V8StringResource<TreatNullAsNullString>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<TreatNullAsNullString>, cppValue, (cppValue = v8Value).prepare(), return); |
impl->setTreatNullAsNullStringStringAttribute(cppValue); |
} |
@@ -4440,7 +4434,7 @@ static void treatReturnedNullStringAsNullStringAttributeAttributeSetter(v8::Loca |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return); |
impl->setTreatReturnedNullStringAsNullStringAttribute(cppValue); |
} |
@@ -4469,7 +4463,7 @@ static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter(v8: |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return); |
impl->setTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); |
} |
@@ -4508,7 +4502,7 @@ static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return); |
impl->setCachedTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); |
V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(info.GetIsolate(), "cachedTreatReturnedNullStringAsUndefinedStringAttribute")); // Invalidate the cached value. |
} |
@@ -4539,7 +4533,7 @@ static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetter(v8:: |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedNullStringAsNullByteStringAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, convertAndThrow(cppValue = toByteString(v8Value, exceptionState), exceptionState), return); |
impl->setTreatReturnedNullStringAsNullByteStringAttribute(cppValue); |
} |
@@ -4569,7 +4563,7 @@ static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedNullStringAsUndefinedByteStringAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, convertAndThrow(cppValue = toByteString(v8Value, exceptionState), exceptionState), return); |
impl->setTreatReturnedNullStringAsUndefinedByteStringAttribute(cppValue); |
} |
@@ -4599,7 +4593,7 @@ static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetter(v8::L |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedNullStringAsNullUSVStringAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toUSVString(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, convertAndThrow(cppValue = toUSVString(v8Value, exceptionState), exceptionState), return); |
impl->setTreatReturnedNullStringAsNullUSVStringAttribute(cppValue); |
} |
@@ -4629,7 +4623,7 @@ static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetter( |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedNullStringAsUndefinedUSVStringAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toUSVString(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, convertAndThrow(cppValue = toUSVString(v8Value, exceptionState), exceptionState), return); |
impl->setTreatReturnedNullStringAsUndefinedUSVStringAttribute(cppValue); |
} |
@@ -4659,7 +4653,7 @@ static void typeCheckingInterfaceFloatAttributeAttributeSetter(v8::Local<v8::Val |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingInterfaceFloatAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(float, cppValue, toFloat(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(float, cppValue, convertAndThrow(cppValue = toFloat(v8Value, exceptionState), exceptionState), return); |
impl->setTypeCheckingInterfaceFloatAttribute(cppValue); |
} |
@@ -4758,7 +4752,7 @@ static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return); |
CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
impl->setAttribute(HTMLNames::urlstringattributeAttr, cppValue); |
} |
@@ -4789,7 +4783,7 @@ static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return); |
CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
impl->setAttribute(HTMLNames::reflectUrlAttributeAttr, cppValue); |
} |
@@ -4821,7 +4815,7 @@ static void unforgeableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "unforgeableLongAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return); |
impl->setUnforgeableLongAttribute(cppValue); |
} |
@@ -5016,7 +5010,7 @@ static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 |
v8::Local<v8::Object> holder = info.Holder(); |
ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute", "TestObject", holder, info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionState), exceptionState); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt16(v8Value, exceptionState), exceptionState), return); |
V8TestObject::PrivateScript::shortAttributeAttributeSetter(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue); |
} |
@@ -5048,7 +5042,7 @@ static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return); |
V8TestObject::PrivateScript::stringAttributeAttributeSetter(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue); |
} |
@@ -5109,7 +5103,7 @@ static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetter(v8::Loc |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return); |
impl->setAttributeImplementedInCPPForPrivateScriptOnly(cppValue); |
} |
@@ -5141,7 +5135,7 @@ static void enumForPrivateScriptAttributeSetter(v8::Local<v8::Value> v8Value, co |
{ |
v8::Local<v8::Object> holder = info.Holder(); |
TestObject* impl = V8TestObject::toImpl(holder); |
- TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return); |
String string = cppValue; |
if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || string == "EnumValue3")) |
return; |
@@ -5455,7 +5449,7 @@ static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
V8StringResource<> stringArg; |
{ |
- TOSTRING_VOID_INTERNAL(stringArg, info[0]); |
+ TONATIVE_CONVERT((stringArg = info[0]).prepare(), return); |
} |
impl->voidMethodStringArg(stringArg); |
} |
@@ -5478,7 +5472,7 @@ static void voidMethodByteStringArgMethod(const v8::FunctionCallbackInfo<v8::Val |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
V8StringResource<> stringArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(stringArg, toByteString(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(stringArg = toByteString(info[0], exceptionState), exceptionState), return); |
} |
impl->voidMethodByteStringArg(stringArg); |
} |
@@ -5501,7 +5495,7 @@ static void voidMethodUSVStringArgMethod(const v8::FunctionCallbackInfo<v8::Valu |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
V8StringResource<> usvStringArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(usvStringArg, toUSVString(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(usvStringArg = toUSVString(info[0], exceptionState), exceptionState), return); |
} |
impl->voidMethodUSVStringArg(usvStringArg); |
} |
@@ -5524,7 +5518,7 @@ static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
unsigned long long domTimeStampArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(domTimeStampArg, toUInt64(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(domTimeStampArg = toUInt64(info[0], exceptionState), exceptionState), return); |
} |
impl->voidMethodDOMTimeStampArg(domTimeStampArg); |
} |
@@ -5568,7 +5562,7 @@ static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
int byteArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(byteArg, toInt8(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(byteArg = toInt8(info[0], exceptionState), exceptionState), return); |
} |
impl->voidMethodByteArg(byteArg); |
} |
@@ -5591,7 +5585,7 @@ static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>& |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
double doubleArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(doubleArg, toDouble(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(doubleArg = toDouble(info[0], exceptionState), exceptionState), return); |
} |
impl->voidMethodDoubleArg(doubleArg); |
} |
@@ -5614,7 +5608,7 @@ static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>& |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
float floatArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(floatArg, toFloat(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(floatArg = toFloat(info[0], exceptionState), exceptionState), return); |
} |
impl->voidMethodFloatArg(floatArg); |
} |
@@ -5637,7 +5631,7 @@ static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
int longArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionState), exceptionState), return); |
} |
impl->voidMethodLongArg(longArg); |
} |
@@ -5660,7 +5654,7 @@ static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
long long longLongArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longLongArg, toInt64(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(longLongArg = toInt64(info[0], exceptionState), exceptionState), return); |
} |
impl->voidMethodLongLongArg(longLongArg); |
} |
@@ -5683,7 +5677,7 @@ static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>& |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
unsigned octetArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(octetArg, toUInt8(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(octetArg = toUInt8(info[0], exceptionState), exceptionState), return); |
} |
impl->voidMethodOctetArg(octetArg); |
} |
@@ -5706,7 +5700,7 @@ static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>& |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
int shortArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(shortArg, toInt16(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(shortArg = toInt16(info[0], exceptionState), exceptionState), return); |
} |
impl->voidMethodShortArg(shortArg); |
} |
@@ -5729,7 +5723,7 @@ static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
unsigned unsignedLongArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedLongArg, toUInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(unsignedLongArg = toUInt32(info[0], exceptionState), exceptionState), return); |
} |
impl->voidMethodUnsignedLongArg(unsignedLongArg); |
} |
@@ -5752,7 +5746,7 @@ static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
unsigned long long unsignedLongLongArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedLongLongArg, toUInt64(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(unsignedLongLongArg = toUInt64(info[0], exceptionState), exceptionState), return); |
} |
impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg); |
} |
@@ -5775,7 +5769,7 @@ static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8:: |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
unsigned unsignedShortArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedShortArg, toUInt16(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(unsignedShortArg = toUInt16(info[0], exceptionState), exceptionState), return); |
} |
impl->voidMethodUnsignedShortArg(unsignedShortArg); |
} |
@@ -5833,7 +5827,7 @@ static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallb |
int longArg; |
TestInterfaceEmpty* testInterfaceEmptyArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionState), exceptionState), return); |
testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIsolate(), info[1]); |
} |
impl->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg); |
@@ -6373,7 +6367,7 @@ static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Valu |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
Vector<int> arrayLongArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arrayLongArg, toImplArray<int>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(arrayLongArg = toImplArray<int>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState), return); |
} |
impl->voidMethodArrayLongArg(arrayLongArg); |
} |
@@ -6396,7 +6390,7 @@ static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
Vector<String> arrayStringArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arrayStringArg, toImplArray<String>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(arrayStringArg = toImplArray<String>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState), return); |
} |
impl->voidMethodArrayStringArg(arrayStringArg); |
} |
@@ -6419,7 +6413,7 @@ static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
Vector<RefPtr<TestInterfaceEmpty>> arrayTestInterfaceEmptyArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arrayTestInterfaceEmptyArg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate(), exceptionState)), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(arrayTestInterfaceEmptyArg = (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate(), exceptionState)), exceptionState), return); |
} |
impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg); |
} |
@@ -6481,7 +6475,7 @@ static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::V |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
Vector<int> longSequenceArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longSequenceArg, toImplArray<int>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(longSequenceArg = toImplArray<int>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState), return); |
} |
impl->voidMethodSequenceLongArg(longSequenceArg); |
} |
@@ -6504,7 +6498,7 @@ static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8: |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
Vector<String> stringSequenceArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(stringSequenceArg, toImplArray<String>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(stringSequenceArg = toImplArray<String>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState), return); |
} |
impl->voidMethodSequenceStringArg(stringSequenceArg); |
} |
@@ -6527,7 +6521,7 @@ static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
Vector<RefPtr<TestInterfaceEmpty>> testInterfaceEmptySequenceArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceEmptySequenceArg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate(), exceptionState)), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(testInterfaceEmptySequenceArg = (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate(), exceptionState)), exceptionState), return); |
} |
impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg); |
} |
@@ -6550,7 +6544,7 @@ static void voidMethodSequenceSequenceDOMStringArgMethod(const v8::FunctionCallb |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
Vector<Vector<String>> stringSequenceSequenceArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(stringSequenceSequenceArg, toImplArray<Vector<String>>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(stringSequenceSequenceArg = toImplArray<Vector<String>>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState), return); |
} |
impl->voidMethodSequenceSequenceDOMStringArg(stringSequenceSequenceArg); |
} |
@@ -6693,7 +6687,7 @@ static void voidMethodDoubleOrDOMStringArgMethod(const v8::FunctionCallbackInfo< |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
DoubleOrString arg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrString::toImpl(info.GetIsolate(), info[0], arg, exceptionState), exceptionState); |
+ TONATIVE_CONVERT(V8DoubleOrString::toImpl(info.GetIsolate(), info[0], arg, exceptionState), return exceptionState.throwException()); |
} |
impl->voidMethodDoubleOrDOMStringArg(arg); |
} |
@@ -6716,7 +6710,7 @@ static void voidMethodDoubleOrDOMStringOrNullArgMethod(const v8::FunctionCallbac |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
DoubleOrString arg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), info[0], arg, exceptionState), exceptionState); |
+ TONATIVE_CONVERT(V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), info[0], arg, exceptionState), return exceptionState.throwException()); |
} |
impl->voidMethodDoubleOrDOMStringOrNullArg(arg); |
} |
@@ -6739,7 +6733,7 @@ static void voidMethodDoubleOrNullOrDOMStringArgMethod(const v8::FunctionCallbac |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
DoubleOrString arg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), info[0], arg, exceptionState), exceptionState); |
+ TONATIVE_CONVERT(V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), info[0], arg, exceptionState), return exceptionState.throwException()); |
} |
impl->voidMethodDoubleOrNullOrDOMStringArg(arg); |
} |
@@ -6762,7 +6756,7 @@ static void voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethod(const v8: |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
StringOrArrayBufferOrArrayBufferView arg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8StringOrArrayBufferOrArrayBufferView::toImpl(info.GetIsolate(), info[0], arg, exceptionState), exceptionState); |
+ TONATIVE_CONVERT(V8StringOrArrayBufferOrArrayBufferView::toImpl(info.GetIsolate(), info[0], arg, exceptionState), return exceptionState.throwException()); |
} |
impl->voidMethodDOMStringOrArrayBufferOrArrayBufferViewArg(arg); |
} |
@@ -6785,7 +6779,7 @@ static void voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethod(const v8 |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
ArrayBufferOrArrayBufferViewOrDictionary arg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8ArrayBufferOrArrayBufferViewOrDictionary::toImpl(info.GetIsolate(), info[0], arg, exceptionState), exceptionState); |
+ TONATIVE_CONVERT(V8ArrayBufferOrArrayBufferViewOrDictionary::toImpl(info.GetIsolate(), info[0], arg, exceptionState), return exceptionState.throwException()); |
} |
impl->voidMethodArrayBufferOrArrayBufferViewOrDictionaryArg(arg); |
} |
@@ -6915,7 +6909,7 @@ static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
V8StringResource<> testEnumTypeArg; |
{ |
- TOSTRING_VOID_INTERNAL(testEnumTypeArg, info[0]); |
+ TONATIVE_CONVERT((testEnumTypeArg = info[0]).prepare(), return); |
String string = testEnumTypeArg; |
if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || string == "EnumValue3")) { |
V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::failedToExecute("voidMethodTestEnumArg", "TestObject", "parameter 1 ('" + string + "') is not a valid enum value.")); |
@@ -6984,7 +6978,7 @@ static void passPermissiveDictionaryMethodMethod(const v8::FunctionCallbackInfo< |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
TestDictionary arg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8TestDictionary::toImpl(info.GetIsolate(), info[0], arg, exceptionState), exceptionState); |
+ TONATIVE_CONVERT(V8TestDictionary::toImpl(info.GetIsolate(), info[0], arg, exceptionState), return exceptionState.throwException()); |
} |
impl->passPermissiveDictionaryMethod(arg); |
} |
@@ -7009,12 +7003,10 @@ static void nodeFilterMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
-static void promiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
+static void promiseMethodMethodPromise(const v8::FunctionCallbackInfo<v8::Value>& info, ExceptionState& exceptionState) |
{ |
- ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseMethod", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 3)) { |
setMinimumArityTypeError(exceptionState, 3, info.Length()); |
- v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIsolate())).v8Value()); |
return; |
} |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
@@ -7023,19 +7015,26 @@ static void promiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
V8StringResource<> arg3; |
Vector<String> variadic; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg1, toInt32(info[0], exceptionState), exceptionState, info, ScriptState::current(info.GetIsolate())); |
+ TONATIVE_CONVERT(convertAndCheck(arg1 = toInt32(info[0], exceptionState), exceptionState), return); |
if (!isUndefinedOrNull(info[1]) && !info[1]->IsObject()) { |
exceptionState.throwTypeError("parameter 2 ('arg2') is not an object."); |
- v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIsolate())).v8Value()); |
return; |
} |
- TONATIVE_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg2, Dictionary(info[1], info.GetIsolate(), exceptionState), exceptionState, info, ScriptState::current(info.GetIsolate())); |
- TOSTRING_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg3, info[2], exceptionState, info, ScriptState::current(info.GetIsolate())); |
- TONATIVE_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(variadic, toImplArguments<String>(info, 3, exceptionState), exceptionState, info, ScriptState::current(info.GetIsolate())); |
+ TONATIVE_CONVERT(convertAndCheck(arg2 = Dictionary(info[1], info.GetIsolate(), exceptionState), exceptionState), return); |
+ TONATIVE_CONVERT((arg3 = info[2]).prepare(exceptionState), return); |
+ TONATIVE_CONVERT(convertAndCheck(variadic = toImplArguments<String>(info, 3, exceptionState), exceptionState), return); |
} |
v8SetReturnValue(info, impl->promiseMethod(arg1, arg2, arg3, variadic).v8Value()); |
} |
+static void promiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
+{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseMethod", "TestObject", info.Holder(), info.GetIsolate()); |
+ promiseMethodMethodPromise(info, exceptionState); |
+ if (exceptionState.hadException()) |
+ v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIsolate())).v8Value()); |
+} |
+ |
static void promiseMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
@@ -7043,12 +7042,10 @@ static void promiseMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
-static void promiseMethodWithoutExceptionStateMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
+static void promiseMethodWithoutExceptionStateMethodPromise(const v8::FunctionCallbackInfo<v8::Value>& info, ExceptionState& exceptionState) |
{ |
- ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseMethodWithoutExceptionState", "TestObject", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 1)) { |
setMinimumArityTypeError(exceptionState, 1, info.Length()); |
- v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIsolate())).v8Value()); |
return; |
} |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
@@ -7056,14 +7053,21 @@ static void promiseMethodWithoutExceptionStateMethod(const v8::FunctionCallbackI |
{ |
if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { |
exceptionState.throwTypeError("parameter 1 ('arg1') is not an object."); |
- v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIsolate())).v8Value()); |
return; |
} |
- TONATIVE_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg1, Dictionary(info[0], info.GetIsolate(), exceptionState), exceptionState, info, ScriptState::current(info.GetIsolate())); |
+ TONATIVE_CONVERT(convertAndCheck(arg1 = Dictionary(info[0], info.GetIsolate(), exceptionState), exceptionState), return); |
} |
v8SetReturnValue(info, impl->promiseMethodWithoutExceptionState(arg1).v8Value()); |
} |
+static void promiseMethodWithoutExceptionStateMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
+{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseMethodWithoutExceptionState", "TestObject", info.Holder(), info.GetIsolate()); |
+ promiseMethodWithoutExceptionStateMethodPromise(info, exceptionState); |
+ if (exceptionState.hadException()) |
+ v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIsolate())).v8Value()); |
+} |
+ |
static void promiseMethodWithoutExceptionStateMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
@@ -7113,7 +7117,7 @@ static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Val |
exceptionState.throwIfNeeded(); |
return; |
} |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(dictionaryArg, Dictionary(info[0], info.GetIsolate(), exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(dictionaryArg = Dictionary(info[0], info.GetIsolate(), exceptionState), exceptionState), return); |
} |
impl->voidMethodDictionaryArg(dictionaryArg); |
} |
@@ -7182,7 +7186,7 @@ static void voidMethodSerializedScriptValueArgMethod(const v8::FunctionCallbackI |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
RefPtr<SerializedScriptValue> serializedScriptValueArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(serializedScriptValueArg, SerializedScriptValueFactory::instance().create(info[0], 0, 0, exceptionState, info.GetIsolate()), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(serializedScriptValueArg = SerializedScriptValueFactory::instance().create(info[0], 0, 0, exceptionState, info.GetIsolate()), exceptionState), return); |
} |
impl->voidMethodSerializedScriptValueArg(serializedScriptValueArg); |
} |
@@ -7226,7 +7230,7 @@ static void voidMethodDictionarySequenceArgMethod(const v8::FunctionCallbackInfo |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
Vector<Dictionary> dictionarySequenceArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(dictionarySequenceArg, toImplArray<Dictionary>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(dictionarySequenceArg = toImplArray<Dictionary>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState), return); |
} |
impl->voidMethodDictionarySequenceArg(dictionarySequenceArg); |
} |
@@ -7250,8 +7254,8 @@ static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8:: |
V8StringResource<> stringArg; |
int longArg; |
{ |
- TOSTRING_VOID_INTERNAL(stringArg, info[0]); |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptionState), exceptionState); |
+ TONATIVE_CONVERT((stringArg = info[0]).prepare(), return); |
+ TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[1], exceptionState), exceptionState), return); |
} |
impl->voidMethodStringArgLongArg(stringArg, longArg); |
} |
@@ -7272,7 +7276,7 @@ static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8: |
impl->voidMethodOptionalStringArg(); |
return; |
} |
- TOSTRING_VOID_INTERNAL(optionalStringArg, info[0]); |
+ TONATIVE_CONVERT((optionalStringArg = info[0]).prepare(), return); |
} |
impl->voidMethodOptionalStringArg(optionalStringArg); |
} |
@@ -7315,7 +7319,7 @@ static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V |
impl->voidMethodOptionalLongArg(); |
return; |
} |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(optionalLongArg = toInt32(info[0], exceptionState), exceptionState), return); |
} |
impl->voidMethodOptionalLongArg(optionalLongArg); |
} |
@@ -7337,7 +7341,7 @@ static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8: |
v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(), info.GetIsolate()); |
return; |
} |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(optionalLongArg = toInt32(info[0], exceptionState), exceptionState), return); |
} |
v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(optionalLongArg), info.GetIsolate()); |
} |
@@ -7359,7 +7363,7 @@ static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall |
v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg()); |
return; |
} |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(optionalLongArg = toInt32(info[0], exceptionState), exceptionState), return); |
} |
v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg(optionalLongArg)); |
} |
@@ -7381,7 +7385,7 @@ static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V |
v8SetReturnValueInt(info, impl->longMethodOptionalLongArg()); |
return; |
} |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(optionalLongArg = toInt32(info[0], exceptionState), exceptionState), return); |
} |
v8SetReturnValueInt(info, impl->longMethodOptionalLongArg(optionalLongArg)); |
} |
@@ -7405,12 +7409,12 @@ static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf |
int longArg; |
int optionalLongArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionState), exceptionState), return); |
if (UNLIKELY(info.Length() <= 1)) { |
impl->voidMethodLongArgOptionalLongArg(longArg); |
return; |
} |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[1], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(optionalLongArg = toInt32(info[1], exceptionState), exceptionState), return); |
} |
impl->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg); |
} |
@@ -7435,17 +7439,17 @@ static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func |
int optionalLongArg1; |
int optionalLongArg2; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionState), exceptionState), return); |
if (UNLIKELY(info.Length() <= 1)) { |
impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg); |
return; |
} |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg1, toInt32(info[1], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(optionalLongArg1 = toInt32(info[1], exceptionState), exceptionState), return); |
if (UNLIKELY(info.Length() <= 2)) { |
impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongArg1); |
return; |
} |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg2, toInt32(info[2], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(optionalLongArg2 = toInt32(info[2], exceptionState), exceptionState), return); |
} |
impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongArg1, optionalLongArg2); |
} |
@@ -7469,7 +7473,7 @@ static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct |
int longArg; |
TestInterfaceEmpty* optionalTestInterfaceEmpty; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionState), exceptionState), return); |
if (UNLIKELY(info.Length() <= 1)) { |
impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg); |
return; |
@@ -7503,7 +7507,7 @@ static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::Funct |
impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEmpty); |
return; |
} |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[1], exceptionState), exceptionState), return); |
} |
impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEmpty, longArg); |
} |
@@ -7526,7 +7530,7 @@ static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo |
exceptionState.throwIfNeeded(); |
return; |
} |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalDictionaryArg, Dictionary(info[0], info.GetIsolate(), exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(optionalDictionaryArg = Dictionary(info[0], info.GetIsolate(), exceptionState), exceptionState), return); |
} |
impl->voidMethodOptionalDictionaryArg(optionalDictionaryArg); |
} |
@@ -7545,7 +7549,7 @@ static void voidMethodDefaultByteStringArgMethod(const v8::FunctionCallbackInfo< |
V8StringResource<> defaultByteStringArg; |
{ |
if (!info[0]->IsUndefined()) { |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultByteStringArg, toByteString(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(defaultByteStringArg = toByteString(info[0], exceptionState), exceptionState), return); |
} else { |
defaultByteStringArg = String("foo"); |
} |
@@ -7566,7 +7570,7 @@ static void voidMethodDefaultStringArgMethod(const v8::FunctionCallbackInfo<v8:: |
V8StringResource<> defaultStringArg; |
{ |
if (!info[0]->IsUndefined()) { |
- TOSTRING_VOID_INTERNAL(defaultStringArg, info[0]); |
+ TONATIVE_CONVERT((defaultStringArg = info[0]).prepare(), return); |
} else { |
defaultStringArg = String("foo"); |
} |
@@ -7590,17 +7594,17 @@ static void voidMethodDefaultIntegerArgsMethod(const v8::FunctionCallbackInfo<v8 |
unsigned defaultUnsignedArg; |
{ |
if (!info[0]->IsUndefined()) { |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultLongArg, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(defaultLongArg = toInt32(info[0], exceptionState), exceptionState), return); |
} else { |
defaultLongArg = 10; |
} |
if (!info[1]->IsUndefined()) { |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultLongLongArg, toInt64(info[1], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(defaultLongLongArg = toInt64(info[1], exceptionState), exceptionState), return); |
} else { |
defaultLongLongArg = -10; |
} |
if (!info[2]->IsUndefined()) { |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultUnsignedArg, toUInt32(info[2], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(defaultUnsignedArg = toUInt32(info[2], exceptionState), exceptionState), return); |
} else { |
defaultUnsignedArg = 4294967295u; |
} |
@@ -7622,7 +7626,7 @@ static void voidMethodDefaultDoubleArgMethod(const v8::FunctionCallbackInfo<v8:: |
double defaultDoubleArg; |
{ |
if (!info[0]->IsUndefined()) { |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultDoubleArg, toDouble(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(defaultDoubleArg = toDouble(info[0], exceptionState), exceptionState), return); |
} else { |
defaultDoubleArg = 0.5; |
} |
@@ -7686,7 +7690,7 @@ static void voidMethodDefaultNullableByteStringArgMethod(const v8::FunctionCallb |
V8StringResource<TreatNullAsNullString> defaultStringArg; |
{ |
if (!info[0]->IsUndefined()) { |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultStringArg, toByteString(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(defaultStringArg = toByteString(info[0], exceptionState), exceptionState), return); |
} else { |
defaultStringArg = nullptr; |
} |
@@ -7707,7 +7711,7 @@ static void voidMethodDefaultNullableStringArgMethod(const v8::FunctionCallbackI |
V8StringResource<TreatNullAsNullString> defaultStringArg; |
{ |
if (!info[0]->IsUndefined()) { |
- TOSTRING_VOID_INTERNAL(defaultStringArg, info[0]); |
+ TONATIVE_CONVERT((defaultStringArg = info[0]).prepare(), return); |
} else { |
defaultStringArg = nullptr; |
} |
@@ -7752,17 +7756,17 @@ static void voidMethodDefaultDoubleOrStringArgsMethod(const v8::FunctionCallback |
DoubleOrString defaultNullArg; |
{ |
if (!info[0]->IsUndefined()) { |
- TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrString::toImpl(info.GetIsolate(), info[0], defaultLongArg, exceptionState), exceptionState); |
+ TONATIVE_CONVERT(V8DoubleOrString::toImpl(info.GetIsolate(), info[0], defaultLongArg, exceptionState), return exceptionState.throwException()); |
} else { |
defaultLongArg.setDouble(10); |
} |
if (!info[1]->IsUndefined()) { |
- TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), info[1], defaultStringArg, exceptionState), exceptionState); |
+ TONATIVE_CONVERT(V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), info[1], defaultStringArg, exceptionState), return exceptionState.throwException()); |
} else { |
defaultStringArg.setString(String("foo")); |
} |
if (!info[2]->IsUndefined()) { |
- TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), info[2], defaultNullArg, exceptionState), exceptionState); |
+ TONATIVE_CONVERT(V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), info[2], defaultNullArg, exceptionState), return exceptionState.throwException()); |
} else { |
/* null default value */; |
} |
@@ -7784,7 +7788,7 @@ static void voidMethodDefaultStringSequenceArgMethod(const v8::FunctionCallbackI |
Vector<String> defaultStringSequenceArg; |
{ |
if (!info[0]->IsUndefined()) { |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultStringSequenceArg, toImplArray<String>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(defaultStringSequenceArg = toImplArray<String>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState), return); |
} else { |
/* Nothing to do */; |
} |
@@ -7805,7 +7809,7 @@ static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8: |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
Vector<String> variadicStringArgs; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(variadicStringArgs, toImplArguments<String>(info, 0, exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(variadicStringArgs = toImplArguments<String>(info, 0, exceptionState), exceptionState), return); |
} |
impl->voidMethodVariadicStringArg(variadicStringArgs); |
} |
@@ -7829,8 +7833,8 @@ static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac |
V8StringResource<> stringArg; |
Vector<String> variadicStringArgs; |
{ |
- TOSTRING_VOID_INTERNAL(stringArg, info[0]); |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(variadicStringArgs, toImplArguments<String>(info, 1, exceptionState), exceptionState); |
+ TONATIVE_CONVERT((stringArg = info[0]).prepare(), return); |
+ TONATIVE_CONVERT(convertAndThrow(variadicStringArgs = toImplArguments<String>(info, 1, exceptionState), exceptionState), return); |
} |
impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); |
} |
@@ -7955,7 +7959,7 @@ static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>& |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
int longArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionState), exceptionState), return); |
} |
impl->overloadedMethodA(longArg); |
} |
@@ -7967,8 +7971,8 @@ static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>& |
int longArg1; |
int longArg2; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg1, toInt32(info[0], exceptionState), exceptionState); |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg2, toInt32(info[1], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(longArg1 = toInt32(info[0], exceptionState), exceptionState), return); |
+ TONATIVE_CONVERT(convertAndThrow(longArg2 = toInt32(info[1], exceptionState), exceptionState), return); |
} |
impl->overloadedMethodA(longArg1, longArg2); |
} |
@@ -7999,6 +8003,7 @@ static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i |
} |
exceptionState.throwTypeError("No function was found that matched the signature provided."); |
exceptionState.throwIfNeeded(); |
+ return; |
} |
static void overloadedMethodAMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
@@ -8014,7 +8019,7 @@ static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>& |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
int longArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionState), exceptionState), return); |
} |
impl->overloadedMethodB(longArg); |
} |
@@ -8026,12 +8031,12 @@ static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>& |
V8StringResource<> stringArg; |
int longArg; |
{ |
- TOSTRING_VOID_INTERNAL(stringArg, info[0]); |
+ TONATIVE_CONVERT((stringArg = info[0]).prepare(), return); |
if (UNLIKELY(info.Length() <= 1)) { |
impl->overloadedMethodB(stringArg); |
return; |
} |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[1], exceptionState), exceptionState), return); |
} |
impl->overloadedMethodB(stringArg, longArg); |
} |
@@ -8070,6 +8075,7 @@ static void overloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& i |
} |
exceptionState.throwTypeError("No function was found that matched the signature provided."); |
exceptionState.throwIfNeeded(); |
+ return; |
} |
static void overloadedMethodBMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
@@ -8085,7 +8091,7 @@ static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>& |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
int longArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionState), exceptionState), return); |
} |
impl->overloadedMethodC(longArg); |
} |
@@ -8124,6 +8130,7 @@ static void overloadedMethodCMethod(const v8::FunctionCallbackInfo<v8::Value>& i |
} |
exceptionState.throwTypeError("No function was found that matched the signature provided."); |
exceptionState.throwIfNeeded(); |
+ return; |
} |
static void overloadedMethodCMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
@@ -8139,7 +8146,7 @@ static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>& |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
int longArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionState), exceptionState), return); |
} |
impl->overloadedMethodD(longArg); |
} |
@@ -8150,7 +8157,7 @@ static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>& |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
Vector<int> longArrayArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArrayArg, toImplArray<int>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(longArrayArg = toImplArray<int>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState), return); |
} |
impl->overloadedMethodD(longArrayArg); |
} |
@@ -8179,6 +8186,7 @@ static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i |
} |
exceptionState.throwTypeError("No function was found that matched the signature provided."); |
exceptionState.throwIfNeeded(); |
+ return; |
} |
static void overloadedMethodDMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
@@ -8194,7 +8202,7 @@ static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>& |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
int longArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionState), exceptionState), return); |
} |
impl->overloadedMethodE(longArg); |
} |
@@ -8237,6 +8245,7 @@ static void overloadedMethodEMethod(const v8::FunctionCallbackInfo<v8::Value>& i |
} |
exceptionState.throwTypeError("No function was found that matched the signature provided."); |
exceptionState.throwIfNeeded(); |
+ return; |
} |
static void overloadedMethodEMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
@@ -8255,7 +8264,7 @@ static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>& |
impl->overloadedMethodF(); |
return; |
} |
- TOSTRING_VOID_INTERNAL(stringArg, info[0]); |
+ TONATIVE_CONVERT((stringArg = info[0]).prepare(), return); |
} |
impl->overloadedMethodF(stringArg); |
} |
@@ -8266,7 +8275,7 @@ static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>& |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
double doubleArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(doubleArg, toDouble(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(doubleArg = toDouble(info[0], exceptionState), exceptionState), return); |
} |
impl->overloadedMethodF(doubleArg); |
} |
@@ -8304,6 +8313,7 @@ static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i |
} |
exceptionState.throwTypeError("No function was found that matched the signature provided."); |
exceptionState.throwIfNeeded(); |
+ return; |
} |
static void overloadedMethodFMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
@@ -8319,7 +8329,7 @@ static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>& |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
int longArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionState), exceptionState), return); |
} |
impl->overloadedMethodG(longArg); |
} |
@@ -8371,6 +8381,7 @@ static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i |
} |
exceptionState.throwTypeError("No function was found that matched the signature provided."); |
exceptionState.throwIfNeeded(); |
+ return; |
} |
static void overloadedMethodGMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
@@ -8424,6 +8435,7 @@ static void overloadedMethodHMethod(const v8::FunctionCallbackInfo<v8::Value>& i |
} |
exceptionState.throwTypeError("No function was found that matched the signature provided."); |
exceptionState.throwIfNeeded(); |
+ return; |
} |
static void overloadedMethodHMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
@@ -8438,7 +8450,7 @@ static void overloadedMethodI1Method(const v8::FunctionCallbackInfo<v8::Value>& |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
V8StringResource<> stringArg; |
{ |
- TOSTRING_VOID_INTERNAL(stringArg, info[0]); |
+ TONATIVE_CONVERT((stringArg = info[0]).prepare(), return); |
} |
impl->overloadedMethodI(stringArg); |
} |
@@ -8449,7 +8461,7 @@ static void overloadedMethodI2Method(const v8::FunctionCallbackInfo<v8::Value>& |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
double doubleArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(doubleArg, toDouble(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(doubleArg = toDouble(info[0], exceptionState), exceptionState), return); |
} |
impl->overloadedMethodI(doubleArg); |
} |
@@ -8482,6 +8494,7 @@ static void overloadedMethodIMethod(const v8::FunctionCallbackInfo<v8::Value>& i |
} |
exceptionState.throwTypeError("No function was found that matched the signature provided."); |
exceptionState.throwIfNeeded(); |
+ return; |
} |
static void overloadedMethodIMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
@@ -8496,7 +8509,7 @@ static void overloadedMethodJ1Method(const v8::FunctionCallbackInfo<v8::Value>& |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
V8StringResource<> stringArg; |
{ |
- TOSTRING_VOID_INTERNAL(stringArg, info[0]); |
+ TONATIVE_CONVERT((stringArg = info[0]).prepare(), return); |
} |
impl->overloadedMethodJ(stringArg); |
} |
@@ -8512,7 +8525,7 @@ static void overloadedMethodJ2Method(const v8::FunctionCallbackInfo<v8::Value>& |
exceptionState.throwIfNeeded(); |
return; |
} |
- TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8TestDictionary::toImpl(info.GetIsolate(), info[0], testDictionaryArg, exceptionState), exceptionState); |
+ TONATIVE_CONVERT(V8TestDictionary::toImpl(info.GetIsolate(), info[0], testDictionaryArg, exceptionState), return exceptionState.throwException()); |
} |
impl->overloadedMethodJ(testDictionaryArg); |
} |
@@ -8541,6 +8554,7 @@ static void overloadedMethodJMethod(const v8::FunctionCallbackInfo<v8::Value>& i |
} |
exceptionState.throwTypeError("No function was found that matched the signature provided."); |
exceptionState.throwIfNeeded(); |
+ return; |
} |
static void overloadedMethodJMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
@@ -8569,7 +8583,7 @@ static void overloadedMethodK2Method(const v8::FunctionCallbackInfo<v8::Value>& |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
V8StringResource<> stringArg; |
{ |
- TOSTRING_VOID_INTERNAL(stringArg, info[0]); |
+ TONATIVE_CONVERT((stringArg = info[0]).prepare(), return); |
} |
impl->overloadedMethodK(stringArg); |
} |
@@ -8598,6 +8612,7 @@ static void overloadedMethodKMethod(const v8::FunctionCallbackInfo<v8::Value>& i |
} |
exceptionState.throwTypeError("No function was found that matched the signature provided."); |
exceptionState.throwIfNeeded(); |
+ return; |
} |
static void overloadedMethodKMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
@@ -8614,8 +8629,8 @@ static void overloadedMethodL1Method(const v8::FunctionCallbackInfo<v8::Value>& |
int longArg; |
Vector<ScriptValue> restArgs; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState); |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(restArgs, toImplArguments<ScriptValue>(info, 1, exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionState), exceptionState), return); |
+ TONATIVE_CONVERT(convertAndThrow(restArgs = toImplArguments<ScriptValue>(info, 1, exceptionState), exceptionState), return); |
} |
impl->overloadedMethodL(longArg, restArgs); |
} |
@@ -8627,8 +8642,8 @@ static void overloadedMethodL2Method(const v8::FunctionCallbackInfo<v8::Value>& |
V8StringResource<> stringArg; |
Vector<ScriptValue> restArgs; |
{ |
- TOSTRING_VOID_INTERNAL(stringArg, info[0]); |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(restArgs, toImplArguments<ScriptValue>(info, 1, exceptionState), exceptionState); |
+ TONATIVE_CONVERT((stringArg = info[0]).prepare(), return); |
+ TONATIVE_CONVERT(convertAndThrow(restArgs = toImplArguments<ScriptValue>(info, 1, exceptionState), exceptionState), return); |
} |
impl->overloadedMethodL(stringArg, restArgs); |
} |
@@ -8675,6 +8690,7 @@ static void overloadedMethodLMethod(const v8::FunctionCallbackInfo<v8::Value>& i |
} |
exceptionState.throwTypeError("No function was found that matched the signature provided."); |
exceptionState.throwIfNeeded(); |
+ return; |
} |
static void overloadedMethodLMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
@@ -8690,32 +8706,46 @@ static void promiseOverloadMethod1Method(const v8::FunctionCallbackInfo<v8::Valu |
v8SetReturnValue(info, impl->promiseOverloadMethod().v8Value()); |
} |
-static void promiseOverloadMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
+static void promiseOverloadMethod2MethodPromise(const v8::FunctionCallbackInfo<v8::Value>& info, ExceptionState& exceptionState) |
{ |
- ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOverloadMethod", "TestObject", info.Holder(), info.GetIsolate()); |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
DOMWindow* arg1; |
double arg2; |
{ |
arg1 = toDOMWindow(info.GetIsolate(), info[0]); |
- TONATIVE_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg2, toDouble(info[1], exceptionState), exceptionState, info, ScriptState::current(info.GetIsolate())); |
+ TONATIVE_CONVERT(convertAndCheck(arg2 = toDouble(info[1], exceptionState), exceptionState), return); |
} |
v8SetReturnValue(info, impl->promiseOverloadMethod(arg1, arg2).v8Value()); |
} |
-static void promiseOverloadMethod3Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
+static void promiseOverloadMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOverloadMethod", "TestObject", info.Holder(), info.GetIsolate()); |
+ promiseOverloadMethod2MethodPromise(info, exceptionState); |
+ if (exceptionState.hadException()) |
+ v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIsolate())).v8Value()); |
+} |
+ |
+static void promiseOverloadMethod3MethodPromise(const v8::FunctionCallbackInfo<v8::Value>& info, ExceptionState& exceptionState) |
+{ |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
Document* arg1; |
double arg2; |
{ |
arg1 = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]); |
- TONATIVE_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg2, toDouble(info[1], exceptionState), exceptionState, info, ScriptState::current(info.GetIsolate())); |
+ TONATIVE_CONVERT(convertAndCheck(arg2 = toDouble(info[1], exceptionState), exceptionState), return); |
} |
v8SetReturnValue(info, impl->promiseOverloadMethod(arg1, arg2).v8Value()); |
} |
+static void promiseOverloadMethod3Method(const v8::FunctionCallbackInfo<v8::Value>& info) |
+{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOverloadMethod", "TestObject", info.Holder(), info.GetIsolate()); |
+ promiseOverloadMethod3MethodPromise(info, exceptionState); |
+ if (exceptionState.hadException()) |
+ v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIsolate())).v8Value()); |
+} |
+ |
static void promiseOverloadMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOverloadMethod", "TestObject", info.Holder(), info.GetIsolate()); |
@@ -8746,6 +8776,7 @@ static void promiseOverloadMethodMethod(const v8::FunctionCallbackInfo<v8::Value |
} |
exceptionState.throwTypeError("No function was found that matched the signature provided."); |
v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIsolate())).v8Value()); |
+ return; |
} |
static void promiseOverloadMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
@@ -8773,7 +8804,7 @@ static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
int longArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionState), exceptionState), return); |
} |
impl->overloadedPerWorldBindingsMethod(longArg); |
} |
@@ -8799,6 +8830,7 @@ static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf |
} |
exceptionState.throwTypeError("No function was found that matched the signature provided."); |
exceptionState.throwIfNeeded(); |
+ return; |
} |
static void overloadedPerWorldBindingsMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
@@ -8814,7 +8846,7 @@ static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
int longArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionState), exceptionState), return); |
} |
impl->overloadedPerWorldBindingsMethod(longArg); |
} |
@@ -8840,6 +8872,7 @@ static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio |
} |
exceptionState.throwTypeError("No function was found that matched the signature provided."); |
exceptionState.throwIfNeeded(); |
+ return; |
} |
static void overloadedPerWorldBindingsMethodMethodCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
@@ -8854,7 +8887,7 @@ static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedStaticMethod", "TestObject", info.Holder(), info.GetIsolate()); |
int longArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionState), exceptionState), return); |
} |
TestObject::overloadedStaticMethod(longArg); |
} |
@@ -8865,8 +8898,8 @@ static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val |
int longArg1; |
int longArg2; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg1, toInt32(info[0], exceptionState), exceptionState); |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg2, toInt32(info[1], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(longArg1 = toInt32(info[0], exceptionState), exceptionState), return); |
+ TONATIVE_CONVERT(convertAndThrow(longArg2 = toInt32(info[1], exceptionState), exceptionState), return); |
} |
TestObject::overloadedStaticMethod(longArg1, longArg2); |
} |
@@ -8897,6 +8930,7 @@ static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu |
} |
exceptionState.throwTypeError("No function was found that matched the signature provided."); |
exceptionState.throwIfNeeded(); |
+ return; |
} |
static void overloadedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
@@ -8917,7 +8951,7 @@ static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
unsigned clampUnsignedShortArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(clampUnsignedShortArg, toUInt16(info[0], Clamp, exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(clampUnsignedShortArg = toUInt16(info[0], Clamp, exceptionState), exceptionState), return); |
} |
impl->voidMethodClampUnsignedShortArg(clampUnsignedShortArg); |
} |
@@ -8940,7 +8974,7 @@ static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo< |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
unsigned clampUnsignedLongArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(clampUnsignedLongArg, toUInt32(info[0], Clamp, exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(clampUnsignedLongArg = toUInt32(info[0], Clamp, exceptionState), exceptionState), return); |
} |
impl->voidMethodClampUnsignedLongArg(clampUnsignedLongArg); |
} |
@@ -8975,7 +9009,7 @@ static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
int defaultUndefinedLongArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultUndefinedLongArg, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(defaultUndefinedLongArg = toInt32(info[0], exceptionState), exceptionState), return); |
} |
impl->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg); |
} |
@@ -8992,7 +9026,7 @@ static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
V8StringResource<> defaultUndefinedStringArg; |
{ |
- TOSTRING_VOID_INTERNAL(defaultUndefinedStringArg, info[0]); |
+ TONATIVE_CONVERT((defaultUndefinedStringArg = info[0]).prepare(), return); |
} |
impl->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg); |
} |
@@ -9015,7 +9049,7 @@ static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
int enforceRangeLongArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(enforceRangeLongArg, toInt32(info[0], EnforceRange, exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(enforceRangeLongArg = toInt32(info[0], EnforceRange, exceptionState), exceptionState), return); |
} |
impl->voidMethodEnforceRangeLongArg(enforceRangeLongArg); |
} |
@@ -9036,7 +9070,7 @@ static void voidMethodTreatNullAsEmptyStringStringArgMethod(const v8::FunctionCa |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
V8StringResource<TreatNullAsEmptyString> treatNullAsEmptyStringStringArg; |
{ |
- TOSTRING_VOID_INTERNAL(treatNullAsEmptyStringStringArg, info[0]); |
+ TONATIVE_CONVERT((treatNullAsEmptyStringStringArg = info[0]).prepare(), return); |
} |
impl->voidMethodTreatNullAsEmptyStringStringArg(treatNullAsEmptyStringStringArg); |
} |
@@ -9057,7 +9091,7 @@ static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
V8StringResource<TreatNullAsNullString> treatNullAsNullStringStringArg; |
{ |
- TOSTRING_VOID_INTERNAL(treatNullAsNullStringStringArg, info[0]); |
+ TONATIVE_CONVERT((treatNullAsNullStringStringArg = info[0]).prepare(), return); |
} |
impl->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringArg); |
} |
@@ -9078,7 +9112,7 @@ static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
V8StringResource<TreatNullAndUndefinedAsNullString> treatNullAsNullStringStringArg; |
{ |
- TOSTRING_VOID_INTERNAL(treatNullAsNullStringStringArg, info[0]); |
+ TONATIVE_CONVERT((treatNullAsNullStringStringArg = info[0]).prepare(), return); |
} |
impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(treatNullAsNullStringStringArg); |
} |
@@ -9381,7 +9415,7 @@ static void DeprecateAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8 |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
int arg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(arg = toInt32(info[0], exceptionState), exceptionState), return); |
} |
impl->DeprecateAsOverloadedMethod(arg); |
} |
@@ -9409,6 +9443,7 @@ static void DeprecateAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8: |
} |
exceptionState.throwTypeError("No function was found that matched the signature provided."); |
exceptionState.throwIfNeeded(); |
+ return; |
} |
static void DeprecateAsOverloadedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
@@ -9430,7 +9465,7 @@ static void DeprecateAsSameValueOverloadedMethod2Method(const v8::FunctionCallba |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
int arg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(arg = toInt32(info[0], exceptionState), exceptionState), return); |
} |
impl->DeprecateAsSameValueOverloadedMethod(arg); |
} |
@@ -9457,6 +9492,7 @@ static void DeprecateAsSameValueOverloadedMethodMethod(const v8::FunctionCallbac |
} |
exceptionState.throwTypeError("No function was found that matched the signature provided."); |
exceptionState.throwIfNeeded(); |
+ return; |
} |
static void DeprecateAsSameValueOverloadedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
@@ -9478,7 +9514,7 @@ static void measureAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8:: |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
int arg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(arg = toInt32(info[0], exceptionState), exceptionState), return); |
} |
impl->measureAsOverloadedMethod(arg); |
} |
@@ -9506,6 +9542,7 @@ static void measureAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::V |
} |
exceptionState.throwTypeError("No function was found that matched the signature provided."); |
exceptionState.throwIfNeeded(); |
+ return; |
} |
static void measureAsOverloadedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
@@ -9527,7 +9564,7 @@ static void measureAsSameValueOverloadedMethod2Method(const v8::FunctionCallback |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
int arg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(arg = toInt32(info[0], exceptionState), exceptionState), return); |
} |
impl->measureAsSameValueOverloadedMethod(arg); |
} |
@@ -9554,6 +9591,7 @@ static void measureAsSameValueOverloadedMethodMethod(const v8::FunctionCallbackI |
} |
exceptionState.throwTypeError("No function was found that matched the signature provided."); |
exceptionState.throwIfNeeded(); |
+ return; |
} |
static void measureAsSameValueOverloadedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
@@ -9575,7 +9613,7 @@ static void deprecateAsMeasureAsSameValueOverloadedMethod2Method(const v8::Funct |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
int arg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(arg = toInt32(info[0], exceptionState), exceptionState), return); |
} |
impl->deprecateAsMeasureAsSameValueOverloadedMethod(arg); |
} |
@@ -9604,6 +9642,7 @@ static void deprecateAsMeasureAsSameValueOverloadedMethodMethod(const v8::Functi |
} |
exceptionState.throwTypeError("No function was found that matched the signature provided."); |
exceptionState.throwIfNeeded(); |
+ return; |
} |
static void deprecateAsMeasureAsSameValueOverloadedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
@@ -9625,7 +9664,7 @@ static void deprecateAsSameValueMeasureAsOverloadedMethod2Method(const v8::Funct |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
int arg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(arg = toInt32(info[0], exceptionState), exceptionState), return); |
} |
impl->deprecateAsSameValueMeasureAsOverloadedMethod(arg); |
} |
@@ -9654,6 +9693,7 @@ static void deprecateAsSameValueMeasureAsOverloadedMethodMethod(const v8::Functi |
} |
exceptionState.throwTypeError("No function was found that matched the signature provided."); |
exceptionState.throwIfNeeded(); |
+ return; |
} |
static void deprecateAsSameValueMeasureAsOverloadedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
@@ -9675,7 +9715,7 @@ static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(const |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
int arg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(arg = toInt32(info[0], exceptionState), exceptionState), return); |
} |
impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(arg); |
} |
@@ -9703,6 +9743,7 @@ static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethod(const v |
} |
exceptionState.throwTypeError("No function was found that matched the signature provided."); |
exceptionState.throwIfNeeded(); |
+ return; |
} |
static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
@@ -9930,7 +9971,7 @@ static void raisesExceptionVoidMethodOptionalLongArgMethod(const v8::FunctionCal |
} |
return; |
} |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(optionalLongArg = toInt32(info[0], exceptionState), exceptionState), return); |
} |
impl->raisesExceptionVoidMethodOptionalLongArg(optionalLongArg, exceptionState); |
if (exceptionState.hadException()) { |
@@ -10039,7 +10080,7 @@ static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethod(const |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
int longArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionState), exceptionState), return); |
} |
ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate()); |
impl->callWithExecutionContextRaisesExceptionVoidMethodLongArg(executionContext, longArg, exceptionState); |
@@ -10100,7 +10141,7 @@ static void runtimeEnabledOverloadedVoidMethod1Method(const v8::FunctionCallback |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
V8StringResource<> stringArg; |
{ |
- TOSTRING_VOID_INTERNAL(stringArg, info[0]); |
+ TONATIVE_CONVERT((stringArg = info[0]).prepare(), return); |
} |
impl->runtimeEnabledOverloadedVoidMethod(stringArg); |
} |
@@ -10111,7 +10152,7 @@ static void runtimeEnabledOverloadedVoidMethod2Method(const v8::FunctionCallback |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
int longArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionState), exceptionState), return); |
} |
impl->runtimeEnabledOverloadedVoidMethod(longArg); |
} |
@@ -10144,6 +10185,7 @@ static void runtimeEnabledOverloadedVoidMethodMethod(const v8::FunctionCallbackI |
} |
exceptionState.throwTypeError("No function was found that matched the signature provided."); |
exceptionState.throwIfNeeded(); |
+ return; |
} |
static void runtimeEnabledOverloadedVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
@@ -10158,7 +10200,7 @@ static void partiallyRuntimeEnabledOverloadedVoidMethod1Method(const v8::Functio |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
V8StringResource<> stringArg; |
{ |
- TOSTRING_VOID_INTERNAL(stringArg, info[0]); |
+ TONATIVE_CONVERT((stringArg = info[0]).prepare(), return); |
} |
impl->partiallyRuntimeEnabledOverloadedVoidMethod(stringArg); |
} |
@@ -10180,8 +10222,8 @@ static void partiallyRuntimeEnabledOverloadedVoidMethod3Method(const v8::Functio |
int longArg; |
V8StringResource<> stringArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptionState), exceptionState); |
- TOSTRING_VOID_INTERNAL(stringArg, info[1]); |
+ TONATIVE_CONVERT(convertAndThrow(longArg = toInt32(info[0], exceptionState), exceptionState), return); |
+ TONATIVE_CONVERT((stringArg = info[1]).prepare(), return); |
} |
impl->partiallyRuntimeEnabledOverloadedVoidMethod(longArg, stringArg); |
} |
@@ -10231,6 +10273,7 @@ static void partiallyRuntimeEnabledOverloadedVoidMethodMethod(const v8::Function |
} |
exceptionState.throwTypeError("No function was found that matched the signature provided."); |
exceptionState.throwIfNeeded(); |
+ return; |
} |
static void partiallyRuntimeEnabledOverloadedVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
@@ -10477,8 +10520,8 @@ static void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethod(const v8:: |
float floatArg; |
double doubleArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(floatArg, toRestrictedFloat(info[0], exceptionState), exceptionState); |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(doubleArg, toRestrictedDouble(info[1], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(floatArg = toRestrictedFloat(info[0], exceptionState), exceptionState), return); |
+ TONATIVE_CONVERT(convertAndThrow(doubleArg = toRestrictedDouble(info[1], exceptionState), exceptionState), return); |
} |
impl->typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg(floatArg, doubleArg); |
} |
@@ -10514,7 +10557,7 @@ static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethod(const v8::F |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
HeapVector<Member<TestInterfaceGarbageCollected>> testInterfaceGarbageCollectedSequenceArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceGarbageCollectedSequenceArg, (toMemberNativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageCollected>(info[0], 1, info.GetIsolate(), exceptionState)), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(testInterfaceGarbageCollectedSequenceArg = (toMemberNativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageCollected>(info[0], 1, info.GetIsolate(), exceptionState)), exceptionState), return); |
} |
impl->voidMethodTestInterfaceGarbageCollectedSequenceArg(testInterfaceGarbageCollectedSequenceArg); |
} |
@@ -10537,7 +10580,7 @@ static void voidMethodTestInterfaceGarbageCollectedArrayArgMethod(const v8::Func |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
HeapVector<Member<TestInterfaceGarbageCollected>> testInterfaceGarbageCollectedArrayArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceGarbageCollectedArrayArg, (toMemberNativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageCollected>(info[0], 1, info.GetIsolate(), exceptionState)), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(testInterfaceGarbageCollectedArrayArg = (toMemberNativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageCollected>(info[0], 1, info.GetIsolate(), exceptionState)), exceptionState), return); |
} |
impl->voidMethodTestInterfaceGarbageCollectedArrayArg(testInterfaceGarbageCollectedArrayArg); |
} |
@@ -10560,7 +10603,7 @@ static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethod(const |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected>> testInterfaceWillBeGarbageCollectedSequenceArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceWillBeGarbageCollectedSequenceArg, (toRefPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageCollected>(info[0], 1, info.GetIsolate(), exceptionState)), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(testInterfaceWillBeGarbageCollectedSequenceArg = (toRefPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageCollected>(info[0], 1, info.GetIsolate(), exceptionState)), exceptionState), return); |
} |
impl->voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(testInterfaceWillBeGarbageCollectedSequenceArg); |
} |
@@ -10583,7 +10626,7 @@ static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethod(const v8 |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected>> testInterfaceWillBeGarbageCollectedArrayArg; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceWillBeGarbageCollectedArrayArg, (toRefPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageCollected>(info[0], 1, info.GetIsolate(), exceptionState)), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(testInterfaceWillBeGarbageCollectedArrayArg = (toRefPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageCollected>(info[0], 1, info.GetIsolate(), exceptionState)), exceptionState), return); |
} |
impl->voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(testInterfaceWillBeGarbageCollectedArrayArg); |
} |
@@ -10635,7 +10678,7 @@ static void shortMethodWithShortArgumentImplementedInPrivateScriptMethod(const v |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
int value; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value, toInt16(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(value = toInt16(info[0], exceptionState), exceptionState), return); |
} |
int result = 0; |
if (!V8TestObject::PrivateScript::shortMethodWithShortArgumentImplementedInPrivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, value, &result)) |
@@ -10659,7 +10702,7 @@ static void stringMethodWithStringArgumentImplementedInPrivateScriptMethod(const |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
V8StringResource<> value; |
{ |
- TOSTRING_VOID_INTERNAL(value, info[0]); |
+ TONATIVE_CONVERT((value = info[0]).prepare(), return); |
} |
String result; |
if (!V8TestObject::PrivateScript::stringMethodWithStringArgumentImplementedInPrivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, value, &result)) |
@@ -10715,9 +10758,9 @@ static void nodeMethodWithVariousArgumentsImplementedInPrivateScriptMethod(const |
{ |
document = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]); |
node = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[1]); |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value1, toInt16(info[2], exceptionState), exceptionState); |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value2, toDouble(info[3], exceptionState), exceptionState); |
- TOSTRING_VOID_INTERNAL(string, info[4]); |
+ TONATIVE_CONVERT(convertAndThrow(value1 = toInt16(info[2], exceptionState), exceptionState), return); |
+ TONATIVE_CONVERT(convertAndThrow(value2 = toDouble(info[3], exceptionState), exceptionState), return); |
+ TONATIVE_CONVERT((string = info[4]).prepare(), return); |
} |
RefPtrWillBeRawPtr<Node> result = nullptr; |
if (!V8TestObject::PrivateScript::nodeMethodWithVariousArgumentsImplementedInPrivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, document, node, value1, value2, string, &result)) |
@@ -10744,8 +10787,8 @@ static void methodImplementedInCPPForPrivateScriptOnlyMethod(const v8::FunctionC |
int value1; |
int value2; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value1, toInt16(info[0], exceptionState), exceptionState); |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value2, toInt16(info[1], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(value1 = toInt16(info[0], exceptionState), exceptionState), return); |
+ TONATIVE_CONVERT(convertAndThrow(value2 = toInt16(info[1], exceptionState), exceptionState), return); |
} |
v8SetReturnValueInt(info, impl->methodImplementedInCPPForPrivateScriptOnly(value1, value2)); |
} |
@@ -10831,7 +10874,7 @@ static void forEachMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
if (!info[0]->IsFunction()) { |
exceptionState.throwTypeError("The callback provided as parameter 1 is not a function."); |
- exceptionState.throwIfNeeded(); |
+ exceptionState.throwIfNeeded(); |
return; |
} |
callback = ScriptValue(ScriptState::current(info.GetIsolate()), info[0]); |
@@ -10863,7 +10906,7 @@ static void hasMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
int key; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(key, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(key = toInt32(info[0], exceptionState), exceptionState), return); |
} |
ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
bool result = impl->hasForBinding(scriptState, key, exceptionState); |
@@ -10892,7 +10935,7 @@ static void getMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
int key; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(key, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(key = toInt32(info[0], exceptionState), exceptionState), return); |
} |
ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
ScriptValue result = impl->getForBinding(scriptState, key, exceptionState); |
@@ -10940,7 +10983,7 @@ static void deleteMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
TestObject* impl = V8TestObject::toImpl(info.Holder()); |
int key; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(key, toInt32(info[0], exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(key = toInt32(info[0], exceptionState), exceptionState), return); |
} |
ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
bool result = impl->deleteForBinding(scriptState, key, exceptionState); |
@@ -10970,8 +11013,8 @@ static void setMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
int key; |
StringOrDouble value; |
{ |
- TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(key, toInt32(info[0], exceptionState), exceptionState); |
- TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8StringOrDouble::toImpl(info.GetIsolate(), info[1], value, exceptionState), exceptionState); |
+ TONATIVE_CONVERT(convertAndThrow(key = toInt32(info[0], exceptionState), exceptionState), return); |
+ TONATIVE_CONVERT(V8StringOrDouble::toImpl(info.GetIsolate(), info[1], value, exceptionState), return exceptionState.throwException()); |
} |
ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
RefPtr<TestObject> result = impl->setForBinding(scriptState, key, value, exceptionState); |
@@ -11669,7 +11712,7 @@ bool V8TestObject::PrivateScript::shortMethodImplementedInPrivateScriptMethod(Lo |
v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState, scriptStateInUserScript, "TestObject", "shortMethodImplementedInPrivateScript", holder, 0, argv); |
if (v8Value.IsEmpty()) |
return false; |
- TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionState), exceptionState, false); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt16(v8Value, exceptionState), exceptionState), return false); |
*result = cppValue; |
RELEASE_ASSERT(!exceptionState.hadException()); |
return true; |
@@ -11698,7 +11741,7 @@ bool V8TestObject::PrivateScript::shortMethodWithShortArgumentImplementedInPriva |
v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState, scriptStateInUserScript, "TestObject", "shortMethodWithShortArgumentImplementedInPrivateScript", holder, 1, argv); |
if (v8Value.IsEmpty()) |
return false; |
- TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionState), exceptionState, false); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt16(v8Value, exceptionState), exceptionState), return false); |
*result = cppValue; |
RELEASE_ASSERT(!exceptionState.hadException()); |
return true; |
@@ -11727,7 +11770,7 @@ bool V8TestObject::PrivateScript::stringMethodWithStringArgumentImplementedInPri |
v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState, scriptStateInUserScript, "TestObject", "stringMethodWithStringArgumentImplementedInPrivateScript", holder, 1, argv); |
if (v8Value.IsEmpty()) |
return false; |
- TOSTRING_DEFAULT(V8StringResource<>, cppValue, v8Value, false); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return false); |
*result = cppValue; |
RELEASE_ASSERT(!exceptionState.hadException()); |
return true; |
@@ -11819,7 +11862,7 @@ bool V8TestObject::PrivateScript::methodForPrivateScriptOnlyMethod(LocalFrame* f |
v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState, scriptStateInUserScript, "TestObject", "methodForPrivateScriptOnly", holder, 2, argv); |
if (v8Value.IsEmpty()) |
return false; |
- TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionState), exceptionState, false); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt16(v8Value, exceptionState), exceptionState), return false); |
*result = cppValue; |
RELEASE_ASSERT(!exceptionState.hadException()); |
return true; |
@@ -11846,7 +11889,7 @@ bool V8TestObject::PrivateScript::readonlyShortAttributeAttributeGetter(LocalFra |
v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(scriptState, scriptStateInUserScript, "TestObject", "readonlyShortAttribute", holder); |
if (v8Value.IsEmpty()) |
return false; |
- TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionState), exceptionState, false); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt16(v8Value, exceptionState), exceptionState), return false); |
RELEASE_ASSERT(!exceptionState.hadException()); |
*result = cppValue; |
return true; |
@@ -11873,7 +11916,7 @@ bool V8TestObject::PrivateScript::shortAttributeAttributeGetter(LocalFrame* fram |
v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(scriptState, scriptStateInUserScript, "TestObject", "shortAttribute", holder); |
if (v8Value.IsEmpty()) |
return false; |
- TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionState), exceptionState, false); |
+ TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt16(v8Value, exceptionState), exceptionState), return false); |
RELEASE_ASSERT(!exceptionState.hadException()); |
*result = cppValue; |
return true; |
@@ -11921,7 +11964,7 @@ bool V8TestObject::PrivateScript::stringAttributeAttributeGetter(LocalFrame* fra |
v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(scriptState, scriptStateInUserScript, "TestObject", "stringAttribute", holder); |
if (v8Value.IsEmpty()) |
return false; |
- TOSTRING_DEFAULT(V8StringResource<>, cppValue, v8Value, false); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return false); |
RELEASE_ASSERT(!exceptionState.hadException()); |
*result = cppValue; |
return true; |
@@ -12017,7 +12060,7 @@ bool V8TestObject::PrivateScript::attributeForPrivateScriptOnlyAttributeGetter(L |
v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(scriptState, scriptStateInUserScript, "TestObject", "attributeForPrivateScriptOnly", holder); |
if (v8Value.IsEmpty()) |
return false; |
- TOSTRING_DEFAULT(V8StringResource<>, cppValue, v8Value, false); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return false); |
RELEASE_ASSERT(!exceptionState.hadException()); |
*result = cppValue; |
return true; |
@@ -12065,7 +12108,7 @@ bool V8TestObject::PrivateScript::enumForPrivateScriptAttributeGetter(LocalFrame |
v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(scriptState, scriptStateInUserScript, "TestObject", "enumForPrivateScript", holder); |
if (v8Value.IsEmpty()) |
return false; |
- TOSTRING_DEFAULT(V8StringResource<>, cppValue, v8Value, false); |
+ TONATIVE_DECLARE(V8StringResource<>, cppValue, (cppValue = v8Value).prepare(), return false); |
RELEASE_ASSERT(!exceptionState.hadException()); |
*result = cppValue; |
return true; |