| Index: Source/bindings/tests/results/V8TestObject.cpp
|
| diff --git a/Source/bindings/tests/results/V8TestObject.cpp b/Source/bindings/tests/results/V8TestObject.cpp
|
| index c97ebfc4079f08d3b341f4aafc9bc446a4cf8266..83ecef900c97d4f95d38692d72415db3eddeea79 100644
|
| --- a/Source/bindings/tests/results/V8TestObject.cpp
|
| +++ b/Source/bindings/tests/results/V8TestObject.cpp
|
| @@ -39,6 +39,7 @@
|
| #include "bindings/tests/v8/V8NodeFilter.h"
|
| #include "bindings/tests/v8/V8ShadowRoot.h"
|
| #include "bindings/tests/v8/V8TestCallbackInterface.h"
|
| +#include "bindings/tests/v8/V8TestDictionary.h"
|
| #include "bindings/tests/v8/V8TestInterface.h"
|
| #include "bindings/tests/v8/V8TestInterfaceEmpty.h"
|
| #include "bindings/tests/v8/V8TestInterfaceGarbageCollected.h"
|
| @@ -6837,6 +6838,69 @@ static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v
|
| TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
|
| }
|
|
|
| +static void testDictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + TestObject* impl = V8TestObject::toNative(info.Holder());
|
| + v8SetReturnValue(info, impl->testDictionaryMethod());
|
| +}
|
| +
|
| +static void testDictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
|
| + TestObjectV8Internal::testDictionaryMethodMethod(info);
|
| + TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
|
| +}
|
| +
|
| +static void voidMethodTestDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + if (UNLIKELY(info.Length() < 1)) {
|
| + throwMinimumArityTypeErrorForMethod("voidMethodTestDictionaryArg", "TestObject", 1, info.Length(), info.GetIsolate());
|
| + return;
|
| + }
|
| + TestObject* impl = V8TestObject::toNative(info.Holder());
|
| + TestDictionary* testDictionaryArg;
|
| + {
|
| + v8::TryCatch block;
|
| + V8RethrowTryCatchScope rethrow(block);
|
| + if (!info[0]->IsUndefined()) {
|
| + TONATIVE_VOID_INTERNAL(testDictionaryArg, V8TestDictionary::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
|
| + } else {
|
| + testDictionaryArg = TestDictionary::create();
|
| + }
|
| + }
|
| + impl->voidMethodTestDictionaryArg(testDictionaryArg);
|
| +}
|
| +
|
| +static void voidMethodTestDictionaryArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
|
| + TestObjectV8Internal::voidMethodTestDictionaryArgMethod(info);
|
| + TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
|
| +}
|
| +
|
| +static void voidMethodOptionalTestDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + TestObject* impl = V8TestObject::toNative(info.Holder());
|
| + TestDictionary* optionalTestDictionaryArg;
|
| + {
|
| + v8::TryCatch block;
|
| + V8RethrowTryCatchScope rethrow(block);
|
| + if (!info[0]->IsUndefined()) {
|
| + TONATIVE_VOID_INTERNAL(optionalTestDictionaryArg, V8TestDictionary::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
|
| + } else {
|
| + optionalTestDictionaryArg = TestDictionary::create();
|
| + }
|
| + }
|
| + impl->voidMethodOptionalTestDictionaryArg(optionalTestDictionaryArg);
|
| +}
|
| +
|
| +static void voidMethodOptionalTestDictionaryArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| +{
|
| + TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
|
| + TestObjectV8Internal::voidMethodOptionalTestDictionaryArgMethod(info);
|
| + TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
|
| +}
|
| +
|
| static void dictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toNative(info.Holder());
|
| @@ -10695,6 +10759,9 @@ static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = {
|
| {"voidMethodTestCallbackInterfaceOrNullArg", TestObjectV8Internal::voidMethodTestCallbackInterfaceOrNullArgMethodCallback, 0, 1},
|
| {"testEnumMethod", TestObjectV8Internal::testEnumMethodMethodCallback, 0, 0},
|
| {"voidMethodTestEnumArg", TestObjectV8Internal::voidMethodTestEnumArgMethodCallback, 0, 1},
|
| + {"testDictionaryMethod", TestObjectV8Internal::testDictionaryMethodMethodCallback, 0, 0},
|
| + {"voidMethodTestDictionaryArg", TestObjectV8Internal::voidMethodTestDictionaryArgMethodCallback, 0, 1},
|
| + {"voidMethodOptionalTestDictionaryArg", TestObjectV8Internal::voidMethodOptionalTestDictionaryArgMethodCallback, 0, 0},
|
| {"dictionaryMethod", TestObjectV8Internal::dictionaryMethodMethodCallback, 0, 0},
|
| {"nodeFilterMethod", TestObjectV8Internal::nodeFilterMethodMethodCallback, 0, 0},
|
| {"promiseMethod", TestObjectV8Internal::promiseMethodMethodCallback, 0, 0},
|
|
|