| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
| 6 | 6 |
| 7 #include "config.h" | 7 #include "config.h" |
| 8 #include "V8TestObject.h" | 8 #include "V8TestObject.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/V8HTMLCollection.h" | 10 #include "bindings/core/v8/V8HTMLCollection.h" |
| (...skipping 6854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6865 impl->voidMethodOptionalDictionaryArg(optionalDictionaryArg); | 6865 impl->voidMethodOptionalDictionaryArg(optionalDictionaryArg); |
| 6866 } | 6866 } |
| 6867 | 6867 |
| 6868 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 6868 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 6869 { | 6869 { |
| 6870 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6870 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 6871 TestObjectV8Internal::voidMethodOptionalDictionaryArgMethod(info); | 6871 TestObjectV8Internal::voidMethodOptionalDictionaryArgMethod(info); |
| 6872 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6872 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 6873 } | 6873 } |
| 6874 | 6874 |
| 6875 static void voidMethodDefaultByteStringArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) |
| 6876 { |
| 6877 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultByteStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 6878 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6879 V8StringResource<> defaultByteStringArg; |
| 6880 { |
| 6881 v8::TryCatch block; |
| 6882 V8RethrowTryCatchScope rethrow(block); |
| 6883 if (info.Length() > 0) { |
| 6884 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultByteStringArg, toByteSt
ring(info[0], exceptionState), exceptionState); |
| 6885 } else { |
| 6886 defaultByteStringArg = String("foo"); |
| 6887 } |
| 6888 } |
| 6889 impl->voidMethodDefaultByteStringArg(defaultByteStringArg); |
| 6890 } |
| 6891 |
| 6892 static void voidMethodDefaultByteStringArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
| 6893 { |
| 6894 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 6895 TestObjectV8Internal::voidMethodDefaultByteStringArgMethod(info); |
| 6896 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 6897 } |
| 6898 |
| 6875 static void voidMethodDefaultStringArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 6899 static void voidMethodDefaultStringArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 6876 { | 6900 { |
| 6877 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6901 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6878 V8StringResource<> defaultStringArg; | 6902 V8StringResource<> defaultStringArg; |
| 6879 { | 6903 { |
| 6880 TOSTRING_VOID_INTERNAL(defaultStringArg, info[0]); | 6904 if (info.Length() > 0) { |
| 6905 TOSTRING_VOID_INTERNAL(defaultStringArg, info[0]); |
| 6906 } else { |
| 6907 defaultStringArg = String("foo"); |
| 6908 } |
| 6881 } | 6909 } |
| 6882 impl->voidMethodDefaultStringArg(defaultStringArg); | 6910 impl->voidMethodDefaultStringArg(defaultStringArg); |
| 6883 } | 6911 } |
| 6884 | 6912 |
| 6885 static void voidMethodDefaultStringArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 6913 static void voidMethodDefaultStringArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 6886 { | 6914 { |
| 6887 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6915 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 6888 TestObjectV8Internal::voidMethodDefaultStringArgMethod(info); | 6916 TestObjectV8Internal::voidMethodDefaultStringArgMethod(info); |
| 6889 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6917 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 6890 } | 6918 } |
| 6891 | 6919 |
| 6892 static void voidMethodDefaultNullStringArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) | |
| 6893 { | |
| 6894 TestObject* impl = V8TestObject::toNative(info.Holder()); | |
| 6895 V8StringResource<> defaultStringArg; | |
| 6896 { | |
| 6897 TOSTRING_VOID_INTERNAL(defaultStringArg, argumentOrNull(info, 0)); | |
| 6898 } | |
| 6899 impl->voidMethodDefaultNullStringArg(defaultStringArg); | |
| 6900 } | |
| 6901 | |
| 6902 static void voidMethodDefaultNullStringArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | |
| 6903 { | |
| 6904 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | |
| 6905 TestObjectV8Internal::voidMethodDefaultNullStringArgMethod(info); | |
| 6906 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | |
| 6907 } | |
| 6908 | |
| 6909 static void voidMethodDefaultLongArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 6920 static void voidMethodDefaultLongArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 6910 { | 6921 { |
| 6911 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 6922 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 6912 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6923 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6913 int defaultLongArg; | 6924 int defaultLongArg; |
| 6914 { | 6925 { |
| 6915 v8::TryCatch block; | 6926 v8::TryCatch block; |
| 6916 V8RethrowTryCatchScope rethrow(block); | 6927 V8RethrowTryCatchScope rethrow(block); |
| 6917 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultLongArg, toInt32(info[0], e
xceptionState), exceptionState); | 6928 if (info.Length() > 0) { |
| 6929 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultLongArg, toInt32(info[0
], exceptionState), exceptionState); |
| 6930 } else { |
| 6931 defaultLongArg = 10; |
| 6932 } |
| 6918 } | 6933 } |
| 6919 impl->voidMethodDefaultLongArg(defaultLongArg); | 6934 impl->voidMethodDefaultLongArg(defaultLongArg); |
| 6920 } | 6935 } |
| 6921 | 6936 |
| 6922 static void voidMethodDefaultLongArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 6937 static void voidMethodDefaultLongArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 6923 { | 6938 { |
| 6924 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6939 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 6925 TestObjectV8Internal::voidMethodDefaultLongArgMethod(info); | 6940 TestObjectV8Internal::voidMethodDefaultLongArgMethod(info); |
| 6926 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6941 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 6927 } | 6942 } |
| 6928 | 6943 |
| 6929 static void voidMethodDefaultDoubleArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 6944 static void voidMethodDefaultDoubleArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 6930 { | 6945 { |
| 6931 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6946 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6932 double defaultDoubleArg; | 6947 double defaultDoubleArg; |
| 6933 { | 6948 { |
| 6934 v8::TryCatch block; | 6949 v8::TryCatch block; |
| 6935 V8RethrowTryCatchScope rethrow(block); | 6950 V8RethrowTryCatchScope rethrow(block); |
| 6936 TONATIVE_VOID_INTERNAL(defaultDoubleArg, static_cast<double>(info[0]->Nu
mberValue())); | 6951 if (info.Length() > 0) { |
| 6952 TONATIVE_VOID_INTERNAL(defaultDoubleArg, static_cast<double>(info[0]
->NumberValue())); |
| 6953 } else { |
| 6954 defaultDoubleArg = 0.5; |
| 6955 } |
| 6937 } | 6956 } |
| 6938 impl->voidMethodDefaultDoubleArg(defaultDoubleArg); | 6957 impl->voidMethodDefaultDoubleArg(defaultDoubleArg); |
| 6939 } | 6958 } |
| 6940 | 6959 |
| 6941 static void voidMethodDefaultDoubleArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 6960 static void voidMethodDefaultDoubleArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 6942 { | 6961 { |
| 6943 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6962 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 6944 TestObjectV8Internal::voidMethodDefaultDoubleArgMethod(info); | 6963 TestObjectV8Internal::voidMethodDefaultDoubleArgMethod(info); |
| 6945 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6964 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 6946 } | 6965 } |
| 6947 | 6966 |
| 6948 static void voidMethodDefaultTrueBooleanArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 6967 static void voidMethodDefaultTrueBooleanArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 6949 { | 6968 { |
| 6950 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6969 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6951 bool defaultBooleanArg; | 6970 bool defaultBooleanArg; |
| 6952 { | 6971 { |
| 6953 v8::TryCatch block; | 6972 v8::TryCatch block; |
| 6954 V8RethrowTryCatchScope rethrow(block); | 6973 V8RethrowTryCatchScope rethrow(block); |
| 6955 TONATIVE_VOID_INTERNAL(defaultBooleanArg, info[0]->BooleanValue()); | 6974 if (info.Length() > 0) { |
| 6975 TONATIVE_VOID_INTERNAL(defaultBooleanArg, info[0]->BooleanValue()); |
| 6976 } else { |
| 6977 defaultBooleanArg = true; |
| 6978 } |
| 6956 } | 6979 } |
| 6957 impl->voidMethodDefaultTrueBooleanArg(defaultBooleanArg); | 6980 impl->voidMethodDefaultTrueBooleanArg(defaultBooleanArg); |
| 6958 } | 6981 } |
| 6959 | 6982 |
| 6960 static void voidMethodDefaultTrueBooleanArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 6983 static void voidMethodDefaultTrueBooleanArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 6961 { | 6984 { |
| 6962 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6985 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 6963 TestObjectV8Internal::voidMethodDefaultTrueBooleanArgMethod(info); | 6986 TestObjectV8Internal::voidMethodDefaultTrueBooleanArgMethod(info); |
| 6964 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6987 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 6965 } | 6988 } |
| 6966 | 6989 |
| 6967 static void voidMethodDefaultFalseBooleanArgMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) | 6990 static void voidMethodDefaultFalseBooleanArgMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 6968 { | 6991 { |
| 6969 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6992 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6970 bool defaultBooleanArg; | 6993 bool defaultBooleanArg; |
| 6971 { | 6994 { |
| 6972 v8::TryCatch block; | 6995 v8::TryCatch block; |
| 6973 V8RethrowTryCatchScope rethrow(block); | 6996 V8RethrowTryCatchScope rethrow(block); |
| 6974 TONATIVE_VOID_INTERNAL(defaultBooleanArg, info[0]->BooleanValue()); | 6997 if (info.Length() > 0) { |
| 6998 TONATIVE_VOID_INTERNAL(defaultBooleanArg, info[0]->BooleanValue()); |
| 6999 } else { |
| 7000 defaultBooleanArg = false; |
| 7001 } |
| 6975 } | 7002 } |
| 6976 impl->voidMethodDefaultFalseBooleanArg(defaultBooleanArg); | 7003 impl->voidMethodDefaultFalseBooleanArg(defaultBooleanArg); |
| 6977 } | 7004 } |
| 6978 | 7005 |
| 6979 static void voidMethodDefaultFalseBooleanArgMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 7006 static void voidMethodDefaultFalseBooleanArgMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
| 6980 { | 7007 { |
| 6981 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7008 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 6982 TestObjectV8Internal::voidMethodDefaultFalseBooleanArgMethod(info); | 7009 TestObjectV8Internal::voidMethodDefaultFalseBooleanArgMethod(info); |
| 6983 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7010 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 6984 } | 7011 } |
| 6985 | 7012 |
| 7013 static void voidMethodDefaultNullableByteStringArgMethod(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
| 7014 { |
| 7015 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 7016 V8StringResource<> defaultStringArg; |
| 7017 { |
| 7018 v8::TryCatch block; |
| 7019 V8RethrowTryCatchScope rethrow(block); |
| 7020 if (info.Length() > 0) { |
| 7021 TONATIVE_VOID_INTERNAL(defaultStringArg, toByteString(info[0])); |
| 7022 } else { |
| 7023 defaultStringArg = nullptr; |
| 7024 } |
| 7025 } |
| 7026 impl->voidMethodDefaultNullableByteStringArg(defaultStringArg); |
| 7027 } |
| 7028 |
| 7029 static void voidMethodDefaultNullableByteStringArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
| 7030 { |
| 7031 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 7032 TestObjectV8Internal::voidMethodDefaultNullableByteStringArgMethod(info); |
| 7033 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 7034 } |
| 7035 |
| 6986 static void voidMethodDefaultNullableStringArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 7036 static void voidMethodDefaultNullableStringArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 6987 { | 7037 { |
| 6988 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7038 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6989 V8StringResource<> defaultStringArg; | 7039 V8StringResource<> defaultStringArg; |
| 6990 { | 7040 { |
| 6991 TOSTRING_VOID_INTERNAL(defaultStringArg, argumentOrNull(info, 0)); | 7041 if (info.Length() > 0) { |
| 7042 TOSTRING_VOID_INTERNAL(defaultStringArg, info[0]); |
| 7043 } else { |
| 7044 defaultStringArg = nullptr; |
| 7045 } |
| 6992 } | 7046 } |
| 6993 impl->voidMethodDefaultNullableStringArg(defaultStringArg); | 7047 impl->voidMethodDefaultNullableStringArg(defaultStringArg); |
| 6994 } | 7048 } |
| 6995 | 7049 |
| 6996 static void voidMethodDefaultNullableStringArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 7050 static void voidMethodDefaultNullableStringArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
| 6997 { | 7051 { |
| 6998 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7052 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 6999 TestObjectV8Internal::voidMethodDefaultNullableStringArgMethod(info); | 7053 TestObjectV8Internal::voidMethodDefaultNullableStringArgMethod(info); |
| 7000 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7054 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 7001 } | 7055 } |
| 7002 | 7056 |
| 7003 static void voidMethodDefaultNullableTestInterfaceArgMethod(const v8::FunctionCa
llbackInfo<v8::Value>& info) | 7057 static void voidMethodDefaultNullableTestInterfaceArgMethod(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
| 7004 { | 7058 { |
| 7005 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7059 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 7006 TestInterfaceImplementation* defaultTestInterfaceArg; | 7060 TestInterfaceImplementation* defaultTestInterfaceArg; |
| 7007 { | 7061 { |
| 7008 v8::TryCatch block; | 7062 v8::TryCatch block; |
| 7009 V8RethrowTryCatchScope rethrow(block); | 7063 V8RethrowTryCatchScope rethrow(block); |
| 7010 TONATIVE_VOID_INTERNAL(defaultTestInterfaceArg, V8TestInterface::toNativ
eWithTypeCheck(info.GetIsolate(), info[0])); | 7064 if (info.Length() > 0) { |
| 7065 TONATIVE_VOID_INTERNAL(defaultTestInterfaceArg, V8TestInterface::toN
ativeWithTypeCheck(info.GetIsolate(), info[0])); |
| 7066 } else { |
| 7067 defaultTestInterfaceArg = nullptr; |
| 7068 } |
| 7011 } | 7069 } |
| 7012 impl->voidMethodDefaultNullableTestInterfaceArg(defaultTestInterfaceArg); | 7070 impl->voidMethodDefaultNullableTestInterfaceArg(defaultTestInterfaceArg); |
| 7013 } | 7071 } |
| 7014 | 7072 |
| 7015 static void voidMethodDefaultNullableTestInterfaceArgMethodCallback(const v8::Fu
nctionCallbackInfo<v8::Value>& info) | 7073 static void voidMethodDefaultNullableTestInterfaceArgMethodCallback(const v8::Fu
nctionCallbackInfo<v8::Value>& info) |
| 7016 { | 7074 { |
| 7017 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7075 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 7018 TestObjectV8Internal::voidMethodDefaultNullableTestInterfaceArgMethod(info); | 7076 TestObjectV8Internal::voidMethodDefaultNullableTestInterfaceArgMethod(info); |
| 7019 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7077 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 7020 } | 7078 } |
| (...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7553 impl->overloadedMethodG(longArg); | 7611 impl->overloadedMethodG(longArg); |
| 7554 } | 7612 } |
| 7555 | 7613 |
| 7556 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 7614 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 7557 { | 7615 { |
| 7558 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7616 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 7559 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; | 7617 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; |
| 7560 { | 7618 { |
| 7561 v8::TryCatch block; | 7619 v8::TryCatch block; |
| 7562 V8RethrowTryCatchScope rethrow(block); | 7620 V8RethrowTryCatchScope rethrow(block); |
| 7563 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceEmpty
::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 7621 if (info.Length() > 0) { |
| 7622 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
| 7623 } else { |
| 7624 testInterfaceEmptyOrNullArg = nullptr; |
| 7625 } |
| 7564 } | 7626 } |
| 7565 impl->overloadedMethodG(testInterfaceEmptyOrNullArg); | 7627 impl->overloadedMethodG(testInterfaceEmptyOrNullArg); |
| 7566 } | 7628 } |
| 7567 | 7629 |
| 7568 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 7630 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 7569 { | 7631 { |
| 7570 v8::Isolate* isolate = info.GetIsolate(); | 7632 v8::Isolate* isolate = info.GetIsolate(); |
| 7571 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodG", "TestObject", info.Holder(), isolate); | 7633 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodG", "TestObject", info.Holder(), isolate); |
| 7572 switch (std::min(1, info.Length())) { | 7634 switch (std::min(1, info.Length())) { |
| 7573 case 0: | 7635 case 0: |
| (...skipping 2262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9836 {"voidMethodOptionalTestInterfaceEmptyArg", TestObjectV8Internal::voidMethod
OptionalTestInterfaceEmptyArgMethodCallback, 0, 0}, | 9898 {"voidMethodOptionalTestInterfaceEmptyArg", TestObjectV8Internal::voidMethod
OptionalTestInterfaceEmptyArgMethodCallback, 0, 0}, |
| 9837 {"voidMethodOptionalLongArg", TestObjectV8Internal::voidMethodOptionalLongAr
gMethodCallback, 0, 0}, | 9899 {"voidMethodOptionalLongArg", TestObjectV8Internal::voidMethodOptionalLongAr
gMethodCallback, 0, 0}, |
| 9838 {"stringMethodOptionalLongArg", TestObjectV8Internal::stringMethodOptionalLo
ngArgMethodCallback, 0, 0}, | 9900 {"stringMethodOptionalLongArg", TestObjectV8Internal::stringMethodOptionalLo
ngArgMethodCallback, 0, 0}, |
| 9839 {"testInterfaceEmptyMethodOptionalLongArg", TestObjectV8Internal::testInterf
aceEmptyMethodOptionalLongArgMethodCallback, 0, 0}, | 9901 {"testInterfaceEmptyMethodOptionalLongArg", TestObjectV8Internal::testInterf
aceEmptyMethodOptionalLongArgMethodCallback, 0, 0}, |
| 9840 {"longMethodOptionalLongArg", TestObjectV8Internal::longMethodOptionalLongAr
gMethodCallback, 0, 0}, | 9902 {"longMethodOptionalLongArg", TestObjectV8Internal::longMethodOptionalLongAr
gMethodCallback, 0, 0}, |
| 9841 {"voidMethodLongArgOptionalLongArg", TestObjectV8Internal::voidMethodLongArg
OptionalLongArgMethodCallback, 0, 1}, | 9903 {"voidMethodLongArgOptionalLongArg", TestObjectV8Internal::voidMethodLongArg
OptionalLongArgMethodCallback, 0, 1}, |
| 9842 {"voidMethodLongArgOptionalLongArgOptionalLongArg", TestObjectV8Internal::vo
idMethodLongArgOptionalLongArgOptionalLongArgMethodCallback, 0, 1}, | 9904 {"voidMethodLongArgOptionalLongArgOptionalLongArg", TestObjectV8Internal::vo
idMethodLongArgOptionalLongArgOptionalLongArgMethodCallback, 0, 1}, |
| 9843 {"voidMethodLongArgOptionalTestInterfaceEmptyArg", TestObjectV8Internal::voi
dMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback, 0, 1}, | 9905 {"voidMethodLongArgOptionalTestInterfaceEmptyArg", TestObjectV8Internal::voi
dMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback, 0, 1}, |
| 9844 {"voidMethodTestInterfaceEmptyArgOptionalLongArg", TestObjectV8Internal::voi
dMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback, 0, 1}, | 9906 {"voidMethodTestInterfaceEmptyArgOptionalLongArg", TestObjectV8Internal::voi
dMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback, 0, 1}, |
| 9845 {"voidMethodOptionalDictionaryArg", TestObjectV8Internal::voidMethodOptional
DictionaryArgMethodCallback, 0, 0}, | 9907 {"voidMethodOptionalDictionaryArg", TestObjectV8Internal::voidMethodOptional
DictionaryArgMethodCallback, 0, 0}, |
| 9908 {"voidMethodDefaultByteStringArg", TestObjectV8Internal::voidMethodDefaultBy
teStringArgMethodCallback, 0, 0}, |
| 9846 {"voidMethodDefaultStringArg", TestObjectV8Internal::voidMethodDefaultString
ArgMethodCallback, 0, 0}, | 9909 {"voidMethodDefaultStringArg", TestObjectV8Internal::voidMethodDefaultString
ArgMethodCallback, 0, 0}, |
| 9847 {"voidMethodDefaultNullStringArg", TestObjectV8Internal::voidMethodDefaultNu
llStringArgMethodCallback, 0, 0}, | |
| 9848 {"voidMethodDefaultLongArg", TestObjectV8Internal::voidMethodDefaultLongArgM
ethodCallback, 0, 0}, | 9910 {"voidMethodDefaultLongArg", TestObjectV8Internal::voidMethodDefaultLongArgM
ethodCallback, 0, 0}, |
| 9849 {"voidMethodDefaultDoubleArg", TestObjectV8Internal::voidMethodDefaultDouble
ArgMethodCallback, 0, 0}, | 9911 {"voidMethodDefaultDoubleArg", TestObjectV8Internal::voidMethodDefaultDouble
ArgMethodCallback, 0, 0}, |
| 9850 {"voidMethodDefaultTrueBooleanArg", TestObjectV8Internal::voidMethodDefaultT
rueBooleanArgMethodCallback, 0, 0}, | 9912 {"voidMethodDefaultTrueBooleanArg", TestObjectV8Internal::voidMethodDefaultT
rueBooleanArgMethodCallback, 0, 0}, |
| 9851 {"voidMethodDefaultFalseBooleanArg", TestObjectV8Internal::voidMethodDefault
FalseBooleanArgMethodCallback, 0, 0}, | 9913 {"voidMethodDefaultFalseBooleanArg", TestObjectV8Internal::voidMethodDefault
FalseBooleanArgMethodCallback, 0, 0}, |
| 9914 {"voidMethodDefaultNullableByteStringArg", TestObjectV8Internal::voidMethodD
efaultNullableByteStringArgMethodCallback, 0, 0}, |
| 9852 {"voidMethodDefaultNullableStringArg", TestObjectV8Internal::voidMethodDefau
ltNullableStringArgMethodCallback, 0, 0}, | 9915 {"voidMethodDefaultNullableStringArg", TestObjectV8Internal::voidMethodDefau
ltNullableStringArgMethodCallback, 0, 0}, |
| 9853 {"voidMethodDefaultNullableTestInterfaceArg", TestObjectV8Internal::voidMeth
odDefaultNullableTestInterfaceArgMethodCallback, 0, 0}, | 9916 {"voidMethodDefaultNullableTestInterfaceArg", TestObjectV8Internal::voidMeth
odDefaultNullableTestInterfaceArgMethodCallback, 0, 0}, |
| 9854 {"voidMethodVariadicStringArg", TestObjectV8Internal::voidMethodVariadicStri
ngArgMethodCallback, 0, 0}, | 9917 {"voidMethodVariadicStringArg", TestObjectV8Internal::voidMethodVariadicStri
ngArgMethodCallback, 0, 0}, |
| 9855 {"voidMethodStringArgVariadicStringArg", TestObjectV8Internal::voidMethodStr
ingArgVariadicStringArgMethodCallback, 0, 1}, | 9918 {"voidMethodStringArgVariadicStringArg", TestObjectV8Internal::voidMethodStr
ingArgVariadicStringArgMethodCallback, 0, 1}, |
| 9856 {"voidMethodVariadicTestInterfaceEmptyArg", TestObjectV8Internal::voidMethod
VariadicTestInterfaceEmptyArgMethodCallback, 0, 0}, | 9919 {"voidMethodVariadicTestInterfaceEmptyArg", TestObjectV8Internal::voidMethod
VariadicTestInterfaceEmptyArgMethodCallback, 0, 0}, |
| 9857 {"voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg", TestObjectV
8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCal
lback, 0, 1}, | 9920 {"voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg", TestObjectV
8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCal
lback, 0, 1}, |
| 9858 {"voidMethodVariadicTestInterfaceGarbageCollectedArg", TestObjectV8Internal:
:voidMethodVariadicTestInterfaceGarbageCollectedArgMethodCallback, 0, 0}, | 9921 {"voidMethodVariadicTestInterfaceGarbageCollectedArg", TestObjectV8Internal:
:voidMethodVariadicTestInterfaceGarbageCollectedArgMethodCallback, 0, 0}, |
| 9859 {"voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg", TestObjectV8Int
ernal::voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethodCallback, 0
, 0}, | 9922 {"voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg", TestObjectV8Int
ernal::voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethodCallback, 0
, 0}, |
| 9860 {"overloadedMethodA", TestObjectV8Internal::overloadedMethodAMethodCallback,
0, 1}, | 9923 {"overloadedMethodA", TestObjectV8Internal::overloadedMethodAMethodCallback,
0, 1}, |
| 9861 {"overloadedMethodB", TestObjectV8Internal::overloadedMethodBMethodCallback,
0, 1}, | 9924 {"overloadedMethodB", TestObjectV8Internal::overloadedMethodBMethodCallback,
0, 1}, |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10106 fromInternalPointer(object)->deref(); | 10169 fromInternalPointer(object)->deref(); |
| 10107 } | 10170 } |
| 10108 | 10171 |
| 10109 template<> | 10172 template<> |
| 10110 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) | 10173 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) |
| 10111 { | 10174 { |
| 10112 return toV8(impl, creationContext, isolate); | 10175 return toV8(impl, creationContext, isolate); |
| 10113 } | 10176 } |
| 10114 | 10177 |
| 10115 } // namespace WebCore | 10178 } // namespace WebCore |
| OLD | NEW |