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

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

Issue 221073003: Add helper functions for throwing arity-related TypeErrors (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix style nits. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "HTMLNames.h" 10 #include "HTMLNames.h"
(...skipping 4453 matching lines...) Expand 10 before | Expand all | Expand 10 after
4464 static void unsignedShortMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 4464 static void unsignedShortMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
4465 { 4465 {
4466 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4466 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4467 TestObjectV8Internal::unsignedShortMethodMethod(info); 4467 TestObjectV8Internal::unsignedShortMethodMethod(info);
4468 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4468 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4469 } 4469 }
4470 4470
4471 static void voidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 4471 static void voidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
4472 { 4472 {
4473 if (UNLIKELY(info.Length() < 1)) { 4473 if (UNLIKELY(info.Length() < 1)) {
4474 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDateArg", " TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetI solate()); 4474 throwArityTypeErrorForMethod("voidMethodDateArg", "TestObject", 1, info. Length(), info.GetIsolate());
4475 return; 4475 return;
4476 } 4476 }
4477 TestObject* impl = V8TestObject::toNative(info.Holder()); 4477 TestObject* impl = V8TestObject::toNative(info.Holder());
4478 V8TRYCATCH_VOID(double, dateArg, toCoreDate(info[0])); 4478 V8TRYCATCH_VOID(double, dateArg, toCoreDate(info[0]));
4479 impl->voidMethodDateArg(dateArg); 4479 impl->voidMethodDateArg(dateArg);
4480 } 4480 }
4481 4481
4482 static void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 4482 static void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
4483 { 4483 {
4484 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4484 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4485 TestObjectV8Internal::voidMethodDateArgMethod(info); 4485 TestObjectV8Internal::voidMethodDateArgMethod(info);
4486 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4486 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4487 } 4487 }
4488 4488
4489 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 4489 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
4490 { 4490 {
4491 if (UNLIKELY(info.Length() < 1)) { 4491 if (UNLIKELY(info.Length() < 1)) {
4492 throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.Ge tIsolate()); 4492 throwArityTypeErrorForMethod("voidMethodStringArg", "TestObject", 1, inf o.Length(), info.GetIsolate());
4493 return; 4493 return;
4494 } 4494 }
4495 TestObject* impl = V8TestObject::toNative(info.Holder()); 4495 TestObject* impl = V8TestObject::toNative(info.Holder());
4496 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0]) ; 4496 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0]) ;
4497 impl->voidMethodStringArg(stringArg); 4497 impl->voidMethodStringArg(stringArg);
4498 } 4498 }
4499 4499
4500 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 4500 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
4501 { 4501 {
4502 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4502 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4503 TestObjectV8Internal::voidMethodStringArgMethod(info); 4503 TestObjectV8Internal::voidMethodStringArgMethod(info);
4504 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4504 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4505 } 4505 }
4506 4506
4507 static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 4507 static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
4508 { 4508 {
4509 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD OMTimeStampArg", "TestObject", info.Holder(), info.GetIsolate()); 4509 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD OMTimeStampArg", "TestObject", info.Holder(), info.GetIsolate());
4510 if (UNLIKELY(info.Length() < 1)) { 4510 if (UNLIKELY(info.Length() < 1)) {
4511 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 4511 throwArityTypeError(exceptionState, 1, info.Length());
4512 exceptionState.throwIfNeeded();
4513 return; 4512 return;
4514 } 4513 }
4515 TestObject* impl = V8TestObject::toNative(info.Holder()); 4514 TestObject* impl = V8TestObject::toNative(info.Holder());
4516 V8TRYCATCH_EXCEPTION_VOID(unsigned long long, domTimeStampArg, toUInt64(info [0], exceptionState), exceptionState); 4515 V8TRYCATCH_EXCEPTION_VOID(unsigned long long, domTimeStampArg, toUInt64(info [0], exceptionState), exceptionState);
4517 impl->voidMethodDOMTimeStampArg(domTimeStampArg); 4516 impl->voidMethodDOMTimeStampArg(domTimeStampArg);
4518 } 4517 }
4519 4518
4520 static void voidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 4519 static void voidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
4521 { 4520 {
4522 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4521 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4523 TestObjectV8Internal::voidMethodDOMTimeStampArgMethod(info); 4522 TestObjectV8Internal::voidMethodDOMTimeStampArgMethod(info);
4524 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4523 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4525 } 4524 }
4526 4525
4527 static void voidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 4526 static void voidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
4528 { 4527 {
4529 if (UNLIKELY(info.Length() < 1)) { 4528 if (UNLIKELY(info.Length() < 1)) {
4530 throwTypeError(ExceptionMessages::failedToExecute("voidMethodBooleanArg" , "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.G etIsolate()); 4529 throwArityTypeErrorForMethod("voidMethodBooleanArg", "TestObject", 1, in fo.Length(), info.GetIsolate());
4531 return; 4530 return;
4532 } 4531 }
4533 TestObject* impl = V8TestObject::toNative(info.Holder()); 4532 TestObject* impl = V8TestObject::toNative(info.Holder());
4534 V8TRYCATCH_VOID(bool, booleanArg, info[0]->BooleanValue()); 4533 V8TRYCATCH_VOID(bool, booleanArg, info[0]->BooleanValue());
4535 impl->voidMethodBooleanArg(booleanArg); 4534 impl->voidMethodBooleanArg(booleanArg);
4536 } 4535 }
4537 4536
4538 static void voidMethodBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 4537 static void voidMethodBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
4539 { 4538 {
4540 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4539 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4541 TestObjectV8Internal::voidMethodBooleanArgMethod(info); 4540 TestObjectV8Internal::voidMethodBooleanArgMethod(info);
4542 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4541 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4543 } 4542 }
4544 4543
4545 static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 4544 static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
4546 { 4545 {
4547 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB yteArg", "TestObject", info.Holder(), info.GetIsolate()); 4546 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB yteArg", "TestObject", info.Holder(), info.GetIsolate());
4548 if (UNLIKELY(info.Length() < 1)) { 4547 if (UNLIKELY(info.Length() < 1)) {
4549 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 4548 throwArityTypeError(exceptionState, 1, info.Length());
4550 exceptionState.throwIfNeeded();
4551 return; 4549 return;
4552 } 4550 }
4553 TestObject* impl = V8TestObject::toNative(info.Holder()); 4551 TestObject* impl = V8TestObject::toNative(info.Holder());
4554 V8TRYCATCH_EXCEPTION_VOID(int, byteArg, toInt8(info[0], exceptionState), exc eptionState); 4552 V8TRYCATCH_EXCEPTION_VOID(int, byteArg, toInt8(info[0], exceptionState), exc eptionState);
4555 impl->voidMethodByteArg(byteArg); 4553 impl->voidMethodByteArg(byteArg);
4556 } 4554 }
4557 4555
4558 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 4556 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
4559 { 4557 {
4560 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4558 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4561 TestObjectV8Internal::voidMethodByteArgMethod(info); 4559 TestObjectV8Internal::voidMethodByteArgMethod(info);
4562 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4560 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4563 } 4561 }
4564 4562
4565 static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 4563 static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
4566 { 4564 {
4567 if (UNLIKELY(info.Length() < 1)) { 4565 if (UNLIKELY(info.Length() < 1)) {
4568 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDoubleArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.Ge tIsolate()); 4566 throwArityTypeErrorForMethod("voidMethodDoubleArg", "TestObject", 1, inf o.Length(), info.GetIsolate());
4569 return; 4567 return;
4570 } 4568 }
4571 TestObject* impl = V8TestObject::toNative(info.Holder()); 4569 TestObject* impl = V8TestObject::toNative(info.Holder());
4572 V8TRYCATCH_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue( ))); 4570 V8TRYCATCH_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue( )));
4573 impl->voidMethodDoubleArg(doubleArg); 4571 impl->voidMethodDoubleArg(doubleArg);
4574 } 4572 }
4575 4573
4576 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 4574 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
4577 { 4575 {
4578 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4576 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4579 TestObjectV8Internal::voidMethodDoubleArgMethod(info); 4577 TestObjectV8Internal::voidMethodDoubleArgMethod(info);
4580 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4578 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4581 } 4579 }
4582 4580
4583 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 4581 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
4584 { 4582 {
4585 if (UNLIKELY(info.Length() < 1)) { 4583 if (UNLIKELY(info.Length() < 1)) {
4586 throwTypeError(ExceptionMessages::failedToExecute("voidMethodFloatArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.Get Isolate()); 4584 throwArityTypeErrorForMethod("voidMethodFloatArg", "TestObject", 1, info .Length(), info.GetIsolate());
4587 return; 4585 return;
4588 } 4586 }
4589 TestObject* impl = V8TestObject::toNative(info.Holder()); 4587 TestObject* impl = V8TestObject::toNative(info.Holder());
4590 V8TRYCATCH_VOID(float, floatArg, static_cast<float>(info[0]->NumberValue())) ; 4588 V8TRYCATCH_VOID(float, floatArg, static_cast<float>(info[0]->NumberValue())) ;
4591 impl->voidMethodFloatArg(floatArg); 4589 impl->voidMethodFloatArg(floatArg);
4592 } 4590 }
4593 4591
4594 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 4592 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
4595 { 4593 {
4596 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4594 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4597 TestObjectV8Internal::voidMethodFloatArgMethod(info); 4595 TestObjectV8Internal::voidMethodFloatArgMethod(info);
4598 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4596 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4599 } 4597 }
4600 4598
4601 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 4599 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
4602 { 4600 {
4603 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArg", "TestObject", info.Holder(), info.GetIsolate()); 4601 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArg", "TestObject", info.Holder(), info.GetIsolate());
4604 if (UNLIKELY(info.Length() < 1)) { 4602 if (UNLIKELY(info.Length() < 1)) {
4605 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 4603 throwArityTypeError(exceptionState, 1, info.Length());
4606 exceptionState.throwIfNeeded();
4607 return; 4604 return;
4608 } 4605 }
4609 TestObject* impl = V8TestObject::toNative(info.Holder()); 4606 TestObject* impl = V8TestObject::toNative(info.Holder());
4610 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 4607 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState);
4611 impl->voidMethodLongArg(longArg); 4608 impl->voidMethodLongArg(longArg);
4612 } 4609 }
4613 4610
4614 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 4611 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
4615 { 4612 {
4616 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4613 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4617 TestObjectV8Internal::voidMethodLongArgMethod(info); 4614 TestObjectV8Internal::voidMethodLongArgMethod(info);
4618 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4615 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4619 } 4616 }
4620 4617
4621 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 4618 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
4622 { 4619 {
4623 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongLongArg", "TestObject", info.Holder(), info.GetIsolate()); 4620 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongLongArg", "TestObject", info.Holder(), info.GetIsolate());
4624 if (UNLIKELY(info.Length() < 1)) { 4621 if (UNLIKELY(info.Length() < 1)) {
4625 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 4622 throwArityTypeError(exceptionState, 1, info.Length());
4626 exceptionState.throwIfNeeded();
4627 return; 4623 return;
4628 } 4624 }
4629 TestObject* impl = V8TestObject::toNative(info.Holder()); 4625 TestObject* impl = V8TestObject::toNative(info.Holder());
4630 V8TRYCATCH_EXCEPTION_VOID(long long, longLongArg, toInt64(info[0], exception State), exceptionState); 4626 V8TRYCATCH_EXCEPTION_VOID(long long, longLongArg, toInt64(info[0], exception State), exceptionState);
4631 impl->voidMethodLongLongArg(longLongArg); 4627 impl->voidMethodLongLongArg(longLongArg);
4632 } 4628 }
4633 4629
4634 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 4630 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
4635 { 4631 {
4636 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4632 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4637 TestObjectV8Internal::voidMethodLongLongArgMethod(info); 4633 TestObjectV8Internal::voidMethodLongLongArgMethod(info);
4638 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4634 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4639 } 4635 }
4640 4636
4641 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 4637 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
4642 { 4638 {
4643 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO ctetArg", "TestObject", info.Holder(), info.GetIsolate()); 4639 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO ctetArg", "TestObject", info.Holder(), info.GetIsolate());
4644 if (UNLIKELY(info.Length() < 1)) { 4640 if (UNLIKELY(info.Length() < 1)) {
4645 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 4641 throwArityTypeError(exceptionState, 1, info.Length());
4646 exceptionState.throwIfNeeded();
4647 return; 4642 return;
4648 } 4643 }
4649 TestObject* impl = V8TestObject::toNative(info.Holder()); 4644 TestObject* impl = V8TestObject::toNative(info.Holder());
4650 V8TRYCATCH_EXCEPTION_VOID(unsigned, octetArg, toUInt8(info[0], exceptionStat e), exceptionState); 4645 V8TRYCATCH_EXCEPTION_VOID(unsigned, octetArg, toUInt8(info[0], exceptionStat e), exceptionState);
4651 impl->voidMethodOctetArg(octetArg); 4646 impl->voidMethodOctetArg(octetArg);
4652 } 4647 }
4653 4648
4654 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 4649 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
4655 { 4650 {
4656 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4651 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4657 TestObjectV8Internal::voidMethodOctetArgMethod(info); 4652 TestObjectV8Internal::voidMethodOctetArgMethod(info);
4658 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4653 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4659 } 4654 }
4660 4655
4661 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 4656 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
4662 { 4657 {
4663 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS hortArg", "TestObject", info.Holder(), info.GetIsolate()); 4658 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS hortArg", "TestObject", info.Holder(), info.GetIsolate());
4664 if (UNLIKELY(info.Length() < 1)) { 4659 if (UNLIKELY(info.Length() < 1)) {
4665 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 4660 throwArityTypeError(exceptionState, 1, info.Length());
4666 exceptionState.throwIfNeeded();
4667 return; 4661 return;
4668 } 4662 }
4669 TestObject* impl = V8TestObject::toNative(info.Holder()); 4663 TestObject* impl = V8TestObject::toNative(info.Holder());
4670 V8TRYCATCH_EXCEPTION_VOID(int, shortArg, toInt16(info[0], exceptionState), e xceptionState); 4664 V8TRYCATCH_EXCEPTION_VOID(int, shortArg, toInt16(info[0], exceptionState), e xceptionState);
4671 impl->voidMethodShortArg(shortArg); 4665 impl->voidMethodShortArg(shortArg);
4672 } 4666 }
4673 4667
4674 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 4668 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
4675 { 4669 {
4676 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4670 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4677 TestObjectV8Internal::voidMethodShortArgMethod(info); 4671 TestObjectV8Internal::voidMethodShortArgMethod(info);
4678 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4672 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4679 } 4673 }
4680 4674
4681 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 4675 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
4682 { 4676 {
4683 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); 4677 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedLongArg", "TestObject", info.Holder(), info.GetIsolate());
4684 if (UNLIKELY(info.Length() < 1)) { 4678 if (UNLIKELY(info.Length() < 1)) {
4685 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 4679 throwArityTypeError(exceptionState, 1, info.Length());
4686 exceptionState.throwIfNeeded();
4687 return; 4680 return;
4688 } 4681 }
4689 TestObject* impl = V8TestObject::toNative(info.Holder()); 4682 TestObject* impl = V8TestObject::toNative(info.Holder());
4690 V8TRYCATCH_EXCEPTION_VOID(unsigned, unsignedLongArg, toUInt32(info[0], excep tionState), exceptionState); 4683 V8TRYCATCH_EXCEPTION_VOID(unsigned, unsignedLongArg, toUInt32(info[0], excep tionState), exceptionState);
4691 impl->voidMethodUnsignedLongArg(unsignedLongArg); 4684 impl->voidMethodUnsignedLongArg(unsignedLongArg);
4692 } 4685 }
4693 4686
4694 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 4687 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
4695 { 4688 {
4696 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4689 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4697 TestObjectV8Internal::voidMethodUnsignedLongArgMethod(info); 4690 TestObjectV8Internal::voidMethodUnsignedLongArgMethod(info);
4698 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4691 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4699 } 4692 }
4700 4693
4701 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) 4694 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info)
4702 { 4695 {
4703 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedLongLongArg", "TestObject", info.Holder(), info.GetIsolate()); 4696 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedLongLongArg", "TestObject", info.Holder(), info.GetIsolate());
4704 if (UNLIKELY(info.Length() < 1)) { 4697 if (UNLIKELY(info.Length() < 1)) {
4705 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 4698 throwArityTypeError(exceptionState, 1, info.Length());
4706 exceptionState.throwIfNeeded();
4707 return; 4699 return;
4708 } 4700 }
4709 TestObject* impl = V8TestObject::toNative(info.Holder()); 4701 TestObject* impl = V8TestObject::toNative(info.Holder());
4710 V8TRYCATCH_EXCEPTION_VOID(unsigned long long, unsignedLongLongArg, toUInt64( info[0], exceptionState), exceptionState); 4702 V8TRYCATCH_EXCEPTION_VOID(unsigned long long, unsignedLongLongArg, toUInt64( info[0], exceptionState), exceptionState);
4711 impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg); 4703 impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg);
4712 } 4704 }
4713 4705
4714 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 4706 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
4715 { 4707 {
4716 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4708 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4717 TestObjectV8Internal::voidMethodUnsignedLongLongArgMethod(info); 4709 TestObjectV8Internal::voidMethodUnsignedLongLongArgMethod(info);
4718 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4710 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4719 } 4711 }
4720 4712
4721 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 4713 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
4722 { 4714 {
4723 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); 4715 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedShortArg", "TestObject", info.Holder(), info.GetIsolate());
4724 if (UNLIKELY(info.Length() < 1)) { 4716 if (UNLIKELY(info.Length() < 1)) {
4725 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 4717 throwArityTypeError(exceptionState, 1, info.Length());
4726 exceptionState.throwIfNeeded();
4727 return; 4718 return;
4728 } 4719 }
4729 TestObject* impl = V8TestObject::toNative(info.Holder()); 4720 TestObject* impl = V8TestObject::toNative(info.Holder());
4730 V8TRYCATCH_EXCEPTION_VOID(unsigned, unsignedShortArg, toUInt16(info[0], exce ptionState), exceptionState); 4721 V8TRYCATCH_EXCEPTION_VOID(unsigned, unsignedShortArg, toUInt16(info[0], exce ptionState), exceptionState);
4731 impl->voidMethodUnsignedShortArg(unsignedShortArg); 4722 impl->voidMethodUnsignedShortArg(unsignedShortArg);
4732 } 4723 }
4733 4724
4734 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 4725 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
4735 { 4726 {
4736 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4727 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
(...skipping 10 matching lines...) Expand all
4747 static void testInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 4738 static void testInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
4748 { 4739 {
4749 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4740 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4750 TestObjectV8Internal::testInterfaceEmptyMethodMethod(info); 4741 TestObjectV8Internal::testInterfaceEmptyMethodMethod(info);
4751 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4742 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4752 } 4743 }
4753 4744
4754 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 4745 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
4755 { 4746 {
4756 if (UNLIKELY(info.Length() < 1)) { 4747 if (UNLIKELY(info.Length() < 1)) {
4757 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa ceEmptyArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length( ))), info.GetIsolate()); 4748 throwArityTypeErrorForMethod("voidMethodTestInterfaceEmptyArg", "TestObj ect", 1, info.Length(), info.GetIsolate());
4758 return; 4749 return;
4759 } 4750 }
4760 TestObject* impl = V8TestObject::toNative(info.Holder()); 4751 TestObject* impl = V8TestObject::toNative(info.Holder());
4761 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 4752 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
4762 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); 4753 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg);
4763 } 4754 }
4764 4755
4765 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 4756 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
4766 { 4757 {
4767 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4758 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4768 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgMethod(info); 4759 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgMethod(info);
4769 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4760 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4770 } 4761 }
4771 4762
4772 static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info) 4763 static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info)
4773 { 4764 {
4774 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); 4765 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate());
4775 if (UNLIKELY(info.Length() < 2)) { 4766 if (UNLIKELY(info.Length() < 2)) {
4776 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i nfo.Length())); 4767 throwArityTypeError(exceptionState, 2, info.Length());
4777 exceptionState.throwIfNeeded();
4778 return; 4768 return;
4779 } 4769 }
4780 TestObject* impl = V8TestObject::toNative(info.Holder()); 4770 TestObject* impl = V8TestObject::toNative(info.Holder());
4781 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 4771 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState);
4782 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::toNativeWithTypeCheck(info.GetIsolate(), info[1])); 4772 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::toNativeWithTypeCheck(info.GetIsolate(), info[1]));
4783 impl->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg) ; 4773 impl->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg) ;
4784 } 4774 }
4785 4775
4786 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) 4776 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
4787 { 4777 {
(...skipping 24 matching lines...) Expand all
4812 static void anyCallbackFunctionOptionalAnyArgMethodMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 4802 static void anyCallbackFunctionOptionalAnyArgMethodMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
4813 { 4803 {
4814 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4804 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4815 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgMethodMethod(info); 4805 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgMethodMethod(info);
4816 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4806 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4817 } 4807 }
4818 4808
4819 static void voidMethodVoidCallbackFunctionArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info) 4809 static void voidMethodVoidCallbackFunctionArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info)
4820 { 4810 {
4821 if (UNLIKELY(info.Length() < 1)) { 4811 if (UNLIKELY(info.Length() < 1)) {
4822 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVoidCallbac kFunctionArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Lengt h())), info.GetIsolate()); 4812 throwArityTypeErrorForMethod("voidMethodVoidCallbackFunctionArg", "TestO bject", 1, info.Length(), info.GetIsolate());
4823 return; 4813 return;
4824 } 4814 }
4825 TestObject* impl = V8TestObject::toNative(info.Holder()); 4815 TestObject* impl = V8TestObject::toNative(info.Holder());
4826 V8TRYCATCH_VOID(ScriptValue, voidCallbackFunctionArg, ScriptValue(info[0], i nfo.GetIsolate())); 4816 V8TRYCATCH_VOID(ScriptValue, voidCallbackFunctionArg, ScriptValue(info[0], i nfo.GetIsolate()));
4827 impl->voidMethodVoidCallbackFunctionArg(voidCallbackFunctionArg); 4817 impl->voidMethodVoidCallbackFunctionArg(voidCallbackFunctionArg);
4828 } 4818 }
4829 4819
4830 static void voidMethodVoidCallbackFunctionArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info) 4820 static void voidMethodVoidCallbackFunctionArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info)
4831 { 4821 {
4832 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4822 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4833 TestObjectV8Internal::voidMethodVoidCallbackFunctionArgMethod(info); 4823 TestObjectV8Internal::voidMethodVoidCallbackFunctionArgMethod(info);
4834 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4824 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4835 } 4825 }
4836 4826
4837 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethod(const v8::Function CallbackInfo<v8::Value>& info) 4827 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethod(const v8::Function CallbackInfo<v8::Value>& info)
4838 { 4828 {
4839 if (UNLIKELY(info.Length() < 1)) { 4829 if (UNLIKELY(info.Length() < 1)) {
4840 throwTypeError(ExceptionMessages::failedToExecute("voidMethodAnyCallback FunctionOptionalAnyArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); 4830 throwArityTypeErrorForMethod("voidMethodAnyCallbackFunctionOptionalAnyAr g", "TestObject", 1, info.Length(), info.GetIsolate());
4841 return; 4831 return;
4842 } 4832 }
4843 TestObject* impl = V8TestObject::toNative(info.Holder()); 4833 TestObject* impl = V8TestObject::toNative(info.Holder());
4844 V8TRYCATCH_VOID(ScriptValue, anyCallbackFunctionOptionalAnyArgArg, ScriptVal ue(info[0], info.GetIsolate())); 4834 V8TRYCATCH_VOID(ScriptValue, anyCallbackFunctionOptionalAnyArgArg, ScriptVal ue(info[0], info.GetIsolate()));
4845 impl->voidMethodAnyCallbackFunctionOptionalAnyArg(anyCallbackFunctionOptiona lAnyArgArg); 4835 impl->voidMethodAnyCallbackFunctionOptionalAnyArg(anyCallbackFunctionOptiona lAnyArgArg);
4846 } 4836 }
4847 4837
4848 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethodCallback(const v8:: FunctionCallbackInfo<v8::Value>& info) 4838 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethodCallback(const v8:: FunctionCallbackInfo<v8::Value>& info)
4849 { 4839 {
4850 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4840 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
(...skipping 23 matching lines...) Expand all
4874 static void anyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 4864 static void anyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
4875 { 4865 {
4876 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4866 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4877 TestObjectV8Internal::anyMethodMethod(info); 4867 TestObjectV8Internal::anyMethodMethod(info);
4878 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4868 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4879 } 4869 }
4880 4870
4881 static void voidMethodCompareHowArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 4871 static void voidMethodCompareHowArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
4882 { 4872 {
4883 if (UNLIKELY(info.Length() < 1)) { 4873 if (UNLIKELY(info.Length() < 1)) {
4884 throwTypeError(ExceptionMessages::failedToExecute("voidMethodCompareHowA rg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); 4874 throwArityTypeErrorForMethod("voidMethodCompareHowArg", "TestObject", 1, info.Length(), info.GetIsolate());
4885 return; 4875 return;
4886 } 4876 }
4887 TestObject* impl = V8TestObject::toNative(info.Holder()); 4877 TestObject* impl = V8TestObject::toNative(info.Holder());
4888 V8TRYCATCH_VOID(Range::CompareHow, compareHowArg, static_cast<Range::Compare How>(info[0]->Int32Value())); 4878 V8TRYCATCH_VOID(Range::CompareHow, compareHowArg, static_cast<Range::Compare How>(info[0]->Int32Value()));
4889 impl->voidMethodCompareHowArg(compareHowArg); 4879 impl->voidMethodCompareHowArg(compareHowArg);
4890 } 4880 }
4891 4881
4892 static void voidMethodCompareHowArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 4882 static void voidMethodCompareHowArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
4893 { 4883 {
4894 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4884 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4895 TestObjectV8Internal::voidMethodCompareHowArgMethod(info); 4885 TestObjectV8Internal::voidMethodCompareHowArgMethod(info);
4896 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4886 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4897 } 4887 }
4898 4888
4899 static void voidMethodEventTargetArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 4889 static void voidMethodEventTargetArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
4900 { 4890 {
4901 if (UNLIKELY(info.Length() < 1)) { 4891 if (UNLIKELY(info.Length() < 1)) {
4902 throwTypeError(ExceptionMessages::failedToExecute("voidMethodEventTarget Arg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), in fo.GetIsolate()); 4892 throwArityTypeErrorForMethod("voidMethodEventTargetArg", "TestObject", 1 , info.Length(), info.GetIsolate());
4903 return; 4893 return;
4904 } 4894 }
4905 TestObject* impl = V8TestObject::toNative(info.Holder()); 4895 TestObject* impl = V8TestObject::toNative(info.Holder());
4906 V8TRYCATCH_VOID(EventTarget*, eventTargetArg, V8DOMWrapper::isDOMWrapper(inf o[0]) ? toWrapperTypeInfo(v8::Handle<v8::Object>::Cast(info[0]))->toEventTarget( v8::Handle<v8::Object>::Cast(info[0])) : 0); 4896 V8TRYCATCH_VOID(EventTarget*, eventTargetArg, V8DOMWrapper::isDOMWrapper(inf o[0]) ? toWrapperTypeInfo(v8::Handle<v8::Object>::Cast(info[0]))->toEventTarget( v8::Handle<v8::Object>::Cast(info[0])) : 0);
4907 impl->voidMethodEventTargetArg(eventTargetArg); 4897 impl->voidMethodEventTargetArg(eventTargetArg);
4908 } 4898 }
4909 4899
4910 static void voidMethodEventTargetArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 4900 static void voidMethodEventTargetArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
4911 { 4901 {
4912 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4902 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4913 TestObjectV8Internal::voidMethodEventTargetArgMethod(info); 4903 TestObjectV8Internal::voidMethodEventTargetArgMethod(info);
4914 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4904 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4915 } 4905 }
4916 4906
4917 static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallback Info<v8::Value>& info) 4907 static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallback Info<v8::Value>& info)
4918 { 4908 {
4919 if (UNLIKELY(info.Length() < 1)) { 4909 if (UNLIKELY(info.Length() < 1)) {
4920 throwTypeError(ExceptionMessages::failedToExecute("voidMethodMediaQueryL istListenerArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Len gth())), info.GetIsolate()); 4910 throwArityTypeErrorForMethod("voidMethodMediaQueryListListenerArg", "Tes tObject", 1, info.Length(), info.GetIsolate());
4921 return; 4911 return;
4922 } 4912 }
4923 TestObject* impl = V8TestObject::toNative(info.Holder()); 4913 TestObject* impl = V8TestObject::toNative(info.Holder());
4924 V8TRYCATCH_VOID(RefPtrWillBeRawPtr<MediaQueryListListener>, mediaQueryListLi stenerArg, MediaQueryListListener::create(ScriptValue(info[0], info.GetIsolate() ))); 4914 V8TRYCATCH_VOID(RefPtrWillBeRawPtr<MediaQueryListListener>, mediaQueryListLi stenerArg, MediaQueryListListener::create(ScriptValue(info[0], info.GetIsolate() )));
4925 impl->voidMethodMediaQueryListListenerArg(mediaQueryListListenerArg); 4915 impl->voidMethodMediaQueryListListenerArg(mediaQueryListListenerArg);
4926 } 4916 }
4927 4917
4928 static void voidMethodMediaQueryListListenerArgMethodCallback(const v8::Function CallbackInfo<v8::Value>& info) 4918 static void voidMethodMediaQueryListListenerArgMethodCallback(const v8::Function CallbackInfo<v8::Value>& info)
4929 { 4919 {
4930 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4920 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4931 TestObjectV8Internal::voidMethodMediaQueryListListenerArgMethod(info); 4921 TestObjectV8Internal::voidMethodMediaQueryListListenerArgMethod(info);
4932 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4922 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4933 } 4923 }
4934 4924
4935 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) 4925 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo)
4936 { 4926 {
4937 if (UNLIKELY(info.Length() < 1)) { 4927 if (UNLIKELY(info.Length() < 1)) {
4938 throwTypeError(ExceptionMessages::failedToExecute("voidMethodAnyArg", "T estObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIs olate()); 4928 throwArityTypeErrorForMethod("voidMethodAnyArg", "TestObject", 1, info.L ength(), info.GetIsolate());
4939 return; 4929 return;
4940 } 4930 }
4941 TestObject* impl = V8TestObject::toNative(info.Holder()); 4931 TestObject* impl = V8TestObject::toNative(info.Holder());
4942 V8TRYCATCH_VOID(ScriptValue, anyArg, ScriptValue(info[0], info.GetIsolate()) ); 4932 V8TRYCATCH_VOID(ScriptValue, anyArg, ScriptValue(info[0], info.GetIsolate()) );
4943 impl->voidMethodAnyArg(anyArg); 4933 impl->voidMethodAnyArg(anyArg);
4944 } 4934 }
4945 4935
4946 static void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) 4936 static void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info)
4947 { 4937 {
4948 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4938 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4949 TestObjectV8Internal::voidMethodAnyArgMethod(info); 4939 TestObjectV8Internal::voidMethodAnyArgMethod(info);
4950 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4940 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4951 } 4941 }
4952 4942
4953 static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 4943 static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
4954 { 4944 {
4955 if (UNLIKELY(info.Length() < 1)) { 4945 if (UNLIKELY(info.Length() < 1)) {
4956 throwTypeError(ExceptionMessages::failedToExecute("voidMethodAttrArg", " TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetI solate()); 4946 throwArityTypeErrorForMethod("voidMethodAttrArg", "TestObject", 1, info. Length(), info.GetIsolate());
4957 return; 4947 return;
4958 } 4948 }
4959 TestObject* impl = V8TestObject::toNative(info.Holder()); 4949 TestObject* impl = V8TestObject::toNative(info.Holder());
4960 V8TRYCATCH_VOID(Attr*, attrArg, V8Attr::toNativeWithTypeCheck(info.GetIsolat e(), info[0])); 4950 V8TRYCATCH_VOID(Attr*, attrArg, V8Attr::toNativeWithTypeCheck(info.GetIsolat e(), info[0]));
4961 impl->voidMethodAttrArg(attrArg); 4951 impl->voidMethodAttrArg(attrArg);
4962 } 4952 }
4963 4953
4964 static void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 4954 static void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
4965 { 4955 {
4966 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4956 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4967 TestObjectV8Internal::voidMethodAttrArgMethod(info); 4957 TestObjectV8Internal::voidMethodAttrArgMethod(info);
4968 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4958 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4969 } 4959 }
4970 4960
4971 static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 4961 static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
4972 { 4962 {
4973 if (UNLIKELY(info.Length() < 1)) { 4963 if (UNLIKELY(info.Length() < 1)) {
4974 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDocumentArg ", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info. GetIsolate()); 4964 throwArityTypeErrorForMethod("voidMethodDocumentArg", "TestObject", 1, i nfo.Length(), info.GetIsolate());
4975 return; 4965 return;
4976 } 4966 }
4977 TestObject* impl = V8TestObject::toNative(info.Holder()); 4967 TestObject* impl = V8TestObject::toNative(info.Holder());
4978 V8TRYCATCH_VOID(Document*, documentArg, V8Document::toNativeWithTypeCheck(in fo.GetIsolate(), info[0])); 4968 V8TRYCATCH_VOID(Document*, documentArg, V8Document::toNativeWithTypeCheck(in fo.GetIsolate(), info[0]));
4979 impl->voidMethodDocumentArg(documentArg); 4969 impl->voidMethodDocumentArg(documentArg);
4980 } 4970 }
4981 4971
4982 static void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 4972 static void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
4983 { 4973 {
4984 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4974 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4985 TestObjectV8Internal::voidMethodDocumentArgMethod(info); 4975 TestObjectV8Internal::voidMethodDocumentArgMethod(info);
4986 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4976 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4987 } 4977 }
4988 4978
4989 static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 4979 static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
4990 { 4980 {
4991 if (UNLIKELY(info.Length() < 1)) { 4981 if (UNLIKELY(info.Length() < 1)) {
4992 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDocumentTyp eArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), i nfo.GetIsolate()); 4982 throwArityTypeErrorForMethod("voidMethodDocumentTypeArg", "TestObject", 1, info.Length(), info.GetIsolate());
4993 return; 4983 return;
4994 } 4984 }
4995 TestObject* impl = V8TestObject::toNative(info.Holder()); 4985 TestObject* impl = V8TestObject::toNative(info.Holder());
4996 V8TRYCATCH_VOID(DocumentType*, documentTypeArg, V8DocumentType::toNativeWith TypeCheck(info.GetIsolate(), info[0])); 4986 V8TRYCATCH_VOID(DocumentType*, documentTypeArg, V8DocumentType::toNativeWith TypeCheck(info.GetIsolate(), info[0]));
4997 impl->voidMethodDocumentTypeArg(documentTypeArg); 4987 impl->voidMethodDocumentTypeArg(documentTypeArg);
4998 } 4988 }
4999 4989
5000 static void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 4990 static void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
5001 { 4991 {
5002 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4992 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5003 TestObjectV8Internal::voidMethodDocumentTypeArgMethod(info); 4993 TestObjectV8Internal::voidMethodDocumentTypeArgMethod(info);
5004 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4994 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5005 } 4995 }
5006 4996
5007 static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 4997 static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
5008 { 4998 {
5009 if (UNLIKELY(info.Length() < 1)) { 4999 if (UNLIKELY(info.Length() < 1)) {
5010 throwTypeError(ExceptionMessages::failedToExecute("voidMethodElementArg" , "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.G etIsolate()); 5000 throwArityTypeErrorForMethod("voidMethodElementArg", "TestObject", 1, in fo.Length(), info.GetIsolate());
5011 return; 5001 return;
5012 } 5002 }
5013 TestObject* impl = V8TestObject::toNative(info.Holder()); 5003 TestObject* impl = V8TestObject::toNative(info.Holder());
5014 V8TRYCATCH_VOID(Element*, elementArg, V8Element::toNativeWithTypeCheck(info. GetIsolate(), info[0])); 5004 V8TRYCATCH_VOID(Element*, elementArg, V8Element::toNativeWithTypeCheck(info. GetIsolate(), info[0]));
5015 impl->voidMethodElementArg(elementArg); 5005 impl->voidMethodElementArg(elementArg);
5016 } 5006 }
5017 5007
5018 static void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 5008 static void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
5019 { 5009 {
5020 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5010 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5021 TestObjectV8Internal::voidMethodElementArgMethod(info); 5011 TestObjectV8Internal::voidMethodElementArgMethod(info);
5022 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5012 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5023 } 5013 }
5024 5014
5025 static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 5015 static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
5026 { 5016 {
5027 if (UNLIKELY(info.Length() < 1)) { 5017 if (UNLIKELY(info.Length() < 1)) {
5028 throwTypeError(ExceptionMessages::failedToExecute("voidMethodNodeArg", " TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetI solate()); 5018 throwArityTypeErrorForMethod("voidMethodNodeArg", "TestObject", 1, info. Length(), info.GetIsolate());
5029 return; 5019 return;
5030 } 5020 }
5031 TestObject* impl = V8TestObject::toNative(info.Holder()); 5021 TestObject* impl = V8TestObject::toNative(info.Holder());
5032 V8TRYCATCH_VOID(Node*, nodeArg, V8Node::toNativeWithTypeCheck(info.GetIsolat e(), info[0])); 5022 V8TRYCATCH_VOID(Node*, nodeArg, V8Node::toNativeWithTypeCheck(info.GetIsolat e(), info[0]));
5033 impl->voidMethodNodeArg(nodeArg); 5023 impl->voidMethodNodeArg(nodeArg);
5034 } 5024 }
5035 5025
5036 static void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 5026 static void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
5037 { 5027 {
5038 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5028 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
5101 static void uint8ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) 5091 static void uint8ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info)
5102 { 5092 {
5103 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5093 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5104 TestObjectV8Internal::uint8ArrayMethodMethod(info); 5094 TestObjectV8Internal::uint8ArrayMethodMethod(info);
5105 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5095 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5106 } 5096 }
5107 5097
5108 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 5098 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
5109 { 5099 {
5110 if (UNLIKELY(info.Length() < 1)) { 5100 if (UNLIKELY(info.Length() < 1)) {
5111 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayBuffer Arg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), in fo.GetIsolate()); 5101 throwArityTypeErrorForMethod("voidMethodArrayBufferArg", "TestObject", 1 , info.Length(), info.GetIsolate());
5112 return; 5102 return;
5113 } 5103 }
5114 TestObject* impl = V8TestObject::toNative(info.Holder()); 5104 TestObject* impl = V8TestObject::toNative(info.Holder());
5115 V8TRYCATCH_VOID(ArrayBuffer*, arrayBufferArg, info[0]->IsArrayBuffer() ? V8A rrayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0); 5105 V8TRYCATCH_VOID(ArrayBuffer*, arrayBufferArg, info[0]->IsArrayBuffer() ? V8A rrayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0);
5116 impl->voidMethodArrayBufferArg(arrayBufferArg); 5106 impl->voidMethodArrayBufferArg(arrayBufferArg);
5117 } 5107 }
5118 5108
5119 static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 5109 static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
5120 { 5110 {
5121 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5111 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5122 TestObjectV8Internal::voidMethodArrayBufferArgMethod(info); 5112 TestObjectV8Internal::voidMethodArrayBufferArgMethod(info);
5123 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5113 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5124 } 5114 }
5125 5115
5126 static void voidMethodArrayBufferOrNullArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info) 5116 static void voidMethodArrayBufferOrNullArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info)
5127 { 5117 {
5128 if (UNLIKELY(info.Length() < 1)) { 5118 if (UNLIKELY(info.Length() < 1)) {
5129 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayBuffer OrNullArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length() )), info.GetIsolate()); 5119 throwArityTypeErrorForMethod("voidMethodArrayBufferOrNullArg", "TestObje ct", 1, info.Length(), info.GetIsolate());
5130 return; 5120 return;
5131 } 5121 }
5132 TestObject* impl = V8TestObject::toNative(info.Holder()); 5122 TestObject* impl = V8TestObject::toNative(info.Holder());
5133 V8TRYCATCH_VOID(ArrayBuffer*, arrayBufferArg, info[0]->IsArrayBuffer() ? V8A rrayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0); 5123 V8TRYCATCH_VOID(ArrayBuffer*, arrayBufferArg, info[0]->IsArrayBuffer() ? V8A rrayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0);
5134 impl->voidMethodArrayBufferOrNullArg(arrayBufferArg); 5124 impl->voidMethodArrayBufferOrNullArg(arrayBufferArg);
5135 } 5125 }
5136 5126
5137 static void voidMethodArrayBufferOrNullArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 5127 static void voidMethodArrayBufferOrNullArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
5138 { 5128 {
5139 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5129 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5140 TestObjectV8Internal::voidMethodArrayBufferOrNullArgMethod(info); 5130 TestObjectV8Internal::voidMethodArrayBufferOrNullArgMethod(info);
5141 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5131 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5142 } 5132 }
5143 5133
5144 static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) 5134 static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info)
5145 { 5135 {
5146 if (UNLIKELY(info.Length() < 1)) { 5136 if (UNLIKELY(info.Length() < 1)) {
5147 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayBuffer ViewArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())) , info.GetIsolate()); 5137 throwArityTypeErrorForMethod("voidMethodArrayBufferViewArg", "TestObject ", 1, info.Length(), info.GetIsolate());
5148 return; 5138 return;
5149 } 5139 }
5150 TestObject* impl = V8TestObject::toNative(info.Holder()); 5140 TestObject* impl = V8TestObject::toNative(info.Holder());
5151 V8TRYCATCH_VOID(ArrayBufferView*, arrayBufferViewArg, info[0]->IsArrayBuffer View() ? V8ArrayBufferView::toNative(v8::Handle<v8::ArrayBufferView>::Cast(info[ 0])) : 0); 5141 V8TRYCATCH_VOID(ArrayBufferView*, arrayBufferViewArg, info[0]->IsArrayBuffer View() ? V8ArrayBufferView::toNative(v8::Handle<v8::ArrayBufferView>::Cast(info[ 0])) : 0);
5152 impl->voidMethodArrayBufferViewArg(arrayBufferViewArg); 5142 impl->voidMethodArrayBufferViewArg(arrayBufferViewArg);
5153 } 5143 }
5154 5144
5155 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 5145 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
5156 { 5146 {
5157 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5147 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5158 TestObjectV8Internal::voidMethodArrayBufferViewArgMethod(info); 5148 TestObjectV8Internal::voidMethodArrayBufferViewArgMethod(info);
5159 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5149 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5160 } 5150 }
5161 5151
5162 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 5152 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
5163 { 5153 {
5164 if (UNLIKELY(info.Length() < 1)) { 5154 if (UNLIKELY(info.Length() < 1)) {
5165 throwTypeError(ExceptionMessages::failedToExecute("voidMethodFloat32Arra yArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), i nfo.GetIsolate()); 5155 throwArityTypeErrorForMethod("voidMethodFloat32ArrayArg", "TestObject", 1, info.Length(), info.GetIsolate());
5166 return; 5156 return;
5167 } 5157 }
5168 TestObject* impl = V8TestObject::toNative(info.Holder()); 5158 TestObject* impl = V8TestObject::toNative(info.Holder());
5169 V8TRYCATCH_VOID(Float32Array*, float32ArrayArg, info[0]->IsFloat32Array() ? V8Float32Array::toNative(v8::Handle<v8::Float32Array>::Cast(info[0])) : 0); 5159 V8TRYCATCH_VOID(Float32Array*, float32ArrayArg, info[0]->IsFloat32Array() ? V8Float32Array::toNative(v8::Handle<v8::Float32Array>::Cast(info[0])) : 0);
5170 impl->voidMethodFloat32ArrayArg(float32ArrayArg); 5160 impl->voidMethodFloat32ArrayArg(float32ArrayArg);
5171 } 5161 }
5172 5162
5173 static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 5163 static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
5174 { 5164 {
5175 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5165 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5176 TestObjectV8Internal::voidMethodFloat32ArrayArgMethod(info); 5166 TestObjectV8Internal::voidMethodFloat32ArrayArgMethod(info);
5177 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5167 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5178 } 5168 }
5179 5169
5180 static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 5170 static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
5181 { 5171 {
5182 if (UNLIKELY(info.Length() < 1)) { 5172 if (UNLIKELY(info.Length() < 1)) {
5183 throwTypeError(ExceptionMessages::failedToExecute("voidMethodInt32ArrayA rg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); 5173 throwArityTypeErrorForMethod("voidMethodInt32ArrayArg", "TestObject", 1, info.Length(), info.GetIsolate());
5184 return; 5174 return;
5185 } 5175 }
5186 TestObject* impl = V8TestObject::toNative(info.Holder()); 5176 TestObject* impl = V8TestObject::toNative(info.Holder());
5187 V8TRYCATCH_VOID(Int32Array*, int32ArrayArg, info[0]->IsInt32Array() ? V8Int3 2Array::toNative(v8::Handle<v8::Int32Array>::Cast(info[0])) : 0); 5177 V8TRYCATCH_VOID(Int32Array*, int32ArrayArg, info[0]->IsInt32Array() ? V8Int3 2Array::toNative(v8::Handle<v8::Int32Array>::Cast(info[0])) : 0);
5188 impl->voidMethodInt32ArrayArg(int32ArrayArg); 5178 impl->voidMethodInt32ArrayArg(int32ArrayArg);
5189 } 5179 }
5190 5180
5191 static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 5181 static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
5192 { 5182 {
5193 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5183 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5194 TestObjectV8Internal::voidMethodInt32ArrayArgMethod(info); 5184 TestObjectV8Internal::voidMethodInt32ArrayArgMethod(info);
5195 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5185 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5196 } 5186 }
5197 5187
5198 static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 5188 static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
5199 { 5189 {
5200 if (UNLIKELY(info.Length() < 1)) { 5190 if (UNLIKELY(info.Length() < 1)) {
5201 throwTypeError(ExceptionMessages::failedToExecute("voidMethodUint8ArrayA rg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); 5191 throwArityTypeErrorForMethod("voidMethodUint8ArrayArg", "TestObject", 1, info.Length(), info.GetIsolate());
5202 return; 5192 return;
5203 } 5193 }
5204 TestObject* impl = V8TestObject::toNative(info.Holder()); 5194 TestObject* impl = V8TestObject::toNative(info.Holder());
5205 V8TRYCATCH_VOID(Uint8Array*, uint8ArrayArg, info[0]->IsUint8Array() ? V8Uint 8Array::toNative(v8::Handle<v8::Uint8Array>::Cast(info[0])) : 0); 5195 V8TRYCATCH_VOID(Uint8Array*, uint8ArrayArg, info[0]->IsUint8Array() ? V8Uint 8Array::toNative(v8::Handle<v8::Uint8Array>::Cast(info[0])) : 0);
5206 impl->voidMethodUint8ArrayArg(uint8ArrayArg); 5196 impl->voidMethodUint8ArrayArg(uint8ArrayArg);
5207 } 5197 }
5208 5198
5209 static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 5199 static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
5210 { 5200 {
5211 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5201 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
5248 static void testInterfaceEmptyArrayMethodMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 5238 static void testInterfaceEmptyArrayMethodMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
5249 { 5239 {
5250 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5240 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5251 TestObjectV8Internal::testInterfaceEmptyArrayMethodMethod(info); 5241 TestObjectV8Internal::testInterfaceEmptyArrayMethodMethod(info);
5252 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5242 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5253 } 5243 }
5254 5244
5255 static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info) 5245 static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info)
5256 { 5246 {
5257 if (UNLIKELY(info.Length() < 1)) { 5247 if (UNLIKELY(info.Length() < 1)) {
5258 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayLongAr g", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info .GetIsolate()); 5248 throwArityTypeErrorForMethod("voidMethodArrayLongArg", "TestObject", 1, info.Length(), info.GetIsolate());
5259 return; 5249 return;
5260 } 5250 }
5261 TestObject* impl = V8TestObject::toNative(info.Holder()); 5251 TestObject* impl = V8TestObject::toNative(info.Holder());
5262 V8TRYCATCH_VOID(Vector<int>, arrayLongArg, toNativeArray<int>(info[0], 1, in fo.GetIsolate())); 5252 V8TRYCATCH_VOID(Vector<int>, arrayLongArg, toNativeArray<int>(info[0], 1, in fo.GetIsolate()));
5263 impl->voidMethodArrayLongArg(arrayLongArg); 5253 impl->voidMethodArrayLongArg(arrayLongArg);
5264 } 5254 }
5265 5255
5266 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info) 5256 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
5267 { 5257 {
5268 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5258 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5269 TestObjectV8Internal::voidMethodArrayLongArgMethod(info); 5259 TestObjectV8Internal::voidMethodArrayLongArgMethod(info);
5270 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5260 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5271 } 5261 }
5272 5262
5273 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 5263 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
5274 { 5264 {
5275 if (UNLIKELY(info.Length() < 1)) { 5265 if (UNLIKELY(info.Length() < 1)) {
5276 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayString Arg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), in fo.GetIsolate()); 5266 throwArityTypeErrorForMethod("voidMethodArrayStringArg", "TestObject", 1 , info.Length(), info.GetIsolate());
5277 return; 5267 return;
5278 } 5268 }
5279 TestObject* impl = V8TestObject::toNative(info.Holder()); 5269 TestObject* impl = V8TestObject::toNative(info.Holder());
5280 V8TRYCATCH_VOID(Vector<String>, arrayStringArg, toNativeArray<String>(info[0 ], 1, info.GetIsolate())); 5270 V8TRYCATCH_VOID(Vector<String>, arrayStringArg, toNativeArray<String>(info[0 ], 1, info.GetIsolate()));
5281 impl->voidMethodArrayStringArg(arrayStringArg); 5271 impl->voidMethodArrayStringArg(arrayStringArg);
5282 } 5272 }
5283 5273
5284 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 5274 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
5285 { 5275 {
5286 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5276 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5287 TestObjectV8Internal::voidMethodArrayStringArgMethod(info); 5277 TestObjectV8Internal::voidMethodArrayStringArgMethod(info);
5288 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5278 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5289 } 5279 }
5290 5280
5291 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) 5281 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info)
5292 { 5282 {
5293 if (UNLIKELY(info.Length() < 1)) { 5283 if (UNLIKELY(info.Length() < 1)) {
5294 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayTestIn terfaceEmptyArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Le ngth())), info.GetIsolate()); 5284 throwArityTypeErrorForMethod("voidMethodArrayTestInterfaceEmptyArg", "Te stObject", 1, info.Length(), info.GetIsolate());
5295 return; 5285 return;
5296 } 5286 }
5297 TestObject* impl = V8TestObject::toNative(info.Holder()); 5287 TestObject* impl = V8TestObject::toNative(info.Holder());
5298 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, arrayTestInterfaceEmpty Arg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate()))); 5288 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, arrayTestInterfaceEmpty Arg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate())));
5299 impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg); 5289 impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg);
5300 } 5290 }
5301 5291
5302 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 5292 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
5303 { 5293 {
5304 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5294 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
5341 static void testInterfaceEmptySequenceMethodMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 5331 static void testInterfaceEmptySequenceMethodMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
5342 { 5332 {
5343 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5333 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5344 TestObjectV8Internal::testInterfaceEmptySequenceMethodMethod(info); 5334 TestObjectV8Internal::testInterfaceEmptySequenceMethodMethod(info);
5345 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5335 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5346 } 5336 }
5347 5337
5348 static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 5338 static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
5349 { 5339 {
5350 if (UNLIKELY(info.Length() < 1)) { 5340 if (UNLIKELY(info.Length() < 1)) {
5351 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceLon gArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), i nfo.GetIsolate()); 5341 throwArityTypeErrorForMethod("voidMethodSequenceLongArg", "TestObject", 1, info.Length(), info.GetIsolate());
5352 return; 5342 return;
5353 } 5343 }
5354 TestObject* impl = V8TestObject::toNative(info.Holder()); 5344 TestObject* impl = V8TestObject::toNative(info.Holder());
5355 V8TRYCATCH_VOID(Vector<int>, longSequenceArg, toNativeArray<int>(info[0], 1, info.GetIsolate())); 5345 V8TRYCATCH_VOID(Vector<int>, longSequenceArg, toNativeArray<int>(info[0], 1, info.GetIsolate()));
5356 impl->voidMethodSequenceLongArg(longSequenceArg); 5346 impl->voidMethodSequenceLongArg(longSequenceArg);
5357 } 5347 }
5358 5348
5359 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 5349 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
5360 { 5350 {
5361 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5351 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5362 TestObjectV8Internal::voidMethodSequenceLongArgMethod(info); 5352 TestObjectV8Internal::voidMethodSequenceLongArgMethod(info);
5363 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5353 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5364 } 5354 }
5365 5355
5366 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 5356 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
5367 { 5357 {
5368 if (UNLIKELY(info.Length() < 1)) { 5358 if (UNLIKELY(info.Length() < 1)) {
5369 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceStr ingArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate()); 5359 throwArityTypeErrorForMethod("voidMethodSequenceStringArg", "TestObject" , 1, info.Length(), info.GetIsolate());
5370 return; 5360 return;
5371 } 5361 }
5372 TestObject* impl = V8TestObject::toNative(info.Holder()); 5362 TestObject* impl = V8TestObject::toNative(info.Holder());
5373 V8TRYCATCH_VOID(Vector<String>, stringSequenceArg, toNativeArray<String>(inf o[0], 1, info.GetIsolate())); 5363 V8TRYCATCH_VOID(Vector<String>, stringSequenceArg, toNativeArray<String>(inf o[0], 1, info.GetIsolate()));
5374 impl->voidMethodSequenceStringArg(stringSequenceArg); 5364 impl->voidMethodSequenceStringArg(stringSequenceArg);
5375 } 5365 }
5376 5366
5377 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 5367 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
5378 { 5368 {
5379 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5369 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5380 TestObjectV8Internal::voidMethodSequenceStringArgMethod(info); 5370 TestObjectV8Internal::voidMethodSequenceStringArgMethod(info);
5381 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5371 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5382 } 5372 }
5383 5373
5384 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) 5374 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info)
5385 { 5375 {
5386 if (UNLIKELY(info.Length() < 1)) { 5376 if (UNLIKELY(info.Length() < 1)) {
5387 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceTes tInterfaceEmptyArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info .Length())), info.GetIsolate()); 5377 throwArityTypeErrorForMethod("voidMethodSequenceTestInterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate());
5388 return; 5378 return;
5389 } 5379 }
5390 TestObject* impl = V8TestObject::toNative(info.Holder()); 5380 TestObject* impl = V8TestObject::toNative(info.Holder());
5391 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, testInterfaceEmptySeque nceArg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate()))); 5381 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, testInterfaceEmptySeque nceArg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate())));
5392 impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg) ; 5382 impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg) ;
5393 } 5383 }
5394 5384
5395 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 5385 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
5396 { 5386 {
5397 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5387 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5398 TestObjectV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(info); 5388 TestObjectV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(info);
5399 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5389 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5400 } 5390 }
5401 5391
5402 static void voidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallba ckInfo<v8::Value>& info) 5392 static void voidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallba ckInfo<v8::Value>& info)
5403 { 5393 {
5404 if (UNLIKELY(info.Length() < 1)) { 5394 if (UNLIKELY(info.Length() < 1)) {
5405 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa ceEmptyOrNullArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.L ength())), info.GetIsolate()); 5395 throwArityTypeErrorForMethod("voidMethodTestInterfaceEmptyOrNullArg", "T estObject", 1, info.Length(), info.GetIsolate());
5406 return; 5396 return;
5407 } 5397 }
5408 TestObject* impl = V8TestObject::toNative(info.Holder()); 5398 TestObject* impl = V8TestObject::toNative(info.Holder());
5409 V8TRYCATCH_VOID(TestInterfaceEmpty*, nullableTestInterfaceEmptyArg, V8TestIn terfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 5399 V8TRYCATCH_VOID(TestInterfaceEmpty*, nullableTestInterfaceEmptyArg, V8TestIn terfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
5410 impl->voidMethodTestInterfaceEmptyOrNullArg(nullableTestInterfaceEmptyArg); 5400 impl->voidMethodTestInterfaceEmptyOrNullArg(nullableTestInterfaceEmptyArg);
5411 } 5401 }
5412 5402
5413 static void voidMethodTestInterfaceEmptyOrNullArgMethodCallback(const v8::Functi onCallbackInfo<v8::Value>& info) 5403 static void voidMethodTestInterfaceEmptyOrNullArgMethodCallback(const v8::Functi onCallbackInfo<v8::Value>& info)
5414 { 5404 {
5415 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5405 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5416 TestObjectV8Internal::voidMethodTestInterfaceEmptyOrNullArgMethod(info); 5406 TestObjectV8Internal::voidMethodTestInterfaceEmptyOrNullArgMethod(info);
5417 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5407 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5418 } 5408 }
5419 5409
5420 static void voidMethodTestCallbackInterfaceArgMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 5410 static void voidMethodTestCallbackInterfaceArgMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
5421 { 5411 {
5422 if (UNLIKELY(info.Length() < 1)) { 5412 if (UNLIKELY(info.Length() < 1)) {
5423 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCallbac kInterfaceArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Leng th())), info.GetIsolate()); 5413 throwArityTypeErrorForMethod("voidMethodTestCallbackInterfaceArg", "Test Object", 1, info.Length(), info.GetIsolate());
5424 return; 5414 return;
5425 } 5415 }
5426 TestObject* impl = V8TestObject::toNative(info.Holder()); 5416 TestObject* impl = V8TestObject::toNative(info.Holder());
5427 if (info.Length() <= 0 || !info[0]->IsFunction()) { 5417 if (info.Length() <= 0 || !info[0]->IsFunction()) {
5428 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCallbac kInterfaceArg", "TestObject", "The callback provided as parameter 1 is not a fun ction."), info.GetIsolate()); 5418 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCallbac kInterfaceArg", "TestObject", "The callback provided as parameter 1 is not a fun ction."), info.GetIsolate());
5429 return; 5419 return;
5430 } 5420 }
5431 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = V8TestCallbackInter face::create(v8::Handle<v8::Function>::Cast(info[0]), currentExecutionContext(in fo.GetIsolate())); 5421 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = V8TestCallbackInter face::create(v8::Handle<v8::Function>::Cast(info[0]), currentExecutionContext(in fo.GetIsolate()));
5432 impl->voidMethodTestCallbackInterfaceArg(testCallbackInterfaceArg.release()) ; 5422 impl->voidMethodTestCallbackInterfaceArg(testCallbackInterfaceArg.release()) ;
5433 } 5423 }
(...skipping 22 matching lines...) Expand all
5456 static void voidMethodOptionalTestCallbackInterfaceArgMethodCallback(const v8::F unctionCallbackInfo<v8::Value>& info) 5446 static void voidMethodOptionalTestCallbackInterfaceArgMethodCallback(const v8::F unctionCallbackInfo<v8::Value>& info)
5457 { 5447 {
5458 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5448 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5459 TestObjectV8Internal::voidMethodOptionalTestCallbackInterfaceArgMethod(info) ; 5449 TestObjectV8Internal::voidMethodOptionalTestCallbackInterfaceArgMethod(info) ;
5460 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5450 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5461 } 5451 }
5462 5452
5463 static void voidMethodTestCallbackInterfaceOrNullArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) 5453 static void voidMethodTestCallbackInterfaceOrNullArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info)
5464 { 5454 {
5465 if (UNLIKELY(info.Length() < 1)) { 5455 if (UNLIKELY(info.Length() < 1)) {
5466 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCallbac kInterfaceOrNullArg", "TestObject", ExceptionMessages::notEnoughArguments(1, inf o.Length())), info.GetIsolate()); 5456 throwArityTypeErrorForMethod("voidMethodTestCallbackInterfaceOrNullArg", "TestObject", 1, info.Length(), info.GetIsolate());
5467 return; 5457 return;
5468 } 5458 }
5469 TestObject* impl = V8TestObject::toNative(info.Holder()); 5459 TestObject* impl = V8TestObject::toNative(info.Holder());
5470 if (info.Length() <= 0 || !(info[0]->IsFunction() || info[0]->IsNull())) { 5460 if (info.Length() <= 0 || !(info[0]->IsFunction() || info[0]->IsNull())) {
5471 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCallbac kInterfaceOrNullArg", "TestObject", "The callback provided as parameter 1 is not a function."), info.GetIsolate()); 5461 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCallbac kInterfaceOrNullArg", "TestObject", "The callback provided as parameter 1 is not a function."), info.GetIsolate());
5472 return; 5462 return;
5473 } 5463 }
5474 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = info[0]->IsNull() ? nullptr : V8TestCallbackInterface::create(v8::Handle<v8::Function>::Cast(info[0 ]), currentExecutionContext(info.GetIsolate())); 5464 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = info[0]->IsNull() ? nullptr : V8TestCallbackInterface::create(v8::Handle<v8::Function>::Cast(info[0 ]), currentExecutionContext(info.GetIsolate()));
5475 impl->voidMethodTestCallbackInterfaceOrNullArg(testCallbackInterfaceArg.rele ase()); 5465 impl->voidMethodTestCallbackInterfaceOrNullArg(testCallbackInterfaceArg.rele ase());
5476 } 5466 }
(...skipping 14 matching lines...) Expand all
5491 static void testEnumMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info) 5481 static void testEnumMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info)
5492 { 5482 {
5493 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5483 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5494 TestObjectV8Internal::testEnumMethodMethod(info); 5484 TestObjectV8Internal::testEnumMethodMethod(info);
5495 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5485 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5496 } 5486 }
5497 5487
5498 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 5488 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
5499 { 5489 {
5500 if (UNLIKELY(info.Length() < 1)) { 5490 if (UNLIKELY(info.Length() < 1)) {
5501 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg ", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info. GetIsolate()); 5491 throwArityTypeErrorForMethod("voidMethodTestEnumArg", "TestObject", 1, i nfo.Length(), info.GetIsolate());
5502 return; 5492 return;
5503 } 5493 }
5504 TestObject* impl = V8TestObject::toNative(info.Holder()); 5494 TestObject* impl = V8TestObject::toNative(info.Holder());
5505 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, testEnumTypeArg, in fo[0]); 5495 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, testEnumTypeArg, in fo[0]);
5506 String string = testEnumTypeArg; 5496 String string = testEnumTypeArg;
5507 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st ring == "EnumValue3")) { 5497 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st ring == "EnumValue3")) {
5508 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg ", "TestObject", "parameter 1 ('" + string + "') is not a valid enum value."), i nfo.GetIsolate()); 5498 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg ", "TestObject", "parameter 1 ('" + string + "') is not a valid enum value."), i nfo.GetIsolate());
5509 return; 5499 return;
5510 } 5500 }
5511 impl->voidMethodTestEnumArg(testEnumTypeArg); 5501 impl->voidMethodTestEnumArg(testEnumTypeArg);
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
5579 static void xPathNSResolverMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 5569 static void xPathNSResolverMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
5580 { 5570 {
5581 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5571 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5582 TestObjectV8Internal::xPathNSResolverMethodMethod(info); 5572 TestObjectV8Internal::xPathNSResolverMethodMethod(info);
5583 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5573 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5584 } 5574 }
5585 5575
5586 static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 5576 static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
5587 { 5577 {
5588 if (UNLIKELY(info.Length() < 1)) { 5578 if (UNLIKELY(info.Length() < 1)) {
5589 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryA rg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); 5579 throwArityTypeErrorForMethod("voidMethodDictionaryArg", "TestObject", 1, info.Length(), info.GetIsolate());
5590 return; 5580 return;
5591 } 5581 }
5592 TestObject* impl = V8TestObject::toNative(info.Holder()); 5582 TestObject* impl = V8TestObject::toNative(info.Holder());
5593 V8TRYCATCH_VOID(Dictionary, dictionaryArg, Dictionary(info[0], info.GetIsola te())); 5583 V8TRYCATCH_VOID(Dictionary, dictionaryArg, Dictionary(info[0], info.GetIsola te()));
5594 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) { 5584 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) {
5595 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryA rg", "TestObject", "parameter 1 ('dictionaryArg') is not an object."), info.GetI solate()); 5585 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryA rg", "TestObject", "parameter 1 ('dictionaryArg') is not an object."), info.GetI solate());
5596 return; 5586 return;
5597 } 5587 }
5598 impl->voidMethodDictionaryArg(dictionaryArg); 5588 impl->voidMethodDictionaryArg(dictionaryArg);
5599 } 5589 }
5600 5590
5601 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 5591 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
5602 { 5592 {
5603 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5593 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5604 TestObjectV8Internal::voidMethodDictionaryArgMethod(info); 5594 TestObjectV8Internal::voidMethodDictionaryArgMethod(info);
5605 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5595 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5606 } 5596 }
5607 5597
5608 static void voidMethodEventListenerArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 5598 static void voidMethodEventListenerArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
5609 { 5599 {
5610 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE ventListenerArg", "TestObject", info.Holder(), info.GetIsolate()); 5600 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE ventListenerArg", "TestObject", info.Holder(), info.GetIsolate());
5611 if (UNLIKELY(info.Length() < 1)) { 5601 if (UNLIKELY(info.Length() < 1)) {
5612 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 5602 throwArityTypeError(exceptionState, 1, info.Length());
5613 exceptionState.throwIfNeeded();
5614 return; 5603 return;
5615 } 5604 }
5616 TestObject* impl = V8TestObject::toNative(info.Holder()); 5605 TestObject* impl = V8TestObject::toNative(info.Holder());
5617 RefPtr<EventListener> eventListenerArg = V8EventListenerList::getEventListen er(info[1], false, ListenerFindOrCreate); 5606 RefPtr<EventListener> eventListenerArg = V8EventListenerList::getEventListen er(info[1], false, ListenerFindOrCreate);
5618 impl->voidMethodEventListenerArg(eventListenerArg); 5607 impl->voidMethodEventListenerArg(eventListenerArg);
5619 if (listener && !impl->toNode()) 5608 if (listener && !impl->toNode())
5620 removeHiddenValueFromArray(info.Holder(), info[1], V8TestObject::eventLi stenerCacheIndex, info.GetIsolate()); 5609 removeHiddenValueFromArray(info.Holder(), info[1], V8TestObject::eventLi stenerCacheIndex, info.GetIsolate());
5621 } 5610 }
5622 5611
5623 static void voidMethodEventListenerArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 5612 static void voidMethodEventListenerArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
5624 { 5613 {
5625 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5614 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5626 TestObjectV8Internal::voidMethodEventListenerArgMethod(info); 5615 TestObjectV8Internal::voidMethodEventListenerArgMethod(info);
5627 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5616 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5628 } 5617 }
5629 5618
5630 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 5619 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
5631 { 5620 {
5632 if (UNLIKELY(info.Length() < 1)) { 5621 if (UNLIKELY(info.Length() < 1)) {
5633 throwTypeError(ExceptionMessages::failedToExecute("voidMethodNodeFilterA rg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), inf o.GetIsolate()); 5622 throwArityTypeErrorForMethod("voidMethodNodeFilterArg", "TestObject", 1, info.Length(), info.GetIsolate());
5634 return; 5623 return;
5635 } 5624 }
5636 TestObject* impl = V8TestObject::toNative(info.Holder()); 5625 TestObject* impl = V8TestObject::toNative(info.Holder());
5637 V8TRYCATCH_VOID(RefPtr<NodeFilter>, nodeFilterArg, toNodeFilter(info[0], inf o.GetIsolate())); 5626 V8TRYCATCH_VOID(RefPtr<NodeFilter>, nodeFilterArg, toNodeFilter(info[0], inf o.GetIsolate()));
5638 impl->voidMethodNodeFilterArg(nodeFilterArg.release()); 5627 impl->voidMethodNodeFilterArg(nodeFilterArg.release());
5639 } 5628 }
5640 5629
5641 static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 5630 static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
5642 { 5631 {
5643 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5632 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5644 TestObjectV8Internal::voidMethodNodeFilterArgMethod(info); 5633 TestObjectV8Internal::voidMethodNodeFilterArgMethod(info);
5645 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5634 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5646 } 5635 }
5647 5636
5648 static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 5637 static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
5649 { 5638 {
5650 if (UNLIKELY(info.Length() < 1)) { 5639 if (UNLIKELY(info.Length() < 1)) {
5651 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg" , "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.G etIsolate()); 5640 throwArityTypeErrorForMethod("voidMethodPromiseArg", "TestObject", 1, in fo.Length(), info.GetIsolate());
5652 return; 5641 return;
5653 } 5642 }
5654 TestObject* impl = V8TestObject::toNative(info.Holder()); 5643 TestObject* impl = V8TestObject::toNative(info.Holder());
5655 V8TRYCATCH_VOID(ScriptPromise, promiseArg, ScriptPromise(info[0], info.GetIs olate())); 5644 V8TRYCATCH_VOID(ScriptPromise, promiseArg, ScriptPromise(info[0], info.GetIs olate()));
5656 if (!promiseArg.isUndefinedOrNull() && !promiseArg.isObject()) { 5645 if (!promiseArg.isUndefinedOrNull() && !promiseArg.isObject()) {
5657 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg" , "TestObject", "parameter 1 ('promiseArg') is not an object."), info.GetIsolate ()); 5646 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg" , "TestObject", "parameter 1 ('promiseArg') is not an object."), info.GetIsolate ());
5658 return; 5647 return;
5659 } 5648 }
5660 impl->voidMethodPromiseArg(promiseArg); 5649 impl->voidMethodPromiseArg(promiseArg);
5661 } 5650 }
5662 5651
5663 static void voidMethodPromiseArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 5652 static void voidMethodPromiseArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
5664 { 5653 {
5665 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5654 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5666 TestObjectV8Internal::voidMethodPromiseArgMethod(info); 5655 TestObjectV8Internal::voidMethodPromiseArgMethod(info);
5667 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5656 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5668 } 5657 }
5669 5658
5670 static void voidMethodSerializedScriptValueArgMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 5659 static void voidMethodSerializedScriptValueArgMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
5671 { 5660 {
5672 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS erializedScriptValueArg", "TestObject", info.Holder(), info.GetIsolate()); 5661 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS erializedScriptValueArg", "TestObject", info.Holder(), info.GetIsolate());
5673 if (UNLIKELY(info.Length() < 1)) { 5662 if (UNLIKELY(info.Length() < 1)) {
5674 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 5663 throwArityTypeError(exceptionState, 1, info.Length());
5675 exceptionState.throwIfNeeded();
5676 return; 5664 return;
5677 } 5665 }
5678 TestObject* impl = V8TestObject::toNative(info.Holder()); 5666 TestObject* impl = V8TestObject::toNative(info.Holder());
5679 RefPtr<SerializedScriptValue> serializedScriptValueArg = SerializedScriptVal ue::create(info[0], 0, 0, exceptionState, info.GetIsolate()); 5667 RefPtr<SerializedScriptValue> serializedScriptValueArg = SerializedScriptVal ue::create(info[0], 0, 0, exceptionState, info.GetIsolate());
5680 if (exceptionState.throwIfNeeded()) 5668 if (exceptionState.throwIfNeeded())
5681 return; 5669 return;
5682 impl->voidMethodSerializedScriptValueArg(serializedScriptValueArg); 5670 impl->voidMethodSerializedScriptValueArg(serializedScriptValueArg);
5683 } 5671 }
5684 5672
5685 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 5673 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
5686 { 5674 {
5687 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5675 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5688 TestObjectV8Internal::voidMethodSerializedScriptValueArgMethod(info); 5676 TestObjectV8Internal::voidMethodSerializedScriptValueArgMethod(info);
5689 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5677 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5690 } 5678 }
5691 5679
5692 static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) 5680 static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info)
5693 { 5681 {
5694 if (UNLIKELY(info.Length() < 1)) { 5682 if (UNLIKELY(info.Length() < 1)) {
5695 throwTypeError(ExceptionMessages::failedToExecute("voidMethodXPathNSReso lverArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())) , info.GetIsolate()); 5683 throwArityTypeErrorForMethod("voidMethodXPathNSResolverArg", "TestObject ", 1, info.Length(), info.GetIsolate());
5696 return; 5684 return;
5697 } 5685 }
5698 TestObject* impl = V8TestObject::toNative(info.Holder()); 5686 TestObject* impl = V8TestObject::toNative(info.Holder());
5699 V8TRYCATCH_VOID(RefPtrWillBeRawPtr<XPathNSResolver>, xPathNSResolverArg, toX PathNSResolver(info[0], info.GetIsolate())); 5687 V8TRYCATCH_VOID(RefPtrWillBeRawPtr<XPathNSResolver>, xPathNSResolverArg, toX PathNSResolver(info[0], info.GetIsolate()));
5700 impl->voidMethodXPathNSResolverArg(xPathNSResolverArg.release()); 5688 impl->voidMethodXPathNSResolverArg(xPathNSResolverArg.release());
5701 } 5689 }
5702 5690
5703 static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 5691 static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
5704 { 5692 {
5705 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5693 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5706 TestObjectV8Internal::voidMethodXPathNSResolverArgMethod(info); 5694 TestObjectV8Internal::voidMethodXPathNSResolverArgMethod(info);
5707 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5695 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5708 } 5696 }
5709 5697
5710 static void voidMethodDictionarySequenceArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 5698 static void voidMethodDictionarySequenceArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
5711 { 5699 {
5712 if (UNLIKELY(info.Length() < 1)) { 5700 if (UNLIKELY(info.Length() < 1)) {
5713 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryS equenceArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length( ))), info.GetIsolate()); 5701 throwArityTypeErrorForMethod("voidMethodDictionarySequenceArg", "TestObj ect", 1, info.Length(), info.GetIsolate());
5714 return; 5702 return;
5715 } 5703 }
5716 TestObject* impl = V8TestObject::toNative(info.Holder()); 5704 TestObject* impl = V8TestObject::toNative(info.Holder());
5717 V8TRYCATCH_VOID(Vector<Dictionary>, dictionarySequenceArg, toNativeArray<Dic tionary>(info[0], 1, info.GetIsolate())); 5705 V8TRYCATCH_VOID(Vector<Dictionary>, dictionarySequenceArg, toNativeArray<Dic tionary>(info[0], 1, info.GetIsolate()));
5718 impl->voidMethodDictionarySequenceArg(dictionarySequenceArg); 5706 impl->voidMethodDictionarySequenceArg(dictionarySequenceArg);
5719 } 5707 }
5720 5708
5721 static void voidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 5709 static void voidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
5722 { 5710 {
5723 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5711 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5724 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info); 5712 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info);
5725 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5713 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5726 } 5714 }
5727 5715
5728 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 5716 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
5729 { 5717 {
5730 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS tringArgLongArg", "TestObject", info.Holder(), info.GetIsolate()); 5718 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS tringArgLongArg", "TestObject", info.Holder(), info.GetIsolate());
5731 if (UNLIKELY(info.Length() < 2)) { 5719 if (UNLIKELY(info.Length() < 2)) {
5732 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i nfo.Length())); 5720 throwArityTypeError(exceptionState, 2, info.Length());
5733 exceptionState.throwIfNeeded();
5734 return; 5721 return;
5735 } 5722 }
5736 TestObject* impl = V8TestObject::toNative(info.Holder()); 5723 TestObject* impl = V8TestObject::toNative(info.Holder());
5737 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0]) ; 5724 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0]) ;
5738 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[1], exceptionState), ex ceptionState); 5725 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[1], exceptionState), ex ceptionState);
5739 impl->voidMethodStringArgLongArg(stringArg, longArg); 5726 impl->voidMethodStringArgLongArg(stringArg, longArg);
5740 } 5727 }
5741 5728
5742 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 5729 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
5743 { 5730 {
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
5855 { 5842 {
5856 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5843 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5857 TestObjectV8Internal::longMethodOptionalLongArgMethod(info); 5844 TestObjectV8Internal::longMethodOptionalLongArgMethod(info);
5858 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5845 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5859 } 5846 }
5860 5847
5861 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf o<v8::Value>& info) 5848 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf o<v8::Value>& info)
5862 { 5849 {
5863 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 5850 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
5864 if (UNLIKELY(info.Length() < 1)) { 5851 if (UNLIKELY(info.Length() < 1)) {
5865 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 5852 throwArityTypeError(exceptionState, 1, info.Length());
5866 exceptionState.throwIfNeeded();
5867 return; 5853 return;
5868 } 5854 }
5869 TestObject* impl = V8TestObject::toNative(info.Holder()); 5855 TestObject* impl = V8TestObject::toNative(info.Holder());
5870 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 5856 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState);
5871 if (UNLIKELY(info.Length() <= 1)) { 5857 if (UNLIKELY(info.Length() <= 1)) {
5872 impl->voidMethodLongArgOptionalLongArg(longArg); 5858 impl->voidMethodLongArgOptionalLongArg(longArg);
5873 return; 5859 return;
5874 } 5860 }
5875 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[1], exceptionSt ate), exceptionState); 5861 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[1], exceptionSt ate), exceptionState);
5876 impl->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg); 5862 impl->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg);
5877 } 5863 }
5878 5864
5879 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 5865 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
5880 { 5866 {
5881 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5867 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5882 TestObjectV8Internal::voidMethodLongArgOptionalLongArgMethod(info); 5868 TestObjectV8Internal::voidMethodLongArgOptionalLongArgMethod(info);
5883 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5869 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5884 } 5870 }
5885 5871
5886 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) 5872 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info)
5887 { 5873 {
5888 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalLongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsol ate()); 5874 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalLongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsol ate());
5889 if (UNLIKELY(info.Length() < 1)) { 5875 if (UNLIKELY(info.Length() < 1)) {
5890 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 5876 throwArityTypeError(exceptionState, 1, info.Length());
5891 exceptionState.throwIfNeeded();
5892 return; 5877 return;
5893 } 5878 }
5894 TestObject* impl = V8TestObject::toNative(info.Holder()); 5879 TestObject* impl = V8TestObject::toNative(info.Holder());
5895 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 5880 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState);
5896 if (UNLIKELY(info.Length() <= 1)) { 5881 if (UNLIKELY(info.Length() <= 1)) {
5897 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg); 5882 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg);
5898 return; 5883 return;
5899 } 5884 }
5900 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg1, toInt32(info[1], exceptionS tate), exceptionState); 5885 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg1, toInt32(info[1], exceptionS tate), exceptionState);
5901 if (UNLIKELY(info.Length() <= 2)) { 5886 if (UNLIKELY(info.Length() <= 2)) {
5902 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalL ongArg1); 5887 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalL ongArg1);
5903 return; 5888 return;
5904 } 5889 }
5905 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg2, toInt32(info[2], exceptionS tate), exceptionState); 5890 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg2, toInt32(info[2], exceptionS tate), exceptionState);
5906 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongA rg1, optionalLongArg2); 5891 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongA rg1, optionalLongArg2);
5907 } 5892 }
5908 5893
5909 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 5894 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
5910 { 5895 {
5911 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5896 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5912 TestObjectV8Internal::voidMethodLongArgOptionalLongArgOptionalLongArgMethod( info); 5897 TestObjectV8Internal::voidMethodLongArgOptionalLongArgOptionalLongArgMethod( info);
5913 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5898 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5914 } 5899 }
5915 5900
5916 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct ionCallbackInfo<v8::Value>& info) 5901 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct ionCallbackInfo<v8::Value>& info)
5917 { 5902 {
5918 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsola te()); 5903 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsola te());
5919 if (UNLIKELY(info.Length() < 1)) { 5904 if (UNLIKELY(info.Length() < 1)) {
5920 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 5905 throwArityTypeError(exceptionState, 1, info.Length());
5921 exceptionState.throwIfNeeded();
5922 return; 5906 return;
5923 } 5907 }
5924 TestObject* impl = V8TestObject::toNative(info.Holder()); 5908 TestObject* impl = V8TestObject::toNative(info.Holder());
5925 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 5909 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState);
5926 if (UNLIKELY(info.Length() <= 1)) { 5910 if (UNLIKELY(info.Length() <= 1)) {
5927 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg); 5911 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg);
5928 return; 5912 return;
5929 } 5913 }
5930 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter faceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[1])); 5914 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter faceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[1]));
5931 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestIn terfaceEmpty); 5915 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestIn terfaceEmpty);
5932 } 5916 }
5933 5917
5934 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info) 5918 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info)
5935 { 5919 {
5936 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5920 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5937 TestObjectV8Internal::voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(i nfo); 5921 TestObjectV8Internal::voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(i nfo);
5938 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5922 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5939 } 5923 }
5940 5924
5941 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::Funct ionCallbackInfo<v8::Value>& info) 5925 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::Funct ionCallbackInfo<v8::Value>& info)
5942 { 5926 {
5943 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT estInterfaceEmptyArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsola te()); 5927 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT estInterfaceEmptyArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsola te());
5944 if (UNLIKELY(info.Length() < 1)) { 5928 if (UNLIKELY(info.Length() < 1)) {
5945 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 5929 throwArityTypeError(exceptionState, 1, info.Length());
5946 exceptionState.throwIfNeeded();
5947 return; 5930 return;
5948 } 5931 }
5949 TestObject* impl = V8TestObject::toNative(info.Holder()); 5932 TestObject* impl = V8TestObject::toNative(info.Holder());
5950 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter faceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 5933 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter faceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
5951 if (UNLIKELY(info.Length() <= 1)) { 5934 if (UNLIKELY(info.Length() <= 1)) {
5952 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfa ceEmpty); 5935 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfa ceEmpty);
5953 return; 5936 return;
5954 } 5937 }
5955 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[1], exceptionState), ex ceptionState); 5938 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[1], exceptionState), ex ceptionState);
5956 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEm pty, longArg); 5939 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEm pty, longArg);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
5991 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 5974 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
5992 { 5975 {
5993 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5976 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5994 TestObjectV8Internal::voidMethodVariadicStringArgMethod(info); 5977 TestObjectV8Internal::voidMethodVariadicStringArgMethod(info);
5995 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5978 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5996 } 5979 }
5997 5980
5998 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) 5981 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info)
5999 { 5982 {
6000 if (UNLIKELY(info.Length() < 1)) { 5983 if (UNLIKELY(info.Length() < 1)) {
6001 throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArgVa riadicStringArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Le ngth())), info.GetIsolate()); 5984 throwArityTypeErrorForMethod("voidMethodStringArgVariadicStringArg", "Te stObject", 1, info.Length(), info.GetIsolate());
6002 return; 5985 return;
6003 } 5986 }
6004 TestObject* impl = V8TestObject::toNative(info.Holder()); 5987 TestObject* impl = V8TestObject::toNative(info.Holder());
6005 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0]) ; 5988 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0]) ;
6006 V8TRYCATCH_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String >(info, 1)); 5989 V8TRYCATCH_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String >(info, 1));
6007 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); 5990 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs);
6008 } 5991 }
6009 5992
6010 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 5993 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
6011 { 5994 {
(...skipping 19 matching lines...) Expand all
6031 static void voidMethodVariadicTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 6014 static void voidMethodVariadicTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
6032 { 6015 {
6033 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6016 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6034 TestObjectV8Internal::voidMethodVariadicTestInterfaceEmptyArgMethod(info); 6017 TestObjectV8Internal::voidMethodVariadicTestInterfaceEmptyArgMethod(info);
6035 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6018 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6036 } 6019 }
6037 6020
6038 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(c onst v8::FunctionCallbackInfo<v8::Value>& info) 6021 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(c onst v8::FunctionCallbackInfo<v8::Value>& info)
6039 { 6022 {
6040 if (UNLIKELY(info.Length() < 1)) { 6023 if (UNLIKELY(info.Length() < 1)) {
6041 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa ceEmptyArgVariadicTestInterfaceEmptyArg", "TestObject", ExceptionMessages::notEn oughArguments(1, info.Length())), info.GetIsolate()); 6024 throwArityTypeErrorForMethod("voidMethodTestInterfaceEmptyArgVariadicTes tInterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate());
6042 return; 6025 return;
6043 } 6026 }
6044 TestObject* impl = V8TestObject::toNative(info.Holder()); 6027 TestObject* impl = V8TestObject::toNative(info.Holder());
6045 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 6028 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
6046 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; 6029 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs;
6047 for (int i = 1; i < info.Length(); ++i) { 6030 for (int i = 1; i < info.Length(); ++i) {
6048 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) { 6031 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) {
6049 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInt erfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObject", "parameter 2 is not of type 'TestInterfaceEmpty'."), info.GetIsolate()); 6032 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInt erfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObject", "parameter 2 is not of type 'TestInterfaceEmpty'."), info.GetIsolate());
6050 return; 6033 return;
6051 } 6034 }
(...skipping 27 matching lines...) Expand all
6079 { 6062 {
6080 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6063 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6081 TestObjectV8Internal::voidMethodVariadicTestInterfaceWillBeGarbageCollectedA rgMethod(info); 6064 TestObjectV8Internal::voidMethodVariadicTestInterfaceWillBeGarbageCollectedA rgMethod(info);
6082 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6065 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6083 } 6066 }
6084 6067
6085 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6068 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6086 { 6069 {
6087 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate()); 6070 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate());
6088 if (UNLIKELY(info.Length() < 1)) { 6071 if (UNLIKELY(info.Length() < 1)) {
6089 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6072 throwArityTypeError(exceptionState, 1, info.Length());
6090 exceptionState.throwIfNeeded();
6091 return; 6073 return;
6092 } 6074 }
6093 TestObject* impl = V8TestObject::toNative(info.Holder()); 6075 TestObject* impl = V8TestObject::toNative(info.Holder());
6094 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 6076 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState);
6095 impl->overloadedMethodA(longArg); 6077 impl->overloadedMethodA(longArg);
6096 } 6078 }
6097 6079
6098 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6080 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6099 { 6081 {
6100 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate()); 6082 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate());
6101 if (UNLIKELY(info.Length() < 2)) { 6083 if (UNLIKELY(info.Length() < 2)) {
6102 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i nfo.Length())); 6084 throwArityTypeError(exceptionState, 2, info.Length());
6103 exceptionState.throwIfNeeded();
6104 return; 6085 return;
6105 } 6086 }
6106 TestObject* impl = V8TestObject::toNative(info.Holder()); 6087 TestObject* impl = V8TestObject::toNative(info.Holder());
6107 V8TRYCATCH_EXCEPTION_VOID(int, longArg1, toInt32(info[0], exceptionState), e xceptionState); 6088 V8TRYCATCH_EXCEPTION_VOID(int, longArg1, toInt32(info[0], exceptionState), e xceptionState);
6108 V8TRYCATCH_EXCEPTION_VOID(int, longArg2, toInt32(info[1], exceptionState), e xceptionState); 6089 V8TRYCATCH_EXCEPTION_VOID(int, longArg2, toInt32(info[1], exceptionState), e xceptionState);
6109 impl->overloadedMethodA(longArg1, longArg2); 6090 impl->overloadedMethodA(longArg1, longArg2);
6110 } 6091 }
6111 6092
6112 static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6093 static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6113 { 6094 {
6114 if (((info.Length() == 1))) { 6095 if (((info.Length() == 1))) {
6115 overloadedMethodA1Method(info); 6096 overloadedMethodA1Method(info);
6116 return; 6097 return;
6117 } 6098 }
6118 if (((info.Length() == 2))) { 6099 if (((info.Length() == 2))) {
6119 overloadedMethodA2Method(info); 6100 overloadedMethodA2Method(info);
6120 return; 6101 return;
6121 } 6102 }
6122 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate()); 6103 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate());
6123 if (UNLIKELY(info.Length() < 1)) { 6104 if (UNLIKELY(info.Length() < 1)) {
6124 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6105 throwArityTypeError(exceptionState, 1, info.Length());
6125 exceptionState.throwIfNeeded();
6126 return; 6106 return;
6127 } 6107 }
6128 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 6108 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
6129 exceptionState.throwIfNeeded(); 6109 exceptionState.throwIfNeeded();
6130 } 6110 }
6131 6111
6132 static void overloadedMethodAMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 6112 static void overloadedMethodAMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
6133 { 6113 {
6134 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6114 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6135 TestObjectV8Internal::overloadedMethodAMethod(info); 6115 TestObjectV8Internal::overloadedMethodAMethod(info);
6136 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6116 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6137 } 6117 }
6138 6118
6139 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6119 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6140 { 6120 {
6141 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate()); 6121 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate());
6142 if (UNLIKELY(info.Length() < 1)) { 6122 if (UNLIKELY(info.Length() < 1)) {
6143 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6123 throwArityTypeError(exceptionState, 1, info.Length());
6144 exceptionState.throwIfNeeded();
6145 return; 6124 return;
6146 } 6125 }
6147 TestObject* impl = V8TestObject::toNative(info.Holder()); 6126 TestObject* impl = V8TestObject::toNative(info.Holder());
6148 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 6127 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState);
6149 impl->overloadedMethodB(longArg); 6128 impl->overloadedMethodB(longArg);
6150 } 6129 }
6151 6130
6152 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6131 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6153 { 6132 {
6154 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate()); 6133 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate());
6155 if (UNLIKELY(info.Length() < 1)) { 6134 if (UNLIKELY(info.Length() < 1)) {
6156 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6135 throwArityTypeError(exceptionState, 1, info.Length());
6157 exceptionState.throwIfNeeded();
6158 return; 6136 return;
6159 } 6137 }
6160 TestObject* impl = V8TestObject::toNative(info.Holder()); 6138 TestObject* impl = V8TestObject::toNative(info.Holder());
6161 V8TRYCATCH_EXCEPTION_VOID(int, longArg1, toInt32(info[0], exceptionState), e xceptionState); 6139 V8TRYCATCH_EXCEPTION_VOID(int, longArg1, toInt32(info[0], exceptionState), e xceptionState);
6162 if (UNLIKELY(info.Length() <= 1)) { 6140 if (UNLIKELY(info.Length() <= 1)) {
6163 impl->overloadedMethodB(longArg1); 6141 impl->overloadedMethodB(longArg1);
6164 return; 6142 return;
6165 } 6143 }
6166 V8TRYCATCH_EXCEPTION_VOID(int, longArg2, toInt32(info[1], exceptionState), e xceptionState); 6144 V8TRYCATCH_EXCEPTION_VOID(int, longArg2, toInt32(info[1], exceptionState), e xceptionState);
6167 impl->overloadedMethodB(longArg1, longArg2); 6145 impl->overloadedMethodB(longArg1, longArg2);
6168 } 6146 }
6169 6147
6170 static void overloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6148 static void overloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6171 { 6149 {
6172 if (((info.Length() == 1))) { 6150 if (((info.Length() == 1))) {
6173 overloadedMethodB1Method(info); 6151 overloadedMethodB1Method(info);
6174 return; 6152 return;
6175 } 6153 }
6176 if (((info.Length() == 1)) || ((info.Length() == 2))) { 6154 if (((info.Length() == 1)) || ((info.Length() == 2))) {
6177 overloadedMethodB2Method(info); 6155 overloadedMethodB2Method(info);
6178 return; 6156 return;
6179 } 6157 }
6180 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate()); 6158 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate());
6181 if (UNLIKELY(info.Length() < 1)) { 6159 if (UNLIKELY(info.Length() < 1)) {
6182 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6160 throwArityTypeError(exceptionState, 1, info.Length());
6183 exceptionState.throwIfNeeded();
6184 return; 6161 return;
6185 } 6162 }
6186 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 6163 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
6187 exceptionState.throwIfNeeded(); 6164 exceptionState.throwIfNeeded();
6188 } 6165 }
6189 6166
6190 static void overloadedMethodBMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 6167 static void overloadedMethodBMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
6191 { 6168 {
6192 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6169 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6193 TestObjectV8Internal::overloadedMethodBMethod(info); 6170 TestObjectV8Internal::overloadedMethodBMethod(info);
6194 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6171 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6195 } 6172 }
6196 6173
6197 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6174 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6198 { 6175 {
6199 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObject", info.Holder(), info.GetIsolate()); 6176 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObject", info.Holder(), info.GetIsolate());
6200 if (UNLIKELY(info.Length() < 1)) { 6177 if (UNLIKELY(info.Length() < 1)) {
6201 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6178 throwArityTypeError(exceptionState, 1, info.Length());
6202 exceptionState.throwIfNeeded();
6203 return; 6179 return;
6204 } 6180 }
6205 TestObject* impl = V8TestObject::toNative(info.Holder()); 6181 TestObject* impl = V8TestObject::toNative(info.Holder());
6206 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 6182 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState);
6207 impl->overloadedMethodC(longArg); 6183 impl->overloadedMethodC(longArg);
6208 } 6184 }
6209 6185
6210 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6186 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6211 { 6187 {
6212 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObject", info.Holder(), info.GetIsolate()); 6188 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObject", info.Holder(), info.GetIsolate());
6213 if (UNLIKELY(info.Length() < 1)) { 6189 if (UNLIKELY(info.Length() < 1)) {
6214 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6190 throwArityTypeError(exceptionState, 1, info.Length());
6215 exceptionState.throwIfNeeded();
6216 return; 6191 return;
6217 } 6192 }
6218 TestObject* impl = V8TestObject::toNative(info.Holder()); 6193 TestObject* impl = V8TestObject::toNative(info.Holder());
6219 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 6194 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState);
6220 V8TRYCATCH_VOID(Vector<int>, longArgs, toNativeArguments<int>(info, 1)); 6195 V8TRYCATCH_VOID(Vector<int>, longArgs, toNativeArguments<int>(info, 1));
6221 impl->overloadedMethodC(longArg, longArgs); 6196 impl->overloadedMethodC(longArg, longArgs);
6222 } 6197 }
6223 6198
6224 static void overloadedMethodCMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6199 static void overloadedMethodCMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6225 { 6200 {
6226 if (((info.Length() == 1))) { 6201 if (((info.Length() == 1))) {
6227 overloadedMethodC1Method(info); 6202 overloadedMethodC1Method(info);
6228 return; 6203 return;
6229 } 6204 }
6230 if () { 6205 if () {
6231 overloadedMethodC2Method(info); 6206 overloadedMethodC2Method(info);
6232 return; 6207 return;
6233 } 6208 }
6234 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObject", info.Holder(), info.GetIsolate()); 6209 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObject", info.Holder(), info.GetIsolate());
6235 if (UNLIKELY(info.Length() < 1)) { 6210 if (UNLIKELY(info.Length() < 1)) {
6236 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6211 throwArityTypeError(exceptionState, 1, info.Length());
6237 exceptionState.throwIfNeeded();
6238 return; 6212 return;
6239 } 6213 }
6240 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 6214 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
6241 exceptionState.throwIfNeeded(); 6215 exceptionState.throwIfNeeded();
6242 } 6216 }
6243 6217
6244 static void overloadedMethodCMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 6218 static void overloadedMethodCMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
6245 { 6219 {
6246 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6220 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6247 TestObjectV8Internal::overloadedMethodCMethod(info); 6221 TestObjectV8Internal::overloadedMethodCMethod(info);
6248 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6222 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6249 } 6223 }
6250 6224
6251 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6225 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6252 { 6226 {
6253 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObject", info.Holder(), info.GetIsolate()); 6227 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObject", info.Holder(), info.GetIsolate());
6254 if (UNLIKELY(info.Length() < 1)) { 6228 if (UNLIKELY(info.Length() < 1)) {
6255 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6229 throwArityTypeError(exceptionState, 1, info.Length());
6256 exceptionState.throwIfNeeded();
6257 return; 6230 return;
6258 } 6231 }
6259 TestObject* impl = V8TestObject::toNative(info.Holder()); 6232 TestObject* impl = V8TestObject::toNative(info.Holder());
6260 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 6233 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState);
6261 impl->overloadedMethodD(longArg); 6234 impl->overloadedMethodD(longArg);
6262 } 6235 }
6263 6236
6264 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6237 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6265 { 6238 {
6266 if (UNLIKELY(info.Length() < 1)) { 6239 if (UNLIKELY(info.Length() < 1)) {
6267 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodD", " TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetI solate()); 6240 throwArityTypeErrorForMethod("overloadedMethodD", "TestObject", 1, info. Length(), info.GetIsolate());
6268 return; 6241 return;
6269 } 6242 }
6270 TestObject* impl = V8TestObject::toNative(info.Holder()); 6243 TestObject* impl = V8TestObject::toNative(info.Holder());
6271 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 6244 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
6272 impl->overloadedMethodD(testInterfaceEmptyArg); 6245 impl->overloadedMethodD(testInterfaceEmptyArg);
6273 } 6246 }
6274 6247
6275 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6248 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6276 { 6249 {
6277 if (((info.Length() == 1))) { 6250 if (((info.Length() == 1))) {
6278 overloadedMethodD1Method(info); 6251 overloadedMethodD1Method(info);
6279 return; 6252 return;
6280 } 6253 }
6281 if (((info.Length() == 1) && (V8TestInterfaceEmpty::hasInstance(info[0], inf o.GetIsolate())))) { 6254 if (((info.Length() == 1) && (V8TestInterfaceEmpty::hasInstance(info[0], inf o.GetIsolate())))) {
6282 overloadedMethodD2Method(info); 6255 overloadedMethodD2Method(info);
6283 return; 6256 return;
6284 } 6257 }
6285 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObject", info.Holder(), info.GetIsolate()); 6258 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObject", info.Holder(), info.GetIsolate());
6286 if (UNLIKELY(info.Length() < 1)) { 6259 if (UNLIKELY(info.Length() < 1)) {
6287 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6260 throwArityTypeError(exceptionState, 1, info.Length());
6288 exceptionState.throwIfNeeded();
6289 return; 6261 return;
6290 } 6262 }
6291 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 6263 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
6292 exceptionState.throwIfNeeded(); 6264 exceptionState.throwIfNeeded();
6293 } 6265 }
6294 6266
6295 static void overloadedMethodDMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 6267 static void overloadedMethodDMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
6296 { 6268 {
6297 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6269 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6298 TestObjectV8Internal::overloadedMethodDMethod(info); 6270 TestObjectV8Internal::overloadedMethodDMethod(info);
6299 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6271 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6300 } 6272 }
6301 6273
6302 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6274 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6303 { 6275 {
6304 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodE", "TestObject", info.Holder(), info.GetIsolate()); 6276 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodE", "TestObject", info.Holder(), info.GetIsolate());
6305 if (UNLIKELY(info.Length() < 1)) { 6277 if (UNLIKELY(info.Length() < 1)) {
6306 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6278 throwArityTypeError(exceptionState, 1, info.Length());
6307 exceptionState.throwIfNeeded();
6308 return; 6279 return;
6309 } 6280 }
6310 TestObject* impl = V8TestObject::toNative(info.Holder()); 6281 TestObject* impl = V8TestObject::toNative(info.Holder());
6311 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 6282 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState);
6312 impl->overloadedMethodE(longArg); 6283 impl->overloadedMethodE(longArg);
6313 } 6284 }
6314 6285
6315 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6286 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6316 { 6287 {
6317 if (UNLIKELY(info.Length() < 1)) { 6288 if (UNLIKELY(info.Length() < 1)) {
6318 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodE", " TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetI solate()); 6289 throwArityTypeErrorForMethod("overloadedMethodE", "TestObject", 1, info. Length(), info.GetIsolate());
6319 return; 6290 return;
6320 } 6291 }
6321 TestObject* impl = V8TestObject::toNative(info.Holder()); 6292 TestObject* impl = V8TestObject::toNative(info.Holder());
6322 V8TRYCATCH_VOID(Vector<int>, longArrayArg, toNativeArray<int>(info[0], 1, in fo.GetIsolate())); 6293 V8TRYCATCH_VOID(Vector<int>, longArrayArg, toNativeArray<int>(info[0], 1, in fo.GetIsolate()));
6323 impl->overloadedMethodE(longArrayArg); 6294 impl->overloadedMethodE(longArrayArg);
6324 } 6295 }
6325 6296
6326 static void overloadedMethodEMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6297 static void overloadedMethodEMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6327 { 6298 {
6328 if (((info.Length() == 1))) { 6299 if (((info.Length() == 1))) {
6329 overloadedMethodE1Method(info); 6300 overloadedMethodE1Method(info);
6330 return; 6301 return;
6331 } 6302 }
6332 if (((info.Length() == 1) && (info[0]->IsArray()))) { 6303 if (((info.Length() == 1) && (info[0]->IsArray()))) {
6333 overloadedMethodE2Method(info); 6304 overloadedMethodE2Method(info);
6334 return; 6305 return;
6335 } 6306 }
6336 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodE", "TestObject", info.Holder(), info.GetIsolate()); 6307 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodE", "TestObject", info.Holder(), info.GetIsolate());
6337 if (UNLIKELY(info.Length() < 1)) { 6308 if (UNLIKELY(info.Length() < 1)) {
6338 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6309 throwArityTypeError(exceptionState, 1, info.Length());
6339 exceptionState.throwIfNeeded();
6340 return; 6310 return;
6341 } 6311 }
6342 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 6312 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
6343 exceptionState.throwIfNeeded(); 6313 exceptionState.throwIfNeeded();
6344 } 6314 }
6345 6315
6346 static void overloadedMethodEMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 6316 static void overloadedMethodEMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
6347 { 6317 {
6348 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6318 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6349 TestObjectV8Internal::overloadedMethodEMethod(info); 6319 TestObjectV8Internal::overloadedMethodEMethod(info);
6350 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6320 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6351 } 6321 }
6352 6322
6353 static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6323 static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6354 { 6324 {
6355 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodF", "TestObject", info.Holder(), info.GetIsolate()); 6325 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodF", "TestObject", info.Holder(), info.GetIsolate());
6356 if (UNLIKELY(info.Length() < 1)) { 6326 if (UNLIKELY(info.Length() < 1)) {
6357 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6327 throwArityTypeError(exceptionState, 1, info.Length());
6358 exceptionState.throwIfNeeded();
6359 return; 6328 return;
6360 } 6329 }
6361 TestObject* impl = V8TestObject::toNative(info.Holder()); 6330 TestObject* impl = V8TestObject::toNative(info.Holder());
6362 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 6331 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState);
6363 impl->overloadedMethodF(longArg); 6332 impl->overloadedMethodF(longArg);
6364 } 6333 }
6365 6334
6366 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6335 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6367 { 6336 {
6368 if (UNLIKELY(info.Length() < 1)) { 6337 if (UNLIKELY(info.Length() < 1)) {
6369 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodF", " TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetI solate()); 6338 throwArityTypeErrorForMethod("overloadedMethodF", "TestObject", 1, info. Length(), info.GetIsolate());
6370 return; 6339 return;
6371 } 6340 }
6372 TestObject* impl = V8TestObject::toNative(info.Holder()); 6341 TestObject* impl = V8TestObject::toNative(info.Holder());
6373 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyNullableArg, V8TestIn terfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 6342 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyNullableArg, V8TestIn terfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
6374 impl->overloadedMethodF(testInterfaceEmptyNullableArg); 6343 impl->overloadedMethodF(testInterfaceEmptyNullableArg);
6375 } 6344 }
6376 6345
6377 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6346 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6378 { 6347 {
6379 if (((info.Length() == 1))) { 6348 if (((info.Length() == 1))) {
6380 overloadedMethodF1Method(info); 6349 overloadedMethodF1Method(info);
6381 return; 6350 return;
6382 } 6351 }
6383 if (((info.Length() == 1) && (info[0]->IsNull() || V8TestInterfaceEmpty::has Instance(info[0], info.GetIsolate())))) { 6352 if (((info.Length() == 1) && (info[0]->IsNull() || V8TestInterfaceEmpty::has Instance(info[0], info.GetIsolate())))) {
6384 overloadedMethodF2Method(info); 6353 overloadedMethodF2Method(info);
6385 return; 6354 return;
6386 } 6355 }
6387 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodF", "TestObject", info.Holder(), info.GetIsolate()); 6356 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodF", "TestObject", info.Holder(), info.GetIsolate());
6388 if (UNLIKELY(info.Length() < 1)) { 6357 if (UNLIKELY(info.Length() < 1)) {
6389 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6358 throwArityTypeError(exceptionState, 1, info.Length());
6390 exceptionState.throwIfNeeded();
6391 return; 6359 return;
6392 } 6360 }
6393 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 6361 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
6394 exceptionState.throwIfNeeded(); 6362 exceptionState.throwIfNeeded();
6395 } 6363 }
6396 6364
6397 static void overloadedMethodFMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 6365 static void overloadedMethodFMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
6398 { 6366 {
6399 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6367 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6400 TestObjectV8Internal::overloadedMethodFMethod(info); 6368 TestObjectV8Internal::overloadedMethodFMethod(info);
6401 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6369 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6402 } 6370 }
6403 6371
6404 static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6372 static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6405 { 6373 {
6406 TestObject* impl = V8TestObject::toNative(info.Holder()); 6374 TestObject* impl = V8TestObject::toNative(info.Holder());
6407 impl->overloadedMethodG(); 6375 impl->overloadedMethodG();
6408 } 6376 }
6409 6377
6410 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6378 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6411 { 6379 {
6412 if (UNLIKELY(info.Length() < 1)) { 6380 if (UNLIKELY(info.Length() < 1)) {
6413 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodG", " TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetI solate()); 6381 throwArityTypeErrorForMethod("overloadedMethodG", "TestObject", 1, info. Length(), info.GetIsolate());
6414 return; 6382 return;
6415 } 6383 }
6416 TestObject* impl = V8TestObject::toNative(info.Holder()); 6384 TestObject* impl = V8TestObject::toNative(info.Holder());
6417 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strictTypeCheckingS tringArg, info[0]); 6385 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strictTypeCheckingS tringArg, info[0]);
6418 impl->overloadedMethodG(strictTypeCheckingStringArg); 6386 impl->overloadedMethodG(strictTypeCheckingStringArg);
6419 } 6387 }
6420 6388
6421 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6389 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6422 { 6390 {
6423 if (((info.Length() == 0))) { 6391 if (((info.Length() == 0))) {
(...skipping 16 matching lines...) Expand all
6440 6408
6441 static void overloadedMethodH1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6409 static void overloadedMethodH1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6442 { 6410 {
6443 TestObject* impl = V8TestObject::toNative(info.Holder()); 6411 TestObject* impl = V8TestObject::toNative(info.Holder());
6444 impl->overloadedMethodH(); 6412 impl->overloadedMethodH();
6445 } 6413 }
6446 6414
6447 static void overloadedMethodH2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6415 static void overloadedMethodH2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6448 { 6416 {
6449 if (UNLIKELY(info.Length() < 1)) { 6417 if (UNLIKELY(info.Length() < 1)) {
6450 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodH", " TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetI solate()); 6418 throwArityTypeErrorForMethod("overloadedMethodH", "TestObject", 1, info. Length(), info.GetIsolate());
6451 return; 6419 return;
6452 } 6420 }
6453 TestObject* impl = V8TestObject::toNative(info.Holder()); 6421 TestObject* impl = V8TestObject::toNative(info.Holder());
6454 if (info.Length() <= 0 || !info[0]->IsFunction()) { 6422 if (info.Length() <= 0 || !info[0]->IsFunction()) {
6455 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodH", " TestObject", "The callback provided as parameter 1 is not a function."), info.Ge tIsolate()); 6423 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodH", " TestObject", "The callback provided as parameter 1 is not a function."), info.Ge tIsolate());
6456 return; 6424 return;
6457 } 6425 }
6458 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = V8TestCallbackInter face::create(v8::Handle<v8::Function>::Cast(info[0]), currentExecutionContext(in fo.GetIsolate())); 6426 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = V8TestCallbackInter face::create(v8::Handle<v8::Function>::Cast(info[0]), currentExecutionContext(in fo.GetIsolate()));
6459 impl->overloadedMethodH(testCallbackInterfaceArg.release()); 6427 impl->overloadedMethodH(testCallbackInterfaceArg.release());
6460 } 6428 }
(...skipping 14 matching lines...) Expand all
6475 static void overloadedMethodHMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 6443 static void overloadedMethodHMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
6476 { 6444 {
6477 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6445 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6478 TestObjectV8Internal::overloadedMethodHMethod(info); 6446 TestObjectV8Internal::overloadedMethodHMethod(info);
6479 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6447 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6480 } 6448 }
6481 6449
6482 static void overloadedMethodI1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6450 static void overloadedMethodI1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6483 { 6451 {
6484 if (UNLIKELY(info.Length() < 1)) { 6452 if (UNLIKELY(info.Length() < 1)) {
6485 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodI", " TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetI solate()); 6453 throwArityTypeErrorForMethod("overloadedMethodI", "TestObject", 1, info. Length(), info.GetIsolate());
6486 return; 6454 return;
6487 } 6455 }
6488 TestObject* impl = V8TestObject::toNative(info.Holder()); 6456 TestObject* impl = V8TestObject::toNative(info.Holder());
6489 V8TRYCATCH_VOID(Dictionary, dictionaryArg, Dictionary(info[0], info.GetIsola te())); 6457 V8TRYCATCH_VOID(Dictionary, dictionaryArg, Dictionary(info[0], info.GetIsola te()));
6490 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) { 6458 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) {
6491 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodI", " TestObject", "parameter 1 ('dictionaryArg') is not an object."), info.GetIsolate ()); 6459 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodI", " TestObject", "parameter 1 ('dictionaryArg') is not an object."), info.GetIsolate ());
6492 return; 6460 return;
6493 } 6461 }
6494 impl->overloadedMethodI(dictionaryArg); 6462 impl->overloadedMethodI(dictionaryArg);
6495 } 6463 }
6496 6464
6497 static void overloadedMethodI2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6465 static void overloadedMethodI2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6498 { 6466 {
6499 if (UNLIKELY(info.Length() < 1)) { 6467 if (UNLIKELY(info.Length() < 1)) {
6500 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodI", " TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetI solate()); 6468 throwArityTypeErrorForMethod("overloadedMethodI", "TestObject", 1, info. Length(), info.GetIsolate());
6501 return; 6469 return;
6502 } 6470 }
6503 TestObject* impl = V8TestObject::toNative(info.Holder()); 6471 TestObject* impl = V8TestObject::toNative(info.Holder());
6504 V8TRYCATCH_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue( ))); 6472 V8TRYCATCH_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue( )));
6505 impl->overloadedMethodI(doubleArg); 6473 impl->overloadedMethodI(doubleArg);
6506 } 6474 }
6507 6475
6508 static void overloadedMethodIMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6476 static void overloadedMethodIMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6509 { 6477 {
6510 if (((info.Length() == 1) && (info[0]->IsObject()))) { 6478 if (((info.Length() == 1) && (info[0]->IsObject()))) {
6511 overloadedMethodI1Method(info); 6479 overloadedMethodI1Method(info);
6512 return; 6480 return;
6513 } 6481 }
6514 if (((info.Length() == 1))) { 6482 if (((info.Length() == 1))) {
6515 overloadedMethodI2Method(info); 6483 overloadedMethodI2Method(info);
6516 return; 6484 return;
6517 } 6485 }
6518 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodI", "TestObject", info.Holder(), info.GetIsolate()); 6486 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodI", "TestObject", info.Holder(), info.GetIsolate());
6519 if (UNLIKELY(info.Length() < 1)) { 6487 if (UNLIKELY(info.Length() < 1)) {
6520 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6488 throwArityTypeError(exceptionState, 1, info.Length());
6521 exceptionState.throwIfNeeded();
6522 return; 6489 return;
6523 } 6490 }
6524 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 6491 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
6525 exceptionState.throwIfNeeded(); 6492 exceptionState.throwIfNeeded();
6526 } 6493 }
6527 6494
6528 static void overloadedMethodIMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 6495 static void overloadedMethodIMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
6529 { 6496 {
6530 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6497 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6531 TestObjectV8Internal::overloadedMethodIMethod(info); 6498 TestObjectV8Internal::overloadedMethodIMethod(info);
6532 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6499 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6533 } 6500 }
6534 6501
6535 static void overloadedPerWorldBindingsMethod1Method(const v8::FunctionCallbackIn fo<v8::Value>& info) 6502 static void overloadedPerWorldBindingsMethod1Method(const v8::FunctionCallbackIn fo<v8::Value>& info)
6536 { 6503 {
6537 TestObject* impl = V8TestObject::toNative(info.Holder()); 6504 TestObject* impl = V8TestObject::toNative(info.Holder());
6538 impl->overloadedPerWorldBindingsMethod(); 6505 impl->overloadedPerWorldBindingsMethod();
6539 } 6506 }
6540 6507
6541 static void overloadedPerWorldBindingsMethod1MethodForMainWorld(const v8::Functi onCallbackInfo<v8::Value>& info) 6508 static void overloadedPerWorldBindingsMethod1MethodForMainWorld(const v8::Functi onCallbackInfo<v8::Value>& info)
6542 { 6509 {
6543 TestObject* impl = V8TestObject::toNative(info.Holder()); 6510 TestObject* impl = V8TestObject::toNative(info.Holder());
6544 impl->overloadedPerWorldBindingsMethod(); 6511 impl->overloadedPerWorldBindingsMethod();
6545 } 6512 }
6546 6513
6547 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn fo<v8::Value>& info) 6514 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn fo<v8::Value>& info)
6548 { 6515 {
6549 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); 6516 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate());
6550 if (UNLIKELY(info.Length() < 1)) { 6517 if (UNLIKELY(info.Length() < 1)) {
6551 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6518 throwArityTypeError(exceptionState, 1, info.Length());
6552 exceptionState.throwIfNeeded();
6553 return; 6519 return;
6554 } 6520 }
6555 TestObject* impl = V8TestObject::toNative(info.Holder()); 6521 TestObject* impl = V8TestObject::toNative(info.Holder());
6556 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 6522 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState);
6557 impl->overloadedPerWorldBindingsMethod(longArg); 6523 impl->overloadedPerWorldBindingsMethod(longArg);
6558 } 6524 }
6559 6525
6560 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info) 6526 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info)
6561 { 6527 {
6562 if (((info.Length() == 0))) { 6528 if (((info.Length() == 0))) {
(...skipping 11 matching lines...) Expand all
6574 { 6540 {
6575 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6541 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6576 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethod(info); 6542 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethod(info);
6577 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6543 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6578 } 6544 }
6579 6545
6580 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi onCallbackInfo<v8::Value>& info) 6546 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi onCallbackInfo<v8::Value>& info)
6581 { 6547 {
6582 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); 6548 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate());
6583 if (UNLIKELY(info.Length() < 1)) { 6549 if (UNLIKELY(info.Length() < 1)) {
6584 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6550 throwArityTypeError(exceptionState, 1, info.Length());
6585 exceptionState.throwIfNeeded();
6586 return; 6551 return;
6587 } 6552 }
6588 TestObject* impl = V8TestObject::toNative(info.Holder()); 6553 TestObject* impl = V8TestObject::toNative(info.Holder());
6589 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 6554 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState);
6590 impl->overloadedPerWorldBindingsMethod(longArg); 6555 impl->overloadedPerWorldBindingsMethod(longArg);
6591 } 6556 }
6592 6557
6593 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio nCallbackInfo<v8::Value>& info) 6558 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio nCallbackInfo<v8::Value>& info)
6594 { 6559 {
6595 if (((info.Length() == 0))) { 6560 if (((info.Length() == 0))) {
(...skipping 11 matching lines...) Expand all
6607 { 6572 {
6608 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6573 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6609 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethodForMainWorld(inf o); 6574 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethodForMainWorld(inf o);
6610 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6575 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6611 } 6576 }
6612 6577
6613 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val ue>& info) 6578 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val ue>& info)
6614 { 6579 {
6615 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate()); 6580 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate());
6616 if (UNLIKELY(info.Length() < 1)) { 6581 if (UNLIKELY(info.Length() < 1)) {
6617 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6582 throwArityTypeError(exceptionState, 1, info.Length());
6618 exceptionState.throwIfNeeded();
6619 return; 6583 return;
6620 } 6584 }
6621 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 6585 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState);
6622 TestObject::overloadedStaticMethod(longArg); 6586 TestObject::overloadedStaticMethod(longArg);
6623 } 6587 }
6624 6588
6625 static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val ue>& info) 6589 static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val ue>& info)
6626 { 6590 {
6627 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate()); 6591 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate());
6628 if (UNLIKELY(info.Length() < 2)) { 6592 if (UNLIKELY(info.Length() < 2)) {
6629 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i nfo.Length())); 6593 throwArityTypeError(exceptionState, 2, info.Length());
6630 exceptionState.throwIfNeeded();
6631 return; 6594 return;
6632 } 6595 }
6633 V8TRYCATCH_EXCEPTION_VOID(int, longArg1, toInt32(info[0], exceptionState), e xceptionState); 6596 V8TRYCATCH_EXCEPTION_VOID(int, longArg1, toInt32(info[0], exceptionState), e xceptionState);
6634 V8TRYCATCH_EXCEPTION_VOID(int, longArg2, toInt32(info[1], exceptionState), e xceptionState); 6597 V8TRYCATCH_EXCEPTION_VOID(int, longArg2, toInt32(info[1], exceptionState), e xceptionState);
6635 TestObject::overloadedStaticMethod(longArg1, longArg2); 6598 TestObject::overloadedStaticMethod(longArg1, longArg2);
6636 } 6599 }
6637 6600
6638 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info) 6601 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info)
6639 { 6602 {
6640 if (((info.Length() == 1))) { 6603 if (((info.Length() == 1))) {
6641 overloadedStaticMethod1Method(info); 6604 overloadedStaticMethod1Method(info);
6642 return; 6605 return;
6643 } 6606 }
6644 if (((info.Length() == 2))) { 6607 if (((info.Length() == 2))) {
6645 overloadedStaticMethod2Method(info); 6608 overloadedStaticMethod2Method(info);
6646 return; 6609 return;
6647 } 6610 }
6648 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate()); 6611 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate());
6649 if (UNLIKELY(info.Length() < 1)) { 6612 if (UNLIKELY(info.Length() < 1)) {
6650 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6613 throwArityTypeError(exceptionState, 1, info.Length());
6651 exceptionState.throwIfNeeded();
6652 return; 6614 return;
6653 } 6615 }
6654 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 6616 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
6655 exceptionState.throwIfNeeded(); 6617 exceptionState.throwIfNeeded();
6656 } 6618 }
6657 6619
6658 static void overloadedStaticMethodMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info) 6620 static void overloadedStaticMethodMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
6659 { 6621 {
6660 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6622 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6661 TestObjectV8Internal::overloadedStaticMethodMethod(info); 6623 TestObjectV8Internal::overloadedStaticMethodMethod(info);
6662 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6624 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6663 } 6625 }
6664 6626
6665 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 6627 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
6666 { 6628 {
6667 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC lampUnsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); 6629 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC lampUnsignedShortArg", "TestObject", info.Holder(), info.GetIsolate());
6668 if (UNLIKELY(info.Length() < 1)) { 6630 if (UNLIKELY(info.Length() < 1)) {
6669 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6631 throwArityTypeError(exceptionState, 1, info.Length());
6670 exceptionState.throwIfNeeded();
6671 return; 6632 return;
6672 } 6633 }
6673 TestObject* impl = V8TestObject::toNative(info.Holder()); 6634 TestObject* impl = V8TestObject::toNative(info.Holder());
6674 unsigned clampUnsignedShortArg = 0; 6635 unsigned clampUnsignedShortArg = 0;
6675 V8TRYCATCH_VOID(double, clampUnsignedShortArgNativeValue, info[0]->NumberVal ue()); 6636 V8TRYCATCH_VOID(double, clampUnsignedShortArgNativeValue, info[0]->NumberVal ue());
6676 if (!std::isnan(clampUnsignedShortArgNativeValue)) 6637 if (!std::isnan(clampUnsignedShortArgNativeValue))
6677 clampUnsignedShortArg = clampTo<unsigned short>(clampUnsignedShortArgNat iveValue); 6638 clampUnsignedShortArg = clampTo<unsigned short>(clampUnsignedShortArgNat iveValue);
6678 impl->voidMethodClampUnsignedShortArg(clampUnsignedShortArg); 6639 impl->voidMethodClampUnsignedShortArg(clampUnsignedShortArg);
6679 } 6640 }
6680 6641
6681 static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 6642 static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
6682 { 6643 {
6683 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6644 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6684 TestObjectV8Internal::voidMethodClampUnsignedShortArgMethod(info); 6645 TestObjectV8Internal::voidMethodClampUnsignedShortArgMethod(info);
6685 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6646 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6686 } 6647 }
6687 6648
6688 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info) 6649 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info)
6689 { 6650 {
6690 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC lampUnsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); 6651 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC lampUnsignedLongArg", "TestObject", info.Holder(), info.GetIsolate());
6691 if (UNLIKELY(info.Length() < 1)) { 6652 if (UNLIKELY(info.Length() < 1)) {
6692 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6653 throwArityTypeError(exceptionState, 1, info.Length());
6693 exceptionState.throwIfNeeded();
6694 return; 6654 return;
6695 } 6655 }
6696 TestObject* impl = V8TestObject::toNative(info.Holder()); 6656 TestObject* impl = V8TestObject::toNative(info.Holder());
6697 unsigned clampUnsignedLongArg = 0; 6657 unsigned clampUnsignedLongArg = 0;
6698 V8TRYCATCH_VOID(double, clampUnsignedLongArgNativeValue, info[0]->NumberValu e()); 6658 V8TRYCATCH_VOID(double, clampUnsignedLongArgNativeValue, info[0]->NumberValu e());
6699 if (!std::isnan(clampUnsignedLongArgNativeValue)) 6659 if (!std::isnan(clampUnsignedLongArgNativeValue))
6700 clampUnsignedLongArg = clampTo<unsigned long>(clampUnsignedLongArgNative Value); 6660 clampUnsignedLongArg = clampTo<unsigned long>(clampUnsignedLongArgNative Value);
6701 impl->voidMethodClampUnsignedLongArg(clampUnsignedLongArg); 6661 impl->voidMethodClampUnsignedLongArg(clampUnsignedLongArg);
6702 } 6662 }
6703 6663
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
6762 { 6722 {
6763 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6723 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6764 TestObjectV8Internal::voidMethodDefaultNullStringStringArgMethod(info); 6724 TestObjectV8Internal::voidMethodDefaultNullStringStringArgMethod(info);
6765 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6725 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6766 } 6726 }
6767 6727
6768 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) 6728 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info)
6769 { 6729 {
6770 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE nforceRangeLongArg", "TestObject", info.Holder(), info.GetIsolate()); 6730 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE nforceRangeLongArg", "TestObject", info.Holder(), info.GetIsolate());
6771 if (UNLIKELY(info.Length() < 1)) { 6731 if (UNLIKELY(info.Length() < 1)) {
6772 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6732 throwArityTypeError(exceptionState, 1, info.Length());
6773 exceptionState.throwIfNeeded();
6774 return; 6733 return;
6775 } 6734 }
6776 TestObject* impl = V8TestObject::toNative(info.Holder()); 6735 TestObject* impl = V8TestObject::toNative(info.Holder());
6777 V8TRYCATCH_EXCEPTION_VOID(int, enforceRangeLongArg, toInt32(info[0], Enforce Range, exceptionState), exceptionState); 6736 V8TRYCATCH_EXCEPTION_VOID(int, enforceRangeLongArg, toInt32(info[0], Enforce Range, exceptionState), exceptionState);
6778 impl->voidMethodEnforceRangeLongArg(enforceRangeLongArg); 6737 impl->voidMethodEnforceRangeLongArg(enforceRangeLongArg);
6779 } 6738 }
6780 6739
6781 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 6740 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
6782 { 6741 {
6783 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6742 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6784 TestObjectV8Internal::voidMethodEnforceRangeLongArgMethod(info); 6743 TestObjectV8Internal::voidMethodEnforceRangeLongArgMethod(info);
6785 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6744 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6786 } 6745 }
6787 6746
6788 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) 6747 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info)
6789 { 6748 {
6790 if (UNLIKELY(info.Length() < 1)) { 6749 if (UNLIKELY(info.Length() < 1)) {
6791 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTreatNullAs NullStringStringArg", "TestObject", ExceptionMessages::notEnoughArguments(1, inf o.Length())), info.GetIsolate()); 6750 throwArityTypeErrorForMethod("voidMethodTreatNullAsNullStringStringArg", "TestObject", 1, info.Length(), info.GetIsolate());
6792 return; 6751 return;
6793 } 6752 }
6794 TestObject* impl = V8TestObject::toNative(info.Holder()); 6753 TestObject* impl = V8TestObject::toNative(info.Holder());
6795 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, treatN ullAsNullStringStringArg, info[0]); 6754 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, treatN ullAsNullStringStringArg, info[0]);
6796 impl->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringAr g); 6755 impl->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringAr g);
6797 } 6756 }
6798 6757
6799 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 6758 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
6800 { 6759 {
6801 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6760 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6802 TestObjectV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(info); 6761 TestObjectV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(info);
6803 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6762 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6804 } 6763 }
6805 6764
6806 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe thod(const v8::FunctionCallbackInfo<v8::Value>& info) 6765 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe thod(const v8::FunctionCallbackInfo<v8::Value>& info)
6807 { 6766 {
6808 if (UNLIKELY(info.Length() < 1)) { 6767 if (UNLIKELY(info.Length() < 1)) {
6809 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTreatNullAs NullStringTreatUndefinedAsNullStringStringArg", "TestObject", ExceptionMessages: :notEnoughArguments(1, info.Length())), info.GetIsolate()); 6768 throwArityTypeErrorForMethod("voidMethodTreatNullAsNullStringTreatUndefi nedAsNullStringStringArg", "TestObject", 1, info.Length(), info.GetIsolate());
6810 return; 6769 return;
6811 } 6770 }
6812 TestObject* impl = V8TestObject::toNative(info.Holder()); 6771 TestObject* impl = V8TestObject::toNative(info.Holder());
6813 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullChe ck>, treatNullAsNullStringStringArg, info[0]); 6772 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullChe ck>, treatNullAsNullStringStringArg, info[0]);
6814 impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(tre atNullAsNullStringStringArg); 6773 impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(tre atNullAsNullStringStringArg);
6815 } 6774 }
6816 6775
6817 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 6776 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
6818 { 6777 {
6819 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6778 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
7214 static void perWorldBindingsVoidMethodMethodCallbackForMainWorld(const v8::Funct ionCallbackInfo<v8::Value>& info) 7173 static void perWorldBindingsVoidMethodMethodCallbackForMainWorld(const v8::Funct ionCallbackInfo<v8::Value>& info)
7215 { 7174 {
7216 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7175 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7217 TestObjectV8Internal::perWorldBindingsVoidMethodMethodForMainWorld(info); 7176 TestObjectV8Internal::perWorldBindingsVoidMethodMethodForMainWorld(info);
7218 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7177 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7219 } 7178 }
7220 7179
7221 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) 7180 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info)
7222 { 7181 {
7223 if (UNLIKELY(info.Length() < 1)) { 7182 if (UNLIKELY(info.Length() < 1)) {
7224 throwTypeError(ExceptionMessages::failedToExecute("perWorldBindingsVoidM ethodTestInterfaceEmptyArg", "TestObject", ExceptionMessages::notEnoughArguments (1, info.Length())), info.GetIsolate()); 7183 throwArityTypeErrorForMethod("perWorldBindingsVoidMethodTestInterfaceEmp tyArg", "TestObject", 1, info.Length(), info.GetIsolate());
7225 return; 7184 return;
7226 } 7185 }
7227 TestObject* impl = V8TestObject::toNative(info.Holder()); 7186 TestObject* impl = V8TestObject::toNative(info.Holder());
7228 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 7187 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
7229 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg) ; 7188 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg) ;
7230 } 7189 }
7231 7190
7232 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 7191 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
7233 { 7192 {
7234 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7193 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7235 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod( info); 7194 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod( info);
7236 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7195 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7237 } 7196 }
7238 7197
7239 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(co nst v8::FunctionCallbackInfo<v8::Value>& info) 7198 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(co nst v8::FunctionCallbackInfo<v8::Value>& info)
7240 { 7199 {
7241 if (UNLIKELY(info.Length() < 1)) { 7200 if (UNLIKELY(info.Length() < 1)) {
7242 throwTypeError(ExceptionMessages::failedToExecute("perWorldBindingsVoidM ethodTestInterfaceEmptyArg", "TestObject", ExceptionMessages::notEnoughArguments (1, info.Length())), info.GetIsolate()); 7201 throwArityTypeErrorForMethod("perWorldBindingsVoidMethodTestInterfaceEmp tyArg", "TestObject", 1, info.Length(), info.GetIsolate());
7243 return; 7202 return;
7244 } 7203 }
7245 TestObject* impl = V8TestObject::toNative(info.Holder()); 7204 TestObject* impl = V8TestObject::toNative(info.Holder());
7246 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 7205 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
7247 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg) ; 7206 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg) ;
7248 } 7207 }
7249 7208
7250 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMain World(const v8::FunctionCallbackInfo<v8::Value>& info) 7209 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMain World(const v8::FunctionCallbackInfo<v8::Value>& info)
7251 { 7210 {
7252 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7211 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
7374 { 7333 {
7375 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7334 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7376 TestObjectV8Internal::raisesExceptionVoidMethodOptionalLongArgMethod(info); 7335 TestObjectV8Internal::raisesExceptionVoidMethodOptionalLongArgMethod(info);
7377 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7336 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7378 } 7337 }
7379 7338
7380 static void raisesExceptionVoidMethodTestCallbackInterfaceArgMethod(const v8::Fu nctionCallbackInfo<v8::Value>& info) 7339 static void raisesExceptionVoidMethodTestCallbackInterfaceArgMethod(const v8::Fu nctionCallbackInfo<v8::Value>& info)
7381 { 7340 {
7382 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep tionVoidMethodTestCallbackInterfaceArg", "TestObject", info.Holder(), info.GetIs olate()); 7341 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep tionVoidMethodTestCallbackInterfaceArg", "TestObject", info.Holder(), info.GetIs olate());
7383 if (UNLIKELY(info.Length() < 1)) { 7342 if (UNLIKELY(info.Length() < 1)) {
7384 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 7343 throwArityTypeError(exceptionState, 1, info.Length());
7385 exceptionState.throwIfNeeded();
7386 return; 7344 return;
7387 } 7345 }
7388 TestObject* impl = V8TestObject::toNative(info.Holder()); 7346 TestObject* impl = V8TestObject::toNative(info.Holder());
7389 if (info.Length() <= 0 || !info[0]->IsFunction()) { 7347 if (info.Length() <= 0 || !info[0]->IsFunction()) {
7390 exceptionState.throwTypeError("The callback provided as parameter 1 is n ot a function."); 7348 exceptionState.throwTypeError("The callback provided as parameter 1 is n ot a function.");
7391 exceptionState.throwIfNeeded(); 7349 exceptionState.throwIfNeeded();
7392 return; 7350 return;
7393 } 7351 }
7394 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = V8TestCallbackInter face::create(v8::Handle<v8::Function>::Cast(info[0]), currentExecutionContext(in fo.GetIsolate())); 7352 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = V8TestCallbackInter face::create(v8::Handle<v8::Function>::Cast(info[0]), currentExecutionContext(in fo.GetIsolate()));
7395 impl->raisesExceptionVoidMethodTestCallbackInterfaceArg(testCallbackInterfac eArg.release(), exceptionState); 7353 impl->raisesExceptionVoidMethodTestCallbackInterfaceArg(testCallbackInterfac eArg.release(), exceptionState);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
7443 { 7401 {
7444 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7402 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7445 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyVoidMethodMethod(info ); 7403 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyVoidMethodMethod(info );
7446 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7404 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7447 } 7405 }
7448 7406
7449 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 7407 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
7450 { 7408 {
7451 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe cutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), inf o.GetIsolate()); 7409 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe cutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), inf o.GetIsolate());
7452 if (UNLIKELY(info.Length() < 1)) { 7410 if (UNLIKELY(info.Length() < 1)) {
7453 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 7411 throwArityTypeError(exceptionState, 1, info.Length());
7454 exceptionState.throwIfNeeded();
7455 return; 7412 return;
7456 } 7413 }
7457 TestObject* impl = V8TestObject::toNative(info.Holder()); 7414 TestObject* impl = V8TestObject::toNative(info.Holder());
7458 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState); 7415 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex ceptionState);
7459 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ; 7416 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ;
7460 impl->callWithExecutionContextRaisesExceptionVoidMethodLongArg(scriptContext , longArg, exceptionState); 7417 impl->callWithExecutionContextRaisesExceptionVoidMethodLongArg(scriptContext , longArg, exceptionState);
7461 if (exceptionState.throwIfNeeded()) 7418 if (exceptionState.throwIfNeeded())
7462 return; 7419 return;
7463 } 7420 }
7464 7421
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
7530 static void perWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMainWorld(c onst v8::FunctionCallbackInfo<v8::Value>& info) 7487 static void perWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMainWorld(c onst v8::FunctionCallbackInfo<v8::Value>& info)
7531 { 7488 {
7532 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7489 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7533 TestObjectV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethodForMainW orld(info); 7490 TestObjectV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethodForMainW orld(info);
7534 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7491 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7535 } 7492 }
7536 7493
7537 static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethod(const v8::Fu nctionCallbackInfo<v8::Value>& info) 7494 static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethod(const v8::Fu nctionCallbackInfo<v8::Value>& info)
7538 { 7495 {
7539 if (UNLIKELY(info.Length() < 1)) { 7496 if (UNLIKELY(info.Length() < 1)) {
7540 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi dMethodTestInterfaceEmptyArg", "TestObject", ExceptionMessages::notEnoughArgumen ts(1, info.Length())), info.GetIsolate()); 7497 throwArityTypeErrorForMethod("strictTypeCheckingVoidMethodTestInterfaceE mptyArg", "TestObject", 1, info.Length(), info.GetIsolate());
7541 return; 7498 return;
7542 } 7499 }
7543 TestObject* impl = V8TestObject::toNative(info.Holder()); 7500 TestObject* impl = V8TestObject::toNative(info.Holder());
7544 if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], info.Ge tIsolate())) { 7501 if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], info.Ge tIsolate())) {
7545 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi dMethodTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestIn terfaceEmpty'."), info.GetIsolate()); 7502 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi dMethodTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestIn terfaceEmpty'."), info.GetIsolate());
7546 return; 7503 return;
7547 } 7504 }
7548 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 7505 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
7549 impl->strictTypeCheckingVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyAr g); 7506 impl->strictTypeCheckingVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyAr g);
7550 } 7507 }
7551 7508
7552 static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethodCallback(cons t v8::FunctionCallbackInfo<v8::Value>& info) 7509 static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethodCallback(cons t v8::FunctionCallbackInfo<v8::Value>& info)
7553 { 7510 {
7554 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7511 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7555 TestObjectV8Internal::strictTypeCheckingVoidMethodTestInterfaceEmptyArgMetho d(info); 7512 TestObjectV8Internal::strictTypeCheckingVoidMethodTestInterfaceEmptyArgMetho d(info);
7556 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7513 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7557 } 7514 }
7558 7515
7559 static void strictTypeCheckingVoidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 7516 static void strictTypeCheckingVoidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
7560 { 7517 {
7561 if (UNLIKELY(info.Length() < 1)) { 7518 if (UNLIKELY(info.Length() < 1)) {
7562 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi dMethodTestInterfaceEmptyOrNullArg", "TestObject", ExceptionMessages::notEnoughA rguments(1, info.Length())), info.GetIsolate()); 7519 throwArityTypeErrorForMethod("strictTypeCheckingVoidMethodTestInterfaceE mptyOrNullArg", "TestObject", 1, info.Length(), info.GetIsolate());
7563 return; 7520 return;
7564 } 7521 }
7565 TestObject* impl = V8TestObject::toNative(info.Holder()); 7522 TestObject* impl = V8TestObject::toNative(info.Holder());
7566 if (info.Length() > 0 && !isUndefinedOrNull(info[0]) && !V8TestInterfaceEmpt y::hasInstance(info[0], info.GetIsolate())) { 7523 if (info.Length() > 0 && !isUndefinedOrNull(info[0]) && !V8TestInterfaceEmpt y::hasInstance(info[0], info.GetIsolate())) {
7567 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi dMethodTestInterfaceEmptyOrNullArg", "TestObject", "parameter 1 is not of type ' TestInterfaceEmpty'."), info.GetIsolate()); 7524 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi dMethodTestInterfaceEmptyOrNullArg", "TestObject", "parameter 1 is not of type ' TestInterfaceEmpty'."), info.GetIsolate());
7568 return; 7525 return;
7569 } 7526 }
7570 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 7527 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
7571 impl->strictTypeCheckingVoidMethodTestInterfaceEmptyOrNullArg(testInterfaceE mptyArg); 7528 impl->strictTypeCheckingVoidMethodTestInterfaceEmptyOrNullArg(testInterfaceE mptyArg);
7572 } 7529 }
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
7613 static void unforgeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 7570 static void unforgeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
7614 { 7571 {
7615 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7572 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7616 TestObjectV8Internal::unforgeableVoidMethodMethod(info); 7573 TestObjectV8Internal::unforgeableVoidMethodMethod(info);
7617 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7574 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7618 } 7575 }
7619 7576
7620 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 7577 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
7621 { 7578 {
7622 if (UNLIKELY(info.Length() < 1)) { 7579 if (UNLIKELY(info.Length() < 1)) {
7623 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa ceWillBeGarbageCollectedSequenceArg", "TestObject", ExceptionMessages::notEnough Arguments(1, info.Length())), info.GetIsolate()); 7580 throwArityTypeErrorForMethod("voidMethodTestInterfaceWillBeGarbageCollec tedSequenceArg", "TestObject", 1, info.Length(), info.GetIsolate());
7624 return; 7581 return;
7625 } 7582 }
7626 TestObject* impl = V8TestObject::toNative(info.Holder()); 7583 TestObject* impl = V8TestObject::toNative(info.Holder());
7627 V8TRYCATCH_VOID(WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarba geCollected> >, testInterfaceWillBeGarbageCollectedSequenceArg, (toMemberNativeA rray<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageCollected> (info[0], 1, info.GetIsolate()))); 7584 V8TRYCATCH_VOID(WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarba geCollected> >, testInterfaceWillBeGarbageCollectedSequenceArg, (toMemberNativeA rray<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageCollected> (info[0], 1, info.GetIsolate())));
7628 impl->voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(testInterface WillBeGarbageCollectedSequenceArg); 7585 impl->voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(testInterface WillBeGarbageCollectedSequenceArg);
7629 } 7586 }
7630 7587
7631 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info) 7588 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info)
7632 { 7589 {
7633 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7590 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7634 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceA rgMethod(info); 7591 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceA rgMethod(info);
7635 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7592 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7636 } 7593 }
7637 7594
7638 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info) 7595 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info)
7639 { 7596 {
7640 if (UNLIKELY(info.Length() < 1)) { 7597 if (UNLIKELY(info.Length() < 1)) {
7641 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa ceWillBeGarbageCollectedArrayArg", "TestObject", ExceptionMessages::notEnoughArg uments(1, info.Length())), info.GetIsolate()); 7598 throwArityTypeErrorForMethod("voidMethodTestInterfaceWillBeGarbageCollec tedArrayArg", "TestObject", 1, info.Length(), info.GetIsolate());
7642 return; 7599 return;
7643 } 7600 }
7644 TestObject* impl = V8TestObject::toNative(info.Holder()); 7601 TestObject* impl = V8TestObject::toNative(info.Holder());
7645 V8TRYCATCH_VOID(WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarba geCollected> >, testInterfaceWillBeGarbageCollectedArrayArg, (toMemberNativeArra y<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageCollected>(in fo[0], 1, info.GetIsolate()))); 7602 V8TRYCATCH_VOID(WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarba geCollected> >, testInterfaceWillBeGarbageCollectedArrayArg, (toMemberNativeArra y<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageCollected>(in fo[0], 1, info.GetIsolate())));
7646 impl->voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(testInterfaceWil lBeGarbageCollectedArrayArg); 7603 impl->voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(testInterfaceWil lBeGarbageCollectedArrayArg);
7647 } 7604 }
7648 7605
7649 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info) 7606 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info)
7650 { 7607 {
7651 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7608 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
8138 fromInternalPointer(object)->deref(); 8095 fromInternalPointer(object)->deref();
8139 } 8096 }
8140 8097
8141 template<> 8098 template<>
8142 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) 8099 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate)
8143 { 8100 {
8144 return toV8(impl, creationContext, isolate); 8101 return toV8(impl, creationContext, isolate);
8145 } 8102 }
8146 8103
8147 } // namespace WebCore 8104 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698