| 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 "V8TestInterface5.h" | 9 #include "V8TestInterface5.h" |
| 10 | 10 |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v
oidMethodTestInterfaceEmptyArg", "TestInterface5", 1, info.Length(), info.GetIso
late()), info.GetIsolate()); | 341 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v
oidMethodTestInterfaceEmptyArg", "TestInterface5", 1, info.Length(), info.GetIso
late()), info.GetIsolate()); |
| 342 return; | 342 return; |
| 343 } | 343 } |
| 344 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; | 344 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; |
| 345 TestInterfaceEmpty* testInterfaceEmptyArg; | 345 TestInterfaceEmpty* testInterfaceEmptyArg; |
| 346 { | 346 { |
| 347 if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], inf
o.GetIsolate())) { | 347 if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], inf
o.GetIsolate())) { |
| 348 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute(
"voidMethodTestInterfaceEmptyArg", "TestInterface5", "parameter 1 is not of type
'TestInterfaceEmpty'."), info.GetIsolate()); | 348 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute(
"voidMethodTestInterfaceEmptyArg", "TestInterface5", "parameter 1 is not of type
'TestInterfaceEmpty'."), info.GetIsolate()); |
| 349 return; | 349 return; |
| 350 } | 350 } |
| 351 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImpl(v8::Handle<v8::Obje
ct>::Cast(info[0])); | 351 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G
etIsolate(), info[0]); |
| 352 } | 352 } |
| 353 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); | 353 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); |
| 354 } | 354 } |
| 355 | 355 |
| 356 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 356 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 357 { | 357 { |
| 358 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 358 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 359 TestInterface5ImplementationV8Internal::voidMethodTestInterfaceEmptyArgMetho
d(info); | 359 TestInterface5ImplementationV8Internal::voidMethodTestInterfaceEmptyArgMetho
d(info); |
| 360 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 360 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 361 } | 361 } |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 876 } | 876 } |
| 877 | 877 |
| 878 template<> | 878 template<> |
| 879 v8::Handle<v8::Value> toV8NoInline(TestInterface5Implementation* impl, v8::Handl
e<v8::Object> creationContext, v8::Isolate* isolate) | 879 v8::Handle<v8::Value> toV8NoInline(TestInterface5Implementation* impl, v8::Handl
e<v8::Object> creationContext, v8::Isolate* isolate) |
| 880 { | 880 { |
| 881 return toV8(impl, creationContext, isolate); | 881 return toV8(impl, creationContext, isolate); |
| 882 } | 882 } |
| 883 | 883 |
| 884 } // namespace blink | 884 } // namespace blink |
| 885 #endif // ENABLE(CONDITION) | 885 #endif // ENABLE(CONDITION) |
| OLD | NEW |