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