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

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

Issue 657523002: Skip expensive hasInstance() type-checks in overloads (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
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 "bindings/core/v8/BindingSecurity.h" 10 #include "bindings/core/v8/BindingSecurity.h"
(...skipping 6774 matching lines...) Expand 10 before | Expand all | Expand 10 after
6785 impl->voidMethodDictionarySequenceArg(dictionarySequenceArg); 6785 impl->voidMethodDictionarySequenceArg(dictionarySequenceArg);
6786 } 6786 }
6787 6787
6788 static void voidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 6788 static void voidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
6789 { 6789 {
6790 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6790 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6791 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info); 6791 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info);
6792 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6792 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6793 } 6793 }
6794 6794
6795 static void overloadedPromiseMethod1Method(const v8::FunctionCallbackInfo<v8::Va lue>& info) 6795 static void overloadedPromiseMethod1Method(const v8::FunctionCallbackInfo<v8::Va lue>& info, int type_checked_argument_index)
6796 { 6796 {
6797 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP romiseMethod", "TestObject", info.Holder(), info.GetIsolate()); 6797 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP romiseMethod", "TestObject", info.Holder(), info.GetIsolate());
6798 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6798 TestObject* impl = V8TestObject::toImpl(info.Holder());
6799 int arg; 6799 int arg;
6800 { 6800 {
6801 TONATIVE_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg, toInt32(info[0], exce ptionState), exceptionState, info, ScriptState::current(info.GetIsolate())); 6801 TONATIVE_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg, toInt32(info[0], exce ptionState), exceptionState, info, ScriptState::current(info.GetIsolate()));
6802 } 6802 }
6803 v8SetReturnValue(info, impl->overloadedPromiseMethod(arg).v8Value()); 6803 v8SetReturnValue(info, impl->overloadedPromiseMethod(arg).v8Value());
6804 } 6804 }
6805 6805
6806 static void overloadedPromiseMethod2Method(const v8::FunctionCallbackInfo<v8::Va lue>& info) 6806 static void overloadedPromiseMethod2Method(const v8::FunctionCallbackInfo<v8::Va lue>& info, int type_checked_argument_index)
6807 { 6807 {
6808 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP romiseMethod", "TestObject", info.Holder(), info.GetIsolate()); 6808 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP romiseMethod", "TestObject", info.Holder(), info.GetIsolate());
6809 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6809 TestObject* impl = V8TestObject::toImpl(info.Holder());
6810 V8StringResource<> arg; 6810 V8StringResource<> arg;
6811 { 6811 {
6812 TOSTRING_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg, info[0], exceptionSta te, info, ScriptState::current(info.GetIsolate())); 6812 TOSTRING_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg, info[0], exceptionSta te, info, ScriptState::current(info.GetIsolate()));
6813 } 6813 }
6814 v8SetReturnValue(info, impl->overloadedPromiseMethod(arg).v8Value()); 6814 v8SetReturnValue(info, impl->overloadedPromiseMethod(arg).v8Value());
6815 } 6815 }
6816 6816
6817 static void overloadedPromiseMethodMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 6817 static void overloadedPromiseMethodMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
6818 { 6818 {
6819 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP romiseMethod", "TestObject", info.Holder(), info.GetIsolate()); 6819 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP romiseMethod", "TestObject", info.Holder(), info.GetIsolate());
6820 switch (std::min(1, info.Length())) { 6820 switch (std::min(1, info.Length())) {
6821 case 1: 6821 case 1:
6822 if (info[0]->IsNumber()) { 6822 if (info[0]->IsNumber()) {
6823 overloadedPromiseMethod1Method(info); 6823 overloadedPromiseMethod1Method(info, 0);
6824 return; 6824 return;
6825 } 6825 }
6826 if (true) { 6826 if (true) {
6827 overloadedPromiseMethod2Method(info); 6827 overloadedPromiseMethod2Method(info, -1);
6828 return; 6828 return;
6829 } 6829 }
6830 if (true) { 6830 if (true) {
6831 overloadedPromiseMethod1Method(info); 6831 overloadedPromiseMethod1Method(info, -1);
6832 return; 6832 return;
6833 } 6833 }
6834 break; 6834 break;
6835 default: 6835 default:
6836 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6836 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
6837 exceptionState.throwIfNeeded(); 6837 exceptionState.throwIfNeeded();
6838 return; 6838 return;
6839 } 6839 }
6840 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 6840 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
6841 exceptionState.throwIfNeeded(); 6841 exceptionState.throwIfNeeded();
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after
7494 impl->voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg(variadicTestI nterfaceWillBeGarbageCollectedArg); 7494 impl->voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg(variadicTestI nterfaceWillBeGarbageCollectedArg);
7495 } 7495 }
7496 7496
7497 static void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info) 7497 static void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info)
7498 { 7498 {
7499 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7499 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7500 TestObjectV8Internal::voidMethodVariadicTestInterfaceWillBeGarbageCollectedA rgMethod(info); 7500 TestObjectV8Internal::voidMethodVariadicTestInterfaceWillBeGarbageCollectedA rgMethod(info);
7501 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7501 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7502 } 7502 }
7503 7503
7504 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7504 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
7505 { 7505 {
7506 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate()); 7506 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate());
7507 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7507 TestObject* impl = V8TestObject::toImpl(info.Holder());
7508 int longArg; 7508 int longArg;
7509 { 7509 {
7510 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 7510 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
7511 } 7511 }
7512 impl->overloadedMethodA(longArg); 7512 impl->overloadedMethodA(longArg);
7513 } 7513 }
7514 7514
7515 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7515 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
7516 { 7516 {
7517 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate()); 7517 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate());
7518 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7518 TestObject* impl = V8TestObject::toImpl(info.Holder());
7519 int longArg1; 7519 int longArg1;
7520 int longArg2; 7520 int longArg2;
7521 { 7521 {
7522 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg1, toInt32(info[0], excepti onState), exceptionState); 7522 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg1, toInt32(info[0], excepti onState), exceptionState);
7523 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg2, toInt32(info[1], excepti onState), exceptionState); 7523 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg2, toInt32(info[1], excepti onState), exceptionState);
7524 } 7524 }
7525 impl->overloadedMethodA(longArg1, longArg2); 7525 impl->overloadedMethodA(longArg1, longArg2);
7526 } 7526 }
7527 7527
7528 static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 7528 static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
7529 { 7529 {
7530 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate()); 7530 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate());
7531 switch (std::min(2, info.Length())) { 7531 switch (std::min(2, info.Length())) {
7532 case 1: 7532 case 1:
7533 if (true) { 7533 if (true) {
7534 overloadedMethodA1Method(info); 7534 overloadedMethodA1Method(info, -1);
7535 return; 7535 return;
7536 } 7536 }
7537 break; 7537 break;
7538 case 2: 7538 case 2:
7539 if (true) { 7539 if (true) {
7540 overloadedMethodA2Method(info); 7540 overloadedMethodA2Method(info, -1);
7541 return; 7541 return;
7542 } 7542 }
7543 break; 7543 break;
7544 default: 7544 default:
7545 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 7545 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
7546 exceptionState.throwIfNeeded(); 7546 exceptionState.throwIfNeeded();
7547 return; 7547 return;
7548 } 7548 }
7549 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 7549 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
7550 exceptionState.throwIfNeeded(); 7550 exceptionState.throwIfNeeded();
7551 } 7551 }
7552 7552
7553 static void overloadedMethodAMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 7553 static void overloadedMethodAMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
7554 { 7554 {
7555 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7555 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7556 TestObjectV8Internal::overloadedMethodAMethod(info); 7556 TestObjectV8Internal::overloadedMethodAMethod(info);
7557 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7557 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7558 } 7558 }
7559 7559
7560 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7560 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
7561 { 7561 {
7562 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate()); 7562 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate());
7563 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7563 TestObject* impl = V8TestObject::toImpl(info.Holder());
7564 int longArg; 7564 int longArg;
7565 { 7565 {
7566 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 7566 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
7567 } 7567 }
7568 impl->overloadedMethodB(longArg); 7568 impl->overloadedMethodB(longArg);
7569 } 7569 }
7570 7570
7571 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7571 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
7572 { 7572 {
7573 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate()); 7573 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate());
7574 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7574 TestObject* impl = V8TestObject::toImpl(info.Holder());
7575 V8StringResource<> stringArg; 7575 V8StringResource<> stringArg;
7576 int longArg; 7576 int longArg;
7577 { 7577 {
7578 TOSTRING_VOID_INTERNAL(stringArg, info[0]); 7578 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
7579 if (UNLIKELY(info.Length() <= 1)) { 7579 if (UNLIKELY(info.Length() <= 1)) {
7580 impl->overloadedMethodB(stringArg); 7580 impl->overloadedMethodB(stringArg);
7581 return; 7581 return;
7582 } 7582 }
7583 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio nState), exceptionState); 7583 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio nState), exceptionState);
7584 } 7584 }
7585 impl->overloadedMethodB(stringArg, longArg); 7585 impl->overloadedMethodB(stringArg, longArg);
7586 } 7586 }
7587 7587
7588 static void overloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 7588 static void overloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
7589 { 7589 {
7590 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate()); 7590 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate());
7591 switch (std::min(2, info.Length())) { 7591 switch (std::min(2, info.Length())) {
7592 case 1: 7592 case 1:
7593 if (info[0]->IsNumber()) { 7593 if (info[0]->IsNumber()) {
7594 overloadedMethodB1Method(info); 7594 overloadedMethodB1Method(info, 0);
7595 return; 7595 return;
7596 } 7596 }
7597 if (true) { 7597 if (true) {
7598 overloadedMethodB2Method(info); 7598 overloadedMethodB2Method(info, -1);
7599 return; 7599 return;
7600 } 7600 }
7601 if (true) { 7601 if (true) {
7602 overloadedMethodB1Method(info); 7602 overloadedMethodB1Method(info, -1);
7603 return; 7603 return;
7604 } 7604 }
7605 break; 7605 break;
7606 case 2: 7606 case 2:
7607 if (true) { 7607 if (true) {
7608 overloadedMethodB2Method(info); 7608 overloadedMethodB2Method(info, -1);
7609 return; 7609 return;
7610 } 7610 }
7611 break; 7611 break;
7612 default: 7612 default:
7613 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 7613 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
7614 exceptionState.throwIfNeeded(); 7614 exceptionState.throwIfNeeded();
7615 return; 7615 return;
7616 } 7616 }
7617 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 7617 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
7618 exceptionState.throwIfNeeded(); 7618 exceptionState.throwIfNeeded();
7619 } 7619 }
7620 7620
7621 static void overloadedMethodBMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 7621 static void overloadedMethodBMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
7622 { 7622 {
7623 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7623 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7624 TestObjectV8Internal::overloadedMethodBMethod(info); 7624 TestObjectV8Internal::overloadedMethodBMethod(info);
7625 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7625 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7626 } 7626 }
7627 7627
7628 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7628 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
7629 { 7629 {
7630 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObject", info.Holder(), info.GetIsolate()); 7630 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObject", info.Holder(), info.GetIsolate());
7631 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7631 TestObject* impl = V8TestObject::toImpl(info.Holder());
7632 int longArg; 7632 int longArg;
7633 { 7633 {
7634 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 7634 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
7635 } 7635 }
7636 impl->overloadedMethodC(longArg); 7636 impl->overloadedMethodC(longArg);
7637 } 7637 }
7638 7638
7639 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7639 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
7640 { 7640 {
7641 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7641 TestObject* impl = V8TestObject::toImpl(info.Holder());
7642 TestInterfaceEmpty* testInterfaceEmptyArg; 7642 TestInterfaceEmpty* testInterfaceEmptyArg;
7643 { 7643 {
7644 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G etIsolate(), info[0]); 7644 if (type_checked_argument_index == 0)
7645 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImpl(v8::Handle<v8:: Object>::Cast(info[0]));
7646 else
7647 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(in fo.GetIsolate(), info[0]);
7645 } 7648 }
7646 impl->overloadedMethodC(testInterfaceEmptyArg); 7649 impl->overloadedMethodC(testInterfaceEmptyArg);
7647 } 7650 }
7648 7651
7649 static void overloadedMethodCMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 7652 static void overloadedMethodCMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
7650 { 7653 {
7651 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObject", info.Holder(), info.GetIsolate()); 7654 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObject", info.Holder(), info.GetIsolate());
7652 switch (std::min(1, info.Length())) { 7655 switch (std::min(1, info.Length())) {
7653 case 1: 7656 case 1:
7654 if (V8TestInterfaceEmpty::hasInstance(info[0], info.GetIsolate())) { 7657 if (V8TestInterfaceEmpty::hasInstance(info[0], info.GetIsolate())) {
7655 overloadedMethodC2Method(info); 7658 overloadedMethodC2Method(info, 0);
7656 return; 7659 return;
7657 } 7660 }
7658 if (true) { 7661 if (true) {
7659 overloadedMethodC1Method(info); 7662 overloadedMethodC1Method(info, -1);
7660 return; 7663 return;
7661 } 7664 }
7662 break; 7665 break;
7663 default: 7666 default:
7664 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 7667 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
7665 exceptionState.throwIfNeeded(); 7668 exceptionState.throwIfNeeded();
7666 return; 7669 return;
7667 } 7670 }
7668 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 7671 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
7669 exceptionState.throwIfNeeded(); 7672 exceptionState.throwIfNeeded();
7670 } 7673 }
7671 7674
7672 static void overloadedMethodCMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 7675 static void overloadedMethodCMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
7673 { 7676 {
7674 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7677 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7675 TestObjectV8Internal::overloadedMethodCMethod(info); 7678 TestObjectV8Internal::overloadedMethodCMethod(info);
7676 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7679 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7677 } 7680 }
7678 7681
7679 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7682 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
7680 { 7683 {
7681 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObject", info.Holder(), info.GetIsolate()); 7684 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObject", info.Holder(), info.GetIsolate());
7682 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7685 TestObject* impl = V8TestObject::toImpl(info.Holder());
7683 int longArg; 7686 int longArg;
7684 { 7687 {
7685 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 7688 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
7686 } 7689 }
7687 impl->overloadedMethodD(longArg); 7690 impl->overloadedMethodD(longArg);
7688 } 7691 }
7689 7692
7690 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7693 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
7691 { 7694 {
7692 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObject", info.Holder(), info.GetIsolate()); 7695 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObject", info.Holder(), info.GetIsolate());
7693 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7696 TestObject* impl = V8TestObject::toImpl(info.Holder());
7694 Vector<int> longArrayArg; 7697 Vector<int> longArrayArg;
7695 { 7698 {
7696 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArrayArg, toImplArray<int>(inf o[0], 1, info.GetIsolate(), exceptionState), exceptionState); 7699 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArrayArg, toImplArray<int>(inf o[0], 1, info.GetIsolate(), exceptionState), exceptionState);
7697 } 7700 }
7698 impl->overloadedMethodD(longArrayArg); 7701 impl->overloadedMethodD(longArrayArg);
7699 } 7702 }
7700 7703
7701 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 7704 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
7702 { 7705 {
7703 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObject", info.Holder(), info.GetIsolate()); 7706 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObject", info.Holder(), info.GetIsolate());
7704 switch (std::min(1, info.Length())) { 7707 switch (std::min(1, info.Length())) {
7705 case 1: 7708 case 1:
7706 if (info[0]->IsArray()) { 7709 if (info[0]->IsArray()) {
7707 overloadedMethodD2Method(info); 7710 overloadedMethodD2Method(info, 0);
7708 return; 7711 return;
7709 } 7712 }
7710 if (true) { 7713 if (true) {
7711 overloadedMethodD1Method(info); 7714 overloadedMethodD1Method(info, -1);
7712 return; 7715 return;
7713 } 7716 }
7714 break; 7717 break;
7715 default: 7718 default:
7716 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 7719 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
7717 exceptionState.throwIfNeeded(); 7720 exceptionState.throwIfNeeded();
7718 return; 7721 return;
7719 } 7722 }
7720 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 7723 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
7721 exceptionState.throwIfNeeded(); 7724 exceptionState.throwIfNeeded();
7722 } 7725 }
7723 7726
7724 static void overloadedMethodDMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 7727 static void overloadedMethodDMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
7725 { 7728 {
7726 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7729 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7727 TestObjectV8Internal::overloadedMethodDMethod(info); 7730 TestObjectV8Internal::overloadedMethodDMethod(info);
7728 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7731 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7729 } 7732 }
7730 7733
7731 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7734 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
7732 { 7735 {
7733 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodE", "TestObject", info.Holder(), info.GetIsolate()); 7736 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodE", "TestObject", info.Holder(), info.GetIsolate());
7734 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7737 TestObject* impl = V8TestObject::toImpl(info.Holder());
7735 int longArg; 7738 int longArg;
7736 { 7739 {
7737 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 7740 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
7738 } 7741 }
7739 impl->overloadedMethodE(longArg); 7742 impl->overloadedMethodE(longArg);
7740 } 7743 }
7741 7744
7742 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7745 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
7743 { 7746 {
7744 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7747 TestObject* impl = V8TestObject::toImpl(info.Holder());
7745 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; 7748 TestInterfaceEmpty* testInterfaceEmptyOrNullArg;
7746 { 7749 {
7747 testInterfaceEmptyOrNullArg = V8TestInterfaceEmpty::toImplWithTypeCheck( info.GetIsolate(), info[0]); 7750 if (type_checked_argument_index == 0)
7751 testInterfaceEmptyOrNullArg = V8TestInterfaceEmpty::toImpl(v8::Handl e<v8::Object>::Cast(info[0]));
7752 else
7753 testInterfaceEmptyOrNullArg = V8TestInterfaceEmpty::toImplWithTypeCh eck(info.GetIsolate(), info[0]);
7748 } 7754 }
7749 impl->overloadedMethodE(testInterfaceEmptyOrNullArg); 7755 impl->overloadedMethodE(testInterfaceEmptyOrNullArg);
7750 } 7756 }
7751 7757
7752 static void overloadedMethodEMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 7758 static void overloadedMethodEMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
7753 { 7759 {
7754 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodE", "TestObject", info.Holder(), info.GetIsolate()); 7760 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodE", "TestObject", info.Holder(), info.GetIsolate());
7755 switch (std::min(1, info.Length())) { 7761 switch (std::min(1, info.Length())) {
7756 case 1: 7762 case 1:
7757 if (isUndefinedOrNull(info[0])) { 7763 if (isUndefinedOrNull(info[0])) {
7758 overloadedMethodE2Method(info); 7764 overloadedMethodE2Method(info, -1);
7759 return; 7765 return;
7760 } 7766 }
7761 if (V8TestInterfaceEmpty::hasInstance(info[0], info.GetIsolate())) { 7767 if (V8TestInterfaceEmpty::hasInstance(info[0], info.GetIsolate())) {
7762 overloadedMethodE2Method(info); 7768 overloadedMethodE2Method(info, 0);
7763 return; 7769 return;
7764 } 7770 }
7765 if (true) { 7771 if (true) {
7766 overloadedMethodE1Method(info); 7772 overloadedMethodE1Method(info, -1);
7767 return; 7773 return;
7768 } 7774 }
7769 break; 7775 break;
7770 default: 7776 default:
7771 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 7777 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
7772 exceptionState.throwIfNeeded(); 7778 exceptionState.throwIfNeeded();
7773 return; 7779 return;
7774 } 7780 }
7775 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 7781 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
7776 exceptionState.throwIfNeeded(); 7782 exceptionState.throwIfNeeded();
7777 } 7783 }
7778 7784
7779 static void overloadedMethodEMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 7785 static void overloadedMethodEMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
7780 { 7786 {
7781 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7787 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7782 TestObjectV8Internal::overloadedMethodEMethod(info); 7788 TestObjectV8Internal::overloadedMethodEMethod(info);
7783 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7789 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7784 } 7790 }
7785 7791
7786 static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7792 static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
7787 { 7793 {
7788 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7794 TestObject* impl = V8TestObject::toImpl(info.Holder());
7789 V8StringResource<> stringArg; 7795 V8StringResource<> stringArg;
7790 { 7796 {
7791 if (UNLIKELY(info.Length() <= 0)) { 7797 if (UNLIKELY(info.Length() <= 0)) {
7792 impl->overloadedMethodF(); 7798 impl->overloadedMethodF();
7793 return; 7799 return;
7794 } 7800 }
7795 TOSTRING_VOID_INTERNAL(stringArg, info[0]); 7801 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
7796 } 7802 }
7797 impl->overloadedMethodF(stringArg); 7803 impl->overloadedMethodF(stringArg);
7798 } 7804 }
7799 7805
7800 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7806 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
7801 { 7807 {
7802 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodF", "TestObject", info.Holder(), info.GetIsolate()); 7808 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodF", "TestObject", info.Holder(), info.GetIsolate());
7803 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7809 TestObject* impl = V8TestObject::toImpl(info.Holder());
7804 double doubleArg; 7810 double doubleArg;
7805 { 7811 {
7806 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(doubleArg, toDouble(info[0], excep tionState), exceptionState); 7812 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(doubleArg, toDouble(info[0], excep tionState), exceptionState);
7807 } 7813 }
7808 impl->overloadedMethodF(doubleArg); 7814 impl->overloadedMethodF(doubleArg);
7809 } 7815 }
7810 7816
7811 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 7817 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
7812 { 7818 {
7813 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodF", "TestObject", info.Holder(), info.GetIsolate()); 7819 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodF", "TestObject", info.Holder(), info.GetIsolate());
7814 switch (std::min(1, info.Length())) { 7820 switch (std::min(1, info.Length())) {
7815 case 0: 7821 case 0:
7816 if (true) { 7822 if (true) {
7817 overloadedMethodF1Method(info); 7823 overloadedMethodF1Method(info, -1);
7818 return; 7824 return;
7819 } 7825 }
7820 break; 7826 break;
7821 case 1: 7827 case 1:
7822 if (info[0]->IsUndefined()) { 7828 if (info[0]->IsUndefined()) {
7823 overloadedMethodF1Method(info); 7829 overloadedMethodF1Method(info, -1);
7824 return; 7830 return;
7825 } 7831 }
7826 if (info[0]->IsNumber()) { 7832 if (info[0]->IsNumber()) {
7827 overloadedMethodF2Method(info); 7833 overloadedMethodF2Method(info, 0);
7828 return; 7834 return;
7829 } 7835 }
7830 if (true) { 7836 if (true) {
7831 overloadedMethodF1Method(info); 7837 overloadedMethodF1Method(info, -1);
7832 return; 7838 return;
7833 } 7839 }
7834 if (true) { 7840 if (true) {
7835 overloadedMethodF2Method(info); 7841 overloadedMethodF2Method(info, -1);
7836 return; 7842 return;
7837 } 7843 }
7838 break; 7844 break;
7839 default: 7845 default:
7840 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length())); 7846 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length()));
7841 exceptionState.throwIfNeeded(); 7847 exceptionState.throwIfNeeded();
7842 return; 7848 return;
7843 } 7849 }
7844 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 7850 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
7845 exceptionState.throwIfNeeded(); 7851 exceptionState.throwIfNeeded();
7846 } 7852 }
7847 7853
7848 static void overloadedMethodFMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 7854 static void overloadedMethodFMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
7849 { 7855 {
7850 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7856 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7851 TestObjectV8Internal::overloadedMethodFMethod(info); 7857 TestObjectV8Internal::overloadedMethodFMethod(info);
7852 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7858 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7853 } 7859 }
7854 7860
7855 static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7861 static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
7856 { 7862 {
7857 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodG", "TestObject", info.Holder(), info.GetIsolate()); 7863 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodG", "TestObject", info.Holder(), info.GetIsolate());
7858 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7864 TestObject* impl = V8TestObject::toImpl(info.Holder());
7859 int longArg; 7865 int longArg;
7860 { 7866 {
7861 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 7867 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
7862 } 7868 }
7863 impl->overloadedMethodG(longArg); 7869 impl->overloadedMethodG(longArg);
7864 } 7870 }
7865 7871
7866 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7872 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
7867 { 7873 {
7868 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7874 TestObject* impl = V8TestObject::toImpl(info.Holder());
7869 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; 7875 TestInterfaceEmpty* testInterfaceEmptyOrNullArg;
7870 { 7876 {
7871 if (!info[0]->IsUndefined()) { 7877 if (!info[0]->IsUndefined()) {
7872 testInterfaceEmptyOrNullArg = V8TestInterfaceEmpty::toImplWithTypeCh eck(info.GetIsolate(), info[0]); 7878 if (type_checked_argument_index == 0)
7879 testInterfaceEmptyOrNullArg = V8TestInterfaceEmpty::toImpl(v8::H andle<v8::Object>::Cast(info[0]));
7880 else
7881 testInterfaceEmptyOrNullArg = V8TestInterfaceEmpty::toImplWithTy peCheck(info.GetIsolate(), info[0]);
7873 } else { 7882 } else {
7874 testInterfaceEmptyOrNullArg = nullptr; 7883 testInterfaceEmptyOrNullArg = nullptr;
7875 } 7884 }
7876 } 7885 }
7877 impl->overloadedMethodG(testInterfaceEmptyOrNullArg); 7886 impl->overloadedMethodG(testInterfaceEmptyOrNullArg);
7878 } 7887 }
7879 7888
7880 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 7889 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
7881 { 7890 {
7882 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodG", "TestObject", info.Holder(), info.GetIsolate()); 7891 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodG", "TestObject", info.Holder(), info.GetIsolate());
7883 switch (std::min(1, info.Length())) { 7892 switch (std::min(1, info.Length())) {
7884 case 0: 7893 case 0:
7885 if (true) { 7894 if (true) {
7886 overloadedMethodG2Method(info); 7895 overloadedMethodG2Method(info, -1);
7887 return; 7896 return;
7888 } 7897 }
7889 break; 7898 break;
7890 case 1: 7899 case 1:
7891 if (info[0]->IsUndefined()) { 7900 if (info[0]->IsUndefined()) {
7892 overloadedMethodG2Method(info); 7901 overloadedMethodG2Method(info, -1);
7893 return; 7902 return;
7894 } 7903 }
7895 if (isUndefinedOrNull(info[0])) { 7904 if (isUndefinedOrNull(info[0])) {
7896 overloadedMethodG2Method(info); 7905 overloadedMethodG2Method(info, -1);
7897 return; 7906 return;
7898 } 7907 }
7899 if (V8TestInterfaceEmpty::hasInstance(info[0], info.GetIsolate())) { 7908 if (V8TestInterfaceEmpty::hasInstance(info[0], info.GetIsolate())) {
7900 overloadedMethodG2Method(info); 7909 overloadedMethodG2Method(info, 0);
7901 return; 7910 return;
7902 } 7911 }
7903 if (true) { 7912 if (true) {
7904 overloadedMethodG1Method(info); 7913 overloadedMethodG1Method(info, -1);
7905 return; 7914 return;
7906 } 7915 }
7907 break; 7916 break;
7908 default: 7917 default:
7909 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length())); 7918 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length()));
7910 exceptionState.throwIfNeeded(); 7919 exceptionState.throwIfNeeded();
7911 return; 7920 return;
7912 } 7921 }
7913 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 7922 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
7914 exceptionState.throwIfNeeded(); 7923 exceptionState.throwIfNeeded();
7915 } 7924 }
7916 7925
7917 static void overloadedMethodGMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 7926 static void overloadedMethodGMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
7918 { 7927 {
7919 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7928 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7920 TestObjectV8Internal::overloadedMethodGMethod(info); 7929 TestObjectV8Internal::overloadedMethodGMethod(info);
7921 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7930 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7922 } 7931 }
7923 7932
7924 static void overloadedMethodH1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7933 static void overloadedMethodH1Method(const v8::FunctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
7925 { 7934 {
7926 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7935 TestObject* impl = V8TestObject::toImpl(info.Holder());
7927 TestInterfaceImplementation* testInterfaceArg; 7936 TestInterfaceImplementation* testInterfaceArg;
7928 { 7937 {
7929 testInterfaceArg = V8TestInterface::toImplWithTypeCheck(info.GetIsolate( ), info[0]); 7938 if (type_checked_argument_index == 0)
7939 testInterfaceArg = V8TestInterface::toImpl(v8::Handle<v8::Object>::C ast(info[0]));
7940 else
7941 testInterfaceArg = V8TestInterface::toImplWithTypeCheck(info.GetIsol ate(), info[0]);
7930 } 7942 }
7931 impl->overloadedMethodH(testInterfaceArg); 7943 impl->overloadedMethodH(testInterfaceArg);
7932 } 7944 }
7933 7945
7934 static void overloadedMethodH2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7946 static void overloadedMethodH2Method(const v8::FunctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
7935 { 7947 {
7936 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7948 TestObject* impl = V8TestObject::toImpl(info.Holder());
7937 TestInterfaceEmpty* testInterfaceEmptyArg; 7949 TestInterfaceEmpty* testInterfaceEmptyArg;
7938 { 7950 {
7939 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G etIsolate(), info[0]); 7951 if (type_checked_argument_index == 0)
7952 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImpl(v8::Handle<v8:: Object>::Cast(info[0]));
7953 else
7954 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(in fo.GetIsolate(), info[0]);
7940 } 7955 }
7941 impl->overloadedMethodH(testInterfaceEmptyArg); 7956 impl->overloadedMethodH(testInterfaceEmptyArg);
7942 } 7957 }
7943 7958
7944 static void overloadedMethodHMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 7959 static void overloadedMethodHMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
7945 { 7960 {
7946 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodH", "TestObject", info.Holder(), info.GetIsolate()); 7961 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodH", "TestObject", info.Holder(), info.GetIsolate());
7947 switch (std::min(1, info.Length())) { 7962 switch (std::min(1, info.Length())) {
7948 case 1: 7963 case 1:
7949 if (V8TestInterface::hasInstance(info[0], info.GetIsolate())) { 7964 if (V8TestInterface::hasInstance(info[0], info.GetIsolate())) {
7950 overloadedMethodH1Method(info); 7965 overloadedMethodH1Method(info, 0);
7951 return; 7966 return;
7952 } 7967 }
7953 if (V8TestInterfaceEmpty::hasInstance(info[0], info.GetIsolate())) { 7968 if (V8TestInterfaceEmpty::hasInstance(info[0], info.GetIsolate())) {
7954 overloadedMethodH2Method(info); 7969 overloadedMethodH2Method(info, 0);
7955 return; 7970 return;
7956 } 7971 }
7957 break; 7972 break;
7958 default: 7973 default:
7959 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 7974 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
7960 exceptionState.throwIfNeeded(); 7975 exceptionState.throwIfNeeded();
7961 return; 7976 return;
7962 } 7977 }
7963 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 7978 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
7964 exceptionState.throwIfNeeded(); 7979 exceptionState.throwIfNeeded();
7965 } 7980 }
7966 7981
7967 static void overloadedMethodHMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 7982 static void overloadedMethodHMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
7968 { 7983 {
7969 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7984 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7970 TestObjectV8Internal::overloadedMethodHMethod(info); 7985 TestObjectV8Internal::overloadedMethodHMethod(info);
7971 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7986 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7972 } 7987 }
7973 7988
7974 static void overloadedMethodI1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7989 static void overloadedMethodI1Method(const v8::FunctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
7975 { 7990 {
7976 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7991 TestObject* impl = V8TestObject::toImpl(info.Holder());
7977 V8StringResource<> stringArg; 7992 V8StringResource<> stringArg;
7978 { 7993 {
7979 TOSTRING_VOID_INTERNAL(stringArg, info[0]); 7994 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
7980 } 7995 }
7981 impl->overloadedMethodI(stringArg); 7996 impl->overloadedMethodI(stringArg);
7982 } 7997 }
7983 7998
7984 static void overloadedMethodI2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7999 static void overloadedMethodI2Method(const v8::FunctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
7985 { 8000 {
7986 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodI", "TestObject", info.Holder(), info.GetIsolate()); 8001 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodI", "TestObject", info.Holder(), info.GetIsolate());
7987 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8002 TestObject* impl = V8TestObject::toImpl(info.Holder());
7988 double doubleArg; 8003 double doubleArg;
7989 { 8004 {
7990 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(doubleArg, toDouble(info[0], excep tionState), exceptionState); 8005 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(doubleArg, toDouble(info[0], excep tionState), exceptionState);
7991 } 8006 }
7992 impl->overloadedMethodI(doubleArg); 8007 impl->overloadedMethodI(doubleArg);
7993 } 8008 }
7994 8009
7995 static void overloadedMethodIMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 8010 static void overloadedMethodIMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
7996 { 8011 {
7997 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodI", "TestObject", info.Holder(), info.GetIsolate()); 8012 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodI", "TestObject", info.Holder(), info.GetIsolate());
7998 switch (std::min(1, info.Length())) { 8013 switch (std::min(1, info.Length())) {
7999 case 1: 8014 case 1:
8000 if (info[0]->IsNumber()) { 8015 if (info[0]->IsNumber()) {
8001 overloadedMethodI2Method(info); 8016 overloadedMethodI2Method(info, 0);
8002 return; 8017 return;
8003 } 8018 }
8004 if (true) { 8019 if (true) {
8005 overloadedMethodI1Method(info); 8020 overloadedMethodI1Method(info, -1);
8006 return; 8021 return;
8007 } 8022 }
8008 if (true) { 8023 if (true) {
8009 overloadedMethodI2Method(info); 8024 overloadedMethodI2Method(info, -1);
8010 return; 8025 return;
8011 } 8026 }
8012 break; 8027 break;
8013 default: 8028 default:
8014 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 8029 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
8015 exceptionState.throwIfNeeded(); 8030 exceptionState.throwIfNeeded();
8016 return; 8031 return;
8017 } 8032 }
8018 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 8033 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
8019 exceptionState.throwIfNeeded(); 8034 exceptionState.throwIfNeeded();
8020 } 8035 }
8021 8036
8022 static void overloadedMethodIMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 8037 static void overloadedMethodIMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
8023 { 8038 {
8024 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 8039 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
8025 TestObjectV8Internal::overloadedMethodIMethod(info); 8040 TestObjectV8Internal::overloadedMethodIMethod(info);
8026 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 8041 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
8027 } 8042 }
8028 8043
8029 static void overloadedMethodJ1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 8044 static void overloadedMethodJ1Method(const v8::FunctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
8030 { 8045 {
8031 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8046 TestObject* impl = V8TestObject::toImpl(info.Holder());
8032 V8StringResource<> stringArg; 8047 V8StringResource<> stringArg;
8033 { 8048 {
8034 TOSTRING_VOID_INTERNAL(stringArg, info[0]); 8049 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
8035 } 8050 }
8036 impl->overloadedMethodJ(stringArg); 8051 impl->overloadedMethodJ(stringArg);
8037 } 8052 }
8038 8053
8039 static void overloadedMethodJ2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 8054 static void overloadedMethodJ2Method(const v8::FunctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
8040 { 8055 {
8041 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodJ", "TestObject", info.Holder(), info.GetIsolate()); 8056 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodJ", "TestObject", info.Holder(), info.GetIsolate());
8042 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8057 TestObject* impl = V8TestObject::toImpl(info.Holder());
8043 TestDictionary* testDictionaryArg; 8058 TestDictionary* testDictionaryArg;
8044 { 8059 {
8045 if (!info[0]->IsUndefined()) { 8060 if (!info[0]->IsUndefined()) {
8046 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { 8061 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) {
8047 exceptionState.throwTypeError("parameter 1 ('testDictionaryArg') is not an object."); 8062 exceptionState.throwTypeError("parameter 1 ('testDictionaryArg') is not an object.");
8048 exceptionState.throwIfNeeded(); 8063 exceptionState.throwIfNeeded();
8049 return; 8064 return;
8050 } 8065 }
8051 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testDictionaryArg, V8TestDicti onary::toImpl(info.GetIsolate(), info[0], exceptionState), exceptionState); 8066 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testDictionaryArg, V8TestDicti onary::toImpl(info.GetIsolate(), info[0], exceptionState), exceptionState);
8052 } else { 8067 } else {
8053 testDictionaryArg = TestDictionary::create(); 8068 testDictionaryArg = TestDictionary::create();
8054 } 8069 }
8055 } 8070 }
8056 impl->overloadedMethodJ(*testDictionaryArg); 8071 impl->overloadedMethodJ(*testDictionaryArg);
8057 } 8072 }
8058 8073
8059 static void overloadedMethodJMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 8074 static void overloadedMethodJMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
8060 { 8075 {
8061 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodJ", "TestObject", info.Holder(), info.GetIsolate()); 8076 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodJ", "TestObject", info.Holder(), info.GetIsolate());
8062 switch (std::min(1, info.Length())) { 8077 switch (std::min(1, info.Length())) {
8063 case 1: 8078 case 1:
8064 if (info[0]->IsObject()) { 8079 if (info[0]->IsObject()) {
8065 overloadedMethodJ2Method(info); 8080 overloadedMethodJ2Method(info, 0);
8066 return; 8081 return;
8067 } 8082 }
8068 if (true) { 8083 if (true) {
8069 overloadedMethodJ1Method(info); 8084 overloadedMethodJ1Method(info, -1);
8070 return; 8085 return;
8071 } 8086 }
8072 break; 8087 break;
8073 default: 8088 default:
8074 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 8089 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
8075 exceptionState.throwIfNeeded(); 8090 exceptionState.throwIfNeeded();
8076 return; 8091 return;
8077 } 8092 }
8078 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 8093 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
8079 exceptionState.throwIfNeeded(); 8094 exceptionState.throwIfNeeded();
8080 } 8095 }
8081 8096
8082 static void overloadedMethodJMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 8097 static void overloadedMethodJMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
8083 { 8098 {
8084 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 8099 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
8085 TestObjectV8Internal::overloadedMethodJMethod(info); 8100 TestObjectV8Internal::overloadedMethodJMethod(info);
8086 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 8101 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
8087 } 8102 }
8088 8103
8089 static void overloadedPerWorldBindingsMethod1Method(const v8::FunctionCallbackIn fo<v8::Value>& info) 8104 static void overloadedPerWorldBindingsMethod1Method(const v8::FunctionCallbackIn fo<v8::Value>& info, int type_checked_argument_index)
8090 { 8105 {
8091 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8106 TestObject* impl = V8TestObject::toImpl(info.Holder());
8092 impl->overloadedPerWorldBindingsMethod(); 8107 impl->overloadedPerWorldBindingsMethod();
8093 } 8108 }
8094 8109
8095 static void overloadedPerWorldBindingsMethod1MethodForMainWorld(const v8::Functi onCallbackInfo<v8::Value>& info) 8110 static void overloadedPerWorldBindingsMethod1MethodForMainWorld(const v8::Functi onCallbackInfo<v8::Value>& info, int type_checked_argument_index)
8096 { 8111 {
8097 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8112 TestObject* impl = V8TestObject::toImpl(info.Holder());
8098 impl->overloadedPerWorldBindingsMethod(); 8113 impl->overloadedPerWorldBindingsMethod();
8099 } 8114 }
8100 8115
8101 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn fo<v8::Value>& info) 8116 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn fo<v8::Value>& info, int type_checked_argument_index)
8102 { 8117 {
8103 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); 8118 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate());
8104 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8119 TestObject* impl = V8TestObject::toImpl(info.Holder());
8105 int longArg; 8120 int longArg;
8106 { 8121 {
8107 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 8122 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
8108 } 8123 }
8109 impl->overloadedPerWorldBindingsMethod(longArg); 8124 impl->overloadedPerWorldBindingsMethod(longArg);
8110 } 8125 }
8111 8126
8112 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info) 8127 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info)
8113 { 8128 {
8114 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); 8129 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate());
8115 switch (std::min(1, info.Length())) { 8130 switch (std::min(1, info.Length())) {
8116 case 0: 8131 case 0:
8117 if (true) { 8132 if (true) {
8118 overloadedPerWorldBindingsMethod1Method(info); 8133 overloadedPerWorldBindingsMethod1Method(info, -1);
8119 return; 8134 return;
8120 } 8135 }
8121 break; 8136 break;
8122 case 1: 8137 case 1:
8123 if (true) { 8138 if (true) {
8124 overloadedPerWorldBindingsMethod2Method(info); 8139 overloadedPerWorldBindingsMethod2Method(info, -1);
8125 return; 8140 return;
8126 } 8141 }
8127 break; 8142 break;
8128 default: 8143 default:
8129 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length())); 8144 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length()));
8130 exceptionState.throwIfNeeded(); 8145 exceptionState.throwIfNeeded();
8131 return; 8146 return;
8132 } 8147 }
8133 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 8148 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
8134 exceptionState.throwIfNeeded(); 8149 exceptionState.throwIfNeeded();
8135 } 8150 }
8136 8151
8137 static void overloadedPerWorldBindingsMethodMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 8152 static void overloadedPerWorldBindingsMethodMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
8138 { 8153 {
8139 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 8154 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
8140 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethod(info); 8155 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethod(info);
8141 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 8156 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
8142 } 8157 }
8143 8158
8144 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi onCallbackInfo<v8::Value>& info) 8159 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi onCallbackInfo<v8::Value>& info, int type_checked_argument_index)
8145 { 8160 {
8146 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); 8161 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate());
8147 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8162 TestObject* impl = V8TestObject::toImpl(info.Holder());
8148 int longArg; 8163 int longArg;
8149 { 8164 {
8150 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 8165 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
8151 } 8166 }
8152 impl->overloadedPerWorldBindingsMethod(longArg); 8167 impl->overloadedPerWorldBindingsMethod(longArg);
8153 } 8168 }
8154 8169
8155 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio nCallbackInfo<v8::Value>& info) 8170 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio nCallbackInfo<v8::Value>& info)
8156 { 8171 {
8157 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); 8172 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate());
8158 switch (std::min(1, info.Length())) { 8173 switch (std::min(1, info.Length())) {
8159 case 0: 8174 case 0:
8160 if (true) { 8175 if (true) {
8161 overloadedPerWorldBindingsMethod1MethodForMainWorld(info); 8176 overloadedPerWorldBindingsMethod1MethodForMainWorld(info, -1);
8162 return; 8177 return;
8163 } 8178 }
8164 break; 8179 break;
8165 case 1: 8180 case 1:
8166 if (true) { 8181 if (true) {
8167 overloadedPerWorldBindingsMethod2MethodForMainWorld(info); 8182 overloadedPerWorldBindingsMethod2MethodForMainWorld(info, -1);
8168 return; 8183 return;
8169 } 8184 }
8170 break; 8185 break;
8171 default: 8186 default:
8172 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length())); 8187 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length()));
8173 exceptionState.throwIfNeeded(); 8188 exceptionState.throwIfNeeded();
8174 return; 8189 return;
8175 } 8190 }
8176 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 8191 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
8177 exceptionState.throwIfNeeded(); 8192 exceptionState.throwIfNeeded();
8178 } 8193 }
8179 8194
8180 static void overloadedPerWorldBindingsMethodMethodCallbackForMainWorld(const v8: :FunctionCallbackInfo<v8::Value>& info) 8195 static void overloadedPerWorldBindingsMethodMethodCallbackForMainWorld(const v8: :FunctionCallbackInfo<v8::Value>& info)
8181 { 8196 {
8182 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 8197 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
8183 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethodForMainWorld(inf o); 8198 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethodForMainWorld(inf o);
8184 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 8199 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
8185 } 8200 }
8186 8201
8187 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val ue>& info) 8202 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val ue>& info, int type_checked_argument_index)
8188 { 8203 {
8189 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate()); 8204 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate());
8190 int longArg; 8205 int longArg;
8191 { 8206 {
8192 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 8207 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
8193 } 8208 }
8194 TestObject::overloadedStaticMethod(longArg); 8209 TestObject::overloadedStaticMethod(longArg);
8195 } 8210 }
8196 8211
8197 static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val ue>& info) 8212 static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val ue>& info, int type_checked_argument_index)
8198 { 8213 {
8199 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate()); 8214 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate());
8200 int longArg1; 8215 int longArg1;
8201 int longArg2; 8216 int longArg2;
8202 { 8217 {
8203 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg1, toInt32(info[0], excepti onState), exceptionState); 8218 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg1, toInt32(info[0], excepti onState), exceptionState);
8204 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg2, toInt32(info[1], excepti onState), exceptionState); 8219 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg2, toInt32(info[1], excepti onState), exceptionState);
8205 } 8220 }
8206 TestObject::overloadedStaticMethod(longArg1, longArg2); 8221 TestObject::overloadedStaticMethod(longArg1, longArg2);
8207 } 8222 }
8208 8223
8209 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info) 8224 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info)
8210 { 8225 {
8211 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate()); 8226 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate());
8212 switch (std::min(2, info.Length())) { 8227 switch (std::min(2, info.Length())) {
8213 case 1: 8228 case 1:
8214 if (true) { 8229 if (true) {
8215 overloadedStaticMethod1Method(info); 8230 overloadedStaticMethod1Method(info, -1);
8216 return; 8231 return;
8217 } 8232 }
8218 break; 8233 break;
8219 case 2: 8234 case 2:
8220 if (true) { 8235 if (true) {
8221 overloadedStaticMethod2Method(info); 8236 overloadedStaticMethod2Method(info, -1);
8222 return; 8237 return;
8223 } 8238 }
8224 break; 8239 break;
8225 default: 8240 default:
8226 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 8241 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
8227 exceptionState.throwIfNeeded(); 8242 exceptionState.throwIfNeeded();
8228 return; 8243 return;
8229 } 8244 }
8230 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 8245 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
8231 exceptionState.throwIfNeeded(); 8246 exceptionState.throwIfNeeded();
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
8694 } 8709 }
8695 8710
8696 static void measureAsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 8711 static void measureAsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
8697 { 8712 {
8698 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 8713 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
8699 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeature); 8714 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeature);
8700 TestObjectV8Internal::measureAsVoidMethodMethod(info); 8715 TestObjectV8Internal::measureAsVoidMethodMethod(info);
8701 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 8716 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
8702 } 8717 }
8703 8718
8704 static void DeprecateAsOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8 ::Value>& info) 8719 static void DeprecateAsOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8 ::Value>& info, int type_checked_argument_index)
8705 { 8720 {
8706 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8721 TestObject* impl = V8TestObject::toImpl(info.Holder());
8707 impl->DeprecateAsOverloadedMethod(); 8722 impl->DeprecateAsOverloadedMethod();
8708 } 8723 }
8709 8724
8710 static void DeprecateAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8 ::Value>& info) 8725 static void DeprecateAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8 ::Value>& info, int type_checked_argument_index)
8711 { 8726 {
8712 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 8727 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
8713 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8728 TestObject* impl = V8TestObject::toImpl(info.Holder());
8714 int arg; 8729 int arg;
8715 { 8730 {
8716 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 8731 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
8717 } 8732 }
8718 impl->DeprecateAsOverloadedMethod(arg); 8733 impl->DeprecateAsOverloadedMethod(arg);
8719 } 8734 }
8720 8735
8721 static void DeprecateAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 8736 static void DeprecateAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
8722 { 8737 {
8723 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 8738 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
8724 switch (std::min(1, info.Length())) { 8739 switch (std::min(1, info.Length())) {
8725 case 0: 8740 case 0:
8726 if (true) { 8741 if (true) {
8727 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate ()), UseCounter::TestFeatureA); 8742 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate ()), UseCounter::TestFeatureA);
8728 DeprecateAsOverloadedMethod1Method(info); 8743 DeprecateAsOverloadedMethod1Method(info, -1);
8729 return; 8744 return;
8730 } 8745 }
8731 break; 8746 break;
8732 case 1: 8747 case 1:
8733 if (true) { 8748 if (true) {
8734 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate ()), UseCounter::TestFeatureB); 8749 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate ()), UseCounter::TestFeatureB);
8735 DeprecateAsOverloadedMethod2Method(info); 8750 DeprecateAsOverloadedMethod2Method(info, -1);
8736 return; 8751 return;
8737 } 8752 }
8738 break; 8753 break;
8739 default: 8754 default:
8740 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length())); 8755 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length()));
8741 exceptionState.throwIfNeeded(); 8756 exceptionState.throwIfNeeded();
8742 return; 8757 return;
8743 } 8758 }
8744 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 8759 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
8745 exceptionState.throwIfNeeded(); 8760 exceptionState.throwIfNeeded();
8746 } 8761 }
8747 8762
8748 static void DeprecateAsOverloadedMethodMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 8763 static void DeprecateAsOverloadedMethodMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
8749 { 8764 {
8750 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 8765 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
8751 TestObjectV8Internal::DeprecateAsOverloadedMethodMethod(info); 8766 TestObjectV8Internal::DeprecateAsOverloadedMethodMethod(info);
8752 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 8767 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
8753 } 8768 }
8754 8769
8755 static void DeprecateAsSameValueOverloadedMethod1Method(const v8::FunctionCallba ckInfo<v8::Value>& info) 8770 static void DeprecateAsSameValueOverloadedMethod1Method(const v8::FunctionCallba ckInfo<v8::Value>& info, int type_checked_argument_index)
8756 { 8771 {
8757 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8772 TestObject* impl = V8TestObject::toImpl(info.Holder());
8758 impl->DeprecateAsSameValueOverloadedMethod(); 8773 impl->DeprecateAsSameValueOverloadedMethod();
8759 } 8774 }
8760 8775
8761 static void DeprecateAsSameValueOverloadedMethod2Method(const v8::FunctionCallba ckInfo<v8::Value>& info) 8776 static void DeprecateAsSameValueOverloadedMethod2Method(const v8::FunctionCallba ckInfo<v8::Value>& info, int type_checked_argument_index)
8762 { 8777 {
8763 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 8778 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
8764 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8779 TestObject* impl = V8TestObject::toImpl(info.Holder());
8765 int arg; 8780 int arg;
8766 { 8781 {
8767 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 8782 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
8768 } 8783 }
8769 impl->DeprecateAsSameValueOverloadedMethod(arg); 8784 impl->DeprecateAsSameValueOverloadedMethod(arg);
8770 } 8785 }
8771 8786
8772 static void DeprecateAsSameValueOverloadedMethodMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) 8787 static void DeprecateAsSameValueOverloadedMethodMethod(const v8::FunctionCallbac kInfo<v8::Value>& info)
8773 { 8788 {
8774 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 8789 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
8775 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::TestFeature); 8790 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::TestFeature);
8776 switch (std::min(1, info.Length())) { 8791 switch (std::min(1, info.Length())) {
8777 case 0: 8792 case 0:
8778 if (true) { 8793 if (true) {
8779 DeprecateAsSameValueOverloadedMethod1Method(info); 8794 DeprecateAsSameValueOverloadedMethod1Method(info, -1);
8780 return; 8795 return;
8781 } 8796 }
8782 break; 8797 break;
8783 case 1: 8798 case 1:
8784 if (true) { 8799 if (true) {
8785 DeprecateAsSameValueOverloadedMethod2Method(info); 8800 DeprecateAsSameValueOverloadedMethod2Method(info, -1);
8786 return; 8801 return;
8787 } 8802 }
8788 break; 8803 break;
8789 default: 8804 default:
8790 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length())); 8805 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length()));
8791 exceptionState.throwIfNeeded(); 8806 exceptionState.throwIfNeeded();
8792 return; 8807 return;
8793 } 8808 }
8794 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 8809 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
8795 exceptionState.throwIfNeeded(); 8810 exceptionState.throwIfNeeded();
8796 } 8811 }
8797 8812
8798 static void DeprecateAsSameValueOverloadedMethodMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 8813 static void DeprecateAsSameValueOverloadedMethodMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
8799 { 8814 {
8800 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 8815 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
8801 TestObjectV8Internal::DeprecateAsSameValueOverloadedMethodMethod(info); 8816 TestObjectV8Internal::DeprecateAsSameValueOverloadedMethodMethod(info);
8802 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 8817 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
8803 } 8818 }
8804 8819
8805 static void measureAsOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8:: Value>& info) 8820 static void measureAsOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8:: Value>& info, int type_checked_argument_index)
8806 { 8821 {
8807 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8822 TestObject* impl = V8TestObject::toImpl(info.Holder());
8808 impl->measureAsOverloadedMethod(); 8823 impl->measureAsOverloadedMethod();
8809 } 8824 }
8810 8825
8811 static void measureAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8:: Value>& info) 8826 static void measureAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8:: Value>& info, int type_checked_argument_index)
8812 { 8827 {
8813 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv erloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 8828 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv erloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
8814 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8829 TestObject* impl = V8TestObject::toImpl(info.Holder());
8815 int arg; 8830 int arg;
8816 { 8831 {
8817 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 8832 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
8818 } 8833 }
8819 impl->measureAsOverloadedMethod(arg); 8834 impl->measureAsOverloadedMethod(arg);
8820 } 8835 }
8821 8836
8822 static void measureAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 8837 static void measureAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
8823 { 8838 {
8824 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv erloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 8839 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv erloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
8825 switch (std::min(1, info.Length())) { 8840 switch (std::min(1, info.Length())) {
8826 case 0: 8841 case 0:
8827 if (true) { 8842 if (true) {
8828 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCou nter::TestFeatureA); 8843 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCou nter::TestFeatureA);
8829 measureAsOverloadedMethod1Method(info); 8844 measureAsOverloadedMethod1Method(info, -1);
8830 return; 8845 return;
8831 } 8846 }
8832 break; 8847 break;
8833 case 1: 8848 case 1:
8834 if (true) { 8849 if (true) {
8835 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCou nter::TestFeatureB); 8850 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCou nter::TestFeatureB);
8836 measureAsOverloadedMethod2Method(info); 8851 measureAsOverloadedMethod2Method(info, -1);
8837 return; 8852 return;
8838 } 8853 }
8839 break; 8854 break;
8840 default: 8855 default:
8841 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length())); 8856 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length()));
8842 exceptionState.throwIfNeeded(); 8857 exceptionState.throwIfNeeded();
8843 return; 8858 return;
8844 } 8859 }
8845 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 8860 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
8846 exceptionState.throwIfNeeded(); 8861 exceptionState.throwIfNeeded();
8847 } 8862 }
8848 8863
8849 static void measureAsOverloadedMethodMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 8864 static void measureAsOverloadedMethodMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
8850 { 8865 {
8851 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 8866 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
8852 TestObjectV8Internal::measureAsOverloadedMethodMethod(info); 8867 TestObjectV8Internal::measureAsOverloadedMethodMethod(info);
8853 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 8868 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
8854 } 8869 }
8855 8870
8856 static void measureAsSameValueOverloadedMethod1Method(const v8::FunctionCallback Info<v8::Value>& info) 8871 static void measureAsSameValueOverloadedMethod1Method(const v8::FunctionCallback Info<v8::Value>& info, int type_checked_argument_index)
8857 { 8872 {
8858 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8873 TestObject* impl = V8TestObject::toImpl(info.Holder());
8859 impl->measureAsSameValueOverloadedMethod(); 8874 impl->measureAsSameValueOverloadedMethod();
8860 } 8875 }
8861 8876
8862 static void measureAsSameValueOverloadedMethod2Method(const v8::FunctionCallback Info<v8::Value>& info) 8877 static void measureAsSameValueOverloadedMethod2Method(const v8::FunctionCallback Info<v8::Value>& info, int type_checked_argument_index)
8863 { 8878 {
8864 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 8879 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
8865 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8880 TestObject* impl = V8TestObject::toImpl(info.Holder());
8866 int arg; 8881 int arg;
8867 { 8882 {
8868 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 8883 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
8869 } 8884 }
8870 impl->measureAsSameValueOverloadedMethod(arg); 8885 impl->measureAsSameValueOverloadedMethod(arg);
8871 } 8886 }
8872 8887
8873 static void measureAsSameValueOverloadedMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 8888 static void measureAsSameValueOverloadedMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
8874 { 8889 {
8875 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 8890 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
8876 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeature); 8891 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeature);
8877 switch (std::min(1, info.Length())) { 8892 switch (std::min(1, info.Length())) {
8878 case 0: 8893 case 0:
8879 if (true) { 8894 if (true) {
8880 measureAsSameValueOverloadedMethod1Method(info); 8895 measureAsSameValueOverloadedMethod1Method(info, -1);
8881 return; 8896 return;
8882 } 8897 }
8883 break; 8898 break;
8884 case 1: 8899 case 1:
8885 if (true) { 8900 if (true) {
8886 measureAsSameValueOverloadedMethod2Method(info); 8901 measureAsSameValueOverloadedMethod2Method(info, -1);
8887 return; 8902 return;
8888 } 8903 }
8889 break; 8904 break;
8890 default: 8905 default:
8891 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length())); 8906 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length()));
8892 exceptionState.throwIfNeeded(); 8907 exceptionState.throwIfNeeded();
8893 return; 8908 return;
8894 } 8909 }
8895 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 8910 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
8896 exceptionState.throwIfNeeded(); 8911 exceptionState.throwIfNeeded();
8897 } 8912 }
8898 8913
8899 static void measureAsSameValueOverloadedMethodMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 8914 static void measureAsSameValueOverloadedMethodMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
8900 { 8915 {
8901 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 8916 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
8902 TestObjectV8Internal::measureAsSameValueOverloadedMethodMethod(info); 8917 TestObjectV8Internal::measureAsSameValueOverloadedMethodMethod(info);
8903 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 8918 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
8904 } 8919 }
8905 8920
8906 static void deprecateAsMeasureAsSameValueOverloadedMethod1Method(const v8::Funct ionCallbackInfo<v8::Value>& info) 8921 static void deprecateAsMeasureAsSameValueOverloadedMethod1Method(const v8::Funct ionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
8907 { 8922 {
8908 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8923 TestObject* impl = V8TestObject::toImpl(info.Holder());
8909 impl->deprecateAsMeasureAsSameValueOverloadedMethod(); 8924 impl->deprecateAsMeasureAsSameValueOverloadedMethod();
8910 } 8925 }
8911 8926
8912 static void deprecateAsMeasureAsSameValueOverloadedMethod2Method(const v8::Funct ionCallbackInfo<v8::Value>& info) 8927 static void deprecateAsMeasureAsSameValueOverloadedMethod2Method(const v8::Funct ionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
8913 { 8928 {
8914 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e()); 8929 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e());
8915 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8930 TestObject* impl = V8TestObject::toImpl(info.Holder());
8916 int arg; 8931 int arg;
8917 { 8932 {
8918 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 8933 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
8919 } 8934 }
8920 impl->deprecateAsMeasureAsSameValueOverloadedMethod(arg); 8935 impl->deprecateAsMeasureAsSameValueOverloadedMethod(arg);
8921 } 8936 }
8922 8937
8923 static void deprecateAsMeasureAsSameValueOverloadedMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info) 8938 static void deprecateAsMeasureAsSameValueOverloadedMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info)
8924 { 8939 {
8925 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e()); 8940 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e());
8926 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeature); 8941 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeature);
8927 switch (std::min(1, info.Length())) { 8942 switch (std::min(1, info.Length())) {
8928 case 0: 8943 case 0:
8929 if (true) { 8944 if (true) {
8930 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate ()), UseCounter::TestFeatureA); 8945 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate ()), UseCounter::TestFeatureA);
8931 deprecateAsMeasureAsSameValueOverloadedMethod1Method(info); 8946 deprecateAsMeasureAsSameValueOverloadedMethod1Method(info, -1);
8932 return; 8947 return;
8933 } 8948 }
8934 break; 8949 break;
8935 case 1: 8950 case 1:
8936 if (true) { 8951 if (true) {
8937 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate ()), UseCounter::TestFeatureB); 8952 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate ()), UseCounter::TestFeatureB);
8938 deprecateAsMeasureAsSameValueOverloadedMethod2Method(info); 8953 deprecateAsMeasureAsSameValueOverloadedMethod2Method(info, -1);
8939 return; 8954 return;
8940 } 8955 }
8941 break; 8956 break;
8942 default: 8957 default:
8943 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length())); 8958 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length()));
8944 exceptionState.throwIfNeeded(); 8959 exceptionState.throwIfNeeded();
8945 return; 8960 return;
8946 } 8961 }
8947 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 8962 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
8948 exceptionState.throwIfNeeded(); 8963 exceptionState.throwIfNeeded();
8949 } 8964 }
8950 8965
8951 static void deprecateAsMeasureAsSameValueOverloadedMethodMethodCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info) 8966 static void deprecateAsMeasureAsSameValueOverloadedMethodMethodCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info)
8952 { 8967 {
8953 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 8968 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
8954 TestObjectV8Internal::deprecateAsMeasureAsSameValueOverloadedMethodMethod(in fo); 8969 TestObjectV8Internal::deprecateAsMeasureAsSameValueOverloadedMethodMethod(in fo);
8955 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 8970 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
8956 } 8971 }
8957 8972
8958 static void deprecateAsSameValueMeasureAsOverloadedMethod1Method(const v8::Funct ionCallbackInfo<v8::Value>& info) 8973 static void deprecateAsSameValueMeasureAsOverloadedMethod1Method(const v8::Funct ionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
8959 { 8974 {
8960 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8975 TestObject* impl = V8TestObject::toImpl(info.Holder());
8961 impl->deprecateAsSameValueMeasureAsOverloadedMethod(); 8976 impl->deprecateAsSameValueMeasureAsOverloadedMethod();
8962 } 8977 }
8963 8978
8964 static void deprecateAsSameValueMeasureAsOverloadedMethod2Method(const v8::Funct ionCallbackInfo<v8::Value>& info) 8979 static void deprecateAsSameValueMeasureAsOverloadedMethod2Method(const v8::Funct ionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
8965 { 8980 {
8966 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e()); 8981 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e());
8967 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8982 TestObject* impl = V8TestObject::toImpl(info.Holder());
8968 int arg; 8983 int arg;
8969 { 8984 {
8970 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 8985 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
8971 } 8986 }
8972 impl->deprecateAsSameValueMeasureAsOverloadedMethod(arg); 8987 impl->deprecateAsSameValueMeasureAsOverloadedMethod(arg);
8973 } 8988 }
8974 8989
8975 static void deprecateAsSameValueMeasureAsOverloadedMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info) 8990 static void deprecateAsSameValueMeasureAsOverloadedMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info)
8976 { 8991 {
8977 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e()); 8992 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e());
8978 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::TestFeature); 8993 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::TestFeature);
8979 switch (std::min(1, info.Length())) { 8994 switch (std::min(1, info.Length())) {
8980 case 0: 8995 case 0:
8981 if (true) { 8996 if (true) {
8982 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCou nter::TestFeatureA); 8997 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCou nter::TestFeatureA);
8983 deprecateAsSameValueMeasureAsOverloadedMethod1Method(info); 8998 deprecateAsSameValueMeasureAsOverloadedMethod1Method(info, -1);
8984 return; 8999 return;
8985 } 9000 }
8986 break; 9001 break;
8987 case 1: 9002 case 1:
8988 if (true) { 9003 if (true) {
8989 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCou nter::TestFeatureB); 9004 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCou nter::TestFeatureB);
8990 deprecateAsSameValueMeasureAsOverloadedMethod2Method(info); 9005 deprecateAsSameValueMeasureAsOverloadedMethod2Method(info, -1);
8991 return; 9006 return;
8992 } 9007 }
8993 break; 9008 break;
8994 default: 9009 default:
8995 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length())); 9010 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length()));
8996 exceptionState.throwIfNeeded(); 9011 exceptionState.throwIfNeeded();
8997 return; 9012 return;
8998 } 9013 }
8999 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 9014 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
9000 exceptionState.throwIfNeeded(); 9015 exceptionState.throwIfNeeded();
9001 } 9016 }
9002 9017
9003 static void deprecateAsSameValueMeasureAsOverloadedMethodMethodCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info) 9018 static void deprecateAsSameValueMeasureAsOverloadedMethodMethodCallback(const v8 ::FunctionCallbackInfo<v8::Value>& info)
9004 { 9019 {
9005 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9020 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9006 TestObjectV8Internal::deprecateAsSameValueMeasureAsOverloadedMethodMethod(in fo); 9021 TestObjectV8Internal::deprecateAsSameValueMeasureAsOverloadedMethodMethod(in fo);
9007 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9022 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9008 } 9023 }
9009 9024
9010 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 9025 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
9011 { 9026 {
9012 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9027 TestObject* impl = V8TestObject::toImpl(info.Holder());
9013 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(); 9028 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod();
9014 } 9029 }
9015 9030
9016 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 9031 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
9017 { 9032 {
9018 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info. GetIsolate()); 9033 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info. GetIsolate());
9019 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9034 TestObject* impl = V8TestObject::toImpl(info.Holder());
9020 int arg; 9035 int arg;
9021 { 9036 {
9022 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 9037 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
9023 } 9038 }
9024 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(arg); 9039 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(arg);
9025 } 9040 }
9026 9041
9027 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethod(const v 8::FunctionCallbackInfo<v8::Value>& info) 9042 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethod(const v 8::FunctionCallbackInfo<v8::Value>& info)
9028 { 9043 {
9029 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info. GetIsolate()); 9044 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info. GetIsolate());
9030 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeatureB); 9045 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeatureB);
9031 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::TestFeatureA); 9046 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::TestFeatureA);
9032 switch (std::min(1, info.Length())) { 9047 switch (std::min(1, info.Length())) {
9033 case 0: 9048 case 0:
9034 if (true) { 9049 if (true) {
9035 deprecateAsSameValueMeasureAsSameValueOverloadedMethod1Method(info); 9050 deprecateAsSameValueMeasureAsSameValueOverloadedMethod1Method(info, -1);
9036 return; 9051 return;
9037 } 9052 }
9038 break; 9053 break;
9039 case 1: 9054 case 1:
9040 if (true) { 9055 if (true) {
9041 deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(info); 9056 deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(info, -1);
9042 return; 9057 return;
9043 } 9058 }
9044 break; 9059 break;
9045 default: 9060 default:
9046 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length())); 9061 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length()));
9047 exceptionState.throwIfNeeded(); 9062 exceptionState.throwIfNeeded();
9048 return; 9063 return;
9049 } 9064 }
9050 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 9065 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
9051 exceptionState.throwIfNeeded(); 9066 exceptionState.throwIfNeeded();
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
9434 impl->perWorldBindingsRuntimeEnabledVoidMethod(); 9449 impl->perWorldBindingsRuntimeEnabledVoidMethod();
9435 } 9450 }
9436 9451
9437 static void perWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMainWorld(c onst v8::FunctionCallbackInfo<v8::Value>& info) 9452 static void perWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMainWorld(c onst v8::FunctionCallbackInfo<v8::Value>& info)
9438 { 9453 {
9439 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9454 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9440 TestObjectV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethodForMainW orld(info); 9455 TestObjectV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethodForMainW orld(info);
9441 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9456 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9442 } 9457 }
9443 9458
9444 static void runtimeEnabledOverloadedVoidMethod1Method(const v8::FunctionCallback Info<v8::Value>& info) 9459 static void runtimeEnabledOverloadedVoidMethod1Method(const v8::FunctionCallback Info<v8::Value>& info, int type_checked_argument_index)
9445 { 9460 {
9446 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9461 TestObject* impl = V8TestObject::toImpl(info.Holder());
9447 V8StringResource<> stringArg; 9462 V8StringResource<> stringArg;
9448 { 9463 {
9449 TOSTRING_VOID_INTERNAL(stringArg, info[0]); 9464 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
9450 } 9465 }
9451 impl->runtimeEnabledOverloadedVoidMethod(stringArg); 9466 impl->runtimeEnabledOverloadedVoidMethod(stringArg);
9452 } 9467 }
9453 9468
9454 static void runtimeEnabledOverloadedVoidMethod2Method(const v8::FunctionCallback Info<v8::Value>& info) 9469 static void runtimeEnabledOverloadedVoidMethod2Method(const v8::FunctionCallback Info<v8::Value>& info, int type_checked_argument_index)
9455 { 9470 {
9456 ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnab ledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate()); 9471 ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnab ledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate());
9457 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9472 TestObject* impl = V8TestObject::toImpl(info.Holder());
9458 int longArg; 9473 int longArg;
9459 { 9474 {
9460 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 9475 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
9461 } 9476 }
9462 impl->runtimeEnabledOverloadedVoidMethod(longArg); 9477 impl->runtimeEnabledOverloadedVoidMethod(longArg);
9463 } 9478 }
9464 9479
9465 static void runtimeEnabledOverloadedVoidMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 9480 static void runtimeEnabledOverloadedVoidMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
9466 { 9481 {
9467 ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnab ledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate()); 9482 ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnab ledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate());
9468 switch (std::min(1, info.Length())) { 9483 switch (std::min(1, info.Length())) {
9469 case 1: 9484 case 1:
9470 if (info[0]->IsNumber()) { 9485 if (info[0]->IsNumber()) {
9471 runtimeEnabledOverloadedVoidMethod2Method(info); 9486 runtimeEnabledOverloadedVoidMethod2Method(info, 0);
9472 return; 9487 return;
9473 } 9488 }
9474 if (true) { 9489 if (true) {
9475 runtimeEnabledOverloadedVoidMethod1Method(info); 9490 runtimeEnabledOverloadedVoidMethod1Method(info, -1);
9476 return; 9491 return;
9477 } 9492 }
9478 if (true) { 9493 if (true) {
9479 runtimeEnabledOverloadedVoidMethod2Method(info); 9494 runtimeEnabledOverloadedVoidMethod2Method(info, -1);
9480 return; 9495 return;
9481 } 9496 }
9482 break; 9497 break;
9483 default: 9498 default:
9484 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 9499 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
9485 exceptionState.throwIfNeeded(); 9500 exceptionState.throwIfNeeded();
9486 return; 9501 return;
9487 } 9502 }
9488 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 9503 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
9489 exceptionState.throwIfNeeded(); 9504 exceptionState.throwIfNeeded();
9490 } 9505 }
9491 9506
9492 static void runtimeEnabledOverloadedVoidMethodMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 9507 static void runtimeEnabledOverloadedVoidMethodMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
9493 { 9508 {
9494 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9509 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9495 TestObjectV8Internal::runtimeEnabledOverloadedVoidMethodMethod(info); 9510 TestObjectV8Internal::runtimeEnabledOverloadedVoidMethodMethod(info);
9496 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9511 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9497 } 9512 }
9498 9513
9499 static void partiallyRuntimeEnabledOverloadedVoidMethod1Method(const v8::Functio nCallbackInfo<v8::Value>& info) 9514 static void partiallyRuntimeEnabledOverloadedVoidMethod1Method(const v8::Functio nCallbackInfo<v8::Value>& info, int type_checked_argument_index)
9500 { 9515 {
9501 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9516 TestObject* impl = V8TestObject::toImpl(info.Holder());
9502 V8StringResource<> stringArg; 9517 V8StringResource<> stringArg;
9503 { 9518 {
9504 TOSTRING_VOID_INTERNAL(stringArg, info[0]); 9519 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
9505 } 9520 }
9506 impl->partiallyRuntimeEnabledOverloadedVoidMethod(stringArg); 9521 impl->partiallyRuntimeEnabledOverloadedVoidMethod(stringArg);
9507 } 9522 }
9508 9523
9509 static void partiallyRuntimeEnabledOverloadedVoidMethod2Method(const v8::Functio nCallbackInfo<v8::Value>& info) 9524 static void partiallyRuntimeEnabledOverloadedVoidMethod2Method(const v8::Functio nCallbackInfo<v8::Value>& info, int type_checked_argument_index)
9510 { 9525 {
9511 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9526 TestObject* impl = V8TestObject::toImpl(info.Holder());
9512 TestInterfaceImplementation* testInterface; 9527 TestInterfaceImplementation* testInterface;
9513 { 9528 {
9514 testInterface = V8TestInterface::toImplWithTypeCheck(info.GetIsolate(), info[0]); 9529 if (type_checked_argument_index == 0)
9530 testInterface = V8TestInterface::toImpl(v8::Handle<v8::Object>::Cast (info[0]));
9531 else
9532 testInterface = V8TestInterface::toImplWithTypeCheck(info.GetIsolate (), info[0]);
9515 } 9533 }
9516 impl->partiallyRuntimeEnabledOverloadedVoidMethod(testInterface); 9534 impl->partiallyRuntimeEnabledOverloadedVoidMethod(testInterface);
9517 } 9535 }
9518 9536
9519 static void partiallyRuntimeEnabledOverloadedVoidMethod3Method(const v8::Functio nCallbackInfo<v8::Value>& info) 9537 static void partiallyRuntimeEnabledOverloadedVoidMethod3Method(const v8::Functio nCallbackInfo<v8::Value>& info, int type_checked_argument_index)
9520 { 9538 {
9521 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partiallyRu ntimeEnabledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate( )); 9539 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partiallyRu ntimeEnabledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate( ));
9522 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9540 TestObject* impl = V8TestObject::toImpl(info.Holder());
9523 int longArg; 9541 int longArg;
9524 { 9542 {
9525 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 9543 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
9526 } 9544 }
9527 impl->partiallyRuntimeEnabledOverloadedVoidMethod(longArg); 9545 impl->partiallyRuntimeEnabledOverloadedVoidMethod(longArg);
9528 } 9546 }
9529 9547
9530 static void partiallyRuntimeEnabledOverloadedVoidMethodMethod(const v8::Function CallbackInfo<v8::Value>& info) 9548 static void partiallyRuntimeEnabledOverloadedVoidMethodMethod(const v8::Function CallbackInfo<v8::Value>& info)
9531 { 9549 {
9532 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partiallyRu ntimeEnabledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate( )); 9550 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partiallyRu ntimeEnabledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate( ));
9533 switch (std::min(1, info.Length())) { 9551 switch (std::min(1, info.Length())) {
9534 case 1: 9552 case 1:
9535 if (RuntimeEnabledFeatures::featureName2Enabled()) { 9553 if (RuntimeEnabledFeatures::featureName2Enabled()) {
9536 if (V8TestInterface::hasInstance(info[0], info.GetIsolate())) { 9554 if (V8TestInterface::hasInstance(info[0], info.GetIsolate())) {
9537 partiallyRuntimeEnabledOverloadedVoidMethod2Method(info); 9555 partiallyRuntimeEnabledOverloadedVoidMethod2Method(info, 0);
9538 return; 9556 return;
9539 } 9557 }
9540 } 9558 }
9541 if (info[0]->IsNumber()) { 9559 if (info[0]->IsNumber()) {
9542 partiallyRuntimeEnabledOverloadedVoidMethod3Method(info); 9560 partiallyRuntimeEnabledOverloadedVoidMethod3Method(info, 0);
9543 return; 9561 return;
9544 } 9562 }
9545 if (RuntimeEnabledFeatures::featureName1Enabled()) { 9563 if (RuntimeEnabledFeatures::featureName1Enabled()) {
9546 if (true) { 9564 if (true) {
9547 partiallyRuntimeEnabledOverloadedVoidMethod1Method(info); 9565 partiallyRuntimeEnabledOverloadedVoidMethod1Method(info, -1);
9548 return; 9566 return;
9549 } 9567 }
9550 } 9568 }
9551 if (true) { 9569 if (true) {
9552 partiallyRuntimeEnabledOverloadedVoidMethod3Method(info); 9570 partiallyRuntimeEnabledOverloadedVoidMethod3Method(info, -1);
9553 return; 9571 return;
9554 } 9572 }
9555 break; 9573 break;
9556 default: 9574 default:
9557 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 9575 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
9558 exceptionState.throwIfNeeded(); 9576 exceptionState.throwIfNeeded();
9559 return; 9577 return;
9560 } 9578 }
9561 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 9579 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
9562 exceptionState.throwIfNeeded(); 9580 exceptionState.throwIfNeeded();
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
9653 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("t ypeCheckingInterfaceVoidMethodTestInterfaceEmptyArg", "TestObject", 1, info.Leng th(), info.GetIsolate()), info.GetIsolate()); 9671 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("t ypeCheckingInterfaceVoidMethodTestInterfaceEmptyArg", "TestObject", 1, info.Leng th(), info.GetIsolate()), info.GetIsolate());
9654 return; 9672 return;
9655 } 9673 }
9656 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9674 TestObject* impl = V8TestObject::toImpl(info.Holder());
9657 TestInterfaceEmpty* testInterfaceEmptyArg; 9675 TestInterfaceEmpty* testInterfaceEmptyArg;
9658 { 9676 {
9659 if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], inf o.GetIsolate())) { 9677 if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], inf o.GetIsolate())) {
9660 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestInterfaceEmpty'."), info.GetIsolate()); 9678 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestInterfaceEmpty'."), info.GetIsolate());
9661 return; 9679 return;
9662 } 9680 }
9663 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImpl(v8::Handle<v8::Obje ct>::Cast(info[0])); 9681 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G etIsolate(), info[0]);
9664 } 9682 }
9665 impl->typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg(testInterfaceEmpt yArg); 9683 impl->typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg(testInterfaceEmpt yArg);
9666 } 9684 }
9667 9685
9668 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info) 9686 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info)
9669 { 9687 {
9670 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9688 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9671 TestObjectV8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMe thod(info); 9689 TestObjectV8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMe thod(info);
9672 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9690 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9673 } 9691 }
(...skipping 30 matching lines...) Expand all
9704 return; 9722 return;
9705 } 9723 }
9706 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9724 TestObject* impl = V8TestObject::toImpl(info.Holder());
9707 Node* node1; 9725 Node* node1;
9708 Node* node2; 9726 Node* node2;
9709 { 9727 {
9710 if (info.Length() > 0 && !V8Node::hasInstance(info[0], info.GetIsolate() )) { 9728 if (info.Length() > 0 && !V8Node::hasInstance(info[0], info.GetIsolate() )) {
9711 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg", "TestObject", "parameter 1 is not of type 'Node'."), info.GetIsolate()); 9729 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg", "TestObject", "parameter 1 is not of type 'Node'."), info.GetIsolate());
9712 return; 9730 return;
9713 } 9731 }
9714 node1 = V8Node::toImpl(v8::Handle<v8::Object>::Cast(info[0])); 9732 node1 = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]);
9715 if (UNLIKELY(info.Length() <= 1)) { 9733 if (UNLIKELY(info.Length() <= 1)) {
9716 impl->useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg(node1); 9734 impl->useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg(node1);
9717 return; 9735 return;
9718 } 9736 }
9719 if (info.Length() > 1 && !V8Node::hasInstance(info[1], info.GetIsolate() )) { 9737 if (info.Length() > 1 && !V8Node::hasInstance(info[1], info.GetIsolate() )) {
9720 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg", "TestObject", "parameter 2 is not of type 'Node'."), info.GetIsolate()); 9738 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg", "TestObject", "parameter 2 is not of type 'Node'."), info.GetIsolate());
9721 return; 9739 return;
9722 } 9740 }
9723 node2 = V8Node::toImpl(v8::Handle<v8::Object>::Cast(info[1])); 9741 node2 = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[1]);
9724 } 9742 }
9725 impl->useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg(node1, node2); 9743 impl->useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg(node1, node2);
9726 } 9744 }
9727 9745
9728 static void useToImpl4ArgumentsCheckingIfPossibleWithOptionalArgMethodCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info) 9746 static void useToImpl4ArgumentsCheckingIfPossibleWithOptionalArgMethodCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info)
9729 { 9747 {
9730 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9748 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9731 TestObjectV8Internal::useToImpl4ArgumentsCheckingIfPossibleWithOptionalArgMe thod(info); 9749 TestObjectV8Internal::useToImpl4ArgumentsCheckingIfPossibleWithOptionalArgMe thod(info);
9732 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9750 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9733 } 9751 }
9734 9752
9735 static void useToImpl4ArgumentsCheckingIfPossibleWithNullableArgMethod(const v8: :FunctionCallbackInfo<v8::Value>& info) 9753 static void useToImpl4ArgumentsCheckingIfPossibleWithNullableArgMethod(const v8: :FunctionCallbackInfo<v8::Value>& info)
9736 { 9754 {
9737 if (UNLIKELY(info.Length() < 2)) { 9755 if (UNLIKELY(info.Length() < 2)) {
9738 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("u seToImpl4ArgumentsCheckingIfPossibleWithNullableArg", "TestObject", 2, info.Leng th(), info.GetIsolate()), info.GetIsolate()); 9756 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("u seToImpl4ArgumentsCheckingIfPossibleWithNullableArg", "TestObject", 2, info.Leng th(), info.GetIsolate()), info.GetIsolate());
9739 return; 9757 return;
9740 } 9758 }
9741 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9759 TestObject* impl = V8TestObject::toImpl(info.Holder());
9742 Node* node1; 9760 Node* node1;
9743 Node* node2; 9761 Node* node2;
9744 { 9762 {
9745 if (info.Length() > 0 && !V8Node::hasInstance(info[0], info.GetIsolate() )) { 9763 if (info.Length() > 0 && !V8Node::hasInstance(info[0], info.GetIsolate() )) {
9746 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "useToImpl4ArgumentsCheckingIfPossibleWithNullableArg", "TestObject", "parameter 1 is not of type 'Node'."), info.GetIsolate()); 9764 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "useToImpl4ArgumentsCheckingIfPossibleWithNullableArg", "TestObject", "parameter 1 is not of type 'Node'."), info.GetIsolate());
9747 return; 9765 return;
9748 } 9766 }
9749 node1 = V8Node::toImpl(v8::Handle<v8::Object>::Cast(info[0])); 9767 node1 = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]);
9750 if (info.Length() > 1 && !isUndefinedOrNull(info[1]) && !V8Node::hasInst ance(info[1], info.GetIsolate())) { 9768 if (info.Length() > 1 && !isUndefinedOrNull(info[1]) && !V8Node::hasInst ance(info[1], info.GetIsolate())) {
9751 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "useToImpl4ArgumentsCheckingIfPossibleWithNullableArg", "TestObject", "parameter 2 is not of type 'Node'."), info.GetIsolate()); 9769 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "useToImpl4ArgumentsCheckingIfPossibleWithNullableArg", "TestObject", "parameter 2 is not of type 'Node'."), info.GetIsolate());
9752 return; 9770 return;
9753 } 9771 }
9754 node2 = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[1]); 9772 node2 = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[1]);
9755 } 9773 }
9756 impl->useToImpl4ArgumentsCheckingIfPossibleWithNullableArg(node1, node2); 9774 impl->useToImpl4ArgumentsCheckingIfPossibleWithNullableArg(node1, node2);
9757 } 9775 }
9758 9776
9759 static void useToImpl4ArgumentsCheckingIfPossibleWithNullableArgMethodCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info) 9777 static void useToImpl4ArgumentsCheckingIfPossibleWithNullableArgMethodCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info)
(...skipping 10 matching lines...) Expand all
9770 return; 9788 return;
9771 } 9789 }
9772 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9790 TestObject* impl = V8TestObject::toImpl(info.Holder());
9773 Node* node1; 9791 Node* node1;
9774 Node* node2; 9792 Node* node2;
9775 { 9793 {
9776 if (info.Length() > 0 && !V8Node::hasInstance(info[0], info.GetIsolate() )) { 9794 if (info.Length() > 0 && !V8Node::hasInstance(info[0], info.GetIsolate() )) {
9777 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArg", "TestObject", "paramete r 1 is not of type 'Node'."), info.GetIsolate()); 9795 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArg", "TestObject", "paramete r 1 is not of type 'Node'."), info.GetIsolate());
9778 return; 9796 return;
9779 } 9797 }
9780 node1 = V8Node::toImpl(v8::Handle<v8::Object>::Cast(info[0])); 9798 node1 = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]);
9781 if (info.Length() > 1 && !V8Node::hasInstance(info[1], info.GetIsolate() )) { 9799 if (info.Length() > 1 && !V8Node::hasInstance(info[1], info.GetIsolate() )) {
9782 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArg", "TestObject", "paramete r 2 is not of type 'Node'."), info.GetIsolate()); 9800 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArg", "TestObject", "paramete r 2 is not of type 'Node'."), info.GetIsolate());
9783 return; 9801 return;
9784 } 9802 }
9785 node2 = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[1]); 9803 node2 = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[1]);
9786 } 9804 }
9787 impl->useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArg(node1, node2); 9805 impl->useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArg(node1, node2);
9788 } 9806 }
9789 9807
9790 static void useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArgMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info) 9808 static void useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArgMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info)
9791 { 9809 {
9792 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9810 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9793 TestObjectV8Internal::useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArgM ethod(info); 9811 TestObjectV8Internal::useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArgM ethod(info);
9794 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9812 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9795 } 9813 }
9796 9814
9815 static void typeCheckingMaybeRedundantForOverloadingMethodsA1Method(const v8::Fu nctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
9816 {
9817 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin gMaybeRedundantForOverloadingMethodsA", "TestObject", info.Holder(), info.GetIso late());
9818 TestObject* impl = V8TestObject::toImpl(info.Holder());
9819 Node* a;
9820 int b;
9821 {
9822 if (info.Length() > 0 && !V8Node::hasInstance(info[0], info.GetIsolate() )) {
Jens Widell 2014/10/14 12:13:44 In the context of this CL, please ignore this hasI
9823 exceptionState.throwTypeError("parameter 1 is not of type 'Node'.");
9824 exceptionState.throwIfNeeded();
9825 return;
9826 }
9827 if (type_checked_argument_index == 0)
9828 a = V8Node::toImpl(v8::Handle<v8::Object>::Cast(info[0]));
9829 else
9830 a = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]);
9831 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(b, toInt32(info[1], exceptionState ), exceptionState);
9832 }
9833 impl->typeCheckingMaybeRedundantForOverloadingMethodsA(a, b);
9834 }
9835
9836 static void typeCheckingMaybeRedundantForOverloadingMethodsA2Method(const v8::Fu nctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
9837 {
9838 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin gMaybeRedundantForOverloadingMethodsA", "TestObject", info.Holder(), info.GetIso late());
9839 TestObject* impl = V8TestObject::toImpl(info.Holder());
9840 int a;
9841 int b;
9842 {
9843 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(a, toInt32(info[0], exceptionState ), exceptionState);
9844 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(b, toInt32(info[1], exceptionState ), exceptionState);
9845 }
9846 impl->typeCheckingMaybeRedundantForOverloadingMethodsA(a, b);
9847 }
9848
9849 static void typeCheckingMaybeRedundantForOverloadingMethodsAMethod(const v8::Fun ctionCallbackInfo<v8::Value>& info)
9850 {
9851 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin gMaybeRedundantForOverloadingMethodsA", "TestObject", info.Holder(), info.GetIso late());
9852 switch (std::min(2, info.Length())) {
9853 case 2:
9854 if (V8Node::hasInstance(info[0], info.GetIsolate())) {
9855 typeCheckingMaybeRedundantForOverloadingMethodsA1Method(info, 0);
9856 return;
9857 }
9858 if (true) {
9859 typeCheckingMaybeRedundantForOverloadingMethodsA2Method(info, -1);
9860 return;
9861 }
9862 break;
9863 default:
9864 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i nfo.Length()));
9865 exceptionState.throwIfNeeded();
9866 return;
9867 }
9868 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
9869 exceptionState.throwIfNeeded();
9870 }
9871
9872 static void typeCheckingMaybeRedundantForOverloadingMethodsAMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
9873 {
9874 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9875 TestObjectV8Internal::typeCheckingMaybeRedundantForOverloadingMethodsAMethod (info);
9876 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9877 }
9878
9879 static void typeCheckingMaybeRedundantForOverloadingMethodsB1Method(const v8::Fu nctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
9880 {
9881 TestObject* impl = V8TestObject::toImpl(info.Holder());
9882 Node* a;
9883 {
9884 if (info.Length() > 0 && !V8Node::hasInstance(info[0], info.GetIsolate() )) {
9885 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "typeCheckingMaybeRedundantForOverloadingMethodsB", "TestObject", "parameter 1 i s not of type 'Node'."), info.GetIsolate());
9886 return;
9887 }
9888 a = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]);
9889 }
9890 impl->typeCheckingMaybeRedundantForOverloadingMethodsB(a);
9891 }
9892
9893 static void typeCheckingMaybeRedundantForOverloadingMethodsB2Method(const v8::Fu nctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
9894 {
9895 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin gMaybeRedundantForOverloadingMethodsB", "TestObject", info.Holder(), info.GetIso late());
9896 TestObject* impl = V8TestObject::toImpl(info.Holder());
9897 int a;
9898 int b;
9899 {
9900 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(a, toInt32(info[0], exceptionState ), exceptionState);
9901 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(b, toInt32(info[1], exceptionState ), exceptionState);
9902 }
9903 impl->typeCheckingMaybeRedundantForOverloadingMethodsB(a, b);
9904 }
9905
9906 static void typeCheckingMaybeRedundantForOverloadingMethodsBMethod(const v8::Fun ctionCallbackInfo<v8::Value>& info)
9907 {
9908 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin gMaybeRedundantForOverloadingMethodsB", "TestObject", info.Holder(), info.GetIso late());
9909 switch (std::min(2, info.Length())) {
9910 case 1:
9911 if (true) {
9912 typeCheckingMaybeRedundantForOverloadingMethodsB1Method(info, -1);
9913 return;
9914 }
9915 break;
9916 case 2:
9917 if (true) {
9918 typeCheckingMaybeRedundantForOverloadingMethodsB2Method(info, -1);
9919 return;
9920 }
9921 break;
9922 default:
9923 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
9924 exceptionState.throwIfNeeded();
9925 return;
9926 }
9927 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
9928 exceptionState.throwIfNeeded();
9929 }
9930
9931 static void typeCheckingMaybeRedundantForOverloadingMethodsBMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
9932 {
9933 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9934 TestObjectV8Internal::typeCheckingMaybeRedundantForOverloadingMethodsBMethod (info);
9935 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9936 }
9937
9938 static void typeCheckingMaybeRedundantForOverloadingMethodsC1Method(const v8::Fu nctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
9939 {
9940 TestObject* impl = V8TestObject::toImpl(info.Holder());
9941 Node* a;
9942 {
9943 if (info.Length() > 0 && !V8Node::hasInstance(info[0], info.GetIsolate() )) {
9944 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "typeCheckingMaybeRedundantForOverloadingMethodsC", "TestObject", "parameter 1 i s not of type 'Node'."), info.GetIsolate());
9945 return;
9946 }
9947 if (type_checked_argument_index == 0)
9948 a = V8Node::toImpl(v8::Handle<v8::Object>::Cast(info[0]));
9949 else
9950 a = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]);
9951 }
9952 impl->typeCheckingMaybeRedundantForOverloadingMethodsC(a);
9953 }
9954
9955 static void typeCheckingMaybeRedundantForOverloadingMethodsC2Method(const v8::Fu nctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
9956 {
9957 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin gMaybeRedundantForOverloadingMethodsC", "TestObject", info.Holder(), info.GetIso late());
9958 TestObject* impl = V8TestObject::toImpl(info.Holder());
9959 int a;
9960 int b;
9961 {
9962 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(a, toInt32(info[0], exceptionState ), exceptionState);
9963 if (UNLIKELY(info.Length() <= 1)) {
9964 impl->typeCheckingMaybeRedundantForOverloadingMethodsC(a);
9965 return;
9966 }
9967 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(b, toInt32(info[1], exceptionState ), exceptionState);
9968 }
9969 impl->typeCheckingMaybeRedundantForOverloadingMethodsC(a, b);
9970 }
9971
9972 static void typeCheckingMaybeRedundantForOverloadingMethodsCMethod(const v8::Fun ctionCallbackInfo<v8::Value>& info)
9973 {
9974 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin gMaybeRedundantForOverloadingMethodsC", "TestObject", info.Holder(), info.GetIso late());
9975 switch (std::min(2, info.Length())) {
9976 case 1:
9977 if (V8Node::hasInstance(info[0], info.GetIsolate())) {
9978 typeCheckingMaybeRedundantForOverloadingMethodsC1Method(info, 0);
9979 return;
9980 }
9981 if (true) {
9982 typeCheckingMaybeRedundantForOverloadingMethodsC2Method(info, -1);
9983 return;
9984 }
9985 break;
9986 case 2:
9987 if (true) {
9988 typeCheckingMaybeRedundantForOverloadingMethodsC2Method(info, -1);
9989 return;
9990 }
9991 break;
9992 default:
9993 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
9994 exceptionState.throwIfNeeded();
9995 return;
9996 }
9997 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
9998 exceptionState.throwIfNeeded();
9999 }
10000
10001 static void typeCheckingMaybeRedundantForOverloadingMethodsCMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
10002 {
10003 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
10004 TestObjectV8Internal::typeCheckingMaybeRedundantForOverloadingMethodsCMethod (info);
10005 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
10006 }
10007
10008 static void typeCheckingMaybeRedundantForOverloadingMethodsD1Method(const v8::Fu nctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
10009 {
10010 TestObject* impl = V8TestObject::toImpl(info.Holder());
10011 Node* a;
10012 Node* b;
10013 {
10014 if (info.Length() > 0 && !V8Node::hasInstance(info[0], info.GetIsolate() )) {
10015 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "typeCheckingMaybeRedundantForOverloadingMethodsD", "TestObject", "parameter 1 i s not of type 'Node'."), info.GetIsolate());
10016 return;
10017 }
10018 a = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]);
10019 if (info.Length() > 1 && !V8Node::hasInstance(info[1], info.GetIsolate() )) {
10020 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "typeCheckingMaybeRedundantForOverloadingMethodsD", "TestObject", "parameter 2 i s not of type 'Node'."), info.GetIsolate());
10021 return;
10022 }
10023 if (type_checked_argument_index == 1)
10024 b = V8Node::toImpl(v8::Handle<v8::Object>::Cast(info[1]));
10025 else
10026 b = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[1]);
10027 }
10028 impl->typeCheckingMaybeRedundantForOverloadingMethodsD(a, b);
10029 }
10030
10031 static void typeCheckingMaybeRedundantForOverloadingMethodsD2Method(const v8::Fu nctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
10032 {
10033 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin gMaybeRedundantForOverloadingMethodsD", "TestObject", info.Holder(), info.GetIso late());
10034 TestObject* impl = V8TestObject::toImpl(info.Holder());
10035 Node* a;
10036 int b;
10037 {
10038 if (info.Length() > 0 && !V8Node::hasInstance(info[0], info.GetIsolate() )) {
10039 exceptionState.throwTypeError("parameter 1 is not of type 'Node'.");
10040 exceptionState.throwIfNeeded();
10041 return;
10042 }
10043 a = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]);
10044 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(b, toInt32(info[1], exceptionState ), exceptionState);
10045 }
10046 impl->typeCheckingMaybeRedundantForOverloadingMethodsD(a, b);
10047 }
10048
10049 static void typeCheckingMaybeRedundantForOverloadingMethodsDMethod(const v8::Fun ctionCallbackInfo<v8::Value>& info)
10050 {
10051 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin gMaybeRedundantForOverloadingMethodsD", "TestObject", info.Holder(), info.GetIso late());
10052 switch (std::min(2, info.Length())) {
10053 case 2:
10054 if (V8Node::hasInstance(info[1], info.GetIsolate())) {
10055 typeCheckingMaybeRedundantForOverloadingMethodsD1Method(info, 1);
10056 return;
10057 }
10058 if (true) {
10059 typeCheckingMaybeRedundantForOverloadingMethodsD2Method(info, -1);
10060 return;
10061 }
10062 break;
10063 default:
10064 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i nfo.Length()));
10065 exceptionState.throwIfNeeded();
10066 return;
10067 }
10068 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
10069 exceptionState.throwIfNeeded();
10070 }
10071
10072 static void typeCheckingMaybeRedundantForOverloadingMethodsDMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
10073 {
10074 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
10075 TestObjectV8Internal::typeCheckingMaybeRedundantForOverloadingMethodsDMethod (info);
10076 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
10077 }
10078
10079 static void typeCheckingMaybeRedundantForOverloadingMethodsE1Method(const v8::Fu nctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
10080 {
10081 TestObject* impl = V8TestObject::toImpl(info.Holder());
10082 Node* a;
10083 Node* b;
10084 {
10085 if (info.Length() > 0 && !V8Node::hasInstance(info[0], info.GetIsolate() )) {
10086 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "typeCheckingMaybeRedundantForOverloadingMethodsE", "TestObject", "parameter 1 i s not of type 'Node'."), info.GetIsolate());
10087 return;
10088 }
10089 a = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]);
10090 if (info.Length() > 1 && !V8Node::hasInstance(info[1], info.GetIsolate() )) {
10091 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "typeCheckingMaybeRedundantForOverloadingMethodsE", "TestObject", "parameter 2 i s not of type 'Node'."), info.GetIsolate());
10092 return;
10093 }
10094 if (type_checked_argument_index == 1)
10095 b = V8Node::toImpl(v8::Handle<v8::Object>::Cast(info[1]));
10096 else
10097 b = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[1]);
10098 }
10099 impl->typeCheckingMaybeRedundantForOverloadingMethodsE(a, b);
10100 }
10101
10102 static void typeCheckingMaybeRedundantForOverloadingMethodsE2Method(const v8::Fu nctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
10103 {
10104 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin gMaybeRedundantForOverloadingMethodsE", "TestObject", info.Holder(), info.GetIso late());
10105 TestObject* impl = V8TestObject::toImpl(info.Holder());
10106 Node* a;
10107 int b;
10108 {
10109 if (info.Length() > 0 && !V8Node::hasInstance(info[0], info.GetIsolate() )) {
10110 exceptionState.throwTypeError("parameter 1 is not of type 'Node'.");
10111 exceptionState.throwIfNeeded();
10112 return;
10113 }
10114 a = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]);
10115 if (UNLIKELY(info.Length() <= 1)) {
10116 impl->typeCheckingMaybeRedundantForOverloadingMethodsE(a);
10117 return;
10118 }
10119 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(b, toInt32(info[1], exceptionState ), exceptionState);
10120 }
10121 impl->typeCheckingMaybeRedundantForOverloadingMethodsE(a, b);
10122 }
10123
10124 static void typeCheckingMaybeRedundantForOverloadingMethodsEMethod(const v8::Fun ctionCallbackInfo<v8::Value>& info)
10125 {
10126 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin gMaybeRedundantForOverloadingMethodsE", "TestObject", info.Holder(), info.GetIso late());
10127 switch (std::min(2, info.Length())) {
10128 case 1:
10129 if (true) {
10130 typeCheckingMaybeRedundantForOverloadingMethodsE2Method(info, -1);
10131 return;
10132 }
10133 break;
10134 case 2:
10135 if (info[1]->IsUndefined()) {
10136 typeCheckingMaybeRedundantForOverloadingMethodsE2Method(info, -1);
10137 return;
10138 }
10139 if (V8Node::hasInstance(info[1], info.GetIsolate())) {
10140 typeCheckingMaybeRedundantForOverloadingMethodsE1Method(info, 1);
10141 return;
10142 }
10143 if (true) {
10144 typeCheckingMaybeRedundantForOverloadingMethodsE2Method(info, -1);
10145 return;
10146 }
10147 break;
10148 default:
10149 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
10150 exceptionState.throwIfNeeded();
10151 return;
10152 }
10153 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
10154 exceptionState.throwIfNeeded();
10155 }
10156
10157 static void typeCheckingMaybeRedundantForOverloadingMethodsEMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
10158 {
10159 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
10160 TestObjectV8Internal::typeCheckingMaybeRedundantForOverloadingMethodsEMethod (info);
10161 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
10162 }
10163
10164 static void typeCheckingMaybeRedundantForOverloadingMethodsF1Method(const v8::Fu nctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
10165 {
10166 TestObject* impl = V8TestObject::toImpl(info.Holder());
10167 Node* a;
10168 {
10169 if (UNLIKELY(info.Length() <= 0)) {
10170 impl->typeCheckingMaybeRedundantForOverloadingMethodsF();
10171 return;
10172 }
10173 if (info.Length() > 0 && !V8Node::hasInstance(info[0], info.GetIsolate() )) {
10174 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "typeCheckingMaybeRedundantForOverloadingMethodsF", "TestObject", "parameter 1 i s not of type 'Node'."), info.GetIsolate());
10175 return;
10176 }
10177 if (type_checked_argument_index == 0)
10178 a = V8Node::toImpl(v8::Handle<v8::Object>::Cast(info[0]));
10179 else
10180 a = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]);
10181 }
10182 impl->typeCheckingMaybeRedundantForOverloadingMethodsF(a);
10183 }
10184
10185 static void typeCheckingMaybeRedundantForOverloadingMethodsF2Method(const v8::Fu nctionCallbackInfo<v8::Value>& info, int type_checked_argument_index)
10186 {
10187 TestObject* impl = V8TestObject::toImpl(info.Holder());
10188 Document* a;
10189 Node* b;
10190 {
10191 if (info.Length() > 0 && !V8Document::hasInstance(info[0], info.GetIsola te())) {
10192 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "typeCheckingMaybeRedundantForOverloadingMethodsF", "TestObject", "parameter 1 i s not of type 'Document'."), info.GetIsolate());
10193 return;
10194 }
10195 if (type_checked_argument_index == 0)
10196 a = V8Document::toImpl(v8::Handle<v8::Object>::Cast(info[0]));
10197 else
10198 a = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]);
10199 if (UNLIKELY(info.Length() <= 1)) {
10200 impl->typeCheckingMaybeRedundantForOverloadingMethodsF(a);
10201 return;
10202 }
10203 if (info.Length() > 1 && !V8Node::hasInstance(info[1], info.GetIsolate() )) {
10204 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "typeCheckingMaybeRedundantForOverloadingMethodsF", "TestObject", "parameter 2 i s not of type 'Node'."), info.GetIsolate());
10205 return;
10206 }
10207 b = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[1]);
10208 }
10209 impl->typeCheckingMaybeRedundantForOverloadingMethodsF(a, b);
10210 }
10211
10212 static void typeCheckingMaybeRedundantForOverloadingMethodsFMethod(const v8::Fun ctionCallbackInfo<v8::Value>& info)
10213 {
10214 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin gMaybeRedundantForOverloadingMethodsF", "TestObject", info.Holder(), info.GetIso late());
10215 switch (std::min(2, info.Length())) {
10216 case 0:
10217 if (true) {
10218 typeCheckingMaybeRedundantForOverloadingMethodsF1Method(info, -1);
10219 return;
10220 }
10221 break;
10222 case 1:
10223 if (info[0]->IsUndefined()) {
10224 typeCheckingMaybeRedundantForOverloadingMethodsF1Method(info, -1);
10225 return;
10226 }
10227 if (V8Node::hasInstance(info[0], info.GetIsolate())) {
10228 typeCheckingMaybeRedundantForOverloadingMethodsF1Method(info, 0);
10229 return;
10230 }
10231 if (V8Document::hasInstance(info[0], info.GetIsolate())) {
10232 typeCheckingMaybeRedundantForOverloadingMethodsF2Method(info, 0);
10233 return;
10234 }
10235 break;
10236 case 2:
10237 if (true) {
10238 typeCheckingMaybeRedundantForOverloadingMethodsF2Method(info, -1);
10239 return;
10240 }
10241 break;
10242 default:
10243 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length()));
10244 exceptionState.throwIfNeeded();
10245 return;
10246 }
10247 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
10248 exceptionState.throwIfNeeded();
10249 }
10250
10251 static void typeCheckingMaybeRedundantForOverloadingMethodsFMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
10252 {
10253 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
10254 TestObjectV8Internal::typeCheckingMaybeRedundantForOverloadingMethodsFMethod (info);
10255 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
10256 }
10257
9797 static void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethod(const v8:: FunctionCallbackInfo<v8::Value>& info) 10258 static void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethod(const v8:: FunctionCallbackInfo<v8::Value>& info)
9798 { 10259 {
9799 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin gUnrestrictedVoidMethodFloatArgDoubleArg", "TestObject", info.Holder(), info.Get Isolate()); 10260 ExceptionState exceptionState(ExceptionState::ExecutionContext, "typeCheckin gUnrestrictedVoidMethodFloatArgDoubleArg", "TestObject", info.Holder(), info.Get Isolate());
9800 if (UNLIKELY(info.Length() < 2)) { 10261 if (UNLIKELY(info.Length() < 2)) {
9801 setMinimumArityTypeError(exceptionState, 2, info.Length()); 10262 setMinimumArityTypeError(exceptionState, 2, info.Length());
9802 exceptionState.throwIfNeeded(); 10263 exceptionState.throwIfNeeded();
9803 return; 10264 return;
9804 } 10265 }
9805 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10266 TestObject* impl = V8TestObject::toImpl(info.Holder());
9806 float floatArg; 10267 float floatArg;
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
10465 {"treatReturnedNullStringAsUndefinedStringMethod", TestObjectV8Internal::tre atReturnedNullStringAsUndefinedStringMethodMethodCallback, 0, 0, V8DOMConfigurat ion::ExposedToAllScripts}, 10926 {"treatReturnedNullStringAsUndefinedStringMethod", TestObjectV8Internal::tre atReturnedNullStringAsUndefinedStringMethodMethodCallback, 0, 0, V8DOMConfigurat ion::ExposedToAllScripts},
10466 {"treatReturnedNullStringAsNullByteStringMethod", TestObjectV8Internal::trea tReturnedNullStringAsNullByteStringMethodMethodCallback, 0, 0, V8DOMConfiguratio n::ExposedToAllScripts}, 10927 {"treatReturnedNullStringAsNullByteStringMethod", TestObjectV8Internal::trea tReturnedNullStringAsNullByteStringMethodMethodCallback, 0, 0, V8DOMConfiguratio n::ExposedToAllScripts},
10467 {"treatReturnedNullStringAsUndefinedByteStringMethod", TestObjectV8Internal: :treatReturnedNullStringAsUndefinedByteStringMethodMethodCallback, 0, 0, V8DOMCo nfiguration::ExposedToAllScripts}, 10928 {"treatReturnedNullStringAsUndefinedByteStringMethod", TestObjectV8Internal: :treatReturnedNullStringAsUndefinedByteStringMethodMethodCallback, 0, 0, V8DOMCo nfiguration::ExposedToAllScripts},
10468 {"treatReturnedNullStringAsNullScalarValueStringMethod", TestObjectV8Interna l::treatReturnedNullStringAsNullScalarValueStringMethodMethodCallback, 0, 0, V8D OMConfiguration::ExposedToAllScripts}, 10929 {"treatReturnedNullStringAsNullScalarValueStringMethod", TestObjectV8Interna l::treatReturnedNullStringAsNullScalarValueStringMethodMethodCallback, 0, 0, V8D OMConfiguration::ExposedToAllScripts},
10469 {"treatReturnedNullStringAsUndefinedScalarValueStringMethod", TestObjectV8In ternal::treatReturnedNullStringAsUndefinedScalarValueStringMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 10930 {"treatReturnedNullStringAsUndefinedScalarValueStringMethod", TestObjectV8In ternal::treatReturnedNullStringAsUndefinedScalarValueStringMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
10470 {"typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg", TestObjectV8Interna l::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback, 0, 1, V8D OMConfiguration::ExposedToAllScripts}, 10931 {"typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg", TestObjectV8Interna l::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback, 0, 1, V8D OMConfiguration::ExposedToAllScripts},
10471 {"typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArg", TestObjectV 8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArgMethodCal lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 10932 {"typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArg", TestObjectV 8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArgMethodCal lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
10472 {"useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg", TestObjectV8Interna l::useToImpl4ArgumentsCheckingIfPossibleWithOptionalArgMethodCallback, 0, 1, V8D OMConfiguration::ExposedToAllScripts}, 10933 {"useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg", TestObjectV8Interna l::useToImpl4ArgumentsCheckingIfPossibleWithOptionalArgMethodCallback, 0, 1, V8D OMConfiguration::ExposedToAllScripts},
10473 {"useToImpl4ArgumentsCheckingIfPossibleWithNullableArg", TestObjectV8Interna l::useToImpl4ArgumentsCheckingIfPossibleWithNullableArgMethodCallback, 0, 2, V8D OMConfiguration::ExposedToAllScripts}, 10934 {"useToImpl4ArgumentsCheckingIfPossibleWithNullableArg", TestObjectV8Interna l::useToImpl4ArgumentsCheckingIfPossibleWithNullableArgMethodCallback, 0, 2, V8D OMConfiguration::ExposedToAllScripts},
10474 {"useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArg", TestObjectV8Intern al::useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArgMethodCallback, 0, 1, V 8DOMConfiguration::ExposedToAllScripts}, 10935 {"useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArg", TestObjectV8Intern al::useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArgMethodCallback, 0, 1, V 8DOMConfiguration::ExposedToAllScripts},
10936 {"typeCheckingMaybeRedundantForOverloadingMethodsA", TestObjectV8Internal::t ypeCheckingMaybeRedundantForOverloadingMethodsAMethodCallback, 0, 2, V8DOMConfig uration::ExposedToAllScripts},
10937 {"typeCheckingMaybeRedundantForOverloadingMethodsB", TestObjectV8Internal::t ypeCheckingMaybeRedundantForOverloadingMethodsBMethodCallback, 0, 1, V8DOMConfig uration::ExposedToAllScripts},
10938 {"typeCheckingMaybeRedundantForOverloadingMethodsC", TestObjectV8Internal::t ypeCheckingMaybeRedundantForOverloadingMethodsCMethodCallback, 0, 1, V8DOMConfig uration::ExposedToAllScripts},
10939 {"typeCheckingMaybeRedundantForOverloadingMethodsD", TestObjectV8Internal::t ypeCheckingMaybeRedundantForOverloadingMethodsDMethodCallback, 0, 2, V8DOMConfig uration::ExposedToAllScripts},
10940 {"typeCheckingMaybeRedundantForOverloadingMethodsE", TestObjectV8Internal::t ypeCheckingMaybeRedundantForOverloadingMethodsEMethodCallback, 0, 1, V8DOMConfig uration::ExposedToAllScripts},
10941 {"typeCheckingMaybeRedundantForOverloadingMethodsF", TestObjectV8Internal::t ypeCheckingMaybeRedundantForOverloadingMethodsFMethodCallback, 0, 0, V8DOMConfig uration::ExposedToAllScripts},
10475 {"typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg", TestObjectV8Internal ::typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethodCallback, 0, 2, V8DOM Configuration::ExposedToAllScripts}, 10942 {"typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg", TestObjectV8Internal ::typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethodCallback, 0, 2, V8DOM Configuration::ExposedToAllScripts},
10476 {"voidMethodTestInterfaceGarbageCollectedSequenceArg", TestObjectV8Internal: :voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback, 0, 1, V8DOMCo nfiguration::ExposedToAllScripts}, 10943 {"voidMethodTestInterfaceGarbageCollectedSequenceArg", TestObjectV8Internal: :voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback, 0, 1, V8DOMCo nfiguration::ExposedToAllScripts},
10477 {"voidMethodTestInterfaceGarbageCollectedArrayArg", TestObjectV8Internal::vo idMethodTestInterfaceGarbageCollectedArrayArgMethodCallback, 0, 1, V8DOMConfigur ation::ExposedToAllScripts}, 10944 {"voidMethodTestInterfaceGarbageCollectedArrayArg", TestObjectV8Internal::vo idMethodTestInterfaceGarbageCollectedArrayArgMethodCallback, 0, 1, V8DOMConfigur ation::ExposedToAllScripts},
10478 {"voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg", TestObjectV8Int ernal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallback, 0 , 1, V8DOMConfiguration::ExposedToAllScripts}, 10945 {"voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg", TestObjectV8Int ernal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallback, 0 , 1, V8DOMConfiguration::ExposedToAllScripts},
10479 {"voidMethodTestInterfaceWillBeGarbageCollectedArrayArg", TestObjectV8Intern al::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback, 0, 1, V 8DOMConfiguration::ExposedToAllScripts}, 10946 {"voidMethodTestInterfaceWillBeGarbageCollectedArrayArg", TestObjectV8Intern al::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback, 0, 1, V 8DOMConfiguration::ExposedToAllScripts},
10480 {"voidMethodImplementedInPrivateScript", TestObjectV8Internal::voidMethodImp lementedInPrivateScriptMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScr ipts}, 10947 {"voidMethodImplementedInPrivateScript", TestObjectV8Internal::voidMethodImp lementedInPrivateScriptMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScr ipts},
10481 {"shortMethodImplementedInPrivateScript", TestObjectV8Internal::shortMethodI mplementedInPrivateScriptMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllS cripts}, 10948 {"shortMethodImplementedInPrivateScript", TestObjectV8Internal::shortMethodI mplementedInPrivateScriptMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllS cripts},
10482 {"shortMethodWithShortArgumentImplementedInPrivateScript", TestObjectV8Inter nal::shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 10949 {"shortMethodWithShortArgumentImplementedInPrivateScript", TestObjectV8Inter nal::shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
10483 {"stringMethodWithStringArgumentImplementedInPrivateScript", TestObjectV8Int ernal::stringMethodWithStringArgumentImplementedInPrivateScriptMethodCallback, 0 , 1, V8DOMConfiguration::ExposedToAllScripts}, 10950 {"stringMethodWithStringArgumentImplementedInPrivateScript", TestObjectV8Int ernal::stringMethodWithStringArgumentImplementedInPrivateScriptMethodCallback, 0 , 1, V8DOMConfiguration::ExposedToAllScripts},
10484 {"nodeMethodWithNodeArgumentImplementedInPrivateScript", TestObjectV8Interna l::nodeMethodWithNodeArgumentImplementedInPrivateScriptMethodCallback, 0, 1, V8D OMConfiguration::ExposedToAllScripts}, 10951 {"nodeMethodWithNodeArgumentImplementedInPrivateScript", TestObjectV8Interna l::nodeMethodWithNodeArgumentImplementedInPrivateScriptMethodCallback, 0, 1, V8D OMConfiguration::ExposedToAllScripts},
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
11151 return false; 11618 return false;
11152 11619
11153 ScriptState::Scope scope(scriptState); 11620 ScriptState::Scope scope(scriptState);
11154 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 11621 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate());
11155 11622
11156 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 11623 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
11157 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 11624 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
11158 } 11625 }
11159 11626
11160 } // namespace blink 11627 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698