OLD | NEW |
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 Loading... |
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 Loading... |
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 Loading... |
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 Loading... |
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 Loading... |
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 if (!isUndefinedOrNull(info[1]) && !info[1]->IsObject()) { | 6625 if (!isUndefinedOrNull(info[1]) && !info[1]->IsObject()) { |
6622 exceptionState.throwTypeError("parameter 2 ('arg2') is not an object
."); | 6626 exceptionState.throwTypeError("parameter 2 ('arg2') is not an object
."); |
6623 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(in
fo.GetIsolate())).v8Value()); | 6627 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(in
fo.GetIsolate())).v8Value()); |
6624 return; | 6628 return; |
6625 } | 6629 } |
6626 TONATIVE_VOID_PROMISE_INTERNAL(arg2, Dictionary(info[1], info.GetIsolate
()), info); | 6630 TONATIVE_VOID_PROMISE_INTERNAL(arg2, Dictionary(info[1], info.GetIsolate
()), info); |
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 Loading... |
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 Loading... |
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 Loading... |
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 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8497 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8508 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8498 impl->activityLoggingAccessForAllWorldsMethod(); | 8509 impl->activityLoggingAccessForAllWorldsMethod(); |
8499 } | 8510 } |
8500 | 8511 |
8501 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 8512 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
8502 { | 8513 { |
8503 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 8514 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
8504 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 8515 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
8505 V8PerContextData* contextData = scriptState->perContextData(); | 8516 V8PerContextData* contextData = scriptState->perContextData(); |
8506 if (contextData && contextData->activityLogger()) { | 8517 if (contextData && contextData->activityLogger()) { |
8507 Vector<v8::Handle<v8::Value> > loggerArgs = toImplArguments<v8::Handle<v
8::Value> >(info, 0); | 8518 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activit
yLoggingAccessForAllWorldsMethod", "TestObject", info.Holder(), info.GetIsolate(
)); |
| 8519 Vector<v8::Handle<v8::Value> > loggerArgs = toImplArguments<v8::Handle<v
8::Value> >(info, 0, exceptionState); |
8508 contextData->activityLogger()->logMethod("TestObject.activityLoggingAcce
ssForAllWorldsMethod", info.Length(), loggerArgs.data()); | 8520 contextData->activityLogger()->logMethod("TestObject.activityLoggingAcce
ssForAllWorldsMethod", info.Length(), loggerArgs.data()); |
8509 } | 8521 } |
8510 TestObjectV8Internal::activityLoggingAccessForAllWorldsMethodMethod(info); | 8522 TestObjectV8Internal::activityLoggingAccessForAllWorldsMethodMethod(info); |
8511 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8523 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
8512 } | 8524 } |
8513 | 8525 |
8514 static void callWithExecutionContextVoidMethodMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 8526 static void callWithExecutionContextVoidMethodMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
8515 { | 8527 { |
8516 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8528 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
8517 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); | 8529 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); |
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9232 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9244 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9233 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); | 9245 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); |
9234 } | 9246 } |
9235 | 9247 |
9236 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) | 9248 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) |
9237 { | 9249 { |
9238 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9250 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9239 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 9251 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
9240 V8PerContextData* contextData = scriptState->perContextData(); | 9252 V8PerContextData* contextData = scriptState->perContextData(); |
9241 if (contextData && contextData->activityLogger()) { | 9253 if (contextData && contextData->activityLogger()) { |
9242 Vector<v8::Handle<v8::Value> > loggerArgs = toImplArguments<v8::Handle<v
8::Value> >(info, 0); | 9254 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activit
yLoggingForAllWorldsPerWorldBindingsVoidMethod", "TestObject", info.Holder(), in
fo.GetIsolate()); |
| 9255 Vector<v8::Handle<v8::Value> > loggerArgs = toImplArguments<v8::Handle<v
8::Value> >(info, 0, exceptionState); |
9243 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA
llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); | 9256 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA
llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); |
9244 } | 9257 } |
9245 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM
ethod(info); | 9258 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM
ethod(info); |
9246 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9259 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9247 } | 9260 } |
9248 | 9261 |
9249 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo
rld(const v8::FunctionCallbackInfo<v8::Value>& info) | 9262 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo
rld(const v8::FunctionCallbackInfo<v8::Value>& info) |
9250 { | 9263 { |
9251 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9264 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9252 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); | 9265 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); |
9253 } | 9266 } |
9254 | 9267 |
9255 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF
orMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 9268 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF
orMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
9256 { | 9269 { |
9257 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9270 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9258 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 9271 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
9259 V8PerContextData* contextData = scriptState->perContextData(); | 9272 V8PerContextData* contextData = scriptState->perContextData(); |
9260 if (contextData && contextData->activityLogger()) { | 9273 if (contextData && contextData->activityLogger()) { |
9261 Vector<v8::Handle<v8::Value> > loggerArgs = toImplArguments<v8::Handle<v
8::Value> >(info, 0); | 9274 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activit
yLoggingForAllWorldsPerWorldBindingsVoidMethod", "TestObject", info.Holder(), in
fo.GetIsolate()); |
| 9275 Vector<v8::Handle<v8::Value> > loggerArgs = toImplArguments<v8::Handle<v
8::Value> >(info, 0, exceptionState); |
9262 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA
llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); | 9276 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA
llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); |
9263 } | 9277 } |
9264 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM
ethodForMainWorld(info); | 9278 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM
ethodForMainWorld(info); |
9265 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9279 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9266 } | 9280 } |
9267 | 9281 |
9268 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con
st v8::FunctionCallbackInfo<v8::Value>& info) | 9282 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con
st v8::FunctionCallbackInfo<v8::Value>& info) |
9269 { | 9283 { |
9270 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9284 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9271 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); | 9285 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); |
9272 } | 9286 } |
9273 | 9287 |
9274 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall
back(const v8::FunctionCallbackInfo<v8::Value>& info) | 9288 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall
back(const v8::FunctionCallbackInfo<v8::Value>& info) |
9275 { | 9289 { |
9276 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9290 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9277 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 9291 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
9278 V8PerContextData* contextData = scriptState->perContextData(); | 9292 V8PerContextData* contextData = scriptState->perContextData(); |
9279 if (contextData && contextData->activityLogger()) { | 9293 if (contextData && contextData->activityLogger()) { |
9280 Vector<v8::Handle<v8::Value> > loggerArgs = toImplArguments<v8::Handle<v
8::Value> >(info, 0); | 9294 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activit
yLoggingForIsolatedWorldsPerWorldBindingsVoidMethod", "TestObject", info.Holder(
), info.GetIsolate()); |
| 9295 Vector<v8::Handle<v8::Value> > loggerArgs = toImplArguments<v8::Handle<v
8::Value> >(info, 0, exceptionState); |
9281 contextData->activityLogger()->logMethod("TestObject.activityLoggingForI
solatedWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); | 9296 contextData->activityLogger()->logMethod("TestObject.activityLoggingForI
solatedWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); |
9282 } | 9297 } |
9283 TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMe
thodMethod(info); | 9298 TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMe
thodMethod(info); |
9284 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9299 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9285 } | 9300 } |
9286 | 9301 |
9287 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForM
ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 9302 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForM
ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
9288 { | 9303 { |
9289 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9304 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9290 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); | 9305 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); |
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9741 | 9756 |
9742 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback(c
onst v8::FunctionCallbackInfo<v8::Value>& info) | 9757 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback(c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
9743 { | 9758 { |
9744 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9759 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9745 TestObjectV8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMe
thod(info); | 9760 TestObjectV8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMe
thod(info); |
9746 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9761 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9747 } | 9762 } |
9748 | 9763 |
9749 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArgMethod(c
onst v8::FunctionCallbackInfo<v8::Value>& info) | 9764 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArgMethod(c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
9750 { | 9765 { |
| 9766 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin
gInterfaceVoidMethodTestInterfaceEmptyVariadicArg", "TestObject", info.Holder(),
info.GetIsolate()); |
9751 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9767 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9752 Vector<RefPtr<TestInterfaceEmpty> > testInterfaceEmptyArg; | 9768 Vector<RefPtr<TestInterfaceEmpty> > testInterfaceEmptyArg; |
9753 { | 9769 { |
9754 for (int i = 0; i < info.Length(); ++i) { | 9770 for (int i = 0; i < info.Length(); ++i) { |
9755 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate()))
{ | 9771 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate()))
{ |
9756 V8ThrowException::throwTypeError(ExceptionMessages::failedToExec
ute("typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArg", "TestObject"
, "parameter 1 is not of type 'TestInterfaceEmpty'."), info.GetIsolate()); | 9772 exceptionState.throwTypeError("parameter 1 is not of type 'TestI
nterfaceEmpty'."); |
| 9773 exceptionState.throwIfNeeded(); |
9757 return; | 9774 return; |
9758 } | 9775 } |
9759 testInterfaceEmptyArg.append(V8TestInterfaceEmpty::toImpl(v8::Handle
<v8::Object>::Cast(info[i]))); | 9776 testInterfaceEmptyArg.append(V8TestInterfaceEmpty::toImpl(v8::Handle
<v8::Object>::Cast(info[i]))); |
9760 } | 9777 } |
9761 } | 9778 } |
9762 impl->typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArg(testInter
faceEmptyArg); | 9779 impl->typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArg(testInter
faceEmptyArg); |
9763 } | 9780 } |
9764 | 9781 |
9765 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArgMethodCa
llback(const v8::FunctionCallbackInfo<v8::Value>& info) | 9782 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArgMethodCa
llback(const v8::FunctionCallbackInfo<v8::Value>& info) |
9766 { | 9783 { |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9812 | 9829 |
9813 static void unforgeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 9830 static void unforgeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
9814 { | 9831 { |
9815 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9832 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9816 TestObjectV8Internal::unforgeableVoidMethodMethod(info); | 9833 TestObjectV8Internal::unforgeableVoidMethodMethod(info); |
9817 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9834 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9818 } | 9835 } |
9819 | 9836 |
9820 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethod(const v8::F
unctionCallbackInfo<v8::Value>& info) | 9837 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethod(const v8::F
unctionCallbackInfo<v8::Value>& info) |
9821 { | 9838 { |
| 9839 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceGarbageCollectedSequenceArg", "TestObject", info.Holder(), info.GetI
solate()); |
9822 if (UNLIKELY(info.Length() < 1)) { | 9840 if (UNLIKELY(info.Length() < 1)) { |
9823 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v
oidMethodTestInterfaceGarbageCollectedSequenceArg", "TestObject", 1, info.Length
(), info.GetIsolate()), info.GetIsolate()); | 9841 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 9842 exceptionState.throwIfNeeded(); |
9824 return; | 9843 return; |
9825 } | 9844 } |
9826 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9845 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9827 HeapVector<Member<TestInterfaceGarbageCollected> > testInterfaceGarbageColle
ctedSequenceArg; | 9846 HeapVector<Member<TestInterfaceGarbageCollected> > testInterfaceGarbageColle
ctedSequenceArg; |
9828 { | 9847 { |
9829 v8::TryCatch block; | 9848 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceGarbageCollectedSeque
nceArg, (toMemberNativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarba
geCollected>(info[0], 1, info.GetIsolate(), exceptionState)), exceptionState); |
9830 V8RethrowTryCatchScope rethrow(block); | |
9831 TONATIVE_VOID_INTERNAL(testInterfaceGarbageCollectedSequenceArg, (toMemb
erNativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageCollected>(in
fo[0], 1, info.GetIsolate()))); | |
9832 } | 9849 } |
9833 impl->voidMethodTestInterfaceGarbageCollectedSequenceArg(testInterfaceGarbag
eCollectedSequenceArg); | 9850 impl->voidMethodTestInterfaceGarbageCollectedSequenceArg(testInterfaceGarbag
eCollectedSequenceArg); |
9834 } | 9851 } |
9835 | 9852 |
9836 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback(con
st v8::FunctionCallbackInfo<v8::Value>& info) | 9853 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback(con
st v8::FunctionCallbackInfo<v8::Value>& info) |
9837 { | 9854 { |
9838 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9855 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9839 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedSequenceArgMeth
od(info); | 9856 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedSequenceArgMeth
od(info); |
9840 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9857 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9841 } | 9858 } |
9842 | 9859 |
9843 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) | 9860 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) |
9844 { | 9861 { |
| 9862 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceGarbageCollectedArrayArg", "TestObject", info.Holder(), info.GetIsol
ate()); |
9845 if (UNLIKELY(info.Length() < 1)) { | 9863 if (UNLIKELY(info.Length() < 1)) { |
9846 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v
oidMethodTestInterfaceGarbageCollectedArrayArg", "TestObject", 1, info.Length(),
info.GetIsolate()), info.GetIsolate()); | 9864 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 9865 exceptionState.throwIfNeeded(); |
9847 return; | 9866 return; |
9848 } | 9867 } |
9849 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9868 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9850 HeapVector<Member<TestInterfaceGarbageCollected> > testInterfaceGarbageColle
ctedArrayArg; | 9869 HeapVector<Member<TestInterfaceGarbageCollected> > testInterfaceGarbageColle
ctedArrayArg; |
9851 { | 9870 { |
9852 v8::TryCatch block; | 9871 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceGarbageCollectedArray
Arg, (toMemberNativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageC
ollected>(info[0], 1, info.GetIsolate(), exceptionState)), exceptionState); |
9853 V8RethrowTryCatchScope rethrow(block); | |
9854 TONATIVE_VOID_INTERNAL(testInterfaceGarbageCollectedArrayArg, (toMemberN
ativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageCollected>(info[
0], 1, info.GetIsolate()))); | |
9855 } | 9872 } |
9856 impl->voidMethodTestInterfaceGarbageCollectedArrayArg(testInterfaceGarbageCo
llectedArrayArg); | 9873 impl->voidMethodTestInterfaceGarbageCollectedArrayArg(testInterfaceGarbageCo
llectedArrayArg); |
9857 } | 9874 } |
9858 | 9875 |
9859 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) | 9876 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
9860 { | 9877 { |
9861 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9878 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9862 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedArrayArgMethod(
info); | 9879 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedArrayArgMethod(
info); |
9863 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9880 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9864 } | 9881 } |
9865 | 9882 |
9866 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) | 9883 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) |
9867 { | 9884 { |
| 9885 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceWillBeGarbageCollectedSequenceArg", "TestObject", info.Holder(), inf
o.GetIsolate()); |
9868 if (UNLIKELY(info.Length() < 1)) { | 9886 if (UNLIKELY(info.Length() < 1)) { |
9869 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v
oidMethodTestInterfaceWillBeGarbageCollectedSequenceArg", "TestObject", 1, info.
Length(), info.GetIsolate()), info.GetIsolate()); | 9887 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 9888 exceptionState.throwIfNeeded(); |
9870 return; | 9889 return; |
9871 } | 9890 } |
9872 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9891 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9873 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > t
estInterfaceWillBeGarbageCollectedSequenceArg; | 9892 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > t
estInterfaceWillBeGarbageCollectedSequenceArg; |
9874 { | 9893 { |
9875 v8::TryCatch block; | 9894 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceWillBeGarbageCollecte
dSequenceArg, (toRefPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollect
ed, V8TestInterfaceWillBeGarbageCollected>(info[0], 1, info.GetIsolate(), except
ionState)), exceptionState); |
9876 V8RethrowTryCatchScope rethrow(block); | |
9877 TONATIVE_VOID_INTERNAL(testInterfaceWillBeGarbageCollectedSequenceArg, (
toRefPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollected, V8TestInter
faceWillBeGarbageCollected>(info[0], 1, info.GetIsolate()))); | |
9878 } | 9895 } |
9879 impl->voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(testInterface
WillBeGarbageCollectedSequenceArg); | 9896 impl->voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(testInterface
WillBeGarbageCollectedSequenceArg); |
9880 } | 9897 } |
9881 | 9898 |
9882 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) | 9899 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) |
9883 { | 9900 { |
9884 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9901 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9885 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceA
rgMethod(info); | 9902 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceA
rgMethod(info); |
9886 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9903 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9887 } | 9904 } |
9888 | 9905 |
9889 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethod(const v8
::FunctionCallbackInfo<v8::Value>& info) | 9906 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethod(const v8
::FunctionCallbackInfo<v8::Value>& info) |
9890 { | 9907 { |
| 9908 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceWillBeGarbageCollectedArrayArg", "TestObject", info.Holder(), info.G
etIsolate()); |
9891 if (UNLIKELY(info.Length() < 1)) { | 9909 if (UNLIKELY(info.Length() < 1)) { |
9892 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v
oidMethodTestInterfaceWillBeGarbageCollectedArrayArg", "TestObject", 1, info.Len
gth(), info.GetIsolate()), info.GetIsolate()); | 9910 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 9911 exceptionState.throwIfNeeded(); |
9893 return; | 9912 return; |
9894 } | 9913 } |
9895 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 9914 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
9896 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > t
estInterfaceWillBeGarbageCollectedArrayArg; | 9915 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > t
estInterfaceWillBeGarbageCollectedArrayArg; |
9897 { | 9916 { |
9898 v8::TryCatch block; | 9917 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceWillBeGarbageCollecte
dArrayArg, (toRefPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollected,
V8TestInterfaceWillBeGarbageCollected>(info[0], 1, info.GetIsolate(), exception
State)), exceptionState); |
9899 V8RethrowTryCatchScope rethrow(block); | |
9900 TONATIVE_VOID_INTERNAL(testInterfaceWillBeGarbageCollectedArrayArg, (toR
efPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollected, V8TestInterfac
eWillBeGarbageCollected>(info[0], 1, info.GetIsolate()))); | |
9901 } | 9918 } |
9902 impl->voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(testInterfaceWil
lBeGarbageCollectedArrayArg); | 9919 impl->voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(testInterfaceWil
lBeGarbageCollectedArrayArg); |
9903 } | 9920 } |
9904 | 9921 |
9905 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) | 9922 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) |
9906 { | 9923 { |
9907 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 9924 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
9908 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgM
ethod(info); | 9925 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgM
ethod(info); |
9909 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 9926 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
9910 } | 9927 } |
(...skipping 1281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11192 PrivateScriptRunner::runDOMAttributeSetter(scriptState, "TestObject", "enumF
orPrivateScript", holder, v8String(scriptState->isolate(), cppValue)); | 11209 PrivateScriptRunner::runDOMAttributeSetter(scriptState, "TestObject", "enumF
orPrivateScript", holder, v8String(scriptState->isolate(), cppValue)); |
11193 if (block.HasCaught()) { | 11210 if (block.HasCaught()) { |
11194 PrivateScriptRunner::rethrowExceptionInPrivateScript(scriptState->isolat
e(), exceptionState, block); | 11211 PrivateScriptRunner::rethrowExceptionInPrivateScript(scriptState->isolat
e(), exceptionState, block); |
11195 block.ReThrow(); | 11212 block.ReThrow(); |
11196 return false; | 11213 return false; |
11197 } | 11214 } |
11198 return true; | 11215 return true; |
11199 } | 11216 } |
11200 | 11217 |
11201 } // namespace blink | 11218 } // namespace blink |
OLD | NEW |