| 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 break; |
| 61 } |
| 62 if (info.Length() < 0) { |
| 60 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); | 63 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); |
| 61 exceptionState.throwIfNeeded(); | 64 exceptionState.throwIfNeeded(); |
| 62 return; | 65 return; |
| 63 } | 66 } |
| 64 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 67 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 65 exceptionState.throwIfNeeded(); | 68 exceptionState.throwIfNeeded(); |
| 66 } | 69 } |
| 67 | 70 |
| 68 static void staticVoidMethodPartialOverload2Method(const v8::FunctionCallbackInf
o<v8::Value>& info) | 71 static void staticVoidMethodPartialOverload2Method(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 69 { | 72 { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 80 switch (std::min(1, info.Length())) { | 83 switch (std::min(1, info.Length())) { |
| 81 case 0: | 84 case 0: |
| 82 break; | 85 break; |
| 83 case 1: | 86 case 1: |
| 84 if (true) { | 87 if (true) { |
| 85 staticVoidMethodPartialOverload2Method(info); | 88 staticVoidMethodPartialOverload2Method(info); |
| 86 return; | 89 return; |
| 87 } | 90 } |
| 88 break; | 91 break; |
| 89 default: | 92 default: |
| 93 break; |
| 94 } |
| 95 if (info.Length() < 0) { |
| 90 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); | 96 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); |
| 91 exceptionState.throwIfNeeded(); | 97 exceptionState.throwIfNeeded(); |
| 92 return; | 98 return; |
| 93 } | 99 } |
| 94 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 100 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 95 exceptionState.throwIfNeeded(); | 101 exceptionState.throwIfNeeded(); |
| 96 } | 102 } |
| 97 | 103 |
| 98 static void promiseMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v
8::Value>& info) | 104 static void promiseMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 99 { | 105 { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 115 switch (std::min(1, info.Length())) { | 121 switch (std::min(1, info.Length())) { |
| 116 case 0: | 122 case 0: |
| 117 break; | 123 break; |
| 118 case 1: | 124 case 1: |
| 119 if (V8Document::hasInstance(info[0], info.GetIsolate())) { | 125 if (V8Document::hasInstance(info[0], info.GetIsolate())) { |
| 120 promiseMethodPartialOverload3Method(info); | 126 promiseMethodPartialOverload3Method(info); |
| 121 return; | 127 return; |
| 122 } | 128 } |
| 123 break; | 129 break; |
| 124 default: | 130 default: |
| 131 break; |
| 132 } |
| 133 if (info.Length() < 0) { |
| 125 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); | 134 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); |
| 126 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.G
etIsolate())).v8Value()); | 135 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.G
etIsolate())).v8Value()); |
| 127 return; | 136 return; |
| 128 } | 137 } |
| 129 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 138 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 130 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIs
olate())).v8Value()); | 139 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIs
olate())).v8Value()); |
| 131 } | 140 } |
| 132 | 141 |
| 133 static void staticPromiseMethodPartialOverload2Method(const v8::FunctionCallback
Info<v8::Value>& info) | 142 static void staticPromiseMethodPartialOverload2Method(const v8::FunctionCallback
Info<v8::Value>& info) |
| 134 { | 143 { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 146 switch (std::min(1, info.Length())) { | 155 switch (std::min(1, info.Length())) { |
| 147 case 0: | 156 case 0: |
| 148 break; | 157 break; |
| 149 case 1: | 158 case 1: |
| 150 if (true) { | 159 if (true) { |
| 151 staticPromiseMethodPartialOverload2Method(info); | 160 staticPromiseMethodPartialOverload2Method(info); |
| 152 return; | 161 return; |
| 153 } | 162 } |
| 154 break; | 163 break; |
| 155 default: | 164 default: |
| 165 break; |
| 166 } |
| 167 if (info.Length() < 0) { |
| 156 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); | 168 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); |
| 157 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.G
etIsolate())).v8Value()); | 169 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.G
etIsolate())).v8Value()); |
| 158 return; | 170 return; |
| 159 } | 171 } |
| 160 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 172 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 161 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIs
olate())).v8Value()); | 173 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIs
olate())).v8Value()); |
| 162 } | 174 } |
| 163 | 175 |
| 164 static void partial2VoidMethod2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 176 static void partial2VoidMethod2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 165 { | 177 { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 195 if (V8Node::hasInstance(info[0], info.GetIsolate())) { | 207 if (V8Node::hasInstance(info[0], info.GetIsolate())) { |
| 196 partial2VoidMethod3Method(info); | 208 partial2VoidMethod3Method(info); |
| 197 return; | 209 return; |
| 198 } | 210 } |
| 199 if (true) { | 211 if (true) { |
| 200 partial2VoidMethod2Method(info); | 212 partial2VoidMethod2Method(info); |
| 201 return; | 213 return; |
| 202 } | 214 } |
| 203 break; | 215 break; |
| 204 default: | 216 default: |
| 217 break; |
| 218 } |
| 219 if (info.Length() < 0) { |
| 205 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); | 220 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); |
| 206 exceptionState.throwIfNeeded(); | 221 exceptionState.throwIfNeeded(); |
| 207 return; | 222 return; |
| 208 } | 223 } |
| 209 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 224 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 210 exceptionState.throwIfNeeded(); | 225 exceptionState.throwIfNeeded(); |
| 211 } | 226 } |
| 212 | 227 |
| 213 static void partial2StaticVoidMethod2Method(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 228 static void partial2StaticVoidMethod2Method(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 214 { | 229 { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 225 switch (std::min(1, info.Length())) { | 240 switch (std::min(1, info.Length())) { |
| 226 case 0: | 241 case 0: |
| 227 break; | 242 break; |
| 228 case 1: | 243 case 1: |
| 229 if (true) { | 244 if (true) { |
| 230 partial2StaticVoidMethod2Method(info); | 245 partial2StaticVoidMethod2Method(info); |
| 231 return; | 246 return; |
| 232 } | 247 } |
| 233 break; | 248 break; |
| 234 default: | 249 default: |
| 250 break; |
| 251 } |
| 252 if (info.Length() < 0) { |
| 235 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); | 253 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); |
| 236 exceptionState.throwIfNeeded(); | 254 exceptionState.throwIfNeeded(); |
| 237 return; | 255 return; |
| 238 } | 256 } |
| 239 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 257 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 240 exceptionState.throwIfNeeded(); | 258 exceptionState.throwIfNeeded(); |
| 241 } | 259 } |
| 242 | 260 |
| 243 } // namespace TestInterfaceImplementationPartialV8Internal | 261 } // namespace TestInterfaceImplementationPartialV8Internal |
| 244 | 262 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(
&TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); | 327 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(
&TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); |
| 310 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte
rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver
loadMethod); | 328 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte
rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver
loadMethod); |
| 311 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa
ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe
thod); | 329 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa
ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe
thod); |
| 312 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI
nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti
alOverloadMethod); | 330 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI
nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti
alOverloadMethod); |
| 313 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn
terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); | 331 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn
terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); |
| 314 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&
TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); | 332 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&
TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); |
| 315 } | 333 } |
| 316 | 334 |
| 317 } // namespace blink | 335 } // namespace blink |
| 318 #endif // ENABLE(CONDITION) | 336 #endif // ENABLE(CONDITION) |
| OLD | NEW |