Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: Source/bindings/tests/results/core/V8TestObject.cpp

Issue 555133003: Use ExceptionState to throw exceptions when converting arrays (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix MessagePortArray conversion Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "bindings/core/v8/BindingSecurity.h" 10 #include "bindings/core/v8/BindingSecurity.h"
(...skipping 1420 matching lines...) Expand 10 before | Expand all | Expand 10 after
1431 static void stringArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 1431 static void stringArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
1432 { 1432 {
1433 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1433 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1434 TestObjectV8Internal::stringArrayAttributeAttributeGetter(info); 1434 TestObjectV8Internal::stringArrayAttributeAttributeGetter(info);
1435 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1435 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1436 } 1436 }
1437 1437
1438 static void stringArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info) 1438 static void stringArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info)
1439 { 1439 {
1440 v8::Handle<v8::Object> holder = info.Holder(); 1440 v8::Handle<v8::Object> holder = info.Holder();
1441 ExceptionState exceptionState(ExceptionState::SetterContext, "stringArrayAtt ribute", "TestObject", holder, info.GetIsolate());
1441 TestObject* impl = V8TestObject::toImpl(holder); 1442 TestObject* impl = V8TestObject::toImpl(holder);
1442 TONATIVE_VOID(Vector<String>, cppValue, toImplArray<String>(v8Value, 0, info .GetIsolate())); 1443 TONATIVE_VOID_EXCEPTIONSTATE(Vector<String>, cppValue, toImplArray<String>(v 8Value, 0, info.GetIsolate(), exceptionState), exceptionState);
1443 impl->setStringArrayAttribute(cppValue); 1444 impl->setStringArrayAttribute(cppValue);
1444 } 1445 }
1445 1446
1446 static void stringArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1447 static void stringArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1447 { 1448 {
1448 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1449 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1449 TestObjectV8Internal::stringArrayAttributeAttributeSetter(v8Value, info); 1450 TestObjectV8Internal::stringArrayAttributeAttributeSetter(v8Value, info);
1450 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1451 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1451 } 1452 }
1452 1453
1453 static void testInterfaceEmptyArrayAttributeAttributeGetter(const v8::PropertyCa llbackInfo<v8::Value>& info) 1454 static void testInterfaceEmptyArrayAttributeAttributeGetter(const v8::PropertyCa llbackInfo<v8::Value>& info)
1454 { 1455 {
1455 v8::Handle<v8::Object> holder = info.Holder(); 1456 v8::Handle<v8::Object> holder = info.Holder();
1456 TestObject* impl = V8TestObject::toImpl(holder); 1457 TestObject* impl = V8TestObject::toImpl(holder);
1457 v8SetReturnValue(info, v8Array(impl->testInterfaceEmptyArrayAttribute(), inf o.Holder(), info.GetIsolate())); 1458 v8SetReturnValue(info, v8Array(impl->testInterfaceEmptyArrayAttribute(), inf o.Holder(), info.GetIsolate()));
1458 } 1459 }
1459 1460
1460 static void testInterfaceEmptyArrayAttributeAttributeGetterCallback(v8::Local<v8 ::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1461 static void testInterfaceEmptyArrayAttributeAttributeGetterCallback(v8::Local<v8 ::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1461 { 1462 {
1462 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1463 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1463 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeGetter(info); 1464 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeGetter(info);
1464 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1465 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1465 } 1466 }
1466 1467
1467 static void testInterfaceEmptyArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1468 static void testInterfaceEmptyArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1468 { 1469 {
1469 v8::Handle<v8::Object> holder = info.Holder(); 1470 v8::Handle<v8::Object> holder = info.Holder();
1471 ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceE mptyArrayAttribute", "TestObject", holder, info.GetIsolate());
1470 TestObject* impl = V8TestObject::toImpl(holder); 1472 TestObject* impl = V8TestObject::toImpl(holder);
1471 TONATIVE_VOID(Vector<RefPtr<TestInterfaceEmpty> >, cppValue, (toRefPtrNative Array<TestInterfaceEmpty, V8TestInterfaceEmpty>(v8Value, 0, info.GetIsolate()))) ; 1473 TONATIVE_VOID_EXCEPTIONSTATE(Vector<RefPtr<TestInterfaceEmpty> >, cppValue, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(v8Value, 0, info. GetIsolate(), exceptionState)), exceptionState);
1472 impl->setTestInterfaceEmptyArrayAttribute(cppValue); 1474 impl->setTestInterfaceEmptyArrayAttribute(cppValue);
1473 } 1475 }
1474 1476
1475 static void testInterfaceEmptyArrayAttributeAttributeSetterCallback(v8::Local<v8 ::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo) 1477 static void testInterfaceEmptyArrayAttributeAttributeSetterCallback(v8::Local<v8 ::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo)
1476 { 1478 {
1477 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1479 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1478 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeSetter(v8Valu e, info); 1480 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeSetter(v8Valu e, info);
1479 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1481 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1480 } 1482 }
1481 1483
1482 static void floatArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 1484 static void floatArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
1483 { 1485 {
1484 v8::Handle<v8::Object> holder = info.Holder(); 1486 v8::Handle<v8::Object> holder = info.Holder();
1485 TestObject* impl = V8TestObject::toImpl(holder); 1487 TestObject* impl = V8TestObject::toImpl(holder);
1486 v8SetReturnValue(info, v8Array(impl->floatArrayAttribute(), info.Holder(), i nfo.GetIsolate())); 1488 v8SetReturnValue(info, v8Array(impl->floatArrayAttribute(), info.Holder(), i nfo.GetIsolate()));
1487 } 1489 }
1488 1490
1489 static void floatArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 1491 static void floatArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
1490 { 1492 {
1491 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1493 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1492 TestObjectV8Internal::floatArrayAttributeAttributeGetter(info); 1494 TestObjectV8Internal::floatArrayAttributeAttributeGetter(info);
1493 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1495 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1494 } 1496 }
1495 1497
1496 static void floatArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 1498 static void floatArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
1497 { 1499 {
1498 v8::Handle<v8::Object> holder = info.Holder(); 1500 v8::Handle<v8::Object> holder = info.Holder();
1501 ExceptionState exceptionState(ExceptionState::SetterContext, "floatArrayAttr ibute", "TestObject", holder, info.GetIsolate());
1499 TestObject* impl = V8TestObject::toImpl(holder); 1502 TestObject* impl = V8TestObject::toImpl(holder);
1500 TONATIVE_VOID(Vector<float>, cppValue, toImplArray<float>(v8Value, 0, info.G etIsolate())); 1503 TONATIVE_VOID_EXCEPTIONSTATE(Vector<float>, cppValue, toImplArray<float>(v8V alue, 0, info.GetIsolate(), exceptionState), exceptionState);
1501 impl->setFloatArrayAttribute(cppValue); 1504 impl->setFloatArrayAttribute(cppValue);
1502 } 1505 }
1503 1506
1504 static void floatArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1507 static void floatArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1505 { 1508 {
1506 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1509 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1507 TestObjectV8Internal::floatArrayAttributeAttributeSetter(v8Value, info); 1510 TestObjectV8Internal::floatArrayAttributeAttributeSetter(v8Value, info);
1508 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1511 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1509 } 1512 }
1510 1513
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
1883 static void cachedArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 1886 static void cachedArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
1884 { 1887 {
1885 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1888 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1886 TestObjectV8Internal::cachedArrayAttributeAttributeGetter(info); 1889 TestObjectV8Internal::cachedArrayAttributeAttributeGetter(info);
1887 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1890 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1888 } 1891 }
1889 1892
1890 static void cachedArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info) 1893 static void cachedArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info)
1891 { 1894 {
1892 v8::Handle<v8::Object> holder = info.Holder(); 1895 v8::Handle<v8::Object> holder = info.Holder();
1896 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedArrayAtt ribute", "TestObject", holder, info.GetIsolate());
1893 TestObject* impl = V8TestObject::toImpl(holder); 1897 TestObject* impl = V8TestObject::toImpl(holder);
1894 TONATIVE_VOID(Vector<String>, cppValue, toImplArray<String>(v8Value, 0, info .GetIsolate())); 1898 TONATIVE_VOID_EXCEPTIONSTATE(Vector<String>, cppValue, toImplArray<String>(v 8Value, 0, info.GetIsolate(), exceptionState), exceptionState);
1895 impl->setCachedArrayAttribute(cppValue); 1899 impl->setCachedArrayAttribute(cppValue);
1896 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedArrayAttribute")); // Invalidate the cached value. 1900 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedArrayAttribute")); // Invalidate the cached value.
1897 } 1901 }
1898 1902
1899 static void cachedArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1903 static void cachedArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1900 { 1904 {
1901 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1905 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1902 TestObjectV8Internal::cachedArrayAttributeAttributeSetter(v8Value, info); 1906 TestObjectV8Internal::cachedArrayAttributeAttributeSetter(v8Value, info);
1903 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1907 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1904 } 1908 }
(...skipping 4216 matching lines...) Expand 10 before | Expand all | Expand 10 after
6121 6125
6122 static void testInterfaceEmptyArrayMethodMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 6126 static void testInterfaceEmptyArrayMethodMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
6123 { 6127 {
6124 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6128 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6125 TestObjectV8Internal::testInterfaceEmptyArrayMethodMethod(info); 6129 TestObjectV8Internal::testInterfaceEmptyArrayMethodMethod(info);
6126 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6130 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6127 } 6131 }
6128 6132
6129 static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info) 6133 static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info)
6130 { 6134 {
6135 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA rrayLongArg", "TestObject", info.Holder(), info.GetIsolate());
6131 if (UNLIKELY(info.Length() < 1)) { 6136 if (UNLIKELY(info.Length() < 1)) {
6132 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodArrayLongArg", "TestObject", 1, info.Length(), info.GetIsolate()), info .GetIsolate()); 6137 setMinimumArityTypeError(exceptionState, 1, info.Length());
6138 exceptionState.throwIfNeeded();
6133 return; 6139 return;
6134 } 6140 }
6135 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6141 TestObject* impl = V8TestObject::toImpl(info.Holder());
6136 Vector<int> arrayLongArg; 6142 Vector<int> arrayLongArg;
6137 { 6143 {
6138 v8::TryCatch block; 6144 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arrayLongArg, toImplArray<int>(inf o[0], 1, info.GetIsolate(), exceptionState), exceptionState);
6139 V8RethrowTryCatchScope rethrow(block);
6140 TONATIVE_VOID_INTERNAL(arrayLongArg, toImplArray<int>(info[0], 1, info.G etIsolate()));
6141 } 6145 }
6142 impl->voidMethodArrayLongArg(arrayLongArg); 6146 impl->voidMethodArrayLongArg(arrayLongArg);
6143 } 6147 }
6144 6148
6145 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info) 6149 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
6146 { 6150 {
6147 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6151 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6148 TestObjectV8Internal::voidMethodArrayLongArgMethod(info); 6152 TestObjectV8Internal::voidMethodArrayLongArgMethod(info);
6149 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6153 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6150 } 6154 }
6151 6155
6152 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 6156 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
6153 { 6157 {
6158 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA rrayStringArg", "TestObject", info.Holder(), info.GetIsolate());
6154 if (UNLIKELY(info.Length() < 1)) { 6159 if (UNLIKELY(info.Length() < 1)) {
6155 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodArrayStringArg", "TestObject", 1, info.Length(), info.GetIsolate()), in fo.GetIsolate()); 6160 setMinimumArityTypeError(exceptionState, 1, info.Length());
6161 exceptionState.throwIfNeeded();
6156 return; 6162 return;
6157 } 6163 }
6158 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6164 TestObject* impl = V8TestObject::toImpl(info.Holder());
6159 Vector<String> arrayStringArg; 6165 Vector<String> arrayStringArg;
6160 { 6166 {
6161 v8::TryCatch block; 6167 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arrayStringArg, toImplArray<String >(info[0], 1, info.GetIsolate(), exceptionState), exceptionState);
6162 V8RethrowTryCatchScope rethrow(block);
6163 TONATIVE_VOID_INTERNAL(arrayStringArg, toImplArray<String>(info[0], 1, i nfo.GetIsolate()));
6164 } 6168 }
6165 impl->voidMethodArrayStringArg(arrayStringArg); 6169 impl->voidMethodArrayStringArg(arrayStringArg);
6166 } 6170 }
6167 6171
6168 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 6172 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
6169 { 6173 {
6170 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6174 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6171 TestObjectV8Internal::voidMethodArrayStringArgMethod(info); 6175 TestObjectV8Internal::voidMethodArrayStringArgMethod(info);
6172 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6176 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6173 } 6177 }
6174 6178
6175 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) 6179 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info)
6176 { 6180 {
6181 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA rrayTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate());
6177 if (UNLIKELY(info.Length() < 1)) { 6182 if (UNLIKELY(info.Length() < 1)) {
6178 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodArrayTestInterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIs olate()), info.GetIsolate()); 6183 setMinimumArityTypeError(exceptionState, 1, info.Length());
6184 exceptionState.throwIfNeeded();
6179 return; 6185 return;
6180 } 6186 }
6181 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6187 TestObject* impl = V8TestObject::toImpl(info.Holder());
6182 Vector<RefPtr<TestInterfaceEmpty> > arrayTestInterfaceEmptyArg; 6188 Vector<RefPtr<TestInterfaceEmpty> > arrayTestInterfaceEmptyArg;
6183 { 6189 {
6184 v8::TryCatch block; 6190 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arrayTestInterfaceEmptyArg, (toRef PtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIso late(), exceptionState)), exceptionState);
6185 V8RethrowTryCatchScope rethrow(block);
6186 TONATIVE_VOID_INTERNAL(arrayTestInterfaceEmptyArg, (toRefPtrNativeArray< TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate())));
6187 } 6191 }
6188 impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg); 6192 impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg);
6189 } 6193 }
6190 6194
6191 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 6195 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
6192 { 6196 {
6193 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6197 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6194 TestObjectV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info); 6198 TestObjectV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info);
6195 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6199 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6196 } 6200 }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
6229 6233
6230 static void testInterfaceEmptySequenceMethodMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 6234 static void testInterfaceEmptySequenceMethodMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
6231 { 6235 {
6232 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6236 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6233 TestObjectV8Internal::testInterfaceEmptySequenceMethodMethod(info); 6237 TestObjectV8Internal::testInterfaceEmptySequenceMethodMethod(info);
6234 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6238 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6235 } 6239 }
6236 6240
6237 static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 6241 static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
6238 { 6242 {
6243 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS equenceLongArg", "TestObject", info.Holder(), info.GetIsolate());
6239 if (UNLIKELY(info.Length() < 1)) { 6244 if (UNLIKELY(info.Length() < 1)) {
6240 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodSequenceLongArg", "TestObject", 1, info.Length(), info.GetIsolate()), i nfo.GetIsolate()); 6245 setMinimumArityTypeError(exceptionState, 1, info.Length());
6246 exceptionState.throwIfNeeded();
6241 return; 6247 return;
6242 } 6248 }
6243 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6249 TestObject* impl = V8TestObject::toImpl(info.Holder());
6244 Vector<int> longSequenceArg; 6250 Vector<int> longSequenceArg;
6245 { 6251 {
6246 v8::TryCatch block; 6252 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longSequenceArg, toImplArray<int>( info[0], 1, info.GetIsolate(), exceptionState), exceptionState);
6247 V8RethrowTryCatchScope rethrow(block);
6248 TONATIVE_VOID_INTERNAL(longSequenceArg, toImplArray<int>(info[0], 1, inf o.GetIsolate()));
6249 } 6253 }
6250 impl->voidMethodSequenceLongArg(longSequenceArg); 6254 impl->voidMethodSequenceLongArg(longSequenceArg);
6251 } 6255 }
6252 6256
6253 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 6257 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
6254 { 6258 {
6255 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6259 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6256 TestObjectV8Internal::voidMethodSequenceLongArgMethod(info); 6260 TestObjectV8Internal::voidMethodSequenceLongArgMethod(info);
6257 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6261 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6258 } 6262 }
6259 6263
6260 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 6264 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
6261 { 6265 {
6266 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS equenceStringArg", "TestObject", info.Holder(), info.GetIsolate());
6262 if (UNLIKELY(info.Length() < 1)) { 6267 if (UNLIKELY(info.Length() < 1)) {
6263 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodSequenceStringArg", "TestObject", 1, info.Length(), info.GetIsolate()), info.GetIsolate()); 6268 setMinimumArityTypeError(exceptionState, 1, info.Length());
6269 exceptionState.throwIfNeeded();
6264 return; 6270 return;
6265 } 6271 }
6266 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6272 TestObject* impl = V8TestObject::toImpl(info.Holder());
6267 Vector<String> stringSequenceArg; 6273 Vector<String> stringSequenceArg;
6268 { 6274 {
6269 v8::TryCatch block; 6275 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(stringSequenceArg, toImplArray<Str ing>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState);
6270 V8RethrowTryCatchScope rethrow(block);
6271 TONATIVE_VOID_INTERNAL(stringSequenceArg, toImplArray<String>(info[0], 1 , info.GetIsolate()));
6272 } 6276 }
6273 impl->voidMethodSequenceStringArg(stringSequenceArg); 6277 impl->voidMethodSequenceStringArg(stringSequenceArg);
6274 } 6278 }
6275 6279
6276 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 6280 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
6277 { 6281 {
6278 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6282 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6279 TestObjectV8Internal::voidMethodSequenceStringArgMethod(info); 6283 TestObjectV8Internal::voidMethodSequenceStringArgMethod(info);
6280 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6284 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6281 } 6285 }
6282 6286
6283 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) 6287 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info)
6284 { 6288 {
6289 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS equenceTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate());
6285 if (UNLIKELY(info.Length() < 1)) { 6290 if (UNLIKELY(info.Length() < 1)) {
6286 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodSequenceTestInterfaceEmptyArg", "TestObject", 1, info.Length(), info.Ge tIsolate()), info.GetIsolate()); 6291 setMinimumArityTypeError(exceptionState, 1, info.Length());
6292 exceptionState.throwIfNeeded();
6287 return; 6293 return;
6288 } 6294 }
6289 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6295 TestObject* impl = V8TestObject::toImpl(info.Holder());
6290 Vector<RefPtr<TestInterfaceEmpty> > testInterfaceEmptySequenceArg; 6296 Vector<RefPtr<TestInterfaceEmpty> > testInterfaceEmptySequenceArg;
6291 { 6297 {
6292 v8::TryCatch block; 6298 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceEmptySequenceArg, (to RefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.Get Isolate(), exceptionState)), exceptionState);
6293 V8RethrowTryCatchScope rethrow(block);
6294 TONATIVE_VOID_INTERNAL(testInterfaceEmptySequenceArg, (toRefPtrNativeArr ay<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate())));
6295 } 6299 }
6296 impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg) ; 6300 impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg) ;
6297 } 6301 }
6298 6302
6299 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 6303 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
6300 { 6304 {
6301 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6305 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6302 TestObjectV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(info); 6306 TestObjectV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(info);
6303 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6307 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6304 } 6308 }
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
6618 v8::TryCatch block; 6622 v8::TryCatch block;
6619 V8RethrowTryCatchScope rethrow(block); 6623 V8RethrowTryCatchScope rethrow(block);
6620 TONATIVE_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg1, toInt32(info[0], exc eptionState), exceptionState, info, ScriptState::current(info.GetIsolate())); 6624 TONATIVE_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg1, toInt32(info[0], exc eptionState), exceptionState, info, ScriptState::current(info.GetIsolate()));
6621 TONATIVE_VOID_PROMISE_INTERNAL(arg2, Dictionary(info[1], info.GetIsolate ()), info); 6625 TONATIVE_VOID_PROMISE_INTERNAL(arg2, Dictionary(info[1], info.GetIsolate ()), info);
6622 if (!arg2.isUndefinedOrNull() && !arg2.isObject()) { 6626 if (!arg2.isUndefinedOrNull() && !arg2.isObject()) {
6623 exceptionState.throwTypeError("parameter 2 ('arg2') is not an object ."); 6627 exceptionState.throwTypeError("parameter 2 ('arg2') is not an object .");
6624 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(in fo.GetIsolate())).v8Value()); 6628 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(in fo.GetIsolate())).v8Value());
6625 return; 6629 return;
6626 } 6630 }
6627 TOSTRING_VOID_PROMISE_INTERNAL(arg3, info[2], info); 6631 TOSTRING_VOID_PROMISE_INTERNAL(arg3, info[2], info);
6628 TONATIVE_VOID_PROMISE_INTERNAL(variadic, toImplArguments<String>(info, 3 ), info); 6632 TONATIVE_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(variadic, toImplArguments< String>(info, 3, exceptionState), exceptionState, info, ScriptState::current(inf o.GetIsolate()));
6629 } 6633 }
6630 v8SetReturnValue(info, impl->promiseMethod(arg1, arg2, arg3, variadic).v8Val ue()); 6634 v8SetReturnValue(info, impl->promiseMethod(arg1, arg2, arg3, variadic).v8Val ue());
6631 } 6635 }
6632 6636
6633 static void promiseMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value >& info) 6637 static void promiseMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value >& info)
6634 { 6638 {
6635 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6639 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6636 TestObjectV8Internal::promiseMethodMethod(info); 6640 TestObjectV8Internal::promiseMethodMethod(info);
6637 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6641 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6638 } 6642 }
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
6812 6816
6813 static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 6817 static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
6814 { 6818 {
6815 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6819 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6816 TestObjectV8Internal::voidMethodXPathNSResolverArgMethod(info); 6820 TestObjectV8Internal::voidMethodXPathNSResolverArgMethod(info);
6817 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6821 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6818 } 6822 }
6819 6823
6820 static void voidMethodDictionarySequenceArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 6824 static void voidMethodDictionarySequenceArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
6821 { 6825 {
6826 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD ictionarySequenceArg", "TestObject", info.Holder(), info.GetIsolate());
6822 if (UNLIKELY(info.Length() < 1)) { 6827 if (UNLIKELY(info.Length() < 1)) {
6823 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodDictionarySequenceArg", "TestObject", 1, info.Length(), info.GetIsolate ()), info.GetIsolate()); 6828 setMinimumArityTypeError(exceptionState, 1, info.Length());
6829 exceptionState.throwIfNeeded();
6824 return; 6830 return;
6825 } 6831 }
6826 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6832 TestObject* impl = V8TestObject::toImpl(info.Holder());
6827 Vector<Dictionary> dictionarySequenceArg; 6833 Vector<Dictionary> dictionarySequenceArg;
6828 { 6834 {
6829 v8::TryCatch block; 6835 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(dictionarySequenceArg, toImplArray <Dictionary>(info[0], 1, info.GetIsolate(), exceptionState), exceptionState);
6830 V8RethrowTryCatchScope rethrow(block);
6831 TONATIVE_VOID_INTERNAL(dictionarySequenceArg, toImplArray<Dictionary>(in fo[0], 1, info.GetIsolate()));
6832 } 6836 }
6833 impl->voidMethodDictionarySequenceArg(dictionarySequenceArg); 6837 impl->voidMethodDictionarySequenceArg(dictionarySequenceArg);
6834 } 6838 }
6835 6839
6836 static void voidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 6840 static void voidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
6837 { 6841 {
6838 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6842 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6839 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info); 6843 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info);
6840 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6844 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6841 } 6845 }
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
7409 7413
7410 static void voidMethodDefaultNullableTestInterfaceArgMethodCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info) 7414 static void voidMethodDefaultNullableTestInterfaceArgMethodCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info)
7411 { 7415 {
7412 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7416 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7413 TestObjectV8Internal::voidMethodDefaultNullableTestInterfaceArgMethod(info); 7417 TestObjectV8Internal::voidMethodDefaultNullableTestInterfaceArgMethod(info);
7414 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7418 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7415 } 7419 }
7416 7420
7417 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 7421 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
7418 { 7422 {
7423 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodV ariadicStringArg", "TestObject", info.Holder(), info.GetIsolate());
7419 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7424 TestObject* impl = V8TestObject::toImpl(info.Holder());
7420 Vector<String> variadicStringArgs; 7425 Vector<String> variadicStringArgs;
7421 { 7426 {
7422 v8::TryCatch block; 7427 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(variadicStringArgs, toImplArgument s<String>(info, 0, exceptionState), exceptionState);
7423 V8RethrowTryCatchScope rethrow(block);
7424 TONATIVE_VOID_INTERNAL(variadicStringArgs, toImplArguments<String>(info, 0));
7425 } 7428 }
7426 impl->voidMethodVariadicStringArg(variadicStringArgs); 7429 impl->voidMethodVariadicStringArg(variadicStringArgs);
7427 } 7430 }
7428 7431
7429 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 7432 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
7430 { 7433 {
7431 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7434 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7432 TestObjectV8Internal::voidMethodVariadicStringArgMethod(info); 7435 TestObjectV8Internal::voidMethodVariadicStringArgMethod(info);
7433 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7436 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7434 } 7437 }
7435 7438
7436 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) 7439 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info)
7437 { 7440 {
7441 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS tringArgVariadicStringArg", "TestObject", info.Holder(), info.GetIsolate());
7438 if (UNLIKELY(info.Length() < 1)) { 7442 if (UNLIKELY(info.Length() < 1)) {
7439 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodStringArgVariadicStringArg", "TestObject", 1, info.Length(), info.GetIs olate()), info.GetIsolate()); 7443 setMinimumArityTypeError(exceptionState, 1, info.Length());
7444 exceptionState.throwIfNeeded();
7440 return; 7445 return;
7441 } 7446 }
7442 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7447 TestObject* impl = V8TestObject::toImpl(info.Holder());
7443 V8StringResource<> stringArg; 7448 V8StringResource<> stringArg;
7444 Vector<String> variadicStringArgs; 7449 Vector<String> variadicStringArgs;
7445 { 7450 {
7446 v8::TryCatch block;
7447 V8RethrowTryCatchScope rethrow(block);
7448 TOSTRING_VOID_INTERNAL(stringArg, info[0]); 7451 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
7449 TONATIVE_VOID_INTERNAL(variadicStringArgs, toImplArguments<String>(info, 1)); 7452 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(variadicStringArgs, toImplArgument s<String>(info, 1, exceptionState), exceptionState);
7450 } 7453 }
7451 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); 7454 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs);
7452 } 7455 }
7453 7456
7454 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 7457 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
7455 { 7458 {
7456 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7459 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7457 TestObjectV8Internal::voidMethodStringArgVariadicStringArgMethod(info); 7460 TestObjectV8Internal::voidMethodStringArgVariadicStringArgMethod(info);
7458 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7461 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7459 } 7462 }
7460 7463
7461 static void voidMethodVariadicTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) 7464 static void voidMethodVariadicTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info)
7462 { 7465 {
7466 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodV ariadicTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate());
7463 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7467 TestObject* impl = V8TestObject::toImpl(info.Holder());
7464 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; 7468 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs;
7465 { 7469 {
7466 for (int i = 0; i < info.Length(); ++i) { 7470 for (int i = 0; i < info.Length(); ++i) {
7467 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) { 7471 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) {
7468 V8ThrowException::throwTypeError(ExceptionMessages::failedToExec ute("voidMethodVariadicTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestInterfaceEmpty'."), info.GetIsolate()); 7472 exceptionState.throwTypeError("parameter 1 is not of type 'TestI nterfaceEmpty'.");
7473 exceptionState.throwIfNeeded();
7469 return; 7474 return;
7470 } 7475 }
7471 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toImpl(v 8::Handle<v8::Object>::Cast(info[i]))); 7476 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toImpl(v 8::Handle<v8::Object>::Cast(info[i])));
7472 } 7477 }
7473 } 7478 }
7474 impl->voidMethodVariadicTestInterfaceEmptyArg(variadicTestInterfaceEmptyArgs ); 7479 impl->voidMethodVariadicTestInterfaceEmptyArg(variadicTestInterfaceEmptyArgs );
7475 } 7480 }
7476 7481
7477 static void voidMethodVariadicTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 7482 static void voidMethodVariadicTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
7478 { 7483 {
7479 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7484 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7480 TestObjectV8Internal::voidMethodVariadicTestInterfaceEmptyArgMethod(info); 7485 TestObjectV8Internal::voidMethodVariadicTestInterfaceEmptyArgMethod(info);
7481 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7486 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7482 } 7487 }
7483 7488
7484 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(c onst v8::FunctionCallbackInfo<v8::Value>& info) 7489 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(c onst v8::FunctionCallbackInfo<v8::Value>& info)
7485 { 7490 {
7491 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT estInterfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate());
7486 if (UNLIKELY(info.Length() < 1)) { 7492 if (UNLIKELY(info.Length() < 1)) {
7487 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObject", 1, i nfo.Length(), info.GetIsolate()), info.GetIsolate()); 7493 setMinimumArityTypeError(exceptionState, 1, info.Length());
7494 exceptionState.throwIfNeeded();
7488 return; 7495 return;
7489 } 7496 }
7490 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7497 TestObject* impl = V8TestObject::toImpl(info.Holder());
7491 TestInterfaceEmpty* testInterfaceEmptyArg; 7498 TestInterfaceEmpty* testInterfaceEmptyArg;
7492 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; 7499 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs;
7493 { 7500 {
7494 v8::TryCatch block; 7501 v8::TryCatch block;
7495 V8RethrowTryCatchScope rethrow(block); 7502 V8RethrowTryCatchScope rethrow(block);
7496 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toIm plWithTypeCheck(info.GetIsolate(), info[0])); 7503 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toIm plWithTypeCheck(info.GetIsolate(), info[0]));
7497 for (int i = 1; i < info.Length(); ++i) { 7504 for (int i = 1; i < info.Length(); ++i) {
7498 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) { 7505 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) {
7499 V8ThrowException::throwTypeError(ExceptionMessages::failedToExec ute("voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObject" , "parameter 2 is not of type 'TestInterfaceEmpty'."), info.GetIsolate()); 7506 exceptionState.throwTypeError("parameter 2 is not of type 'TestI nterfaceEmpty'.");
7507 exceptionState.throwIfNeeded();
7500 return; 7508 return;
7501 } 7509 }
7502 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toImpl(v 8::Handle<v8::Object>::Cast(info[i]))); 7510 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toImpl(v 8::Handle<v8::Object>::Cast(info[i])));
7503 } 7511 }
7504 } 7512 }
7505 impl->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInter faceEmptyArg, variadicTestInterfaceEmptyArgs); 7513 impl->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInter faceEmptyArg, variadicTestInterfaceEmptyArgs);
7506 } 7514 }
7507 7515
7508 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa llback(const v8::FunctionCallbackInfo<v8::Value>& info) 7516 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa llback(const v8::FunctionCallbackInfo<v8::Value>& info)
7509 { 7517 {
7510 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7518 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7511 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEm ptyArgMethod(info); 7519 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEm ptyArgMethod(info);
7512 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7520 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7513 } 7521 }
7514 7522
7515 static void voidMethodVariadicTestInterfaceGarbageCollectedArgMethod(const v8::F unctionCallbackInfo<v8::Value>& info) 7523 static void voidMethodVariadicTestInterfaceGarbageCollectedArgMethod(const v8::F unctionCallbackInfo<v8::Value>& info)
7516 { 7524 {
7525 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodV ariadicTestInterfaceGarbageCollectedArg", "TestObject", info.Holder(), info.GetI solate());
7517 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7526 TestObject* impl = V8TestObject::toImpl(info.Holder());
7518 HeapVector<Member<TestInterfaceGarbageCollected> > variadicTestInterfaceGarb ageCollectedArg; 7527 HeapVector<Member<TestInterfaceGarbageCollected> > variadicTestInterfaceGarb ageCollectedArg;
7519 { 7528 {
7520 for (int i = 0; i < info.Length(); ++i) { 7529 for (int i = 0; i < info.Length(); ++i) {
7521 if (!V8TestInterfaceGarbageCollected::hasInstance(info[i], info.GetI solate())) { 7530 if (!V8TestInterfaceGarbageCollected::hasInstance(info[i], info.GetI solate())) {
7522 V8ThrowException::throwTypeError(ExceptionMessages::failedToExec ute("voidMethodVariadicTestInterfaceGarbageCollectedArg", "TestObject", "paramet er 1 is not of type 'TestInterfaceGarbageCollected'."), info.GetIsolate()); 7531 exceptionState.throwTypeError("parameter 1 is not of type 'TestI nterfaceGarbageCollected'.");
7532 exceptionState.throwIfNeeded();
7523 return; 7533 return;
7524 } 7534 }
7525 variadicTestInterfaceGarbageCollectedArg.append(V8TestInterfaceGarba geCollected::toImpl(v8::Handle<v8::Object>::Cast(info[i]))); 7535 variadicTestInterfaceGarbageCollectedArg.append(V8TestInterfaceGarba geCollected::toImpl(v8::Handle<v8::Object>::Cast(info[i])));
7526 } 7536 }
7527 } 7537 }
7528 impl->voidMethodVariadicTestInterfaceGarbageCollectedArg(variadicTestInterfa ceGarbageCollectedArg); 7538 impl->voidMethodVariadicTestInterfaceGarbageCollectedArg(variadicTestInterfa ceGarbageCollectedArg);
7529 } 7539 }
7530 7540
7531 static void voidMethodVariadicTestInterfaceGarbageCollectedArgMethodCallback(con st v8::FunctionCallbackInfo<v8::Value>& info) 7541 static void voidMethodVariadicTestInterfaceGarbageCollectedArgMethodCallback(con st v8::FunctionCallbackInfo<v8::Value>& info)
7532 { 7542 {
7533 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7543 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7534 TestObjectV8Internal::voidMethodVariadicTestInterfaceGarbageCollectedArgMeth od(info); 7544 TestObjectV8Internal::voidMethodVariadicTestInterfaceGarbageCollectedArgMeth od(info);
7535 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7545 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7536 } 7546 }
7537 7547
7538 static void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 7548 static void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
7539 { 7549 {
7550 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodV ariadicTestInterfaceWillBeGarbageCollectedArg", "TestObject", info.Holder(), inf o.GetIsolate());
7540 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7551 TestObject* impl = V8TestObject::toImpl(info.Holder());
7541 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > v ariadicTestInterfaceWillBeGarbageCollectedArg; 7552 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > v ariadicTestInterfaceWillBeGarbageCollectedArg;
7542 { 7553 {
7543 for (int i = 0; i < info.Length(); ++i) { 7554 for (int i = 0; i < info.Length(); ++i) {
7544 if (!V8TestInterfaceWillBeGarbageCollected::hasInstance(info[i], inf o.GetIsolate())) { 7555 if (!V8TestInterfaceWillBeGarbageCollected::hasInstance(info[i], inf o.GetIsolate())) {
7545 V8ThrowException::throwTypeError(ExceptionMessages::failedToExec ute("voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg", "TestObject", "p arameter 1 is not of type 'TestInterfaceWillBeGarbageCollected'."), info.GetIsol ate()); 7556 exceptionState.throwTypeError("parameter 1 is not of type 'TestI nterfaceWillBeGarbageCollected'.");
7557 exceptionState.throwIfNeeded();
7546 return; 7558 return;
7547 } 7559 }
7548 variadicTestInterfaceWillBeGarbageCollectedArg.append(V8TestInterfac eWillBeGarbageCollected::toImpl(v8::Handle<v8::Object>::Cast(info[i]))); 7560 variadicTestInterfaceWillBeGarbageCollectedArg.append(V8TestInterfac eWillBeGarbageCollected::toImpl(v8::Handle<v8::Object>::Cast(info[i])));
7549 } 7561 }
7550 } 7562 }
7551 impl->voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg(variadicTestI nterfaceWillBeGarbageCollectedArg); 7563 impl->voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg(variadicTestI nterfaceWillBeGarbageCollectedArg);
7552 } 7564 }
7553 7565
7554 static void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info) 7566 static void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info)
7555 { 7567 {
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
7741 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7753 TestObject* impl = V8TestObject::toImpl(info.Holder());
7742 int longArg; 7754 int longArg;
7743 { 7755 {
7744 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 7756 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
7745 } 7757 }
7746 impl->overloadedMethodD(longArg); 7758 impl->overloadedMethodD(longArg);
7747 } 7759 }
7748 7760
7749 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7761 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
7750 { 7762 {
7763 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObject", info.Holder(), info.GetIsolate());
7751 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7764 TestObject* impl = V8TestObject::toImpl(info.Holder());
7752 Vector<int> longArrayArg; 7765 Vector<int> longArrayArg;
7753 { 7766 {
7754 v8::TryCatch block; 7767 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArrayArg, toImplArray<int>(inf o[0], 1, info.GetIsolate(), exceptionState), exceptionState);
7755 V8RethrowTryCatchScope rethrow(block);
7756 TONATIVE_VOID_INTERNAL(longArrayArg, toImplArray<int>(info[0], 1, info.G etIsolate()));
7757 } 7768 }
7758 impl->overloadedMethodD(longArrayArg); 7769 impl->overloadedMethodD(longArrayArg);
7759 } 7770 }
7760 7771
7761 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 7772 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
7762 { 7773 {
7763 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObject", info.Holder(), info.GetIsolate()); 7774 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObject", info.Holder(), info.GetIsolate());
7764 switch (std::min(1, info.Length())) { 7775 switch (std::min(1, info.Length())) {
7765 case 1: 7776 case 1:
7766 if (info[0]->IsArray()) { 7777 if (info[0]->IsArray()) {
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
8492 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8503 TestObject* impl = V8TestObject::toImpl(info.Holder());
8493 impl->activityLoggingAccessForAllWorldsMethod(); 8504 impl->activityLoggingAccessForAllWorldsMethod();
8494 } 8505 }
8495 8506
8496 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 8507 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
8497 { 8508 {
8498 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 8509 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
8499 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 8510 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
8500 V8PerContextData* contextData = scriptState->perContextData(); 8511 V8PerContextData* contextData = scriptState->perContextData();
8501 if (contextData && contextData->activityLogger()) { 8512 if (contextData && contextData->activityLogger()) {
8502 Vector<v8::Handle<v8::Value> > loggerArgs = toImplArguments<v8::Handle<v 8::Value> >(info, 0); 8513 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activit yLoggingAccessForAllWorldsMethod", "TestObject", info.Holder(), info.GetIsolate( ));
8514 Vector<v8::Handle<v8::Value> > loggerArgs = toImplArguments<v8::Handle<v 8::Value> >(info, 0, exceptionState);
8503 contextData->activityLogger()->logMethod("TestObject.activityLoggingAcce ssForAllWorldsMethod", info.Length(), loggerArgs.data()); 8515 contextData->activityLogger()->logMethod("TestObject.activityLoggingAcce ssForAllWorldsMethod", info.Length(), loggerArgs.data());
8504 } 8516 }
8505 TestObjectV8Internal::activityLoggingAccessForAllWorldsMethodMethod(info); 8517 TestObjectV8Internal::activityLoggingAccessForAllWorldsMethodMethod(info);
8506 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 8518 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
8507 } 8519 }
8508 8520
8509 static void callWithExecutionContextVoidMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 8521 static void callWithExecutionContextVoidMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
8510 { 8522 {
8511 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8523 TestObject* impl = V8TestObject::toImpl(info.Holder());
8512 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 8524 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after
9227 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9239 TestObject* impl = V8TestObject::toImpl(info.Holder());
9228 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); 9240 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod();
9229 } 9241 }
9230 9242
9231 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info) 9243 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info)
9232 { 9244 {
9233 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9245 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9234 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 9246 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
9235 V8PerContextData* contextData = scriptState->perContextData(); 9247 V8PerContextData* contextData = scriptState->perContextData();
9236 if (contextData && contextData->activityLogger()) { 9248 if (contextData && contextData->activityLogger()) {
9237 Vector<v8::Handle<v8::Value> > loggerArgs = toImplArguments<v8::Handle<v 8::Value> >(info, 0); 9249 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activit yLoggingForAllWorldsPerWorldBindingsVoidMethod", "TestObject", info.Holder(), in fo.GetIsolate());
9250 Vector<v8::Handle<v8::Value> > loggerArgs = toImplArguments<v8::Handle<v 8::Value> >(info, 0, exceptionState);
9238 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); 9251 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data());
9239 } 9252 }
9240 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM ethod(info); 9253 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM ethod(info);
9241 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9254 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9242 } 9255 }
9243 9256
9244 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo rld(const v8::FunctionCallbackInfo<v8::Value>& info) 9257 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo rld(const v8::FunctionCallbackInfo<v8::Value>& info)
9245 { 9258 {
9246 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9259 TestObject* impl = V8TestObject::toImpl(info.Holder());
9247 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); 9260 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod();
9248 } 9261 }
9249 9262
9250 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF orMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) 9263 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF orMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
9251 { 9264 {
9252 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9265 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9253 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 9266 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
9254 V8PerContextData* contextData = scriptState->perContextData(); 9267 V8PerContextData* contextData = scriptState->perContextData();
9255 if (contextData && contextData->activityLogger()) { 9268 if (contextData && contextData->activityLogger()) {
9256 Vector<v8::Handle<v8::Value> > loggerArgs = toImplArguments<v8::Handle<v 8::Value> >(info, 0); 9269 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activit yLoggingForAllWorldsPerWorldBindingsVoidMethod", "TestObject", info.Holder(), in fo.GetIsolate());
9270 Vector<v8::Handle<v8::Value> > loggerArgs = toImplArguments<v8::Handle<v 8::Value> >(info, 0, exceptionState);
9257 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); 9271 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data());
9258 } 9272 }
9259 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM ethodForMainWorld(info); 9273 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM ethodForMainWorld(info);
9260 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9274 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9261 } 9275 }
9262 9276
9263 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con st v8::FunctionCallbackInfo<v8::Value>& info) 9277 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con st v8::FunctionCallbackInfo<v8::Value>& info)
9264 { 9278 {
9265 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9279 TestObject* impl = V8TestObject::toImpl(info.Holder());
9266 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); 9280 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod();
9267 } 9281 }
9268 9282
9269 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall back(const v8::FunctionCallbackInfo<v8::Value>& info) 9283 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall back(const v8::FunctionCallbackInfo<v8::Value>& info)
9270 { 9284 {
9271 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9285 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9272 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 9286 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
9273 V8PerContextData* contextData = scriptState->perContextData(); 9287 V8PerContextData* contextData = scriptState->perContextData();
9274 if (contextData && contextData->activityLogger()) { 9288 if (contextData && contextData->activityLogger()) {
9275 Vector<v8::Handle<v8::Value> > loggerArgs = toImplArguments<v8::Handle<v 8::Value> >(info, 0); 9289 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activit yLoggingForIsolatedWorldsPerWorldBindingsVoidMethod", "TestObject", info.Holder( ), info.GetIsolate());
9290 Vector<v8::Handle<v8::Value> > loggerArgs = toImplArguments<v8::Handle<v 8::Value> >(info, 0, exceptionState);
9276 contextData->activityLogger()->logMethod("TestObject.activityLoggingForI solatedWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); 9291 contextData->activityLogger()->logMethod("TestObject.activityLoggingForI solatedWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data());
9277 } 9292 }
9278 TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMe thodMethod(info); 9293 TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMe thodMethod(info);
9279 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9294 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9280 } 9295 }
9281 9296
9282 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForM ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) 9297 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForM ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
9283 { 9298 {
9284 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9299 TestObject* impl = V8TestObject::toImpl(info.Holder());
9285 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); 9300 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod();
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
9736 9751
9737 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info) 9752 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info)
9738 { 9753 {
9739 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9754 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9740 TestObjectV8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMe thod(info); 9755 TestObjectV8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMe thod(info);
9741 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9756 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9742 } 9757 }
9743 9758
9744 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArgMethod(c onst v8::FunctionCallbackInfo<v8::Value>& info) 9759 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArgMethod(c onst v8::FunctionCallbackInfo<v8::Value>& info)
9745 { 9760 {
9761 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin gInterfaceVoidMethodTestInterfaceEmptyVariadicArg", "TestObject", info.Holder(), info.GetIsolate());
9746 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9762 TestObject* impl = V8TestObject::toImpl(info.Holder());
9747 Vector<RefPtr<TestInterfaceEmpty> > testInterfaceEmptyArg; 9763 Vector<RefPtr<TestInterfaceEmpty> > testInterfaceEmptyArg;
9748 { 9764 {
9749 for (int i = 0; i < info.Length(); ++i) { 9765 for (int i = 0; i < info.Length(); ++i) {
9750 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) { 9766 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) {
9751 V8ThrowException::throwTypeError(ExceptionMessages::failedToExec ute("typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArg", "TestObject" , "parameter 1 is not of type 'TestInterfaceEmpty'."), info.GetIsolate()); 9767 exceptionState.throwTypeError("parameter 1 is not of type 'TestI nterfaceEmpty'.");
9768 exceptionState.throwIfNeeded();
9752 return; 9769 return;
9753 } 9770 }
9754 testInterfaceEmptyArg.append(V8TestInterfaceEmpty::toImpl(v8::Handle <v8::Object>::Cast(info[i]))); 9771 testInterfaceEmptyArg.append(V8TestInterfaceEmpty::toImpl(v8::Handle <v8::Object>::Cast(info[i])));
9755 } 9772 }
9756 } 9773 }
9757 impl->typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArg(testInter faceEmptyArg); 9774 impl->typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArg(testInter faceEmptyArg);
9758 } 9775 }
9759 9776
9760 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArgMethodCa llback(const v8::FunctionCallbackInfo<v8::Value>& info) 9777 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArgMethodCa llback(const v8::FunctionCallbackInfo<v8::Value>& info)
9761 { 9778 {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
9807 9824
9808 static void unforgeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 9825 static void unforgeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
9809 { 9826 {
9810 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9827 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9811 TestObjectV8Internal::unforgeableVoidMethodMethod(info); 9828 TestObjectV8Internal::unforgeableVoidMethodMethod(info);
9812 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9829 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9813 } 9830 }
9814 9831
9815 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethod(const v8::F unctionCallbackInfo<v8::Value>& info) 9832 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethod(const v8::F unctionCallbackInfo<v8::Value>& info)
9816 { 9833 {
9834 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT estInterfaceGarbageCollectedSequenceArg", "TestObject", info.Holder(), info.GetI solate());
9817 if (UNLIKELY(info.Length() < 1)) { 9835 if (UNLIKELY(info.Length() < 1)) {
9818 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodTestInterfaceGarbageCollectedSequenceArg", "TestObject", 1, info.Length (), info.GetIsolate()), info.GetIsolate()); 9836 setMinimumArityTypeError(exceptionState, 1, info.Length());
9837 exceptionState.throwIfNeeded();
9819 return; 9838 return;
9820 } 9839 }
9821 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9840 TestObject* impl = V8TestObject::toImpl(info.Holder());
9822 HeapVector<Member<TestInterfaceGarbageCollected> > testInterfaceGarbageColle ctedSequenceArg; 9841 HeapVector<Member<TestInterfaceGarbageCollected> > testInterfaceGarbageColle ctedSequenceArg;
9823 { 9842 {
9824 v8::TryCatch block; 9843 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceGarbageCollectedSeque nceArg, (toMemberNativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarba geCollected>(info[0], 1, info.GetIsolate(), exceptionState)), exceptionState);
9825 V8RethrowTryCatchScope rethrow(block);
9826 TONATIVE_VOID_INTERNAL(testInterfaceGarbageCollectedSequenceArg, (toMemb erNativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageCollected>(in fo[0], 1, info.GetIsolate())));
9827 } 9844 }
9828 impl->voidMethodTestInterfaceGarbageCollectedSequenceArg(testInterfaceGarbag eCollectedSequenceArg); 9845 impl->voidMethodTestInterfaceGarbageCollectedSequenceArg(testInterfaceGarbag eCollectedSequenceArg);
9829 } 9846 }
9830 9847
9831 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback(con st v8::FunctionCallbackInfo<v8::Value>& info) 9848 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback(con st v8::FunctionCallbackInfo<v8::Value>& info)
9832 { 9849 {
9833 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9850 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9834 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedSequenceArgMeth od(info); 9851 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedSequenceArgMeth od(info);
9835 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9852 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9836 } 9853 }
9837 9854
9838 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) 9855 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info)
9839 { 9856 {
9857 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT estInterfaceGarbageCollectedArrayArg", "TestObject", info.Holder(), info.GetIsol ate());
9840 if (UNLIKELY(info.Length() < 1)) { 9858 if (UNLIKELY(info.Length() < 1)) {
9841 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodTestInterfaceGarbageCollectedArrayArg", "TestObject", 1, info.Length(), info.GetIsolate()), info.GetIsolate()); 9859 setMinimumArityTypeError(exceptionState, 1, info.Length());
9860 exceptionState.throwIfNeeded();
9842 return; 9861 return;
9843 } 9862 }
9844 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9863 TestObject* impl = V8TestObject::toImpl(info.Holder());
9845 HeapVector<Member<TestInterfaceGarbageCollected> > testInterfaceGarbageColle ctedArrayArg; 9864 HeapVector<Member<TestInterfaceGarbageCollected> > testInterfaceGarbageColle ctedArrayArg;
9846 { 9865 {
9847 v8::TryCatch block; 9866 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceGarbageCollectedArray Arg, (toMemberNativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageC ollected>(info[0], 1, info.GetIsolate(), exceptionState)), exceptionState);
9848 V8RethrowTryCatchScope rethrow(block);
9849 TONATIVE_VOID_INTERNAL(testInterfaceGarbageCollectedArrayArg, (toMemberN ativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageCollected>(info[ 0], 1, info.GetIsolate())));
9850 } 9867 }
9851 impl->voidMethodTestInterfaceGarbageCollectedArrayArg(testInterfaceGarbageCo llectedArrayArg); 9868 impl->voidMethodTestInterfaceGarbageCollectedArrayArg(testInterfaceGarbageCo llectedArrayArg);
9852 } 9869 }
9853 9870
9854 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 9871 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
9855 { 9872 {
9856 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9873 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9857 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedArrayArgMethod( info); 9874 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedArrayArgMethod( info);
9858 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9875 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9859 } 9876 }
9860 9877
9861 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 9878 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
9862 { 9879 {
9880 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT estInterfaceWillBeGarbageCollectedSequenceArg", "TestObject", info.Holder(), inf o.GetIsolate());
9863 if (UNLIKELY(info.Length() < 1)) { 9881 if (UNLIKELY(info.Length() < 1)) {
9864 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodTestInterfaceWillBeGarbageCollectedSequenceArg", "TestObject", 1, info. Length(), info.GetIsolate()), info.GetIsolate()); 9882 setMinimumArityTypeError(exceptionState, 1, info.Length());
9883 exceptionState.throwIfNeeded();
9865 return; 9884 return;
9866 } 9885 }
9867 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9886 TestObject* impl = V8TestObject::toImpl(info.Holder());
9868 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > t estInterfaceWillBeGarbageCollectedSequenceArg; 9887 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > t estInterfaceWillBeGarbageCollectedSequenceArg;
9869 { 9888 {
9870 v8::TryCatch block; 9889 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceWillBeGarbageCollecte dSequenceArg, (toRefPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollect ed, V8TestInterfaceWillBeGarbageCollected>(info[0], 1, info.GetIsolate(), except ionState)), exceptionState);
9871 V8RethrowTryCatchScope rethrow(block);
9872 TONATIVE_VOID_INTERNAL(testInterfaceWillBeGarbageCollectedSequenceArg, ( toRefPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollected, V8TestInter faceWillBeGarbageCollected>(info[0], 1, info.GetIsolate())));
9873 } 9890 }
9874 impl->voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(testInterface WillBeGarbageCollectedSequenceArg); 9891 impl->voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(testInterface WillBeGarbageCollectedSequenceArg);
9875 } 9892 }
9876 9893
9877 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info) 9894 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info)
9878 { 9895 {
9879 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9896 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9880 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceA rgMethod(info); 9897 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceA rgMethod(info);
9881 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9898 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9882 } 9899 }
9883 9900
9884 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info) 9901 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info)
9885 { 9902 {
9903 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT estInterfaceWillBeGarbageCollectedArrayArg", "TestObject", info.Holder(), info.G etIsolate());
9886 if (UNLIKELY(info.Length() < 1)) { 9904 if (UNLIKELY(info.Length() < 1)) {
9887 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodTestInterfaceWillBeGarbageCollectedArrayArg", "TestObject", 1, info.Len gth(), info.GetIsolate()), info.GetIsolate()); 9905 setMinimumArityTypeError(exceptionState, 1, info.Length());
9906 exceptionState.throwIfNeeded();
9888 return; 9907 return;
9889 } 9908 }
9890 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9909 TestObject* impl = V8TestObject::toImpl(info.Holder());
9891 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > t estInterfaceWillBeGarbageCollectedArrayArg; 9910 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > t estInterfaceWillBeGarbageCollectedArrayArg;
9892 { 9911 {
9893 v8::TryCatch block; 9912 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceWillBeGarbageCollecte dArrayArg, (toRefPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageCollected>(info[0], 1, info.GetIsolate(), exception State)), exceptionState);
9894 V8RethrowTryCatchScope rethrow(block);
9895 TONATIVE_VOID_INTERNAL(testInterfaceWillBeGarbageCollectedArrayArg, (toR efPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollected, V8TestInterfac eWillBeGarbageCollected>(info[0], 1, info.GetIsolate())));
9896 } 9913 }
9897 impl->voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(testInterfaceWil lBeGarbageCollectedArrayArg); 9914 impl->voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(testInterfaceWil lBeGarbageCollectedArrayArg);
9898 } 9915 }
9899 9916
9900 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info) 9917 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info)
9901 { 9918 {
9902 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9919 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9903 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgM ethod(info); 9920 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgM ethod(info);
9904 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9921 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9905 } 9922 }
(...skipping 1281 matching lines...) Expand 10 before | Expand all | Expand 10 after
11187 PrivateScriptRunner::runDOMAttributeSetter(scriptState, "TestObject", "enumF orPrivateScript", holder, v8String(scriptState->isolate(), cppValue)); 11204 PrivateScriptRunner::runDOMAttributeSetter(scriptState, "TestObject", "enumF orPrivateScript", holder, v8String(scriptState->isolate(), cppValue));
11188 if (block.HasCaught()) { 11205 if (block.HasCaught()) {
11189 PrivateScriptRunner::rethrowExceptionInPrivateScript(scriptState->isolat e(), exceptionState, block); 11206 PrivateScriptRunner::rethrowExceptionInPrivateScript(scriptState->isolat e(), exceptionState, block);
11190 block.ReThrow(); 11207 block.ReThrow();
11191 return false; 11208 return false;
11192 } 11209 }
11193 return true; 11210 return true;
11194 } 11211 }
11195 11212
11196 } // namespace blink 11213 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698