| 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 #if ENABLE(CONDITION) | 8 #if ENABLE(CONDITION) |
| 9 #include "V8TestInterfacePartial.h" | 9 #include "V8TestInterfacePartial.h" |
| 10 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 switch (std::min(1, info.Length())) { | 50 switch (std::min(1, info.Length())) { |
| 51 case 0: | 51 case 0: |
| 52 break; | 52 break; |
| 53 case 1: | 53 case 1: |
| 54 if (true) { | 54 if (true) { |
| 55 voidMethodPartialOverload3Method(info); | 55 voidMethodPartialOverload3Method(info); |
| 56 return; | 56 return; |
| 57 } | 57 } |
| 58 break; | 58 break; |
| 59 default: | 59 default: |
| 60 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); | 60 break; |
| 61 exceptionState.throwIfNeeded(); | |
| 62 return; | |
| 63 } | 61 } |
| 64 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 62 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 65 exceptionState.throwIfNeeded(); | 63 exceptionState.throwIfNeeded(); |
| 66 } | 64 } |
| 67 | 65 |
| 68 static void staticVoidMethodPartialOverload2Method(const v8::FunctionCallbackInf
o<v8::Value>& info) | 66 static void staticVoidMethodPartialOverload2Method(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 69 { | 67 { |
| 70 V8StringResource<> value; | 68 V8StringResource<> value; |
| 71 { | 69 { |
| 72 TOSTRING_VOID_INTERNAL(value, info[0]); | 70 TOSTRING_VOID_INTERNAL(value, info[0]); |
| 73 } | 71 } |
| 74 TestPartialInterfaceImplementation3::staticVoidMethodPartialOverload(value); | 72 TestPartialInterfaceImplementation3::staticVoidMethodPartialOverload(value); |
| 75 } | 73 } |
| 76 | 74 |
| 77 static void staticVoidMethodPartialOverloadMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 75 static void staticVoidMethodPartialOverloadMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 78 { | 76 { |
| 79 ExceptionState exceptionState(ExceptionState::ExecutionContext, "staticVoidM
ethodPartialOverload", "TestInterface", info.Holder(), info.GetIsolate()); | 77 ExceptionState exceptionState(ExceptionState::ExecutionContext, "staticVoidM
ethodPartialOverload", "TestInterface", info.Holder(), info.GetIsolate()); |
| 80 switch (std::min(1, info.Length())) { | 78 switch (std::min(1, info.Length())) { |
| 81 case 0: | 79 case 0: |
| 82 break; | 80 break; |
| 83 case 1: | 81 case 1: |
| 84 if (true) { | 82 if (true) { |
| 85 staticVoidMethodPartialOverload2Method(info); | 83 staticVoidMethodPartialOverload2Method(info); |
| 86 return; | 84 return; |
| 87 } | 85 } |
| 88 break; | 86 break; |
| 89 default: | 87 default: |
| 90 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); | 88 break; |
| 91 exceptionState.throwIfNeeded(); | |
| 92 return; | |
| 93 } | 89 } |
| 94 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 90 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 95 exceptionState.throwIfNeeded(); | 91 exceptionState.throwIfNeeded(); |
| 96 } | 92 } |
| 97 | 93 |
| 98 static void promiseMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v
8::Value>& info) | 94 static void promiseMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 99 { | 95 { |
| 100 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 96 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
| 101 Document* document; | 97 Document* document; |
| 102 { | 98 { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 115 switch (std::min(1, info.Length())) { | 111 switch (std::min(1, info.Length())) { |
| 116 case 0: | 112 case 0: |
| 117 break; | 113 break; |
| 118 case 1: | 114 case 1: |
| 119 if (V8Document::hasInstance(info[0], info.GetIsolate())) { | 115 if (V8Document::hasInstance(info[0], info.GetIsolate())) { |
| 120 promiseMethodPartialOverload3Method(info); | 116 promiseMethodPartialOverload3Method(info); |
| 121 return; | 117 return; |
| 122 } | 118 } |
| 123 break; | 119 break; |
| 124 default: | 120 default: |
| 125 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); | 121 break; |
| 126 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.G
etIsolate())).v8Value()); | |
| 127 return; | |
| 128 } | 122 } |
| 129 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 123 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 130 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIs
olate())).v8Value()); | 124 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIs
olate())).v8Value()); |
| 131 } | 125 } |
| 132 | 126 |
| 133 static void staticPromiseMethodPartialOverload2Method(const v8::FunctionCallback
Info<v8::Value>& info) | 127 static void staticPromiseMethodPartialOverload2Method(const v8::FunctionCallback
Info<v8::Value>& info) |
| 134 { | 128 { |
| 135 ExceptionState exceptionState(ExceptionState::ExecutionContext, "staticPromi
seMethodPartialOverload", "TestInterface", info.Holder(), info.GetIsolate()); | 129 ExceptionState exceptionState(ExceptionState::ExecutionContext, "staticPromi
seMethodPartialOverload", "TestInterface", info.Holder(), info.GetIsolate()); |
| 136 V8StringResource<> value; | 130 V8StringResource<> value; |
| 137 { | 131 { |
| 138 TOSTRING_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(value, info[0], exceptionS
tate, info, ScriptState::current(info.GetIsolate())); | 132 TOSTRING_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(value, info[0], exceptionS
tate, info, ScriptState::current(info.GetIsolate())); |
| 139 } | 133 } |
| 140 v8SetReturnValue(info, TestPartialInterfaceImplementation3::staticPromiseMet
hodPartialOverload(value).v8Value()); | 134 v8SetReturnValue(info, TestPartialInterfaceImplementation3::staticPromiseMet
hodPartialOverload(value).v8Value()); |
| 141 } | 135 } |
| 142 | 136 |
| 143 static void staticPromiseMethodPartialOverloadMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 137 static void staticPromiseMethodPartialOverloadMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 144 { | 138 { |
| 145 ExceptionState exceptionState(ExceptionState::ExecutionContext, "staticPromi
seMethodPartialOverload", "TestInterface", info.Holder(), info.GetIsolate()); | 139 ExceptionState exceptionState(ExceptionState::ExecutionContext, "staticPromi
seMethodPartialOverload", "TestInterface", info.Holder(), info.GetIsolate()); |
| 146 switch (std::min(1, info.Length())) { | 140 switch (std::min(1, info.Length())) { |
| 147 case 0: | 141 case 0: |
| 148 break; | 142 break; |
| 149 case 1: | 143 case 1: |
| 150 if (true) { | 144 if (true) { |
| 151 staticPromiseMethodPartialOverload2Method(info); | 145 staticPromiseMethodPartialOverload2Method(info); |
| 152 return; | 146 return; |
| 153 } | 147 } |
| 154 break; | 148 break; |
| 155 default: | 149 default: |
| 156 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); | 150 break; |
| 157 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.G
etIsolate())).v8Value()); | |
| 158 return; | |
| 159 } | 151 } |
| 160 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 152 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 161 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIs
olate())).v8Value()); | 153 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIs
olate())).v8Value()); |
| 162 } | 154 } |
| 163 | 155 |
| 164 static void partial2VoidMethod2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 156 static void partial2VoidMethod2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 165 { | 157 { |
| 166 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 158 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
| 167 V8StringResource<> value; | 159 V8StringResource<> value; |
| 168 { | 160 { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 195 if (V8Node::hasInstance(info[0], info.GetIsolate())) { | 187 if (V8Node::hasInstance(info[0], info.GetIsolate())) { |
| 196 partial2VoidMethod3Method(info); | 188 partial2VoidMethod3Method(info); |
| 197 return; | 189 return; |
| 198 } | 190 } |
| 199 if (true) { | 191 if (true) { |
| 200 partial2VoidMethod2Method(info); | 192 partial2VoidMethod2Method(info); |
| 201 return; | 193 return; |
| 202 } | 194 } |
| 203 break; | 195 break; |
| 204 default: | 196 default: |
| 205 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); | 197 break; |
| 206 exceptionState.throwIfNeeded(); | |
| 207 return; | |
| 208 } | 198 } |
| 209 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 199 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 210 exceptionState.throwIfNeeded(); | 200 exceptionState.throwIfNeeded(); |
| 211 } | 201 } |
| 212 | 202 |
| 213 static void partial2StaticVoidMethod2Method(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 203 static void partial2StaticVoidMethod2Method(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 214 { | 204 { |
| 215 V8StringResource<> value; | 205 V8StringResource<> value; |
| 216 { | 206 { |
| 217 TOSTRING_VOID_INTERNAL(value, info[0]); | 207 TOSTRING_VOID_INTERNAL(value, info[0]); |
| 218 } | 208 } |
| 219 TestPartialInterfaceImplementation3::partial2StaticVoidMethod(value); | 209 TestPartialInterfaceImplementation3::partial2StaticVoidMethod(value); |
| 220 } | 210 } |
| 221 | 211 |
| 222 static void partial2StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 212 static void partial2StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 223 { | 213 { |
| 224 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partial2Sta
ticVoidMethod", "TestInterface", info.Holder(), info.GetIsolate()); | 214 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partial2Sta
ticVoidMethod", "TestInterface", info.Holder(), info.GetIsolate()); |
| 225 switch (std::min(1, info.Length())) { | 215 switch (std::min(1, info.Length())) { |
| 226 case 0: | 216 case 0: |
| 227 break; | 217 break; |
| 228 case 1: | 218 case 1: |
| 229 if (true) { | 219 if (true) { |
| 230 partial2StaticVoidMethod2Method(info); | 220 partial2StaticVoidMethod2Method(info); |
| 231 return; | 221 return; |
| 232 } | 222 } |
| 233 break; | 223 break; |
| 234 default: | 224 default: |
| 235 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); | 225 break; |
| 236 exceptionState.throwIfNeeded(); | |
| 237 return; | |
| 238 } | 226 } |
| 239 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 227 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 240 exceptionState.throwIfNeeded(); | 228 exceptionState.throwIfNeeded(); |
| 241 } | 229 } |
| 242 | 230 |
| 243 } // namespace TestInterfaceImplementationPartialV8Internal | 231 } // namespace TestInterfaceImplementationPartialV8Internal |
| 244 | 232 |
| 245 void V8TestInterfacePartial::installV8TestInterfaceTemplate(v8::Handle<v8::Funct
ionTemplate> functionTemplate, v8::Isolate* isolate) | 233 void V8TestInterfacePartial::installV8TestInterfaceTemplate(v8::Handle<v8::Funct
ionTemplate> functionTemplate, v8::Isolate* isolate) |
| 246 { | 234 { |
| 247 V8TestInterface::installV8TestInterfaceTemplate(functionTemplate, isolate); | 235 V8TestInterface::installV8TestInterfaceTemplate(functionTemplate, isolate); |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(
&TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); | 297 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(
&TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); |
| 310 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte
rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver
loadMethod); | 298 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte
rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver
loadMethod); |
| 311 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa
ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe
thod); | 299 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa
ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe
thod); |
| 312 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI
nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti
alOverloadMethod); | 300 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI
nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti
alOverloadMethod); |
| 313 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn
terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); | 301 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn
terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); |
| 314 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&
TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); | 302 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&
TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); |
| 315 } | 303 } |
| 316 | 304 |
| 317 } // namespace blink | 305 } // namespace blink |
| 318 #endif // ENABLE(CONDITION) | 306 #endif // ENABLE(CONDITION) |
| OLD | NEW |