| Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp
|
| index 844d8e5350f1117c6792de10ca1c676c1f7fc286..d475a0f9c7205593fe20a9ce9b00e5b3205425e5 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp
|
| @@ -9759,211 +9759,6 @@ static void notEnumerableVoidMethodMethodCallback(const v8::FunctionCallbackInfo
|
| TestObjectV8Internal::notEnumerableVoidMethodMethod(info);
|
| }
|
|
|
| -static void originTrialEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| - impl->originTrialEnabledVoidMethod();
|
| -}
|
| -
|
| -static void originTrialEnabledVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - TestObjectV8Internal::originTrialEnabledVoidMethodMethod(info);
|
| -}
|
| -
|
| -static void perWorldBindingsOriginTrialEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| - impl->perWorldBindingsOriginTrialEnabledVoidMethod();
|
| -}
|
| -
|
| -static void perWorldBindingsOriginTrialEnabledVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - TestObjectV8Internal::perWorldBindingsOriginTrialEnabledVoidMethodMethod(info);
|
| -}
|
| -
|
| -static void perWorldBindingsOriginTrialEnabledVoidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| - impl->perWorldBindingsOriginTrialEnabledVoidMethod();
|
| -}
|
| -
|
| -static void perWorldBindingsOriginTrialEnabledVoidMethodMethodCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - TestObjectV8Internal::perWorldBindingsOriginTrialEnabledVoidMethodMethodForMainWorld(info);
|
| -}
|
| -
|
| -static void originTrialEnabledOverloadedVoidMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| - V8StringResource<> stringArg;
|
| - {
|
| - stringArg = info[0];
|
| - if (!stringArg.prepare())
|
| - return;
|
| - }
|
| - impl->originTrialEnabledOverloadedVoidMethod(stringArg);
|
| -}
|
| -
|
| -static void originTrialEnabledOverloadedVoidMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "originTrialEnabledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate());
|
| - TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| - int longArg;
|
| - {
|
| - longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| - if (exceptionState.throwIfNeeded())
|
| - return;
|
| - }
|
| - impl->originTrialEnabledOverloadedVoidMethod(longArg);
|
| -}
|
| -
|
| -static void originTrialEnabledOverloadedVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "originTrialEnabledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate());
|
| - switch (std::min(1, info.Length())) {
|
| - case 1:
|
| - if (info[0]->IsNumber()) {
|
| - originTrialEnabledOverloadedVoidMethod2Method(info);
|
| - return;
|
| - }
|
| - if (true) {
|
| - originTrialEnabledOverloadedVoidMethod1Method(info);
|
| - return;
|
| - }
|
| - if (true) {
|
| - originTrialEnabledOverloadedVoidMethod2Method(info);
|
| - return;
|
| - }
|
| - break;
|
| - default:
|
| - break;
|
| - }
|
| - if (info.Length() < 1) {
|
| - exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.Length()));
|
| - exceptionState.throwIfNeeded();
|
| - return;
|
| - }
|
| - exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - exceptionState.throwIfNeeded();
|
| - return;
|
| -}
|
| -
|
| -static void originTrialEnabledOverloadedVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - TestObjectV8Internal::originTrialEnabledOverloadedVoidMethodMethod(info);
|
| -}
|
| -
|
| -static void partiallyOriginTrialEnabledOverloadedVoidMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| - V8StringResource<> stringArg;
|
| - {
|
| - stringArg = info[0];
|
| - if (!stringArg.prepare())
|
| - return;
|
| - }
|
| - impl->partiallyOriginTrialEnabledOverloadedVoidMethod(stringArg);
|
| -}
|
| -
|
| -static void partiallyOriginTrialEnabledOverloadedVoidMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| - TestInterfaceImplementation* testInterfaceArg;
|
| - {
|
| - testInterfaceArg = V8TestInterface::toImplWithTypeCheck(info.GetIsolate(), info[0]);
|
| - if (!testInterfaceArg) {
|
| - V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::failedToExecute("partiallyOriginTrialEnabledOverloadedVoidMethod", "TestObject", "parameter 1 is not of type 'TestInterface'."));
|
| - return;
|
| - }
|
| - }
|
| - impl->partiallyOriginTrialEnabledOverloadedVoidMethod(testInterfaceArg);
|
| -}
|
| -
|
| -static void partiallyOriginTrialEnabledOverloadedVoidMethod3Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "partiallyOriginTrialEnabledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate());
|
| - TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| - int longArg;
|
| - V8StringResource<> stringArg;
|
| - {
|
| - longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| - if (exceptionState.throwIfNeeded())
|
| - return;
|
| - stringArg = info[1];
|
| - if (!stringArg.prepare())
|
| - return;
|
| - }
|
| - impl->partiallyOriginTrialEnabledOverloadedVoidMethod(longArg, stringArg);
|
| -}
|
| -
|
| -static void partiallyOriginTrialEnabledOverloadedVoidMethod4Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "partiallyOriginTrialEnabledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate());
|
| - TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| - int longArg;
|
| - V8StringResource<> stringArg;
|
| - TestInterfaceImplementation* testInterfaceArg;
|
| - {
|
| - longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
|
| - if (exceptionState.throwIfNeeded())
|
| - return;
|
| - stringArg = info[1];
|
| - if (!stringArg.prepare())
|
| - return;
|
| - testInterfaceArg = V8TestInterface::toImplWithTypeCheck(info.GetIsolate(), info[2]);
|
| - if (!testInterfaceArg) {
|
| - exceptionState.throwTypeError("parameter 3 is not of type 'TestInterface'.");
|
| - exceptionState.throwIfNeeded();
|
| - return;
|
| - }
|
| - }
|
| - impl->partiallyOriginTrialEnabledOverloadedVoidMethod(longArg, stringArg, testInterfaceArg);
|
| -}
|
| -
|
| -static void partiallyOriginTrialEnabledOverloadedVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "partiallyOriginTrialEnabledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate());
|
| - switch (std::min(3, info.Length())) {
|
| - case 1:
|
| - if (V8TestInterface::hasInstance(info[0], info.GetIsolate())) {
|
| - partiallyOriginTrialEnabledOverloadedVoidMethod2Method(info);
|
| - return;
|
| - }
|
| - if (true) {
|
| - partiallyOriginTrialEnabledOverloadedVoidMethod1Method(info);
|
| - return;
|
| - }
|
| - break;
|
| - case 2:
|
| - if (true) {
|
| - partiallyOriginTrialEnabledOverloadedVoidMethod3Method(info);
|
| - return;
|
| - }
|
| - break;
|
| - case 3:
|
| - if (true) {
|
| - partiallyOriginTrialEnabledOverloadedVoidMethod4Method(info);
|
| - return;
|
| - }
|
| - break;
|
| - default:
|
| - break;
|
| - }
|
| - if (info.Length() < 1) {
|
| - exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.Length()));
|
| - exceptionState.throwIfNeeded();
|
| - return;
|
| - }
|
| - exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - exceptionState.throwIfNeeded();
|
| - return;
|
| -}
|
| -
|
| -static void partiallyOriginTrialEnabledOverloadedVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| -{
|
| - TestObjectV8Internal::partiallyOriginTrialEnabledOverloadedVoidMethodMethod(info);
|
| -}
|
| -
|
| static void perWorldBindingsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TestObject* impl = V8TestObject::toImpl(info.Holder());
|
| @@ -11735,10 +11530,6 @@ const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = {
|
| {"deprecateAsSameValueMeasureAsOverloadedMethod", TestObjectV8Internal::deprecateAsSameValueMeasureAsOverloadedMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype},
|
| {"deprecateAsSameValueMeasureAsSameValueOverloadedMethod", TestObjectV8Internal::deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype},
|
| {"notEnumerableVoidMethod", TestObjectV8Internal::notEnumerableVoidMethodMethodCallback, 0, 0, static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype},
|
| - {"originTrialEnabledVoidMethod", TestObjectV8Internal::originTrialEnabledVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype},
|
| - {"perWorldBindingsOriginTrialEnabledVoidMethod", TestObjectV8Internal::perWorldBindingsOriginTrialEnabledVoidMethodMethodCallback, TestObjectV8Internal::perWorldBindingsOriginTrialEnabledVoidMethodMethodCallbackForMainWorld, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype},
|
| - {"originTrialEnabledOverloadedVoidMethod", TestObjectV8Internal::originTrialEnabledOverloadedVoidMethodMethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype},
|
| - {"partiallyOriginTrialEnabledOverloadedVoidMethod", TestObjectV8Internal::partiallyOriginTrialEnabledOverloadedVoidMethodMethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype},
|
| {"perWorldBindingsVoidMethod", TestObjectV8Internal::perWorldBindingsVoidMethodMethodCallback, TestObjectV8Internal::perWorldBindingsVoidMethodMethodCallbackForMainWorld, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype},
|
| {"perWorldBindingsVoidMethodTestInterfaceEmptyArg", TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback, TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMainWorld, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype},
|
| {"postMessage", TestObjectV8Internal::postMessageMethodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype},
|
|
|