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

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

Issue 921813002: Fix template angle bracket syntax in bindings (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "bindings/core/v8/BindingSecurity.h" 10 #include "bindings/core/v8/BindingSecurity.h"
(...skipping 1470 matching lines...) Expand 10 before | Expand all | Expand 10 after
1481 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1481 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1482 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeGetter(info); 1482 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeGetter(info);
1483 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1483 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1484 } 1484 }
1485 1485
1486 static void testInterfaceEmptyArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1486 static void testInterfaceEmptyArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1487 { 1487 {
1488 v8::Local<v8::Object> holder = info.Holder(); 1488 v8::Local<v8::Object> holder = info.Holder();
1489 ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceE mptyArrayAttribute", "TestObject", holder, info.GetIsolate()); 1489 ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceE mptyArrayAttribute", "TestObject", holder, info.GetIsolate());
1490 TestObject* impl = V8TestObject::toImpl(holder); 1490 TestObject* impl = V8TestObject::toImpl(holder);
1491 TONATIVE_VOID_EXCEPTIONSTATE(Vector<RefPtr<TestInterfaceEmpty> >, cppValue, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(v8Value, 0, info. GetIsolate(), exceptionState)), exceptionState); 1491 TONATIVE_VOID_EXCEPTIONSTATE(Vector<RefPtr<TestInterfaceEmpty>>, cppValue, ( toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(v8Value, 0, info.G etIsolate(), exceptionState)), exceptionState);
1492 impl->setTestInterfaceEmptyArrayAttribute(cppValue); 1492 impl->setTestInterfaceEmptyArrayAttribute(cppValue);
1493 } 1493 }
1494 1494
1495 static void testInterfaceEmptyArrayAttributeAttributeSetterCallback(v8::Local<v8 ::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo) 1495 static void testInterfaceEmptyArrayAttributeAttributeSetterCallback(v8::Local<v8 ::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo)
1496 { 1496 {
1497 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1497 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1498 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeSetter(v8Valu e, info); 1498 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeSetter(v8Valu e, info);
1499 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1499 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1500 } 1500 }
1501 1501
(...skipping 4876 matching lines...) Expand 10 before | Expand all | Expand 10 after
6378 6378
6379 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) 6379 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info)
6380 { 6380 {
6381 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA rrayTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); 6381 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA rrayTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate());
6382 if (UNLIKELY(info.Length() < 1)) { 6382 if (UNLIKELY(info.Length() < 1)) {
6383 setMinimumArityTypeError(exceptionState, 1, info.Length()); 6383 setMinimumArityTypeError(exceptionState, 1, info.Length());
6384 exceptionState.throwIfNeeded(); 6384 exceptionState.throwIfNeeded();
6385 return; 6385 return;
6386 } 6386 }
6387 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6387 TestObject* impl = V8TestObject::toImpl(info.Holder());
6388 Vector<RefPtr<TestInterfaceEmpty> > arrayTestInterfaceEmptyArg; 6388 Vector<RefPtr<TestInterfaceEmpty>> arrayTestInterfaceEmptyArg;
6389 { 6389 {
6390 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arrayTestInterfaceEmptyArg, (toRef PtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIso late(), exceptionState)), exceptionState); 6390 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arrayTestInterfaceEmptyArg, (toRef PtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIso late(), exceptionState)), exceptionState);
6391 } 6391 }
6392 impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg); 6392 impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg);
6393 } 6393 }
6394 6394
6395 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 6395 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
6396 { 6396 {
6397 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6397 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6398 TestObjectV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info); 6398 TestObjectV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info);
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
6486 6486
6487 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) 6487 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info)
6488 { 6488 {
6489 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS equenceTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); 6489 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS equenceTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate());
6490 if (UNLIKELY(info.Length() < 1)) { 6490 if (UNLIKELY(info.Length() < 1)) {
6491 setMinimumArityTypeError(exceptionState, 1, info.Length()); 6491 setMinimumArityTypeError(exceptionState, 1, info.Length());
6492 exceptionState.throwIfNeeded(); 6492 exceptionState.throwIfNeeded();
6493 return; 6493 return;
6494 } 6494 }
6495 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6495 TestObject* impl = V8TestObject::toImpl(info.Holder());
6496 Vector<RefPtr<TestInterfaceEmpty> > testInterfaceEmptySequenceArg; 6496 Vector<RefPtr<TestInterfaceEmpty>> testInterfaceEmptySequenceArg;
6497 { 6497 {
6498 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceEmptySequenceArg, (to RefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.Get Isolate(), exceptionState)), exceptionState); 6498 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceEmptySequenceArg, (to RefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.Get Isolate(), exceptionState)), exceptionState);
6499 } 6499 }
6500 impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg) ; 6500 impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg) ;
6501 } 6501 }
6502 6502
6503 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 6503 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
6504 { 6504 {
6505 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6505 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6506 TestObjectV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(info); 6506 TestObjectV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(info);
6507 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6507 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6508 } 6508 }
6509 6509
6510 static void voidMethodSequenceSequenceDOMStringArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info) 6510 static void voidMethodSequenceSequenceDOMStringArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info)
6511 { 6511 {
6512 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS equenceSequenceDOMStringArg", "TestObject", info.Holder(), info.GetIsolate()); 6512 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS equenceSequenceDOMStringArg", "TestObject", info.Holder(), info.GetIsolate());
6513 if (UNLIKELY(info.Length() < 1)) { 6513 if (UNLIKELY(info.Length() < 1)) {
6514 setMinimumArityTypeError(exceptionState, 1, info.Length()); 6514 setMinimumArityTypeError(exceptionState, 1, info.Length());
6515 exceptionState.throwIfNeeded(); 6515 exceptionState.throwIfNeeded();
6516 return; 6516 return;
6517 } 6517 }
6518 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6518 TestObject* impl = V8TestObject::toImpl(info.Holder());
6519 Vector<Vector<String> > stringSequenceSequenceArg; 6519 Vector<Vector<String>> stringSequenceSequenceArg;
6520 { 6520 {
6521 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(stringSequenceSequenceArg, toImplA rray<Vector<String>>(info[0], 1, info.GetIsolate(), exceptionState), exceptionSt ate); 6521 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(stringSequenceSequenceArg, toImplA rray<Vector<String>>(info[0], 1, info.GetIsolate(), exceptionState), exceptionSt ate);
6522 } 6522 }
6523 impl->voidMethodSequenceSequenceDOMStringArg(stringSequenceSequenceArg); 6523 impl->voidMethodSequenceSequenceDOMStringArg(stringSequenceSequenceArg);
6524 } 6524 }
6525 6525
6526 static void voidMethodSequenceSequenceDOMStringArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) 6526 static void voidMethodSequenceSequenceDOMStringArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
6527 { 6527 {
6528 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6528 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6529 TestObjectV8Internal::voidMethodSequenceSequenceDOMStringArgMethod(info); 6529 TestObjectV8Internal::voidMethodSequenceSequenceDOMStringArgMethod(info);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
6569 static void nullableTestInterfaceMethodMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 6569 static void nullableTestInterfaceMethodMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
6570 { 6570 {
6571 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6571 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6572 TestObjectV8Internal::nullableTestInterfaceMethodMethod(info); 6572 TestObjectV8Internal::nullableTestInterfaceMethodMethod(info);
6573 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6573 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6574 } 6574 }
6575 6575
6576 static void nullableLongSequenceMethodMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 6576 static void nullableLongSequenceMethodMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
6577 { 6577 {
6578 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6578 TestObject* impl = V8TestObject::toImpl(info.Holder());
6579 Nullable<Vector<int> > result = impl->nullableLongSequenceMethod(); 6579 Nullable<Vector<int>> result = impl->nullableLongSequenceMethod();
6580 if (result.isNull()) 6580 if (result.isNull())
6581 v8SetReturnValueNull(info); 6581 v8SetReturnValueNull(info);
6582 else 6582 else
6583 v8SetReturnValue(info, toV8(result.get(), info.Holder(), info.GetIsolate ())); 6583 v8SetReturnValue(info, toV8(result.get(), info.Holder(), info.GetIsolate ()));
6584 } 6584 }
6585 6585
6586 static void nullableLongSequenceMethodMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 6586 static void nullableLongSequenceMethodMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
6587 { 6587 {
6588 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6588 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6589 TestObjectV8Internal::nullableLongSequenceMethodMethod(info); 6589 TestObjectV8Internal::nullableLongSequenceMethodMethod(info);
(...skipping 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after
7807 { 7807 {
7808 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7808 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7809 TestObjectV8Internal::voidMethodStringArgVariadicStringArgMethod(info); 7809 TestObjectV8Internal::voidMethodStringArgVariadicStringArgMethod(info);
7810 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7810 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7811 } 7811 }
7812 7812
7813 static void voidMethodVariadicTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) 7813 static void voidMethodVariadicTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info)
7814 { 7814 {
7815 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodV ariadicTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); 7815 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodV ariadicTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate());
7816 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7816 TestObject* impl = V8TestObject::toImpl(info.Holder());
7817 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; 7817 Vector<RefPtr<TestInterfaceEmpty>> variadicTestInterfaceEmptyArgs;
7818 { 7818 {
7819 for (int i = 0; i < info.Length(); ++i) { 7819 for (int i = 0; i < info.Length(); ++i) {
7820 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) { 7820 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) {
7821 exceptionState.throwTypeError("parameter 1 is not of type 'TestI nterfaceEmpty'."); 7821 exceptionState.throwTypeError("parameter 1 is not of type 'TestI nterfaceEmpty'.");
7822 exceptionState.throwIfNeeded(); 7822 exceptionState.throwIfNeeded();
7823 return; 7823 return;
7824 } 7824 }
7825 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toImpl(v 8::Local<v8::Object>::Cast(info[i]))); 7825 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toImpl(v 8::Local<v8::Object>::Cast(info[i])));
7826 } 7826 }
7827 } 7827 }
(...skipping 10 matching lines...) Expand all
7838 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(c onst v8::FunctionCallbackInfo<v8::Value>& info) 7838 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(c onst v8::FunctionCallbackInfo<v8::Value>& info)
7839 { 7839 {
7840 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT estInterfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); 7840 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT estInterfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate());
7841 if (UNLIKELY(info.Length() < 1)) { 7841 if (UNLIKELY(info.Length() < 1)) {
7842 setMinimumArityTypeError(exceptionState, 1, info.Length()); 7842 setMinimumArityTypeError(exceptionState, 1, info.Length());
7843 exceptionState.throwIfNeeded(); 7843 exceptionState.throwIfNeeded();
7844 return; 7844 return;
7845 } 7845 }
7846 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7846 TestObject* impl = V8TestObject::toImpl(info.Holder());
7847 TestInterfaceEmpty* testInterfaceEmptyArg; 7847 TestInterfaceEmpty* testInterfaceEmptyArg;
7848 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; 7848 Vector<RefPtr<TestInterfaceEmpty>> variadicTestInterfaceEmptyArgs;
7849 { 7849 {
7850 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G etIsolate(), info[0]); 7850 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G etIsolate(), info[0]);
7851 for (int i = 1; i < info.Length(); ++i) { 7851 for (int i = 1; i < info.Length(); ++i) {
7852 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) { 7852 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) {
7853 exceptionState.throwTypeError("parameter 2 is not of type 'TestI nterfaceEmpty'."); 7853 exceptionState.throwTypeError("parameter 2 is not of type 'TestI nterfaceEmpty'.");
7854 exceptionState.throwIfNeeded(); 7854 exceptionState.throwIfNeeded();
7855 return; 7855 return;
7856 } 7856 }
7857 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toImpl(v 8::Local<v8::Object>::Cast(info[i]))); 7857 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toImpl(v 8::Local<v8::Object>::Cast(info[i])));
7858 } 7858 }
7859 } 7859 }
7860 impl->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInter faceEmptyArg, variadicTestInterfaceEmptyArgs); 7860 impl->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInter faceEmptyArg, variadicTestInterfaceEmptyArgs);
7861 } 7861 }
7862 7862
7863 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa llback(const v8::FunctionCallbackInfo<v8::Value>& info) 7863 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa llback(const v8::FunctionCallbackInfo<v8::Value>& info)
7864 { 7864 {
7865 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7865 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7866 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEm ptyArgMethod(info); 7866 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEm ptyArgMethod(info);
7867 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7867 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7868 } 7868 }
7869 7869
7870 static void voidMethodVariadicTestInterfaceGarbageCollectedArgMethod(const v8::F unctionCallbackInfo<v8::Value>& info) 7870 static void voidMethodVariadicTestInterfaceGarbageCollectedArgMethod(const v8::F unctionCallbackInfo<v8::Value>& info)
7871 { 7871 {
7872 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodV ariadicTestInterfaceGarbageCollectedArg", "TestObject", info.Holder(), info.GetI solate()); 7872 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodV ariadicTestInterfaceGarbageCollectedArg", "TestObject", info.Holder(), info.GetI solate());
7873 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7873 TestObject* impl = V8TestObject::toImpl(info.Holder());
7874 HeapVector<Member<TestInterfaceGarbageCollected> > variadicTestInterfaceGarb ageCollectedArg; 7874 HeapVector<Member<TestInterfaceGarbageCollected>> variadicTestInterfaceGarba geCollectedArg;
7875 { 7875 {
7876 for (int i = 0; i < info.Length(); ++i) { 7876 for (int i = 0; i < info.Length(); ++i) {
7877 if (!V8TestInterfaceGarbageCollected::hasInstance(info[i], info.GetI solate())) { 7877 if (!V8TestInterfaceGarbageCollected::hasInstance(info[i], info.GetI solate())) {
7878 exceptionState.throwTypeError("parameter 1 is not of type 'TestI nterfaceGarbageCollected'."); 7878 exceptionState.throwTypeError("parameter 1 is not of type 'TestI nterfaceGarbageCollected'.");
7879 exceptionState.throwIfNeeded(); 7879 exceptionState.throwIfNeeded();
7880 return; 7880 return;
7881 } 7881 }
7882 variadicTestInterfaceGarbageCollectedArg.append(V8TestInterfaceGarba geCollected::toImpl(v8::Local<v8::Object>::Cast(info[i]))); 7882 variadicTestInterfaceGarbageCollectedArg.append(V8TestInterfaceGarba geCollected::toImpl(v8::Local<v8::Object>::Cast(info[i])));
7883 } 7883 }
7884 } 7884 }
7885 impl->voidMethodVariadicTestInterfaceGarbageCollectedArg(variadicTestInterfa ceGarbageCollectedArg); 7885 impl->voidMethodVariadicTestInterfaceGarbageCollectedArg(variadicTestInterfa ceGarbageCollectedArg);
7886 } 7886 }
7887 7887
7888 static void voidMethodVariadicTestInterfaceGarbageCollectedArgMethodCallback(con st v8::FunctionCallbackInfo<v8::Value>& info) 7888 static void voidMethodVariadicTestInterfaceGarbageCollectedArgMethodCallback(con st v8::FunctionCallbackInfo<v8::Value>& info)
7889 { 7889 {
7890 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7890 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7891 TestObjectV8Internal::voidMethodVariadicTestInterfaceGarbageCollectedArgMeth od(info); 7891 TestObjectV8Internal::voidMethodVariadicTestInterfaceGarbageCollectedArgMeth od(info);
7892 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7892 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7893 } 7893 }
7894 7894
7895 static void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 7895 static void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
7896 { 7896 {
7897 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodV ariadicTestInterfaceWillBeGarbageCollectedArg", "TestObject", info.Holder(), inf o.GetIsolate()); 7897 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodV ariadicTestInterfaceWillBeGarbageCollectedArg", "TestObject", info.Holder(), inf o.GetIsolate());
7898 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7898 TestObject* impl = V8TestObject::toImpl(info.Holder());
7899 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > v ariadicTestInterfaceWillBeGarbageCollectedArg; 7899 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected>> va riadicTestInterfaceWillBeGarbageCollectedArg;
7900 { 7900 {
7901 for (int i = 0; i < info.Length(); ++i) { 7901 for (int i = 0; i < info.Length(); ++i) {
7902 if (!V8TestInterfaceWillBeGarbageCollected::hasInstance(info[i], inf o.GetIsolate())) { 7902 if (!V8TestInterfaceWillBeGarbageCollected::hasInstance(info[i], inf o.GetIsolate())) {
7903 exceptionState.throwTypeError("parameter 1 is not of type 'TestI nterfaceWillBeGarbageCollected'."); 7903 exceptionState.throwTypeError("parameter 1 is not of type 'TestI nterfaceWillBeGarbageCollected'.");
7904 exceptionState.throwIfNeeded(); 7904 exceptionState.throwIfNeeded();
7905 return; 7905 return;
7906 } 7906 }
7907 variadicTestInterfaceWillBeGarbageCollectedArg.append(V8TestInterfac eWillBeGarbageCollected::toImpl(v8::Local<v8::Object>::Cast(info[i]))); 7907 variadicTestInterfaceWillBeGarbageCollectedArg.append(V8TestInterfac eWillBeGarbageCollected::toImpl(v8::Local<v8::Object>::Cast(info[i])));
7908 } 7908 }
7909 } 7909 }
(...skipping 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after
9064 impl->activityLoggingAccessForAllWorldsMethod(); 9064 impl->activityLoggingAccessForAllWorldsMethod();
9065 } 9065 }
9066 9066
9067 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 9067 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
9068 { 9068 {
9069 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9069 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9070 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 9070 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
9071 V8PerContextData* contextData = scriptState->perContextData(); 9071 V8PerContextData* contextData = scriptState->perContextData();
9072 if (contextData && contextData->activityLogger()) { 9072 if (contextData && contextData->activityLogger()) {
9073 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activit yLoggingAccessForAllWorldsMethod", "TestObject", info.Holder(), info.GetIsolate( )); 9073 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activit yLoggingAccessForAllWorldsMethod", "TestObject", info.Holder(), info.GetIsolate( ));
9074 Vector<v8::Local<v8::Value> > loggerArgs = toImplArguments<v8::Local<v8: :Value> >(info, 0, exceptionState); 9074 Vector<v8::Local<v8::Value>> loggerArgs = toImplArguments<v8::Local<v8:: Value>>(info, 0, exceptionState);
9075 contextData->activityLogger()->logMethod("TestObject.activityLoggingAcce ssForAllWorldsMethod", info.Length(), loggerArgs.data()); 9075 contextData->activityLogger()->logMethod("TestObject.activityLoggingAcce ssForAllWorldsMethod", info.Length(), loggerArgs.data());
9076 } 9076 }
9077 TestObjectV8Internal::activityLoggingAccessForAllWorldsMethodMethod(info); 9077 TestObjectV8Internal::activityLoggingAccessForAllWorldsMethodMethod(info);
9078 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9078 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9079 } 9079 }
9080 9080
9081 static void callWithExecutionContextVoidMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 9081 static void callWithExecutionContextVoidMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
9082 { 9082 {
9083 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9083 TestObject* impl = V8TestObject::toImpl(info.Holder());
9084 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 9084 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after
9780 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); 9780 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod();
9781 } 9781 }
9782 9782
9783 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info) 9783 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info)
9784 { 9784 {
9785 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9785 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9786 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 9786 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
9787 V8PerContextData* contextData = scriptState->perContextData(); 9787 V8PerContextData* contextData = scriptState->perContextData();
9788 if (contextData && contextData->activityLogger()) { 9788 if (contextData && contextData->activityLogger()) {
9789 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activit yLoggingForAllWorldsPerWorldBindingsVoidMethod", "TestObject", info.Holder(), in fo.GetIsolate()); 9789 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activit yLoggingForAllWorldsPerWorldBindingsVoidMethod", "TestObject", info.Holder(), in fo.GetIsolate());
9790 Vector<v8::Local<v8::Value> > loggerArgs = toImplArguments<v8::Local<v8: :Value> >(info, 0, exceptionState); 9790 Vector<v8::Local<v8::Value>> loggerArgs = toImplArguments<v8::Local<v8:: Value>>(info, 0, exceptionState);
9791 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); 9791 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data());
9792 } 9792 }
9793 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM ethod(info); 9793 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM ethod(info);
9794 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9794 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9795 } 9795 }
9796 9796
9797 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo rld(const v8::FunctionCallbackInfo<v8::Value>& info) 9797 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo rld(const v8::FunctionCallbackInfo<v8::Value>& info)
9798 { 9798 {
9799 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9799 TestObject* impl = V8TestObject::toImpl(info.Holder());
9800 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); 9800 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod();
9801 } 9801 }
9802 9802
9803 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF orMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) 9803 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF orMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
9804 { 9804 {
9805 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9805 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9806 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 9806 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
9807 V8PerContextData* contextData = scriptState->perContextData(); 9807 V8PerContextData* contextData = scriptState->perContextData();
9808 if (contextData && contextData->activityLogger()) { 9808 if (contextData && contextData->activityLogger()) {
9809 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activit yLoggingForAllWorldsPerWorldBindingsVoidMethod", "TestObject", info.Holder(), in fo.GetIsolate()); 9809 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activit yLoggingForAllWorldsPerWorldBindingsVoidMethod", "TestObject", info.Holder(), in fo.GetIsolate());
9810 Vector<v8::Local<v8::Value> > loggerArgs = toImplArguments<v8::Local<v8: :Value> >(info, 0, exceptionState); 9810 Vector<v8::Local<v8::Value>> loggerArgs = toImplArguments<v8::Local<v8:: Value>>(info, 0, exceptionState);
9811 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); 9811 contextData->activityLogger()->logMethod("TestObject.activityLoggingForA llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data());
9812 } 9812 }
9813 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM ethodForMainWorld(info); 9813 TestObjectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodM ethodForMainWorld(info);
9814 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9814 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9815 } 9815 }
9816 9816
9817 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con st v8::FunctionCallbackInfo<v8::Value>& info) 9817 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con st v8::FunctionCallbackInfo<v8::Value>& info)
9818 { 9818 {
9819 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9819 TestObject* impl = V8TestObject::toImpl(info.Holder());
9820 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); 9820 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod();
9821 } 9821 }
9822 9822
9823 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall back(const v8::FunctionCallbackInfo<v8::Value>& info) 9823 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall back(const v8::FunctionCallbackInfo<v8::Value>& info)
9824 { 9824 {
9825 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9825 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9826 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 9826 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
9827 V8PerContextData* contextData = scriptState->perContextData(); 9827 V8PerContextData* contextData = scriptState->perContextData();
9828 if (contextData && contextData->activityLogger()) { 9828 if (contextData && contextData->activityLogger()) {
9829 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activit yLoggingForIsolatedWorldsPerWorldBindingsVoidMethod", "TestObject", info.Holder( ), info.GetIsolate()); 9829 ExceptionState exceptionState(ExceptionState::ExecutionContext, "activit yLoggingForIsolatedWorldsPerWorldBindingsVoidMethod", "TestObject", info.Holder( ), info.GetIsolate());
9830 Vector<v8::Local<v8::Value> > loggerArgs = toImplArguments<v8::Local<v8: :Value> >(info, 0, exceptionState); 9830 Vector<v8::Local<v8::Value>> loggerArgs = toImplArguments<v8::Local<v8:: Value>>(info, 0, exceptionState);
9831 contextData->activityLogger()->logMethod("TestObject.activityLoggingForI solatedWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data()); 9831 contextData->activityLogger()->logMethod("TestObject.activityLoggingForI solatedWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data());
9832 } 9832 }
9833 TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMe thodMethod(info); 9833 TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMe thodMethod(info);
9834 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9834 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9835 } 9835 }
9836 9836
9837 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForM ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) 9837 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForM ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
9838 { 9838 {
9839 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9839 TestObject* impl = V8TestObject::toImpl(info.Holder());
9840 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); 9840 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod();
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
10308 { 10308 {
10309 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 10309 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
10310 TestObjectV8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMe thod(info); 10310 TestObjectV8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMe thod(info);
10311 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 10311 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
10312 } 10312 }
10313 10313
10314 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArgMethod(c onst v8::FunctionCallbackInfo<v8::Value>& info) 10314 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArgMethod(c onst v8::FunctionCallbackInfo<v8::Value>& info)
10315 { 10315 {
10316 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin gInterfaceVoidMethodTestInterfaceEmptyVariadicArg", "TestObject", info.Holder(), info.GetIsolate()); 10316 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin gInterfaceVoidMethodTestInterfaceEmptyVariadicArg", "TestObject", info.Holder(), info.GetIsolate());
10317 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10317 TestObject* impl = V8TestObject::toImpl(info.Holder());
10318 Vector<RefPtr<TestInterfaceEmpty> > testInterfaceEmptyArg; 10318 Vector<RefPtr<TestInterfaceEmpty>> testInterfaceEmptyArg;
10319 { 10319 {
10320 for (int i = 0; i < info.Length(); ++i) { 10320 for (int i = 0; i < info.Length(); ++i) {
10321 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) { 10321 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) {
10322 exceptionState.throwTypeError("parameter 1 is not of type 'TestI nterfaceEmpty'."); 10322 exceptionState.throwTypeError("parameter 1 is not of type 'TestI nterfaceEmpty'.");
10323 exceptionState.throwIfNeeded(); 10323 exceptionState.throwIfNeeded();
10324 return; 10324 return;
10325 } 10325 }
10326 testInterfaceEmptyArg.append(V8TestInterfaceEmpty::toImpl(v8::Local< v8::Object>::Cast(info[i]))); 10326 testInterfaceEmptyArg.append(V8TestInterfaceEmpty::toImpl(v8::Local< v8::Object>::Cast(info[i])));
10327 } 10327 }
10328 } 10328 }
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
10473 10473
10474 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethod(const v8::F unctionCallbackInfo<v8::Value>& info) 10474 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethod(const v8::F unctionCallbackInfo<v8::Value>& info)
10475 { 10475 {
10476 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT estInterfaceGarbageCollectedSequenceArg", "TestObject", info.Holder(), info.GetI solate()); 10476 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT estInterfaceGarbageCollectedSequenceArg", "TestObject", info.Holder(), info.GetI solate());
10477 if (UNLIKELY(info.Length() < 1)) { 10477 if (UNLIKELY(info.Length() < 1)) {
10478 setMinimumArityTypeError(exceptionState, 1, info.Length()); 10478 setMinimumArityTypeError(exceptionState, 1, info.Length());
10479 exceptionState.throwIfNeeded(); 10479 exceptionState.throwIfNeeded();
10480 return; 10480 return;
10481 } 10481 }
10482 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10482 TestObject* impl = V8TestObject::toImpl(info.Holder());
10483 HeapVector<Member<TestInterfaceGarbageCollected> > testInterfaceGarbageColle ctedSequenceArg; 10483 HeapVector<Member<TestInterfaceGarbageCollected>> testInterfaceGarbageCollec tedSequenceArg;
10484 { 10484 {
10485 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceGarbageCollectedSeque nceArg, (toMemberNativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarba geCollected>(info[0], 1, info.GetIsolate(), exceptionState)), exceptionState); 10485 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceGarbageCollectedSeque nceArg, (toMemberNativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarba geCollected>(info[0], 1, info.GetIsolate(), exceptionState)), exceptionState);
10486 } 10486 }
10487 impl->voidMethodTestInterfaceGarbageCollectedSequenceArg(testInterfaceGarbag eCollectedSequenceArg); 10487 impl->voidMethodTestInterfaceGarbageCollectedSequenceArg(testInterfaceGarbag eCollectedSequenceArg);
10488 } 10488 }
10489 10489
10490 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback(con st v8::FunctionCallbackInfo<v8::Value>& info) 10490 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback(con st v8::FunctionCallbackInfo<v8::Value>& info)
10491 { 10491 {
10492 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 10492 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
10493 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedSequenceArgMeth od(info); 10493 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedSequenceArgMeth od(info);
10494 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 10494 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
10495 } 10495 }
10496 10496
10497 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) 10497 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info)
10498 { 10498 {
10499 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT estInterfaceGarbageCollectedArrayArg", "TestObject", info.Holder(), info.GetIsol ate()); 10499 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT estInterfaceGarbageCollectedArrayArg", "TestObject", info.Holder(), info.GetIsol ate());
10500 if (UNLIKELY(info.Length() < 1)) { 10500 if (UNLIKELY(info.Length() < 1)) {
10501 setMinimumArityTypeError(exceptionState, 1, info.Length()); 10501 setMinimumArityTypeError(exceptionState, 1, info.Length());
10502 exceptionState.throwIfNeeded(); 10502 exceptionState.throwIfNeeded();
10503 return; 10503 return;
10504 } 10504 }
10505 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10505 TestObject* impl = V8TestObject::toImpl(info.Holder());
10506 HeapVector<Member<TestInterfaceGarbageCollected> > testInterfaceGarbageColle ctedArrayArg; 10506 HeapVector<Member<TestInterfaceGarbageCollected>> testInterfaceGarbageCollec tedArrayArg;
10507 { 10507 {
10508 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceGarbageCollectedArray Arg, (toMemberNativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageC ollected>(info[0], 1, info.GetIsolate(), exceptionState)), exceptionState); 10508 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceGarbageCollectedArray Arg, (toMemberNativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageC ollected>(info[0], 1, info.GetIsolate(), exceptionState)), exceptionState);
10509 } 10509 }
10510 impl->voidMethodTestInterfaceGarbageCollectedArrayArg(testInterfaceGarbageCo llectedArrayArg); 10510 impl->voidMethodTestInterfaceGarbageCollectedArrayArg(testInterfaceGarbageCo llectedArrayArg);
10511 } 10511 }
10512 10512
10513 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 10513 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
10514 { 10514 {
10515 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 10515 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
10516 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedArrayArgMethod( info); 10516 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedArrayArgMethod( info);
10517 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 10517 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
10518 } 10518 }
10519 10519
10520 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 10520 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
10521 { 10521 {
10522 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT estInterfaceWillBeGarbageCollectedSequenceArg", "TestObject", info.Holder(), inf o.GetIsolate()); 10522 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT estInterfaceWillBeGarbageCollectedSequenceArg", "TestObject", info.Holder(), inf o.GetIsolate());
10523 if (UNLIKELY(info.Length() < 1)) { 10523 if (UNLIKELY(info.Length() < 1)) {
10524 setMinimumArityTypeError(exceptionState, 1, info.Length()); 10524 setMinimumArityTypeError(exceptionState, 1, info.Length());
10525 exceptionState.throwIfNeeded(); 10525 exceptionState.throwIfNeeded();
10526 return; 10526 return;
10527 } 10527 }
10528 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10528 TestObject* impl = V8TestObject::toImpl(info.Holder());
10529 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > t estInterfaceWillBeGarbageCollectedSequenceArg; 10529 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected>> te stInterfaceWillBeGarbageCollectedSequenceArg;
10530 { 10530 {
10531 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceWillBeGarbageCollecte dSequenceArg, (toRefPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollect ed, V8TestInterfaceWillBeGarbageCollected>(info[0], 1, info.GetIsolate(), except ionState)), exceptionState); 10531 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceWillBeGarbageCollecte dSequenceArg, (toRefPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollect ed, V8TestInterfaceWillBeGarbageCollected>(info[0], 1, info.GetIsolate(), except ionState)), exceptionState);
10532 } 10532 }
10533 impl->voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(testInterface WillBeGarbageCollectedSequenceArg); 10533 impl->voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(testInterface WillBeGarbageCollectedSequenceArg);
10534 } 10534 }
10535 10535
10536 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info) 10536 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info)
10537 { 10537 {
10538 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 10538 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
10539 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceA rgMethod(info); 10539 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceA rgMethod(info);
10540 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 10540 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
10541 } 10541 }
10542 10542
10543 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info) 10543 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info)
10544 { 10544 {
10545 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT estInterfaceWillBeGarbageCollectedArrayArg", "TestObject", info.Holder(), info.G etIsolate()); 10545 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT estInterfaceWillBeGarbageCollectedArrayArg", "TestObject", info.Holder(), info.G etIsolate());
10546 if (UNLIKELY(info.Length() < 1)) { 10546 if (UNLIKELY(info.Length() < 1)) {
10547 setMinimumArityTypeError(exceptionState, 1, info.Length()); 10547 setMinimumArityTypeError(exceptionState, 1, info.Length());
10548 exceptionState.throwIfNeeded(); 10548 exceptionState.throwIfNeeded();
10549 return; 10549 return;
10550 } 10550 }
10551 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10551 TestObject* impl = V8TestObject::toImpl(info.Holder());
10552 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > t estInterfaceWillBeGarbageCollectedArrayArg; 10552 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected>> te stInterfaceWillBeGarbageCollectedArrayArg;
10553 { 10553 {
10554 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceWillBeGarbageCollecte dArrayArg, (toRefPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageCollected>(info[0], 1, info.GetIsolate(), exception State)), exceptionState); 10554 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testInterfaceWillBeGarbageCollecte dArrayArg, (toRefPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageCollected>(info[0], 1, info.GetIsolate(), exception State)), exceptionState);
10555 } 10555 }
10556 impl->voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(testInterfaceWil lBeGarbageCollectedArrayArg); 10556 impl->voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(testInterfaceWil lBeGarbageCollectedArrayArg);
10557 } 10557 }
10558 10558
10559 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info) 10559 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info)
10560 { 10560 {
10561 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 10561 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
10562 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgM ethod(info); 10562 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgM ethod(info);
(...skipping 1490 matching lines...) Expand 10 before | Expand all | Expand 10 after
12053 return false; 12053 return false;
12054 12054
12055 ScriptState::Scope scope(scriptState); 12055 ScriptState::Scope scope(scriptState);
12056 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate()); 12056 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
12057 12057
12058 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 12058 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
12059 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 12059 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
12060 } 12060 }
12061 12061
12062 } // namespace blink 12062 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698