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

Side by Side Diff: Source/bindings/tests/results/V8TestObject.cpp

Issue 275763002: Compute distinguishing argument index (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix exception catching Created 6 years, 7 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 | Annotate | Revision Log
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 #include "config.h" 7 #include "config.h"
8 #include "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "HTMLNames.h" 10 #include "HTMLNames.h"
(...skipping 6422 matching lines...) Expand 10 before | Expand all | Expand 10 after
6433 } 6433 }
6434 6434
6435 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6435 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6436 { 6436 {
6437 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate()); 6437 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate());
6438 if (UNLIKELY(info.Length() < 1)) { 6438 if (UNLIKELY(info.Length() < 1)) {
6439 throwArityTypeError(exceptionState, 1, info.Length()); 6439 throwArityTypeError(exceptionState, 1, info.Length());
6440 return; 6440 return;
6441 } 6441 }
6442 TestObject* impl = V8TestObject::toNative(info.Holder()); 6442 TestObject* impl = V8TestObject::toNative(info.Holder());
6443 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg1, toInt32(info[0], exceptionState) , exceptionState); 6443 TONATIVE_VOID(bool, booleanArg, info[0]->BooleanValue());
6444 if (UNLIKELY(info.Length() <= 1)) { 6444 if (UNLIKELY(info.Length() <= 1)) {
6445 impl->overloadedMethodB(longArg1); 6445 impl->overloadedMethodB(booleanArg);
6446 return; 6446 return;
6447 } 6447 }
6448 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg2, toInt32(info[1], exceptionState) , exceptionState); 6448 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[1], exceptionState), exceptionState);
6449 impl->overloadedMethodB(longArg1, longArg2); 6449 impl->overloadedMethodB(booleanArg, longArg);
6450 } 6450 }
6451 6451
6452 static void overloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6452 static void overloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6453 { 6453 {
6454 if (((info.Length() == 1))) { 6454 if (((info.Length() == 1))) {
6455 overloadedMethodB1Method(info); 6455 overloadedMethodB1Method(info);
6456 return; 6456 return;
6457 } 6457 }
6458 if (((info.Length() == 1)) || ((info.Length() == 2))) { 6458 if (((info.Length() == 1)) || ((info.Length() == 2))) {
6459 overloadedMethodB2Method(info); 6459 overloadedMethodB2Method(info);
(...skipping 28 matching lines...) Expand all
6488 } 6488 }
6489 6489
6490 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6490 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6491 { 6491 {
6492 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObject", info.Holder(), info.GetIsolate()); 6492 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObject", info.Holder(), info.GetIsolate());
6493 if (UNLIKELY(info.Length() < 1)) { 6493 if (UNLIKELY(info.Length() < 1)) {
6494 throwArityTypeError(exceptionState, 1, info.Length()); 6494 throwArityTypeError(exceptionState, 1, info.Length());
6495 return; 6495 return;
6496 } 6496 }
6497 TestObject* impl = V8TestObject::toNative(info.Holder()); 6497 TestObject* impl = V8TestObject::toNative(info.Holder());
6498 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState); 6498 TONATIVE_VOID(bool, booleanArg, info[0]->BooleanValue());
6499 TONATIVE_VOID(Vector<int>, longArgs, toNativeArguments<int>(info, 1)); 6499 TONATIVE_VOID(Vector<int>, longArgs, toNativeArguments<int>(info, 1));
6500 impl->overloadedMethodC(longArg, longArgs); 6500 impl->overloadedMethodC(booleanArg, longArgs);
6501 } 6501 }
6502 6502
6503 static void overloadedMethodCMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6503 static void overloadedMethodCMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6504 { 6504 {
6505 if (((info.Length() == 1))) { 6505 if (((info.Length() == 1))) {
6506 overloadedMethodC1Method(info); 6506 overloadedMethodC1Method(info);
6507 return; 6507 return;
6508 } 6508 }
6509 if () { 6509 if () {
6510 overloadedMethodC2Method(info); 6510 overloadedMethodC2Method(info);
(...skipping 2266 matching lines...) Expand 10 before | Expand all | Expand 10 after
8777 fromInternalPointer(object)->deref(); 8777 fromInternalPointer(object)->deref();
8778 } 8778 }
8779 8779
8780 template<> 8780 template<>
8781 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) 8781 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate)
8782 { 8782 {
8783 return toV8(impl, creationContext, isolate); 8783 return toV8(impl, creationContext, isolate);
8784 } 8784 }
8785 8785
8786 } // namespace WebCore 8786 } // namespace WebCore
OLDNEW
« Source/bindings/scripts/v8_interface.py ('K') | « Source/bindings/tests/idls/TestObject.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698