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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp

Issue 2430223006: Bindings: Rebaseline run-bindings-tests results (Closed)
Patch Set: Created 4 years, 2 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 // clang-format off 7 // clang-format off
8 #include "V8TestInterface.h" 8 #include "V8TestInterface.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 1786 matching lines...) Expand 10 before | Expand all | Expand 10 after
1797 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIs olate(), info[0]); 1797 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIs olate(), info[0]);
1798 if (!testInterfaceEmptyArg) { 1798 if (!testInterfaceEmptyArg) {
1799 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodTestInterfaceEmptyArg", "TestInterface", "parameter 1 is not of type 'TestInterfaceEmpty'.")); 1799 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodTestInterfaceEmptyArg", "TestInterface", "parameter 1 is not of type 'TestInterfaceEmpty'."));
1800 1800
1801 return; 1801 return;
1802 } 1802 }
1803 1803
1804 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); 1804 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg);
1805 } 1805 }
1806 1806
1807 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 1807 void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
1808 { 1808 {
1809 TestInterfaceImplementationV8Internal::voidMethodTestInterfaceEmptyArgMethod (info); 1809 TestInterfaceImplementationV8Internal::voidMethodTestInterfaceEmptyArgMethod (info);
1810 } 1810 }
1811 1811
1812 static void voidMethodDoubleArgFloatArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 1812 static void voidMethodDoubleArgFloatArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
1813 { 1813 {
1814 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface", "voidMethodDoubleArgFloatArg"); 1814 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface", "voidMethodDoubleArgFloatArg");
1815 1815
1816 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1816 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1817 1817
1818 if (UNLIKELY(info.Length() < 2)) { 1818 if (UNLIKELY(info.Length() < 2)) {
1819 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i nfo.Length())); 1819 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i nfo.Length()));
1820 return; 1820 return;
1821 } 1821 }
1822 1822
1823 double doubleArg; 1823 double doubleArg;
1824 float floatArg; 1824 float floatArg;
1825 doubleArg = toRestrictedDouble(info.GetIsolate(), info[0], exceptionState); 1825 doubleArg = toRestrictedDouble(info.GetIsolate(), info[0], exceptionState);
1826 if (exceptionState.hadException()) 1826 if (exceptionState.hadException())
1827 return; 1827 return;
1828 1828
1829 floatArg = toRestrictedFloat(info.GetIsolate(), info[1], exceptionState); 1829 floatArg = toRestrictedFloat(info.GetIsolate(), info[1], exceptionState);
1830 if (exceptionState.hadException()) 1830 if (exceptionState.hadException())
1831 return; 1831 return;
1832 1832
1833 impl->voidMethodDoubleArgFloatArg(doubleArg, floatArg); 1833 impl->voidMethodDoubleArgFloatArg(doubleArg, floatArg);
1834 } 1834 }
1835 1835
1836 static void voidMethodDoubleArgFloatArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 1836 void voidMethodDoubleArgFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
1837 { 1837 {
1838 TestInterfaceImplementationV8Internal::voidMethodDoubleArgFloatArgMethod(inf o); 1838 TestInterfaceImplementationV8Internal::voidMethodDoubleArgFloatArgMethod(inf o);
1839 } 1839 }
1840 1840
1841 static void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethod(const v8:: FunctionCallbackInfo<v8::Value>& info) 1841 static void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethod(const v8:: FunctionCallbackInfo<v8::Value>& info)
1842 { 1842 {
1843 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface", "voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg"); 1843 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface", "voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg");
1844 1844
1845 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1845 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1846 1846
1847 if (UNLIKELY(info.Length() < 2)) { 1847 if (UNLIKELY(info.Length() < 2)) {
1848 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i nfo.Length())); 1848 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i nfo.Length()));
1849 return; 1849 return;
1850 } 1850 }
1851 1851
1852 double unrestrictedDoubleArg; 1852 double unrestrictedDoubleArg;
1853 float unrestrictedFloatArg; 1853 float unrestrictedFloatArg;
1854 unrestrictedDoubleArg = toDouble(info.GetIsolate(), info[0], exceptionState) ; 1854 unrestrictedDoubleArg = toDouble(info.GetIsolate(), info[0], exceptionState) ;
1855 if (exceptionState.hadException()) 1855 if (exceptionState.hadException())
1856 return; 1856 return;
1857 1857
1858 unrestrictedFloatArg = toFloat(info.GetIsolate(), info[1], exceptionState); 1858 unrestrictedFloatArg = toFloat(info.GetIsolate(), info[1], exceptionState);
1859 if (exceptionState.hadException()) 1859 if (exceptionState.hadException())
1860 return; 1860 return;
1861 1861
1862 impl->voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg(unrestrictedDouble Arg, unrestrictedFloatArg); 1862 impl->voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg(unrestrictedDouble Arg, unrestrictedFloatArg);
1863 } 1863 }
1864 1864
1865 static void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info) 1865 void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCallback(const v8: :FunctionCallbackInfo<v8::Value>& info)
1866 { 1866 {
1867 TestInterfaceImplementationV8Internal::voidMethodUnrestrictedDoubleArgUnrest rictedFloatArgMethod(info); 1867 TestInterfaceImplementationV8Internal::voidMethodUnrestrictedDoubleArgUnrest rictedFloatArgMethod(info);
1868 } 1868 }
1869 1869
1870 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 1870 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
1871 { 1871 {
1872 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface", "voidMethodTestEnumArg"); 1872 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface", "voidMethodTestEnumArg");
1873 1873
1874 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1874 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1875 1875
(...skipping 12 matching lines...) Expand all
1888 "EnumValue2", 1888 "EnumValue2",
1889 "EnumValue3", 1889 "EnumValue3",
1890 }; 1890 };
1891 if (!isValidEnum(testEnumArg, validTestEnumArgValues, WTF_ARRAY_LENGTH(valid TestEnumArgValues), "TestEnum", exceptionState)) { 1891 if (!isValidEnum(testEnumArg, validTestEnumArgValues, WTF_ARRAY_LENGTH(valid TestEnumArgValues), "TestEnum", exceptionState)) {
1892 return; 1892 return;
1893 } 1893 }
1894 1894
1895 impl->voidMethodTestEnumArg(testEnumArg); 1895 impl->voidMethodTestEnumArg(testEnumArg);
1896 } 1896 }
1897 1897
1898 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 1898 void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info)
1899 { 1899 {
1900 TestInterfaceImplementationV8Internal::voidMethodTestEnumArgMethod(info); 1900 TestInterfaceImplementationV8Internal::voidMethodTestEnumArgMethod(info);
1901 } 1901 }
1902 1902
1903 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 1903 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
1904 { 1904 {
1905 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1905 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1906 1906
1907 impl->voidMethod(); 1907 impl->voidMethod();
1908 } 1908 }
1909 1909
1910 static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 1910 void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
1911 { 1911 {
1912 TestInterfaceImplementationV8Internal::voidMethodMethod(info); 1912 TestInterfaceImplementationV8Internal::voidMethodMethod(info);
1913 } 1913 }
1914 1914
1915 static void voidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Valu e>& info) 1915 static void voidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Valu e>& info)
1916 { 1916 {
1917 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1917 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1918 1918
1919 impl->voidMethod(); 1919 impl->voidMethod();
1920 } 1920 }
1921 1921
1922 static void voidMethodMethodCallbackForMainWorld(const v8::FunctionCallbackInfo< v8::Value>& info) 1922 void voidMethodMethodCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Val ue>& info)
1923 { 1923 {
1924 TestInterfaceImplementationV8Internal::voidMethodMethodForMainWorld(info); 1924 TestInterfaceImplementationV8Internal::voidMethodMethodForMainWorld(info);
1925 } 1925 }
1926 1926
1927 static void alwaysExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 1927 static void alwaysExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
1928 { 1928 {
1929 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1929 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1930 1930
1931 impl->alwaysExposedMethod(); 1931 impl->alwaysExposedMethod();
1932 } 1932 }
1933 1933
1934 static void alwaysExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 1934 void alwaysExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value> & info)
1935 { 1935 {
1936 TestInterfaceImplementationV8Internal::alwaysExposedMethodMethod(info); 1936 TestInterfaceImplementationV8Internal::alwaysExposedMethodMethod(info);
1937 } 1937 }
1938 1938
1939 static void workerExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 1939 static void workerExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
1940 { 1940 {
1941 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1941 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1942 1942
1943 impl->workerExposedMethod(); 1943 impl->workerExposedMethod();
1944 } 1944 }
1945 1945
1946 static void workerExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 1946 void workerExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value> & info)
1947 { 1947 {
1948 TestInterfaceImplementationV8Internal::workerExposedMethodMethod(info); 1948 TestInterfaceImplementationV8Internal::workerExposedMethodMethod(info);
1949 } 1949 }
1950 1950
1951 static void windowExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 1951 static void windowExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
1952 { 1952 {
1953 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1953 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1954 1954
1955 impl->windowExposedMethod(); 1955 impl->windowExposedMethod();
1956 } 1956 }
1957 1957
1958 static void windowExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 1958 void windowExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value> & info)
1959 { 1959 {
1960 TestInterfaceImplementationV8Internal::windowExposedMethodMethod(info); 1960 TestInterfaceImplementationV8Internal::windowExposedMethodMethod(info);
1961 } 1961 }
1962 1962
1963 static void alwaysExposedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 1963 static void alwaysExposedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
1964 { 1964 {
1965 TestInterfaceImplementation::alwaysExposedStaticMethod(); 1965 TestInterfaceImplementation::alwaysExposedStaticMethod();
1966 } 1966 }
1967 1967
1968 static void alwaysExposedStaticMethodMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 1968 void alwaysExposedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
1969 { 1969 {
1970 TestInterfaceImplementationV8Internal::alwaysExposedStaticMethodMethod(info) ; 1970 TestInterfaceImplementationV8Internal::alwaysExposedStaticMethodMethod(info) ;
1971 } 1971 }
1972 1972
1973 static void workerExposedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 1973 static void workerExposedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
1974 { 1974 {
1975 TestInterfaceImplementation::workerExposedStaticMethod(); 1975 TestInterfaceImplementation::workerExposedStaticMethod();
1976 } 1976 }
1977 1977
1978 static void workerExposedStaticMethodMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 1978 void workerExposedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
1979 { 1979 {
1980 TestInterfaceImplementationV8Internal::workerExposedStaticMethodMethod(info) ; 1980 TestInterfaceImplementationV8Internal::workerExposedStaticMethodMethod(info) ;
1981 } 1981 }
1982 1982
1983 static void windowExposedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 1983 static void windowExposedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
1984 { 1984 {
1985 TestInterfaceImplementation::windowExposedStaticMethod(); 1985 TestInterfaceImplementation::windowExposedStaticMethod();
1986 } 1986 }
1987 1987
1988 static void windowExposedStaticMethodMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 1988 void windowExposedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
1989 { 1989 {
1990 TestInterfaceImplementationV8Internal::windowExposedStaticMethodMethod(info) ; 1990 TestInterfaceImplementationV8Internal::windowExposedStaticMethodMethod(info) ;
1991 } 1991 }
1992 1992
1993 static void staticReturnDOMWrapperMethodMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) 1993 static void staticReturnDOMWrapperMethodMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info)
1994 { 1994 {
1995 v8SetReturnValue(info, TestInterfaceImplementation::staticReturnDOMWrapperMe thod(), info.GetIsolate()->GetCurrentContext()->Global()); 1995 v8SetReturnValue(info, TestInterfaceImplementation::staticReturnDOMWrapperMe thod(), info.GetIsolate()->GetCurrentContext()->Global());
1996 } 1996 }
1997 1997
1998 static void staticReturnDOMWrapperMethodMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 1998 void staticReturnDOMWrapperMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
1999 { 1999 {
2000 TestInterfaceImplementationV8Internal::staticReturnDOMWrapperMethodMethod(in fo); 2000 TestInterfaceImplementationV8Internal::staticReturnDOMWrapperMethodMethod(in fo);
2001 } 2001 }
2002 2002
2003 static void methodWithExposedAndRuntimeEnabledFlagMethod(const v8::FunctionCallb ackInfo<v8::Value>& info) 2003 static void methodWithExposedAndRuntimeEnabledFlagMethod(const v8::FunctionCallb ackInfo<v8::Value>& info)
2004 { 2004 {
2005 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2005 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2006 2006
2007 impl->methodWithExposedAndRuntimeEnabledFlag(); 2007 impl->methodWithExposedAndRuntimeEnabledFlag();
2008 } 2008 }
2009 2009
2010 static void methodWithExposedAndRuntimeEnabledFlagMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) 2010 void methodWithExposedAndRuntimeEnabledFlagMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
2011 { 2011 {
2012 TestInterfaceImplementationV8Internal::methodWithExposedAndRuntimeEnabledFla gMethod(info); 2012 TestInterfaceImplementationV8Internal::methodWithExposedAndRuntimeEnabledFla gMethod(info);
2013 } 2013 }
2014 2014
2015 static void overloadMethodWithExposedAndRuntimeEnabledFlag1Method(const v8::Func tionCallbackInfo<v8::Value>& info) 2015 static void overloadMethodWithExposedAndRuntimeEnabledFlag1Method(const v8::Func tionCallbackInfo<v8::Value>& info)
2016 { 2016 {
2017 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface", "overloadMethodWithExposedAndRuntimeEnabledFlag"); 2017 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface", "overloadMethodWithExposedAndRuntimeEnabledFlag");
2018 2018
2019 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2019 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2020 2020
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
2087 2087
2088 if (isArityError) { 2088 if (isArityError) {
2089 if (info.Length() < 1) { 2089 if (info.Length() < 1) {
2090 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments( 1, info.Length())); 2090 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments( 1, info.Length()));
2091 return; 2091 return;
2092 } 2092 }
2093 } 2093 }
2094 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 2094 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
2095 } 2095 }
2096 2096
2097 static void overloadMethodWithExposedAndRuntimeEnabledFlagMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info) 2097 void overloadMethodWithExposedAndRuntimeEnabledFlagMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
2098 { 2098 {
2099 TestInterfaceImplementationV8Internal::overloadMethodWithExposedAndRuntimeEn abledFlagMethod(info); 2099 TestInterfaceImplementationV8Internal::overloadMethodWithExposedAndRuntimeEn abledFlagMethod(info);
2100 } 2100 }
2101 2101
2102 static void methodWithExposedHavingRuntimeEnabldFlagMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) 2102 static void methodWithExposedHavingRuntimeEnabldFlagMethod(const v8::FunctionCal lbackInfo<v8::Value>& info)
2103 { 2103 {
2104 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2104 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2105 2105
2106 impl->methodWithExposedHavingRuntimeEnabldFlag(); 2106 impl->methodWithExposedHavingRuntimeEnabldFlag();
2107 } 2107 }
2108 2108
2109 static void methodWithExposedHavingRuntimeEnabldFlagMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 2109 void methodWithExposedHavingRuntimeEnabldFlagMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info)
2110 { 2110 {
2111 TestInterfaceImplementationV8Internal::methodWithExposedHavingRuntimeEnabldF lagMethod(info); 2111 TestInterfaceImplementationV8Internal::methodWithExposedHavingRuntimeEnabldF lagMethod(info);
2112 } 2112 }
2113 2113
2114 static void windowAndServiceWorkerExposedMethodMethod(const v8::FunctionCallback Info<v8::Value>& info) 2114 static void windowAndServiceWorkerExposedMethodMethod(const v8::FunctionCallback Info<v8::Value>& info)
2115 { 2115 {
2116 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2116 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2117 2117
2118 impl->windowAndServiceWorkerExposedMethod(); 2118 impl->windowAndServiceWorkerExposedMethod();
2119 } 2119 }
2120 2120
2121 static void windowAndServiceWorkerExposedMethodMethodCallback(const v8::Function CallbackInfo<v8::Value>& info) 2121 void windowAndServiceWorkerExposedMethodMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
2122 { 2122 {
2123 TestInterfaceImplementationV8Internal::windowAndServiceWorkerExposedMethodMe thod(info); 2123 TestInterfaceImplementationV8Internal::windowAndServiceWorkerExposedMethodMe thod(info);
2124 } 2124 }
2125 2125
2126 static void voidMethodPartialOverload1Method(const v8::FunctionCallbackInfo<v8:: Value>& info) 2126 static void voidMethodPartialOverload1Method(const v8::FunctionCallbackInfo<v8:: Value>& info)
2127 { 2127 {
2128 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2128 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2129 2129
2130 impl->voidMethodPartialOverload(); 2130 impl->voidMethodPartialOverload();
2131 } 2131 }
(...skipping 20 matching lines...) Expand all
2152 static void promiseMethodPartialOverload1Method(const v8::FunctionCallbackInfo<v 8::Value>& info) 2152 static void promiseMethodPartialOverload1Method(const v8::FunctionCallbackInfo<v 8::Value>& info)
2153 { 2153 {
2154 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2154 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2155 2155
2156 v8SetReturnValue(info, impl->promiseMethodPartialOverload().v8Value()); 2156 v8SetReturnValue(info, impl->promiseMethodPartialOverload().v8Value());
2157 } 2157 }
2158 2158
2159 static void promiseMethodPartialOverload2Method(const v8::FunctionCallbackInfo<v 8::Value>& info) 2159 static void promiseMethodPartialOverload2Method(const v8::FunctionCallbackInfo<v 8::Value>& info)
2160 { 2160 {
2161 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface", "promiseMethodPartialOverload"); 2161 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface", "promiseMethodPartialOverload");
2162 ScriptState* scriptState = ScriptState::forReceiverObject(info); 2162 ExceptionToRejectPromiseScope rejectPromiseScope(info, exceptionState);
2163 ExceptionToRejectPromiseScope rejectPromiseScope(info, scriptState, exceptio nState);
2164 2163
2165 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2164 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2166 2165
2167 DOMWindow* window; 2166 DOMWindow* window;
2168 window = toDOMWindow(info.GetIsolate(), info[0]); 2167 window = toDOMWindow(info.GetIsolate(), info[0]);
2169 if (!window) { 2168 if (!window) {
2170 exceptionState.throwTypeError("parameter 1 is not of type 'Window'."); 2169 exceptionState.throwTypeError("parameter 1 is not of type 'Window'.");
2171 2170
2172 return; 2171 return;
2173 } 2172 }
(...skipping 14 matching lines...) Expand all
2188 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("legacyInterfaceTypeCheckingMethod", "TestInterface", ExceptionMe ssages::notEnoughArguments(1, info.Length()))); 2187 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("legacyInterfaceTypeCheckingMethod", "TestInterface", ExceptionMe ssages::notEnoughArguments(1, info.Length())));
2189 return; 2188 return;
2190 } 2189 }
2191 2190
2192 TestInterfaceEmpty* testInterfaceEmptyArg; 2191 TestInterfaceEmpty* testInterfaceEmptyArg;
2193 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIs olate(), info[0]); 2192 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIs olate(), info[0]);
2194 2193
2195 impl->legacyInterfaceTypeCheckingMethod(testInterfaceEmptyArg); 2194 impl->legacyInterfaceTypeCheckingMethod(testInterfaceEmptyArg);
2196 } 2195 }
2197 2196
2198 static void legacyInterfaceTypeCheckingMethodMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info) 2197 void legacyInterfaceTypeCheckingMethodMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
2199 { 2198 {
2200 TestInterfaceImplementationV8Internal::legacyInterfaceTypeCheckingMethodMeth od(info); 2199 TestInterfaceImplementationV8Internal::legacyInterfaceTypeCheckingMethodMeth od(info);
2201 } 2200 }
2202 2201
2203 static void secureContextMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 2202 static void secureContextMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
2204 { 2203 {
2205 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2204 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2206 2205
2207 impl->secureContextMethod(); 2206 impl->secureContextMethod();
2208 } 2207 }
2209 2208
2210 static void secureContextMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 2209 void secureContextMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value> & info)
2211 { 2210 {
2212 TestInterfaceImplementationV8Internal::secureContextMethodMethod(info); 2211 TestInterfaceImplementationV8Internal::secureContextMethodMethod(info);
2213 } 2212 }
2214 2213
2215 static void secureContextRuntimeEnabledMethodMethod(const v8::FunctionCallbackIn fo<v8::Value>& info) 2214 static void secureContextRuntimeEnabledMethodMethod(const v8::FunctionCallbackIn fo<v8::Value>& info)
2216 { 2215 {
2217 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2216 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2218 2217
2219 impl->secureContextRuntimeEnabledMethod(); 2218 impl->secureContextRuntimeEnabledMethod();
2220 } 2219 }
2221 2220
2222 static void secureContextRuntimeEnabledMethodMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info) 2221 void secureContextRuntimeEnabledMethodMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
2223 { 2222 {
2224 TestInterfaceImplementationV8Internal::secureContextRuntimeEnabledMethodMeth od(info); 2223 TestInterfaceImplementationV8Internal::secureContextRuntimeEnabledMethodMeth od(info);
2225 } 2224 }
2226 2225
2227 static void secureContextWindowExposedMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info) 2226 static void secureContextWindowExposedMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info)
2228 { 2227 {
2229 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2228 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2230 2229
2231 impl->secureContextWindowExposedMethod(); 2230 impl->secureContextWindowExposedMethod();
2232 } 2231 }
2233 2232
2234 static void secureContextWindowExposedMethodMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 2233 void secureContextWindowExposedMethodMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
2235 { 2234 {
2236 TestInterfaceImplementationV8Internal::secureContextWindowExposedMethodMetho d(info); 2235 TestInterfaceImplementationV8Internal::secureContextWindowExposedMethodMetho d(info);
2237 } 2236 }
2238 2237
2239 static void secureContextWorkerExposedMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info) 2238 static void secureContextWorkerExposedMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info)
2240 { 2239 {
2241 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2240 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2242 2241
2243 impl->secureContextWorkerExposedMethod(); 2242 impl->secureContextWorkerExposedMethod();
2244 } 2243 }
2245 2244
2246 static void secureContextWorkerExposedMethodMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 2245 void secureContextWorkerExposedMethodMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
2247 { 2246 {
2248 TestInterfaceImplementationV8Internal::secureContextWorkerExposedMethodMetho d(info); 2247 TestInterfaceImplementationV8Internal::secureContextWorkerExposedMethodMetho d(info);
2249 } 2248 }
2250 2249
2251 static void secureContextWindowExposedRuntimeEnabledMethodMethod(const v8::Funct ionCallbackInfo<v8::Value>& info) 2250 static void secureContextWindowExposedRuntimeEnabledMethodMethod(const v8::Funct ionCallbackInfo<v8::Value>& info)
2252 { 2251 {
2253 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2252 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2254 2253
2255 impl->secureContextWindowExposedRuntimeEnabledMethod(); 2254 impl->secureContextWindowExposedRuntimeEnabledMethod();
2256 } 2255 }
2257 2256
2258 static void secureContextWindowExposedRuntimeEnabledMethodMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info) 2257 void secureContextWindowExposedRuntimeEnabledMethodMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
2259 { 2258 {
2260 TestInterfaceImplementationV8Internal::secureContextWindowExposedRuntimeEnab ledMethodMethod(info); 2259 TestInterfaceImplementationV8Internal::secureContextWindowExposedRuntimeEnab ledMethodMethod(info);
2261 } 2260 }
2262 2261
2263 static void secureContextWorkerExposedRuntimeEnabledMethodMethod(const v8::Funct ionCallbackInfo<v8::Value>& info) 2262 static void secureContextWorkerExposedRuntimeEnabledMethodMethod(const v8::Funct ionCallbackInfo<v8::Value>& info)
2264 { 2263 {
2265 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2264 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2266 2265
2267 impl->secureContextWorkerExposedRuntimeEnabledMethod(); 2266 impl->secureContextWorkerExposedRuntimeEnabledMethod();
2268 } 2267 }
2269 2268
2270 static void secureContextWorkerExposedRuntimeEnabledMethodMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info) 2269 void secureContextWorkerExposedRuntimeEnabledMethodMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
2271 { 2270 {
2272 TestInterfaceImplementationV8Internal::secureContextWorkerExposedRuntimeEnab ledMethodMethod(info); 2271 TestInterfaceImplementationV8Internal::secureContextWorkerExposedRuntimeEnab ledMethodMethod(info);
2273 } 2272 }
2274 2273
2275 static void implementsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 2274 static void implementsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
2276 { 2275 {
2277 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2276 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2278 2277
2279 impl->implementsVoidMethod(); 2278 impl->implementsVoidMethod();
2280 } 2279 }
2281 2280
2282 static void implementsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 2281 void implementsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value >& info)
2283 { 2282 {
2284 TestInterfaceImplementationV8Internal::implementsVoidMethodMethod(info); 2283 TestInterfaceImplementationV8Internal::implementsVoidMethodMethod(info);
2285 } 2284 }
2286 2285
2287 static void implementsComplexMethodMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 2286 static void implementsComplexMethodMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
2288 { 2287 {
2289 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface", "implementsComplexMethod"); 2288 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface", "implementsComplexMethod");
2290 2289
2291 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2290 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2292 2291
(...skipping 16 matching lines...) Expand all
2309 } 2308 }
2310 2309
2311 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 2310 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
2312 TestInterfaceEmpty* result = impl->implementsComplexMethod(executionContext, strArg, testInterfaceEmptyArg, exceptionState); 2311 TestInterfaceEmpty* result = impl->implementsComplexMethod(executionContext, strArg, testInterfaceEmptyArg, exceptionState);
2313 if (exceptionState.hadException()) { 2312 if (exceptionState.hadException()) {
2314 return; 2313 return;
2315 } 2314 }
2316 v8SetReturnValue(info, result); 2315 v8SetReturnValue(info, result);
2317 } 2316 }
2318 2317
2319 static void implementsComplexMethodMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 2318 void implementsComplexMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info)
2320 { 2319 {
2321 TestInterfaceImplementationV8Internal::implementsComplexMethodMethod(info); 2320 TestInterfaceImplementationV8Internal::implementsComplexMethodMethod(info);
2322 } 2321 }
2323 2322
2324 static void implementsCustomVoidMethodMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 2323 void implementsCustomVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
2325 { 2324 {
2326 V8TestInterface::implementsCustomVoidMethodMethodCustom(info); 2325 V8TestInterface::implementsCustomVoidMethodMethodCustom(info);
2327 } 2326 }
2328 2327
2329 static void implementsStaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 2328 static void implementsStaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
2330 { 2329 {
2331 TestInterfaceImplementation::implementsStaticVoidMethod(); 2330 TestInterfaceImplementation::implementsStaticVoidMethod();
2332 } 2331 }
2333 2332
2334 static void implementsStaticVoidMethodMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 2333 void implementsStaticVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
2335 { 2334 {
2336 TestInterfaceImplementationV8Internal::implementsStaticVoidMethodMethod(info ); 2335 TestInterfaceImplementationV8Internal::implementsStaticVoidMethodMethod(info );
2337 } 2336 }
2338 2337
2339 static void implements2VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 2338 static void implements2VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
2340 { 2339 {
2341 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2340 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2342 2341
2343 TestImplements2::implements2VoidMethod(*impl); 2342 TestImplements2::implements2VoidMethod(*impl);
2344 } 2343 }
2345 2344
2346 static void implements2VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 2345 void implements2VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info)
2347 { 2346 {
2348 TestInterfaceImplementationV8Internal::implements2VoidMethodMethod(info); 2347 TestInterfaceImplementationV8Internal::implements2VoidMethodMethod(info);
2349 } 2348 }
2350 2349
2351 static void implements3VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 2350 static void implements3VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
2352 { 2351 {
2353 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2352 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2354 2353
2355 TestImplements3Implementation::implements3VoidMethod(*impl); 2354 TestImplements3Implementation::implements3VoidMethod(*impl);
2356 } 2355 }
2357 2356
2358 static void implements3VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 2357 void implements3VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info)
2359 { 2358 {
2360 TestInterfaceImplementationV8Internal::implements3VoidMethodMethod(info); 2359 TestInterfaceImplementationV8Internal::implements3VoidMethodMethod(info);
2361 } 2360 }
2362 2361
2363 static void implements3StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 2362 static void implements3StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
2364 { 2363 {
2365 TestImplements3Implementation::implements3StaticVoidMethod(); 2364 TestImplements3Implementation::implements3StaticVoidMethod();
2366 } 2365 }
2367 2366
2368 static void implements3StaticVoidMethodMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 2367 void implements3StaticVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
2369 { 2368 {
2370 TestInterfaceImplementationV8Internal::implements3StaticVoidMethodMethod(inf o); 2369 TestInterfaceImplementationV8Internal::implements3StaticVoidMethodMethod(inf o);
2371 } 2370 }
2372 2371
2373 static void partialVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 2372 static void partialVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
2374 { 2373 {
2375 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2374 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2376 2375
2377 TestInterfacePartial::partialVoidMethod(*impl); 2376 TestInterfacePartial::partialVoidMethod(*impl);
2378 } 2377 }
2379 2378
2380 static void partialVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 2379 void partialVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
2381 { 2380 {
2382 TestInterfaceImplementationV8Internal::partialVoidMethodMethod(info); 2381 TestInterfaceImplementationV8Internal::partialVoidMethodMethod(info);
2383 } 2382 }
2384 2383
2385 static void partialStaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 2384 static void partialStaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
2386 { 2385 {
2387 TestInterfacePartial::partialStaticVoidMethod(); 2386 TestInterfacePartial::partialStaticVoidMethod();
2388 } 2387 }
2389 2388
2390 static void partialStaticVoidMethodMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 2389 void partialStaticVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info)
2391 { 2390 {
2392 TestInterfaceImplementationV8Internal::partialStaticVoidMethodMethod(info); 2391 TestInterfaceImplementationV8Internal::partialStaticVoidMethodMethod(info);
2393 } 2392 }
2394 2393
2395 static void partialVoidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 2394 static void partialVoidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
2396 { 2395 {
2397 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface", "partialVoidMethodLongArg"); 2396 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface", "partialVoidMethodLongArg");
2398 2397
2399 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2398 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2400 2399
2401 if (UNLIKELY(info.Length() < 1)) { 2400 if (UNLIKELY(info.Length() < 1)) {
2402 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 2401 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
2403 return; 2402 return;
2404 } 2403 }
2405 2404
2406 int longArg; 2405 int longArg;
2407 longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionSta te); 2406 longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptionSta te);
2408 if (exceptionState.hadException()) 2407 if (exceptionState.hadException())
2409 return; 2408 return;
2410 2409
2411 TestInterfacePartial::partialVoidMethodLongArg(*impl, longArg); 2410 TestInterfacePartial::partialVoidMethodLongArg(*impl, longArg);
2412 } 2411 }
2413 2412
2414 static void partialVoidMethodLongArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 2413 void partialVoidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
2415 { 2414 {
2416 TestInterfaceImplementationV8Internal::partialVoidMethodLongArgMethod(info); 2415 TestInterfaceImplementationV8Internal::partialVoidMethodLongArgMethod(info);
2417 } 2416 }
2418 2417
2419 static void partialCallWithExecutionContextRaisesExceptionVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 2418 static void partialCallWithExecutionContextRaisesExceptionVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
2420 { 2419 {
2421 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface", "partialCallWithExecutionContextRaisesExceptionVoidMetho d"); 2420 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface", "partialCallWithExecutionContextRaisesExceptionVoidMetho d");
2422 2421
2423 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2422 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2424 2423
2425 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 2424 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
2426 TestInterfacePartial::partialCallWithExecutionContextRaisesExceptionVoidMeth od(executionContext, *impl, exceptionState); 2425 TestInterfacePartial::partialCallWithExecutionContextRaisesExceptionVoidMeth od(executionContext, *impl, exceptionState);
2427 if (exceptionState.hadException()) { 2426 if (exceptionState.hadException()) {
2428 return; 2427 return;
2429 } 2428 }
2430 } 2429 }
2431 2430
2432 static void partialCallWithExecutionContextRaisesExceptionVoidMethodMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info) 2431 void partialCallWithExecutionContextRaisesExceptionVoidMethodMethodCallback(cons t v8::FunctionCallbackInfo<v8::Value>& info)
2433 { 2432 {
2434 TestInterfaceImplementationV8Internal::partialCallWithExecutionContextRaises ExceptionVoidMethodMethod(info); 2433 TestInterfaceImplementationV8Internal::partialCallWithExecutionContextRaises ExceptionVoidMethodMethod(info);
2435 } 2434 }
2436 2435
2437 static void partialVoidMethodPartialCallbackTypeArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) 2436 static void partialVoidMethodPartialCallbackTypeArgMethod(const v8::FunctionCall backInfo<v8::Value>& info)
2438 { 2437 {
2439 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2438 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2440 2439
2441 if (UNLIKELY(info.Length() < 1)) { 2440 if (UNLIKELY(info.Length() < 1)) {
2442 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("partialVoidMethodPartialCallbackTypeArg", "TestInterface", Excep tionMessages::notEnoughArguments(1, info.Length()))); 2441 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("partialVoidMethodPartialCallbackTypeArg", "TestInterface", Excep tionMessages::notEnoughArguments(1, info.Length())));
2443 return; 2442 return;
2444 } 2443 }
2445 2444
2446 ScriptValue partialCallbackTypeArg; 2445 ScriptValue partialCallbackTypeArg;
2447 if (!info[0]->IsFunction()) { 2446 if (!info[0]->IsFunction()) {
2448 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("partialVoidMethodPartialCallbackTypeArg", "TestInterface", "The callback provided as parameter 1 is not a function.")); 2447 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("partialVoidMethodPartialCallbackTypeArg", "TestInterface", "The callback provided as parameter 1 is not a function."));
2449 2448
2450 return; 2449 return;
2451 } 2450 }
2452 partialCallbackTypeArg = ScriptValue(ScriptState::current(info.GetIsolate()) , info[0]); 2451 partialCallbackTypeArg = ScriptValue(ScriptState::current(info.GetIsolate()) , info[0]);
2453 2452
2454 TestInterfacePartial::partialVoidMethodPartialCallbackTypeArg(*impl, partial CallbackTypeArg); 2453 TestInterfacePartial::partialVoidMethodPartialCallbackTypeArg(*impl, partial CallbackTypeArg);
2455 } 2454 }
2456 2455
2457 static void partialVoidMethodPartialCallbackTypeArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 2456 void partialVoidMethodPartialCallbackTypeArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
2458 { 2457 {
2459 TestInterfaceImplementationV8Internal::partialVoidMethodPartialCallbackTypeA rgMethod(info); 2458 TestInterfaceImplementationV8Internal::partialVoidMethodPartialCallbackTypeA rgMethod(info);
2460 } 2459 }
2461 2460
2462 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethod(const v 8::FunctionCallbackInfo<v8::Value>& info) 2461 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethod(const v 8::FunctionCallbackInfo<v8::Value>& info)
2463 { 2462 {
2464 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface", "shortMethodWithShortArgumentImplementedInPrivateScript" ); 2463 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface", "shortMethodWithShortArgumentImplementedInPrivateScript" );
2465 2464
2466 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2465 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2467 2466
2468 if (UNLIKELY(info.Length() < 1)) { 2467 if (UNLIKELY(info.Length() < 1)) {
2469 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 2468 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
2470 return; 2469 return;
2471 } 2470 }
2472 2471
2473 int value; 2472 int value;
2474 value = toInt16(info.GetIsolate(), info[0], NormalConversion, exceptionState ); 2473 value = toInt16(info.GetIsolate(), info[0], NormalConversion, exceptionState );
2475 if (exceptionState.hadException()) 2474 if (exceptionState.hadException())
2476 return; 2475 return;
2477 2476
2478 int result = 0; 2477 int result = 0;
2479 if (!V8TestInterface::PrivateScript::shortMethodWithShortArgumentImplemented InPrivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCu rrentContext())), impl, value, &result)) 2478 if (!V8TestInterface::PrivateScript::shortMethodWithShortArgumentImplemented InPrivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCu rrentContext())), impl, value, &result))
2480 return; 2479 return;
2481 v8SetReturnValueInt(info, result); 2480 v8SetReturnValueInt(info, result);
2482 } 2481 }
2483 2482
2484 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback (const v8::FunctionCallbackInfo<v8::Value>& info) 2483 void shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
2485 { 2484 {
2486 TestInterfaceImplementationV8Internal::shortMethodWithShortArgumentImplement edInPrivateScriptMethod(info); 2485 TestInterfaceImplementationV8Internal::shortMethodWithShortArgumentImplement edInPrivateScriptMethod(info);
2487 } 2486 }
2488 2487
2489 static void partial2VoidMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 2488 static void partial2VoidMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
2490 { 2489 {
2491 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2490 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2492 2491
2493 TestInterfacePartial2Implementation::partial2VoidMethod(*impl); 2492 TestInterfacePartial2Implementation::partial2VoidMethod(*impl);
2494 } 2493 }
2495 2494
2496 static void partial2StaticVoidMethod1Method(const v8::FunctionCallbackInfo<v8::V alue>& info) 2495 static void partial2StaticVoidMethod1Method(const v8::FunctionCallbackInfo<v8::V alue>& info)
2497 { 2496 {
2498 TestInterfacePartial2Implementation::partial2StaticVoidMethod(); 2497 TestInterfacePartial2Implementation::partial2StaticVoidMethod();
2499 } 2498 }
2500 2499
2501 static void partial2SecureContextMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 2500 static void partial2SecureContextMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
2502 { 2501 {
2503 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2502 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2504 2503
2505 TestInterfacePartial2Implementation::partial2SecureContextMethod(*impl); 2504 TestInterfacePartial2Implementation::partial2SecureContextMethod(*impl);
2506 } 2505 }
2507 2506
2508 static void partial2SecureContextMethodMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 2507 void partial2SecureContextMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
2509 { 2508 {
2510 TestInterfaceImplementationV8Internal::partial2SecureContextMethodMethod(inf o); 2509 TestInterfaceImplementationV8Internal::partial2SecureContextMethodMethod(inf o);
2511 } 2510 }
2512 2511
2513 static void partialSecureContextMethodMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 2512 static void partialSecureContextMethodMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
2514 { 2513 {
2515 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2514 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2516 2515
2517 TestInterfacePartialSecureContext::partialSecureContextMethod(*impl); 2516 TestInterfacePartialSecureContext::partialSecureContextMethod(*impl);
2518 } 2517 }
2519 2518
2520 static void partialSecureContextMethodMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 2519 void partialSecureContextMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
2521 { 2520 {
2522 TestInterfaceImplementationV8Internal::partialSecureContextMethodMethod(info ); 2521 TestInterfaceImplementationV8Internal::partialSecureContextMethodMethod(info );
2523 } 2522 }
2524 2523
2525 static void partialSecureContextRuntimeEnabledMethodMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) 2524 static void partialSecureContextRuntimeEnabledMethodMethod(const v8::FunctionCal lbackInfo<v8::Value>& info)
2526 { 2525 {
2527 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2526 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2528 2527
2529 TestInterfacePartialSecureContext::partialSecureContextRuntimeEnabledMethod( *impl); 2528 TestInterfacePartialSecureContext::partialSecureContextRuntimeEnabledMethod( *impl);
2530 } 2529 }
2531 2530
2532 static void partialSecureContextRuntimeEnabledMethodMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 2531 void partialSecureContextRuntimeEnabledMethodMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info)
2533 { 2532 {
2534 TestInterfaceImplementationV8Internal::partialSecureContextRuntimeEnabledMet hodMethod(info); 2533 TestInterfaceImplementationV8Internal::partialSecureContextRuntimeEnabledMet hodMethod(info);
2535 } 2534 }
2536 2535
2537 static void partialSecureContextWindowExposedMethodMethod(const v8::FunctionCall backInfo<v8::Value>& info) 2536 static void partialSecureContextWindowExposedMethodMethod(const v8::FunctionCall backInfo<v8::Value>& info)
2538 { 2537 {
2539 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2538 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2540 2539
2541 TestInterfacePartialSecureContext::partialSecureContextWindowExposedMethod(* impl); 2540 TestInterfacePartialSecureContext::partialSecureContextWindowExposedMethod(* impl);
2542 } 2541 }
2543 2542
2544 static void partialSecureContextWindowExposedMethodMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 2543 void partialSecureContextWindowExposedMethodMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
2545 { 2544 {
2546 TestInterfaceImplementationV8Internal::partialSecureContextWindowExposedMeth odMethod(info); 2545 TestInterfaceImplementationV8Internal::partialSecureContextWindowExposedMeth odMethod(info);
2547 } 2546 }
2548 2547
2549 static void partialSecureContextWorkerExposedMethodMethod(const v8::FunctionCall backInfo<v8::Value>& info) 2548 static void partialSecureContextWorkerExposedMethodMethod(const v8::FunctionCall backInfo<v8::Value>& info)
2550 { 2549 {
2551 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2550 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2552 2551
2553 TestInterfacePartialSecureContext::partialSecureContextWorkerExposedMethod(* impl); 2552 TestInterfacePartialSecureContext::partialSecureContextWorkerExposedMethod(* impl);
2554 } 2553 }
2555 2554
2556 static void partialSecureContextWorkerExposedMethodMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 2555 void partialSecureContextWorkerExposedMethodMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
2557 { 2556 {
2558 TestInterfaceImplementationV8Internal::partialSecureContextWorkerExposedMeth odMethod(info); 2557 TestInterfaceImplementationV8Internal::partialSecureContextWorkerExposedMeth odMethod(info);
2559 } 2558 }
2560 2559
2561 static void partialSecureContextWindowExposedRuntimeEnabledMethodMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info) 2560 static void partialSecureContextWindowExposedRuntimeEnabledMethodMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info)
2562 { 2561 {
2563 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2562 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2564 2563
2565 TestInterfacePartialSecureContext::partialSecureContextWindowExposedRuntimeE nabledMethod(*impl); 2564 TestInterfacePartialSecureContext::partialSecureContextWindowExposedRuntimeE nabledMethod(*impl);
2566 } 2565 }
2567 2566
2568 static void partialSecureContextWindowExposedRuntimeEnabledMethodMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info) 2567 void partialSecureContextWindowExposedRuntimeEnabledMethodMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info)
2569 { 2568 {
2570 TestInterfaceImplementationV8Internal::partialSecureContextWindowExposedRunt imeEnabledMethodMethod(info); 2569 TestInterfaceImplementationV8Internal::partialSecureContextWindowExposedRunt imeEnabledMethodMethod(info);
2571 } 2570 }
2572 2571
2573 static void partialSecureContextWorkerExposedRuntimeEnabledMethodMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info) 2572 static void partialSecureContextWorkerExposedRuntimeEnabledMethodMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info)
2574 { 2573 {
2575 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2574 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2576 2575
2577 TestInterfacePartialSecureContext::partialSecureContextWorkerExposedRuntimeE nabledMethod(*impl); 2576 TestInterfacePartialSecureContext::partialSecureContextWorkerExposedRuntimeE nabledMethod(*impl);
2578 } 2577 }
2579 2578
2580 static void partialSecureContextWorkerExposedRuntimeEnabledMethodMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info) 2579 void partialSecureContextWorkerExposedRuntimeEnabledMethodMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info)
2581 { 2580 {
2582 TestInterfaceImplementationV8Internal::partialSecureContextWorkerExposedRunt imeEnabledMethodMethod(info); 2581 TestInterfaceImplementationV8Internal::partialSecureContextWorkerExposedRunt imeEnabledMethodMethod(info);
2583 } 2582 }
2584 2583
2585 static void voidMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 2584 static void voidMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
2586 { 2585 {
2587 switch (std::min(1, info.Length())) { 2586 switch (std::min(1, info.Length())) {
2588 case 0: 2587 case 0:
2589 if (true) { 2588 if (true) {
2590 voidMethodPartialOverload1Method(info); 2589 voidMethodPartialOverload1Method(info);
2591 return; 2590 return;
2592 } 2591 }
2593 break; 2592 break;
2594 case 1: 2593 case 1:
2595 if (info[0]->IsNumber()) { 2594 if (info[0]->IsNumber()) {
2596 voidMethodPartialOverload2Method(info); 2595 voidMethodPartialOverload2Method(info);
2597 return; 2596 return;
2598 } 2597 }
2599 if (true) { 2598 if (true) {
2600 voidMethodPartialOverload2Method(info); 2599 voidMethodPartialOverload2Method(info);
2601 return; 2600 return;
2602 } 2601 }
2603 break; 2602 break;
2604 } 2603 }
2605 2604
2606 DCHECK(voidMethodPartialOverloadMethodForPartialInterface); 2605 DCHECK(voidMethodPartialOverloadMethodForPartialInterface);
2607 (voidMethodPartialOverloadMethodForPartialInterface)(info); 2606 (voidMethodPartialOverloadMethodForPartialInterface)(info);
2608 } 2607 }
2609 2608
2610 static void voidMethodPartialOverloadMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 2609 void voidMethodPartialOverloadMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
2611 { 2610 {
2612 TestInterfaceImplementationV8Internal::voidMethodPartialOverloadMethod(info) ; 2611 TestInterfaceImplementationV8Internal::voidMethodPartialOverloadMethod(info) ;
2613 } 2612 }
2614 2613
2615 static void staticVoidMethodPartialOverloadMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 2614 static void staticVoidMethodPartialOverloadMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
2616 { 2615 {
2617 switch (std::min(1, info.Length())) { 2616 switch (std::min(1, info.Length())) {
2618 case 0: 2617 case 0:
2619 if (true) { 2618 if (true) {
2620 staticVoidMethodPartialOverload1Method(info); 2619 staticVoidMethodPartialOverload1Method(info);
2621 return; 2620 return;
2622 } 2621 }
2623 break; 2622 break;
2624 case 1: 2623 case 1:
2625 break; 2624 break;
2626 } 2625 }
2627 2626
2628 DCHECK(staticVoidMethodPartialOverloadMethodForPartialInterface); 2627 DCHECK(staticVoidMethodPartialOverloadMethodForPartialInterface);
2629 (staticVoidMethodPartialOverloadMethodForPartialInterface)(info); 2628 (staticVoidMethodPartialOverloadMethodForPartialInterface)(info);
2630 } 2629 }
2631 2630
2632 static void staticVoidMethodPartialOverloadMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 2631 void staticVoidMethodPartialOverloadMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
2633 { 2632 {
2634 TestInterfaceImplementationV8Internal::staticVoidMethodPartialOverloadMethod (info); 2633 TestInterfaceImplementationV8Internal::staticVoidMethodPartialOverloadMethod (info);
2635 } 2634 }
2636 2635
2637 static void promiseMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) 2636 static void promiseMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info)
2638 { 2637 {
2639 switch (std::min(1, info.Length())) { 2638 switch (std::min(1, info.Length())) {
2640 case 0: 2639 case 0:
2641 if (true) { 2640 if (true) {
2642 promiseMethodPartialOverload1Method(info); 2641 promiseMethodPartialOverload1Method(info);
2643 return; 2642 return;
2644 } 2643 }
2645 break; 2644 break;
2646 case 1: 2645 case 1:
2647 if (V8Window::hasInstance(info[0], info.GetIsolate())) { 2646 if (V8Window::hasInstance(info[0], info.GetIsolate())) {
2648 promiseMethodPartialOverload2Method(info); 2647 promiseMethodPartialOverload2Method(info);
2649 return; 2648 return;
2650 } 2649 }
2651 break; 2650 break;
2652 } 2651 }
2653 2652
2654 DCHECK(promiseMethodPartialOverloadMethodForPartialInterface); 2653 DCHECK(promiseMethodPartialOverloadMethodForPartialInterface);
2655 (promiseMethodPartialOverloadMethodForPartialInterface)(info); 2654 (promiseMethodPartialOverloadMethodForPartialInterface)(info);
2656 } 2655 }
2657 2656
2658 static void promiseMethodPartialOverloadMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 2657 void promiseMethodPartialOverloadMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
2659 { 2658 {
2660 TestInterfaceImplementationV8Internal::promiseMethodPartialOverloadMethod(in fo); 2659 TestInterfaceImplementationV8Internal::promiseMethodPartialOverloadMethod(in fo);
2661 } 2660 }
2662 2661
2663 static void staticPromiseMethodPartialOverloadMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 2662 static void staticPromiseMethodPartialOverloadMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
2664 { 2663 {
2665 switch (std::min(1, info.Length())) { 2664 switch (std::min(1, info.Length())) {
2666 case 0: 2665 case 0:
2667 if (true) { 2666 if (true) {
2668 staticPromiseMethodPartialOverload1Method(info); 2667 staticPromiseMethodPartialOverload1Method(info);
2669 return; 2668 return;
2670 } 2669 }
2671 break; 2670 break;
2672 case 1: 2671 case 1:
2673 break; 2672 break;
2674 } 2673 }
2675 2674
2676 DCHECK(staticPromiseMethodPartialOverloadMethodForPartialInterface); 2675 DCHECK(staticPromiseMethodPartialOverloadMethodForPartialInterface);
2677 (staticPromiseMethodPartialOverloadMethodForPartialInterface)(info); 2676 (staticPromiseMethodPartialOverloadMethodForPartialInterface)(info);
2678 } 2677 }
2679 2678
2680 static void staticPromiseMethodPartialOverloadMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 2679 void staticPromiseMethodPartialOverloadMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
2681 { 2680 {
2682 TestInterfaceImplementationV8Internal::staticPromiseMethodPartialOverloadMet hod(info); 2681 TestInterfaceImplementationV8Internal::staticPromiseMethodPartialOverloadMet hod(info);
2683 } 2682 }
2684 2683
2685 static void partial2VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 2684 static void partial2VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
2686 { 2685 {
2687 switch (std::min(1, info.Length())) { 2686 switch (std::min(1, info.Length())) {
2688 case 0: 2687 case 0:
2689 if (true) { 2688 if (true) {
2690 partial2VoidMethod1Method(info); 2689 partial2VoidMethod1Method(info);
2691 return; 2690 return;
2692 } 2691 }
2693 break; 2692 break;
2694 case 1: 2693 case 1:
2695 break; 2694 break;
2696 } 2695 }
2697 2696
2698 DCHECK(partial2VoidMethodMethodForPartialInterface); 2697 DCHECK(partial2VoidMethodMethodForPartialInterface);
2699 (partial2VoidMethodMethodForPartialInterface)(info); 2698 (partial2VoidMethodMethodForPartialInterface)(info);
2700 } 2699 }
2701 2700
2702 static void partial2VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 2701 void partial2VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
2703 { 2702 {
2704 TestInterfaceImplementationV8Internal::partial2VoidMethodMethod(info); 2703 TestInterfaceImplementationV8Internal::partial2VoidMethodMethod(info);
2705 } 2704 }
2706 2705
2707 static void partial2StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 2706 static void partial2StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
2708 { 2707 {
2709 switch (std::min(1, info.Length())) { 2708 switch (std::min(1, info.Length())) {
2710 case 0: 2709 case 0:
2711 if (true) { 2710 if (true) {
2712 partial2StaticVoidMethod1Method(info); 2711 partial2StaticVoidMethod1Method(info);
2713 return; 2712 return;
2714 } 2713 }
2715 break; 2714 break;
2716 case 1: 2715 case 1:
2717 break; 2716 break;
2718 } 2717 }
2719 2718
2720 DCHECK(partial2StaticVoidMethodMethodForPartialInterface); 2719 DCHECK(partial2StaticVoidMethodMethodForPartialInterface);
2721 (partial2StaticVoidMethodMethodForPartialInterface)(info); 2720 (partial2StaticVoidMethodMethodForPartialInterface)(info);
2722 } 2721 }
2723 2722
2724 static void partial2StaticVoidMethodMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 2723 void partial2StaticVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
2725 { 2724 {
2726 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethod(info); 2725 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethod(info);
2727 } 2726 }
2728 2727
2729 static void toJSONMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 2728 static void toJSONMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
2730 { 2729 {
2731 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface", "toJSON"); 2730 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface", "toJSON");
2732 2731
2733 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2732 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2734 2733
2735 ScriptState* scriptState = ScriptState::forReceiverObject(info); 2734 ScriptState* scriptState = ScriptState::forReceiverObject(info);
2736 2735
2737 ScriptValue result = impl->toJSONForBinding(scriptState, exceptionState); 2736 ScriptValue result = impl->toJSONForBinding(scriptState, exceptionState);
2738 if (exceptionState.hadException()) { 2737 if (exceptionState.hadException()) {
2739 return; 2738 return;
2740 } 2739 }
2741 v8SetReturnValue(info, result.v8Value()); 2740 v8SetReturnValue(info, result.v8Value());
2742 } 2741 }
2743 2742
2744 static void toJSONMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info ) 2743 void toJSONMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
2745 { 2744 {
2746 TestInterfaceImplementationV8Internal::toJSONMethod(info); 2745 TestInterfaceImplementationV8Internal::toJSONMethod(info);
2747 } 2746 }
2748 2747
2749 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 2748 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
2750 { 2749 {
2751 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2750 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2752 2751
2753 v8SetReturnValueString(info, impl->toString(), info.GetIsolate()); 2752 v8SetReturnValueString(info, impl->toString(), info.GetIsolate());
2754 } 2753 }
2755 2754
2756 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo) 2755 void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
2757 { 2756 {
2758 TestInterfaceImplementationV8Internal::toStringMethod(info); 2757 TestInterfaceImplementationV8Internal::toStringMethod(info);
2759 } 2758 }
2760 2759
2761 static void iteratorMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 2760 static void iteratorMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
2762 { 2761 {
2763 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface", "iterator"); 2762 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface", "iterator");
2764 2763
2765 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2764 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2766 2765
2767 ScriptState* scriptState = ScriptState::forReceiverObject(info); 2766 ScriptState* scriptState = ScriptState::forReceiverObject(info);
2768 2767
2769 Iterator* result = impl->iterator(scriptState, exceptionState); 2768 Iterator* result = impl->iterator(scriptState, exceptionState);
2770 if (exceptionState.hadException()) { 2769 if (exceptionState.hadException()) {
2771 return; 2770 return;
2772 } 2771 }
2773 v8SetReturnValue(info, result); 2772 v8SetReturnValue(info, result);
2774 } 2773 }
2775 2774
2776 static void iteratorMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo) 2775 void iteratorMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
2777 { 2776 {
2778 TestInterfaceImplementationV8Internal::iteratorMethod(info); 2777 TestInterfaceImplementationV8Internal::iteratorMethod(info);
2779 } 2778 }
2780 2779
2781 static void namedPropertyGetter(const AtomicString& name, const v8::PropertyCall backInfo<v8::Value>& info) 2780 static void namedPropertyGetter(const AtomicString& name, const v8::PropertyCall backInfo<v8::Value>& info)
2782 { 2781 {
2783 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 2782 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
2784 String result = impl->anonymousNamedGetter(name); 2783 String result = impl->anonymousNamedGetter(name);
2785 if (result.isNull()) 2784 if (result.isNull())
2786 return; 2785 return;
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
3468 { 3467 {
3469 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method; 3468 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method;
3470 } 3469 }
3471 3470
3472 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) 3471 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&))
3473 { 3472 {
3474 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method; 3473 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method;
3475 } 3474 }
3476 3475
3477 } // namespace blink 3476 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698