| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
| 6 | 6 |
| 7 #include "config.h" | 7 #include "config.h" |
| 8 #include "V8TestObject.h" | 8 #include "V8TestObject.h" |
| 9 | 9 |
| 10 #include "HTMLNames.h" | 10 #include "HTMLNames.h" |
| (...skipping 6372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6383 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6383 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6384 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg1, toInt32(info[0], exceptionState)
, exceptionState); | 6384 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg1, toInt32(info[0], exceptionState)
, exceptionState); |
| 6385 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg2, toInt32(info[1], exceptionState)
, exceptionState); | 6385 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg2, toInt32(info[1], exceptionState)
, exceptionState); |
| 6386 impl->overloadedMethodA(longArg1, longArg2); | 6386 impl->overloadedMethodA(longArg1, longArg2); |
| 6387 } | 6387 } |
| 6388 | 6388 |
| 6389 static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 6389 static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 6390 { | 6390 { |
| 6391 v8::Isolate* isolate = info.GetIsolate(); | 6391 v8::Isolate* isolate = info.GetIsolate(); |
| 6392 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), isolate); | 6392 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), isolate); |
| 6393 switch (info.Length()) { | 6393 switch (std::min(2, info.Length())) { |
| 6394 case 1: | 6394 case 1: |
| 6395 if (true) { | 6395 if (true) { |
| 6396 overloadedMethodA1Method(info); | 6396 overloadedMethodA1Method(info); |
| 6397 return; | 6397 return; |
| 6398 } | 6398 } |
| 6399 break; | 6399 break; |
| 6400 case 2: | 6400 case 2: |
| 6401 if (true) { | 6401 if (true) { |
| 6402 overloadedMethodA2Method(info); | 6402 overloadedMethodA2Method(info); |
| 6403 return; | 6403 return; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6437 return; | 6437 return; |
| 6438 } | 6438 } |
| 6439 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[1], exceptionState),
exceptionState); | 6439 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[1], exceptionState),
exceptionState); |
| 6440 impl->overloadedMethodB(stringArg, longArg); | 6440 impl->overloadedMethodB(stringArg, longArg); |
| 6441 } | 6441 } |
| 6442 | 6442 |
| 6443 static void overloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 6443 static void overloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 6444 { | 6444 { |
| 6445 v8::Isolate* isolate = info.GetIsolate(); | 6445 v8::Isolate* isolate = info.GetIsolate(); |
| 6446 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), isolate); | 6446 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), isolate); |
| 6447 switch (info.Length()) { | 6447 switch (std::min(2, info.Length())) { |
| 6448 case 1: | 6448 case 1: |
| 6449 if (info[0]->IsNumber()) { | 6449 if (info[0]->IsNumber()) { |
| 6450 overloadedMethodB1Method(info); | 6450 overloadedMethodB1Method(info); |
| 6451 return; | 6451 return; |
| 6452 } | 6452 } |
| 6453 if (true) { | 6453 if (true) { |
| 6454 overloadedMethodB2Method(info); | 6454 overloadedMethodB2Method(info); |
| 6455 return; | 6455 return; |
| 6456 } | 6456 } |
| 6457 break; | 6457 break; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6489 { | 6489 { |
| 6490 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6490 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6491 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 6491 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
| 6492 impl->overloadedMethodC(testInterfaceEmptyArg); | 6492 impl->overloadedMethodC(testInterfaceEmptyArg); |
| 6493 } | 6493 } |
| 6494 | 6494 |
| 6495 static void overloadedMethodCMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 6495 static void overloadedMethodCMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 6496 { | 6496 { |
| 6497 v8::Isolate* isolate = info.GetIsolate(); | 6497 v8::Isolate* isolate = info.GetIsolate(); |
| 6498 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodC", "TestObject", info.Holder(), isolate); | 6498 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodC", "TestObject", info.Holder(), isolate); |
| 6499 switch (info.Length()) { | 6499 switch (std::min(1, info.Length())) { |
| 6500 case 1: | 6500 case 1: |
| 6501 if (V8TestInterfaceEmpty::hasInstance(info[0], isolate)) { | 6501 if (V8TestInterfaceEmpty::hasInstance(info[0], isolate)) { |
| 6502 overloadedMethodC2Method(info); | 6502 overloadedMethodC2Method(info); |
| 6503 return; | 6503 return; |
| 6504 } | 6504 } |
| 6505 if (true) { | 6505 if (true) { |
| 6506 overloadedMethodC1Method(info); | 6506 overloadedMethodC1Method(info); |
| 6507 return; | 6507 return; |
| 6508 } | 6508 } |
| 6509 break; | 6509 break; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 6535 { | 6535 { |
| 6536 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6536 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6537 TONATIVE_VOID(Vector<int>, longArrayArg, toNativeArray<int>(info[0], 1, info
.GetIsolate())); | 6537 TONATIVE_VOID(Vector<int>, longArrayArg, toNativeArray<int>(info[0], 1, info
.GetIsolate())); |
| 6538 impl->overloadedMethodD(longArrayArg); | 6538 impl->overloadedMethodD(longArrayArg); |
| 6539 } | 6539 } |
| 6540 | 6540 |
| 6541 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 6541 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 6542 { | 6542 { |
| 6543 v8::Isolate* isolate = info.GetIsolate(); | 6543 v8::Isolate* isolate = info.GetIsolate(); |
| 6544 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObject", info.Holder(), isolate); | 6544 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObject", info.Holder(), isolate); |
| 6545 switch (info.Length()) { | 6545 switch (std::min(1, info.Length())) { |
| 6546 case 1: | 6546 case 1: |
| 6547 if (info[0]->IsArray()) { | 6547 if (info[0]->IsArray()) { |
| 6548 overloadedMethodD2Method(info); | 6548 overloadedMethodD2Method(info); |
| 6549 return; | 6549 return; |
| 6550 } | 6550 } |
| 6551 if (true) { | 6551 if (true) { |
| 6552 overloadedMethodD1Method(info); | 6552 overloadedMethodD1Method(info); |
| 6553 return; | 6553 return; |
| 6554 } | 6554 } |
| 6555 break; | 6555 break; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 6581 { | 6581 { |
| 6582 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6582 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6583 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyOrNullArg, V8TestInterf
aceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 6583 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyOrNullArg, V8TestInterf
aceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
| 6584 impl->overloadedMethodE(testInterfaceEmptyOrNullArg); | 6584 impl->overloadedMethodE(testInterfaceEmptyOrNullArg); |
| 6585 } | 6585 } |
| 6586 | 6586 |
| 6587 static void overloadedMethodEMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 6587 static void overloadedMethodEMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 6588 { | 6588 { |
| 6589 v8::Isolate* isolate = info.GetIsolate(); | 6589 v8::Isolate* isolate = info.GetIsolate(); |
| 6590 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodE", "TestObject", info.Holder(), isolate); | 6590 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodE", "TestObject", info.Holder(), isolate); |
| 6591 switch (info.Length()) { | 6591 switch (std::min(1, info.Length())) { |
| 6592 case 1: | 6592 case 1: |
| 6593 if (isUndefinedOrNull(info[0])) { | 6593 if (isUndefinedOrNull(info[0])) { |
| 6594 overloadedMethodE2Method(info); | 6594 overloadedMethodE2Method(info); |
| 6595 return; | 6595 return; |
| 6596 } | 6596 } |
| 6597 if (V8TestInterfaceEmpty::hasInstance(info[0], isolate)) { | 6597 if (V8TestInterfaceEmpty::hasInstance(info[0], isolate)) { |
| 6598 overloadedMethodE2Method(info); | 6598 overloadedMethodE2Method(info); |
| 6599 return; | 6599 return; |
| 6600 } | 6600 } |
| 6601 if (true) { | 6601 if (true) { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6634 { | 6634 { |
| 6635 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6635 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6636 TONATIVE_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue())
); | 6636 TONATIVE_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue())
); |
| 6637 impl->overloadedMethodF(doubleArg); | 6637 impl->overloadedMethodF(doubleArg); |
| 6638 } | 6638 } |
| 6639 | 6639 |
| 6640 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 6640 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 6641 { | 6641 { |
| 6642 v8::Isolate* isolate = info.GetIsolate(); | 6642 v8::Isolate* isolate = info.GetIsolate(); |
| 6643 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodF", "TestObject", info.Holder(), isolate); | 6643 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodF", "TestObject", info.Holder(), isolate); |
| 6644 switch (info.Length()) { | 6644 switch (std::min(1, info.Length())) { |
| 6645 case 0: | 6645 case 0: |
| 6646 if (true) { | 6646 if (true) { |
| 6647 overloadedMethodF1Method(info); | 6647 overloadedMethodF1Method(info); |
| 6648 return; | 6648 return; |
| 6649 } | 6649 } |
| 6650 break; | 6650 break; |
| 6651 case 1: | 6651 case 1: |
| 6652 if (info[0]->IsUndefined()) { | 6652 if (info[0]->IsUndefined()) { |
| 6653 overloadedMethodF1Method(info); | 6653 overloadedMethodF1Method(info); |
| 6654 return; | 6654 return; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6690 { | 6690 { |
| 6691 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6691 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6692 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyOrNullArg, V8TestInterf
aceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 6692 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyOrNullArg, V8TestInterf
aceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
| 6693 impl->overloadedMethodG(testInterfaceEmptyOrNullArg); | 6693 impl->overloadedMethodG(testInterfaceEmptyOrNullArg); |
| 6694 } | 6694 } |
| 6695 | 6695 |
| 6696 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 6696 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 6697 { | 6697 { |
| 6698 v8::Isolate* isolate = info.GetIsolate(); | 6698 v8::Isolate* isolate = info.GetIsolate(); |
| 6699 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodG", "TestObject", info.Holder(), isolate); | 6699 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodG", "TestObject", info.Holder(), isolate); |
| 6700 switch (info.Length()) { | 6700 switch (std::min(1, info.Length())) { |
| 6701 case 1: | 6701 case 1: |
| 6702 if (isUndefinedOrNull(info[0])) { | 6702 if (isUndefinedOrNull(info[0])) { |
| 6703 overloadedMethodG2Method(info); | 6703 overloadedMethodG2Method(info); |
| 6704 return; | 6704 return; |
| 6705 } | 6705 } |
| 6706 if (V8TestInterfaceEmpty::hasInstance(info[0], isolate)) { | 6706 if (V8TestInterfaceEmpty::hasInstance(info[0], isolate)) { |
| 6707 overloadedMethodG2Method(info); | 6707 overloadedMethodG2Method(info); |
| 6708 return; | 6708 return; |
| 6709 } | 6709 } |
| 6710 if (true) { | 6710 if (true) { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 6739 { | 6739 { |
| 6740 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6740 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6741 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 6741 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
| 6742 impl->overloadedMethodH(testInterfaceEmptyArg); | 6742 impl->overloadedMethodH(testInterfaceEmptyArg); |
| 6743 } | 6743 } |
| 6744 | 6744 |
| 6745 static void overloadedMethodHMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 6745 static void overloadedMethodHMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 6746 { | 6746 { |
| 6747 v8::Isolate* isolate = info.GetIsolate(); | 6747 v8::Isolate* isolate = info.GetIsolate(); |
| 6748 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodH", "TestObject", info.Holder(), isolate); | 6748 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodH", "TestObject", info.Holder(), isolate); |
| 6749 switch (info.Length()) { | 6749 switch (std::min(1, info.Length())) { |
| 6750 case 1: | 6750 case 1: |
| 6751 if (V8TestInterface::hasInstance(info[0], isolate)) { | 6751 if (V8TestInterface::hasInstance(info[0], isolate)) { |
| 6752 overloadedMethodH1Method(info); | 6752 overloadedMethodH1Method(info); |
| 6753 return; | 6753 return; |
| 6754 } | 6754 } |
| 6755 if (V8TestInterfaceEmpty::hasInstance(info[0], isolate)) { | 6755 if (V8TestInterfaceEmpty::hasInstance(info[0], isolate)) { |
| 6756 overloadedMethodH2Method(info); | 6756 overloadedMethodH2Method(info); |
| 6757 return; | 6757 return; |
| 6758 } | 6758 } |
| 6759 break; | 6759 break; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 6784 { | 6784 { |
| 6785 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6785 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6786 TONATIVE_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue())
); | 6786 TONATIVE_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue())
); |
| 6787 impl->overloadedMethodI(doubleArg); | 6787 impl->overloadedMethodI(doubleArg); |
| 6788 } | 6788 } |
| 6789 | 6789 |
| 6790 static void overloadedMethodIMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 6790 static void overloadedMethodIMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 6791 { | 6791 { |
| 6792 v8::Isolate* isolate = info.GetIsolate(); | 6792 v8::Isolate* isolate = info.GetIsolate(); |
| 6793 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodI", "TestObject", info.Holder(), isolate); | 6793 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodI", "TestObject", info.Holder(), isolate); |
| 6794 switch (info.Length()) { | 6794 switch (std::min(1, info.Length())) { |
| 6795 case 1: | 6795 case 1: |
| 6796 if (info[0]->IsNumber()) { | 6796 if (info[0]->IsNumber()) { |
| 6797 overloadedMethodI2Method(info); | 6797 overloadedMethodI2Method(info); |
| 6798 return; | 6798 return; |
| 6799 } | 6799 } |
| 6800 if (true) { | 6800 if (true) { |
| 6801 overloadedMethodI1Method(info); | 6801 overloadedMethodI1Method(info); |
| 6802 return; | 6802 return; |
| 6803 } | 6803 } |
| 6804 break; | 6804 break; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 6835 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); | 6835 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); |
| 6836 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6836 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6837 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState),
exceptionState); | 6837 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState),
exceptionState); |
| 6838 impl->overloadedPerWorldBindingsMethod(longArg); | 6838 impl->overloadedPerWorldBindingsMethod(longArg); |
| 6839 } | 6839 } |
| 6840 | 6840 |
| 6841 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) | 6841 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 6842 { | 6842 { |
| 6843 v8::Isolate* isolate = info.GetIsolate(); | 6843 v8::Isolate* isolate = info.GetIsolate(); |
| 6844 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), isolate); | 6844 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), isolate); |
| 6845 switch (info.Length()) { | 6845 switch (std::min(1, info.Length())) { |
| 6846 case 0: | 6846 case 0: |
| 6847 if (true) { | 6847 if (true) { |
| 6848 overloadedPerWorldBindingsMethod1Method(info); | 6848 overloadedPerWorldBindingsMethod1Method(info); |
| 6849 return; | 6849 return; |
| 6850 } | 6850 } |
| 6851 break; | 6851 break; |
| 6852 case 1: | 6852 case 1: |
| 6853 if (true) { | 6853 if (true) { |
| 6854 overloadedPerWorldBindingsMethod2Method(info); | 6854 overloadedPerWorldBindingsMethod2Method(info); |
| 6855 return; | 6855 return; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 6876 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); | 6876 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); |
| 6877 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6877 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6878 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState),
exceptionState); | 6878 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState),
exceptionState); |
| 6879 impl->overloadedPerWorldBindingsMethod(longArg); | 6879 impl->overloadedPerWorldBindingsMethod(longArg); |
| 6880 } | 6880 } |
| 6881 | 6881 |
| 6882 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio
nCallbackInfo<v8::Value>& info) | 6882 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio
nCallbackInfo<v8::Value>& info) |
| 6883 { | 6883 { |
| 6884 v8::Isolate* isolate = info.GetIsolate(); | 6884 v8::Isolate* isolate = info.GetIsolate(); |
| 6885 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), isolate); | 6885 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), isolate); |
| 6886 switch (info.Length()) { | 6886 switch (std::min(1, info.Length())) { |
| 6887 case 0: | 6887 case 0: |
| 6888 if (true) { | 6888 if (true) { |
| 6889 overloadedPerWorldBindingsMethod1MethodForMainWorld(info); | 6889 overloadedPerWorldBindingsMethod1MethodForMainWorld(info); |
| 6890 return; | 6890 return; |
| 6891 } | 6891 } |
| 6892 break; | 6892 break; |
| 6893 case 1: | 6893 case 1: |
| 6894 if (true) { | 6894 if (true) { |
| 6895 overloadedPerWorldBindingsMethod2MethodForMainWorld(info); | 6895 overloadedPerWorldBindingsMethod2MethodForMainWorld(info); |
| 6896 return; | 6896 return; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 6924 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), info.GetIsolate()); | 6924 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), info.GetIsolate()); |
| 6925 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg1, toInt32(info[0], exceptionState)
, exceptionState); | 6925 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg1, toInt32(info[0], exceptionState)
, exceptionState); |
| 6926 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg2, toInt32(info[1], exceptionState)
, exceptionState); | 6926 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg2, toInt32(info[1], exceptionState)
, exceptionState); |
| 6927 TestObject::overloadedStaticMethod(longArg1, longArg2); | 6927 TestObject::overloadedStaticMethod(longArg1, longArg2); |
| 6928 } | 6928 } |
| 6929 | 6929 |
| 6930 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 6930 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
| 6931 { | 6931 { |
| 6932 v8::Isolate* isolate = info.GetIsolate(); | 6932 v8::Isolate* isolate = info.GetIsolate(); |
| 6933 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), isolate); | 6933 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), isolate); |
| 6934 switch (info.Length()) { | 6934 switch (std::min(2, info.Length())) { |
| 6935 case 1: | 6935 case 1: |
| 6936 if (true) { | 6936 if (true) { |
| 6937 overloadedStaticMethod1Method(info); | 6937 overloadedStaticMethod1Method(info); |
| 6938 return; | 6938 return; |
| 6939 } | 6939 } |
| 6940 break; | 6940 break; |
| 6941 case 2: | 6941 case 2: |
| 6942 if (true) { | 6942 if (true) { |
| 6943 overloadedStaticMethod2Method(info); | 6943 overloadedStaticMethod2Method(info); |
| 6944 return; | 6944 return; |
| (...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7418 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); | 7418 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
| 7419 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7419 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 7420 TONATIVE_VOID_EXCEPTIONSTATE(int, arg, toInt32(info[0], exceptionState), exc
eptionState); | 7420 TONATIVE_VOID_EXCEPTIONSTATE(int, arg, toInt32(info[0], exceptionState), exc
eptionState); |
| 7421 impl->DeprecateAsOverloadedMethod(arg); | 7421 impl->DeprecateAsOverloadedMethod(arg); |
| 7422 } | 7422 } |
| 7423 | 7423 |
| 7424 static void DeprecateAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 7424 static void DeprecateAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 7425 { | 7425 { |
| 7426 v8::Isolate* isolate = info.GetIsolate(); | 7426 v8::Isolate* isolate = info.GetIsolate(); |
| 7427 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
OverloadedMethod", "TestObject", info.Holder(), isolate); | 7427 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
OverloadedMethod", "TestObject", info.Holder(), isolate); |
| 7428 switch (info.Length()) { | 7428 switch (std::min(1, info.Length())) { |
| 7429 case 0: | 7429 case 0: |
| 7430 if (true) { | 7430 if (true) { |
| 7431 UseCounter::countDeprecation(callingExecutionContext(isolate), UseCo
unter::TestFeatureA); | 7431 UseCounter::countDeprecation(callingExecutionContext(isolate), UseCo
unter::TestFeatureA); |
| 7432 DeprecateAsOverloadedMethod1Method(info); | 7432 DeprecateAsOverloadedMethod1Method(info); |
| 7433 return; | 7433 return; |
| 7434 } | 7434 } |
| 7435 break; | 7435 break; |
| 7436 case 1: | 7436 case 1: |
| 7437 if (true) { | 7437 if (true) { |
| 7438 UseCounter::countDeprecation(callingExecutionContext(isolate), UseCo
unter::TestFeatureB); | 7438 UseCounter::countDeprecation(callingExecutionContext(isolate), UseCo
unter::TestFeatureB); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 7468 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7468 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 7469 TONATIVE_VOID_EXCEPTIONSTATE(int, arg, toInt32(info[0], exceptionState), exc
eptionState); | 7469 TONATIVE_VOID_EXCEPTIONSTATE(int, arg, toInt32(info[0], exceptionState), exc
eptionState); |
| 7470 impl->DeprecateAsSameValueOverloadedMethod(arg); | 7470 impl->DeprecateAsSameValueOverloadedMethod(arg); |
| 7471 } | 7471 } |
| 7472 | 7472 |
| 7473 static void DeprecateAsSameValueOverloadedMethodMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 7473 static void DeprecateAsSameValueOverloadedMethodMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
| 7474 { | 7474 { |
| 7475 v8::Isolate* isolate = info.GetIsolate(); | 7475 v8::Isolate* isolate = info.GetIsolate(); |
| 7476 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
SameValueOverloadedMethod", "TestObject", info.Holder(), isolate); | 7476 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
SameValueOverloadedMethod", "TestObject", info.Holder(), isolate); |
| 7477 UseCounter::countDeprecation(callingExecutionContext(isolate), UseCounter::T
estFeature); | 7477 UseCounter::countDeprecation(callingExecutionContext(isolate), UseCounter::T
estFeature); |
| 7478 switch (info.Length()) { | 7478 switch (std::min(1, info.Length())) { |
| 7479 case 0: | 7479 case 0: |
| 7480 if (true) { | 7480 if (true) { |
| 7481 DeprecateAsSameValueOverloadedMethod1Method(info); | 7481 DeprecateAsSameValueOverloadedMethod1Method(info); |
| 7482 return; | 7482 return; |
| 7483 } | 7483 } |
| 7484 break; | 7484 break; |
| 7485 case 1: | 7485 case 1: |
| 7486 if (true) { | 7486 if (true) { |
| 7487 DeprecateAsSameValueOverloadedMethod2Method(info); | 7487 DeprecateAsSameValueOverloadedMethod2Method(info); |
| 7488 return; | 7488 return; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 7515 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv
erloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); | 7515 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv
erloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
| 7516 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7516 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 7517 TONATIVE_VOID_EXCEPTIONSTATE(int, arg, toInt32(info[0], exceptionState), exc
eptionState); | 7517 TONATIVE_VOID_EXCEPTIONSTATE(int, arg, toInt32(info[0], exceptionState), exc
eptionState); |
| 7518 impl->measureAsOverloadedMethod(arg); | 7518 impl->measureAsOverloadedMethod(arg); |
| 7519 } | 7519 } |
| 7520 | 7520 |
| 7521 static void measureAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 7521 static void measureAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 7522 { | 7522 { |
| 7523 v8::Isolate* isolate = info.GetIsolate(); | 7523 v8::Isolate* isolate = info.GetIsolate(); |
| 7524 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv
erloadedMethod", "TestObject", info.Holder(), isolate); | 7524 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv
erloadedMethod", "TestObject", info.Holder(), isolate); |
| 7525 switch (info.Length()) { | 7525 switch (std::min(1, info.Length())) { |
| 7526 case 0: | 7526 case 0: |
| 7527 if (true) { | 7527 if (true) { |
| 7528 UseCounter::count(callingExecutionContext(isolate), UseCounter::Test
FeatureA); | 7528 UseCounter::count(callingExecutionContext(isolate), UseCounter::Test
FeatureA); |
| 7529 measureAsOverloadedMethod1Method(info); | 7529 measureAsOverloadedMethod1Method(info); |
| 7530 return; | 7530 return; |
| 7531 } | 7531 } |
| 7532 break; | 7532 break; |
| 7533 case 1: | 7533 case 1: |
| 7534 if (true) { | 7534 if (true) { |
| 7535 UseCounter::count(callingExecutionContext(isolate), UseCounter::Test
FeatureB); | 7535 UseCounter::count(callingExecutionContext(isolate), UseCounter::Test
FeatureB); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 7565 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7565 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 7566 TONATIVE_VOID_EXCEPTIONSTATE(int, arg, toInt32(info[0], exceptionState), exc
eptionState); | 7566 TONATIVE_VOID_EXCEPTIONSTATE(int, arg, toInt32(info[0], exceptionState), exc
eptionState); |
| 7567 impl->measureAsSameValueOverloadedMethod(arg); | 7567 impl->measureAsSameValueOverloadedMethod(arg); |
| 7568 } | 7568 } |
| 7569 | 7569 |
| 7570 static void measureAsSameValueOverloadedMethodMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 7570 static void measureAsSameValueOverloadedMethodMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 7571 { | 7571 { |
| 7572 v8::Isolate* isolate = info.GetIsolate(); | 7572 v8::Isolate* isolate = info.GetIsolate(); |
| 7573 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa
meValueOverloadedMethod", "TestObject", info.Holder(), isolate); | 7573 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa
meValueOverloadedMethod", "TestObject", info.Holder(), isolate); |
| 7574 UseCounter::count(callingExecutionContext(isolate), UseCounter::TestFeature)
; | 7574 UseCounter::count(callingExecutionContext(isolate), UseCounter::TestFeature)
; |
| 7575 switch (info.Length()) { | 7575 switch (std::min(1, info.Length())) { |
| 7576 case 0: | 7576 case 0: |
| 7577 if (true) { | 7577 if (true) { |
| 7578 measureAsSameValueOverloadedMethod1Method(info); | 7578 measureAsSameValueOverloadedMethod1Method(info); |
| 7579 return; | 7579 return; |
| 7580 } | 7580 } |
| 7581 break; | 7581 break; |
| 7582 case 1: | 7582 case 1: |
| 7583 if (true) { | 7583 if (true) { |
| 7584 measureAsSameValueOverloadedMethod2Method(info); | 7584 measureAsSameValueOverloadedMethod2Method(info); |
| 7585 return; | 7585 return; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 7613 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7613 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 7614 TONATIVE_VOID_EXCEPTIONSTATE(int, arg, toInt32(info[0], exceptionState), exc
eptionState); | 7614 TONATIVE_VOID_EXCEPTIONSTATE(int, arg, toInt32(info[0], exceptionState), exc
eptionState); |
| 7615 impl->deprecateAsMeasureAsSameValueOverloadedMethod(arg); | 7615 impl->deprecateAsMeasureAsSameValueOverloadedMethod(arg); |
| 7616 } | 7616 } |
| 7617 | 7617 |
| 7618 static void deprecateAsMeasureAsSameValueOverloadedMethodMethod(const v8::Functi
onCallbackInfo<v8::Value>& info) | 7618 static void deprecateAsMeasureAsSameValueOverloadedMethodMethod(const v8::Functi
onCallbackInfo<v8::Value>& info) |
| 7619 { | 7619 { |
| 7620 v8::Isolate* isolate = info.GetIsolate(); | 7620 v8::Isolate* isolate = info.GetIsolate(); |
| 7621 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), isolate); | 7621 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), isolate); |
| 7622 UseCounter::count(callingExecutionContext(isolate), UseCounter::TestFeature)
; | 7622 UseCounter::count(callingExecutionContext(isolate), UseCounter::TestFeature)
; |
| 7623 switch (info.Length()) { | 7623 switch (std::min(1, info.Length())) { |
| 7624 case 0: | 7624 case 0: |
| 7625 if (true) { | 7625 if (true) { |
| 7626 UseCounter::countDeprecation(callingExecutionContext(isolate), UseCo
unter::TestFeatureA); | 7626 UseCounter::countDeprecation(callingExecutionContext(isolate), UseCo
unter::TestFeatureA); |
| 7627 deprecateAsMeasureAsSameValueOverloadedMethod1Method(info); | 7627 deprecateAsMeasureAsSameValueOverloadedMethod1Method(info); |
| 7628 return; | 7628 return; |
| 7629 } | 7629 } |
| 7630 break; | 7630 break; |
| 7631 case 1: | 7631 case 1: |
| 7632 if (true) { | 7632 if (true) { |
| 7633 UseCounter::countDeprecation(callingExecutionContext(isolate), UseCo
unter::TestFeatureB); | 7633 UseCounter::countDeprecation(callingExecutionContext(isolate), UseCo
unter::TestFeatureB); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 7663 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7663 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 7664 TONATIVE_VOID_EXCEPTIONSTATE(int, arg, toInt32(info[0], exceptionState), exc
eptionState); | 7664 TONATIVE_VOID_EXCEPTIONSTATE(int, arg, toInt32(info[0], exceptionState), exc
eptionState); |
| 7665 impl->deprecateAsSameValueMeasureAsOverloadedMethod(arg); | 7665 impl->deprecateAsSameValueMeasureAsOverloadedMethod(arg); |
| 7666 } | 7666 } |
| 7667 | 7667 |
| 7668 static void deprecateAsSameValueMeasureAsOverloadedMethodMethod(const v8::Functi
onCallbackInfo<v8::Value>& info) | 7668 static void deprecateAsSameValueMeasureAsOverloadedMethodMethod(const v8::Functi
onCallbackInfo<v8::Value>& info) |
| 7669 { | 7669 { |
| 7670 v8::Isolate* isolate = info.GetIsolate(); | 7670 v8::Isolate* isolate = info.GetIsolate(); |
| 7671 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), isolate); | 7671 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), isolate); |
| 7672 UseCounter::countDeprecation(callingExecutionContext(isolate), UseCounter::T
estFeature); | 7672 UseCounter::countDeprecation(callingExecutionContext(isolate), UseCounter::T
estFeature); |
| 7673 switch (info.Length()) { | 7673 switch (std::min(1, info.Length())) { |
| 7674 case 0: | 7674 case 0: |
| 7675 if (true) { | 7675 if (true) { |
| 7676 UseCounter::count(callingExecutionContext(isolate), UseCounter::Test
FeatureA); | 7676 UseCounter::count(callingExecutionContext(isolate), UseCounter::Test
FeatureA); |
| 7677 deprecateAsSameValueMeasureAsOverloadedMethod1Method(info); | 7677 deprecateAsSameValueMeasureAsOverloadedMethod1Method(info); |
| 7678 return; | 7678 return; |
| 7679 } | 7679 } |
| 7680 break; | 7680 break; |
| 7681 case 1: | 7681 case 1: |
| 7682 if (true) { | 7682 if (true) { |
| 7683 UseCounter::count(callingExecutionContext(isolate), UseCounter::Test
FeatureB); | 7683 UseCounter::count(callingExecutionContext(isolate), UseCounter::Test
FeatureB); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 7714 TONATIVE_VOID_EXCEPTIONSTATE(int, arg, toInt32(info[0], exceptionState), exc
eptionState); | 7714 TONATIVE_VOID_EXCEPTIONSTATE(int, arg, toInt32(info[0], exceptionState), exc
eptionState); |
| 7715 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(arg); | 7715 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(arg); |
| 7716 } | 7716 } |
| 7717 | 7717 |
| 7718 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethod(const v
8::FunctionCallbackInfo<v8::Value>& info) | 7718 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethod(const v
8::FunctionCallbackInfo<v8::Value>& info) |
| 7719 { | 7719 { |
| 7720 v8::Isolate* isolate = info.GetIsolate(); | 7720 v8::Isolate* isolate = info.GetIsolate(); |
| 7721 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), isola
te); | 7721 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), isola
te); |
| 7722 UseCounter::count(callingExecutionContext(isolate), UseCounter::TestFeatureB
); | 7722 UseCounter::count(callingExecutionContext(isolate), UseCounter::TestFeatureB
); |
| 7723 UseCounter::countDeprecation(callingExecutionContext(isolate), UseCounter::T
estFeatureA); | 7723 UseCounter::countDeprecation(callingExecutionContext(isolate), UseCounter::T
estFeatureA); |
| 7724 switch (info.Length()) { | 7724 switch (std::min(1, info.Length())) { |
| 7725 case 0: | 7725 case 0: |
| 7726 if (true) { | 7726 if (true) { |
| 7727 deprecateAsSameValueMeasureAsSameValueOverloadedMethod1Method(info); | 7727 deprecateAsSameValueMeasureAsSameValueOverloadedMethod1Method(info); |
| 7728 return; | 7728 return; |
| 7729 } | 7729 } |
| 7730 break; | 7730 break; |
| 7731 case 1: | 7731 case 1: |
| 7732 if (true) { | 7732 if (true) { |
| 7733 deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(info); | 7733 deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(info); |
| 7734 return; | 7734 return; |
| (...skipping 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8822 fromInternalPointer(object)->deref(); | 8822 fromInternalPointer(object)->deref(); |
| 8823 } | 8823 } |
| 8824 | 8824 |
| 8825 template<> | 8825 template<> |
| 8826 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) | 8826 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) |
| 8827 { | 8827 { |
| 8828 return toV8(impl, creationContext, isolate); | 8828 return toV8(impl, creationContext, isolate); |
| 8829 } | 8829 } |
| 8830 | 8830 |
| 8831 } // namespace WebCore | 8831 } // namespace WebCore |
| OLD | NEW |