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

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

Issue 265293004: Create fewer local v8::TryCatch objects in generated bindings code (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: call block.ReThrow() when throwing exceptions Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
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 4740 matching lines...) Expand 10 before | Expand all | Expand 10 after
4751 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4751 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4752 } 4752 }
4753 4753
4754 static void voidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 4754 static void voidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
4755 { 4755 {
4756 if (UNLIKELY(info.Length() < 1)) { 4756 if (UNLIKELY(info.Length() < 1)) {
4757 throwArityTypeErrorForMethod("voidMethodDateArg", "TestObject", 1, info. Length(), info.GetIsolate()); 4757 throwArityTypeErrorForMethod("voidMethodDateArg", "TestObject", 1, info. Length(), info.GetIsolate());
4758 return; 4758 return;
4759 } 4759 }
4760 TestObject* impl = V8TestObject::toNative(info.Holder()); 4760 TestObject* impl = V8TestObject::toNative(info.Holder());
4761 TONATIVE_VOID(double, dateArg, toCoreDate(info[0])); 4761 double dateArg;
4762 {
4763 v8::TryCatch block;
4764 TONATIVE_VOID_INTERNAL(dateArg, toCoreDate(info[0]));
4765 }
4762 impl->voidMethodDateArg(dateArg); 4766 impl->voidMethodDateArg(dateArg);
4763 } 4767 }
4764 4768
4765 static void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 4769 static void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
4766 { 4770 {
4767 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4771 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4768 TestObjectV8Internal::voidMethodDateArgMethod(info); 4772 TestObjectV8Internal::voidMethodDateArgMethod(info);
4769 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4773 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4770 } 4774 }
4771 4775
4772 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 4776 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
4773 { 4777 {
4774 if (UNLIKELY(info.Length() < 1)) { 4778 if (UNLIKELY(info.Length() < 1)) {
4775 throwArityTypeErrorForMethod("voidMethodStringArg", "TestObject", 1, inf o.Length(), info.GetIsolate()); 4779 throwArityTypeErrorForMethod("voidMethodStringArg", "TestObject", 1, inf o.Length(), info.GetIsolate());
4776 return; 4780 return;
4777 } 4781 }
4778 TestObject* impl = V8TestObject::toNative(info.Holder()); 4782 TestObject* impl = V8TestObject::toNative(info.Holder());
4779 TOSTRING_VOID(V8StringResource<>, stringArg, info[0]); 4783 V8StringResource<> stringArg;
4784 {
4785 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
4786 }
4780 impl->voidMethodStringArg(stringArg); 4787 impl->voidMethodStringArg(stringArg);
4781 } 4788 }
4782 4789
4783 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 4790 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
4784 { 4791 {
4785 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4792 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4786 TestObjectV8Internal::voidMethodStringArgMethod(info); 4793 TestObjectV8Internal::voidMethodStringArgMethod(info);
4787 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4794 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4788 } 4795 }
4789 4796
4790 static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 4797 static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
4791 { 4798 {
4792 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD OMTimeStampArg", "TestObject", info.Holder(), info.GetIsolate()); 4799 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD OMTimeStampArg", "TestObject", info.Holder(), info.GetIsolate());
4793 if (UNLIKELY(info.Length() < 1)) { 4800 if (UNLIKELY(info.Length() < 1)) {
4794 throwArityTypeError(exceptionState, 1, info.Length()); 4801 throwArityTypeError(exceptionState, 1, info.Length());
4795 return; 4802 return;
4796 } 4803 }
4797 TestObject* impl = V8TestObject::toNative(info.Holder()); 4804 TestObject* impl = V8TestObject::toNative(info.Holder());
4798 TONATIVE_VOID_EXCEPTIONSTATE(unsigned long long, domTimeStampArg, toUInt64(i nfo[0], exceptionState), exceptionState); 4805 unsigned long long domTimeStampArg;
4806 {
4807 v8::TryCatch block;
4808 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(domTimeStampArg, toUInt64(info[0], exceptionState), exceptionState);
4809 }
4799 impl->voidMethodDOMTimeStampArg(domTimeStampArg); 4810 impl->voidMethodDOMTimeStampArg(domTimeStampArg);
4800 } 4811 }
4801 4812
4802 static void voidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 4813 static void voidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
4803 { 4814 {
4804 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4815 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4805 TestObjectV8Internal::voidMethodDOMTimeStampArgMethod(info); 4816 TestObjectV8Internal::voidMethodDOMTimeStampArgMethod(info);
4806 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4817 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4807 } 4818 }
4808 4819
4809 static void voidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 4820 static void voidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
4810 { 4821 {
4811 if (UNLIKELY(info.Length() < 1)) { 4822 if (UNLIKELY(info.Length() < 1)) {
4812 throwArityTypeErrorForMethod("voidMethodBooleanArg", "TestObject", 1, in fo.Length(), info.GetIsolate()); 4823 throwArityTypeErrorForMethod("voidMethodBooleanArg", "TestObject", 1, in fo.Length(), info.GetIsolate());
4813 return; 4824 return;
4814 } 4825 }
4815 TestObject* impl = V8TestObject::toNative(info.Holder()); 4826 TestObject* impl = V8TestObject::toNative(info.Holder());
4816 TONATIVE_VOID(bool, booleanArg, info[0]->BooleanValue()); 4827 bool booleanArg;
4828 {
4829 v8::TryCatch block;
4830 TONATIVE_VOID_INTERNAL(booleanArg, info[0]->BooleanValue());
4831 }
4817 impl->voidMethodBooleanArg(booleanArg); 4832 impl->voidMethodBooleanArg(booleanArg);
4818 } 4833 }
4819 4834
4820 static void voidMethodBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 4835 static void voidMethodBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
4821 { 4836 {
4822 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4837 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4823 TestObjectV8Internal::voidMethodBooleanArgMethod(info); 4838 TestObjectV8Internal::voidMethodBooleanArgMethod(info);
4824 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4839 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4825 } 4840 }
4826 4841
4827 static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 4842 static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
4828 { 4843 {
4829 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB yteArg", "TestObject", info.Holder(), info.GetIsolate()); 4844 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB yteArg", "TestObject", info.Holder(), info.GetIsolate());
4830 if (UNLIKELY(info.Length() < 1)) { 4845 if (UNLIKELY(info.Length() < 1)) {
4831 throwArityTypeError(exceptionState, 1, info.Length()); 4846 throwArityTypeError(exceptionState, 1, info.Length());
4832 return; 4847 return;
4833 } 4848 }
4834 TestObject* impl = V8TestObject::toNative(info.Holder()); 4849 TestObject* impl = V8TestObject::toNative(info.Holder());
4835 TONATIVE_VOID_EXCEPTIONSTATE(int, byteArg, toInt8(info[0], exceptionState), exceptionState); 4850 int byteArg;
4851 {
4852 v8::TryCatch block;
4853 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(byteArg, toInt8(info[0], exception State), exceptionState);
4854 }
4836 impl->voidMethodByteArg(byteArg); 4855 impl->voidMethodByteArg(byteArg);
4837 } 4856 }
4838 4857
4839 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 4858 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
4840 { 4859 {
4841 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4860 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4842 TestObjectV8Internal::voidMethodByteArgMethod(info); 4861 TestObjectV8Internal::voidMethodByteArgMethod(info);
4843 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4862 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4844 } 4863 }
4845 4864
4846 static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 4865 static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
4847 { 4866 {
4848 if (UNLIKELY(info.Length() < 1)) { 4867 if (UNLIKELY(info.Length() < 1)) {
4849 throwArityTypeErrorForMethod("voidMethodDoubleArg", "TestObject", 1, inf o.Length(), info.GetIsolate()); 4868 throwArityTypeErrorForMethod("voidMethodDoubleArg", "TestObject", 1, inf o.Length(), info.GetIsolate());
4850 return; 4869 return;
4851 } 4870 }
4852 TestObject* impl = V8TestObject::toNative(info.Holder()); 4871 TestObject* impl = V8TestObject::toNative(info.Holder());
4853 TONATIVE_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue()) ); 4872 double doubleArg;
4873 {
4874 v8::TryCatch block;
4875 TONATIVE_VOID_INTERNAL(doubleArg, static_cast<double>(info[0]->NumberVal ue()));
4876 }
4854 impl->voidMethodDoubleArg(doubleArg); 4877 impl->voidMethodDoubleArg(doubleArg);
4855 } 4878 }
4856 4879
4857 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 4880 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
4858 { 4881 {
4859 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4882 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4860 TestObjectV8Internal::voidMethodDoubleArgMethod(info); 4883 TestObjectV8Internal::voidMethodDoubleArgMethod(info);
4861 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4884 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4862 } 4885 }
4863 4886
4864 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 4887 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
4865 { 4888 {
4866 if (UNLIKELY(info.Length() < 1)) { 4889 if (UNLIKELY(info.Length() < 1)) {
4867 throwArityTypeErrorForMethod("voidMethodFloatArg", "TestObject", 1, info .Length(), info.GetIsolate()); 4890 throwArityTypeErrorForMethod("voidMethodFloatArg", "TestObject", 1, info .Length(), info.GetIsolate());
4868 return; 4891 return;
4869 } 4892 }
4870 TestObject* impl = V8TestObject::toNative(info.Holder()); 4893 TestObject* impl = V8TestObject::toNative(info.Holder());
4871 TONATIVE_VOID(float, floatArg, static_cast<float>(info[0]->NumberValue())); 4894 float floatArg;
4895 {
4896 v8::TryCatch block;
4897 TONATIVE_VOID_INTERNAL(floatArg, static_cast<float>(info[0]->NumberValue ()));
4898 }
4872 impl->voidMethodFloatArg(floatArg); 4899 impl->voidMethodFloatArg(floatArg);
4873 } 4900 }
4874 4901
4875 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 4902 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
4876 { 4903 {
4877 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4904 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4878 TestObjectV8Internal::voidMethodFloatArgMethod(info); 4905 TestObjectV8Internal::voidMethodFloatArgMethod(info);
4879 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4906 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4880 } 4907 }
4881 4908
4882 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 4909 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
4883 { 4910 {
4884 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArg", "TestObject", info.Holder(), info.GetIsolate()); 4911 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArg", "TestObject", info.Holder(), info.GetIsolate());
4885 if (UNLIKELY(info.Length() < 1)) { 4912 if (UNLIKELY(info.Length() < 1)) {
4886 throwArityTypeError(exceptionState, 1, info.Length()); 4913 throwArityTypeError(exceptionState, 1, info.Length());
4887 return; 4914 return;
4888 } 4915 }
4889 TestObject* impl = V8TestObject::toNative(info.Holder()); 4916 TestObject* impl = V8TestObject::toNative(info.Holder());
4890 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState); 4917 int longArg;
4918 {
4919 v8::TryCatch block;
4920 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
4921 }
4891 impl->voidMethodLongArg(longArg); 4922 impl->voidMethodLongArg(longArg);
4892 } 4923 }
4893 4924
4894 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 4925 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
4895 { 4926 {
4896 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4927 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4897 TestObjectV8Internal::voidMethodLongArgMethod(info); 4928 TestObjectV8Internal::voidMethodLongArgMethod(info);
4898 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4929 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4899 } 4930 }
4900 4931
4901 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 4932 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
4902 { 4933 {
4903 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongLongArg", "TestObject", info.Holder(), info.GetIsolate()); 4934 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongLongArg", "TestObject", info.Holder(), info.GetIsolate());
4904 if (UNLIKELY(info.Length() < 1)) { 4935 if (UNLIKELY(info.Length() < 1)) {
4905 throwArityTypeError(exceptionState, 1, info.Length()); 4936 throwArityTypeError(exceptionState, 1, info.Length());
4906 return; 4937 return;
4907 } 4938 }
4908 TestObject* impl = V8TestObject::toNative(info.Holder()); 4939 TestObject* impl = V8TestObject::toNative(info.Holder());
4909 TONATIVE_VOID_EXCEPTIONSTATE(long long, longLongArg, toInt64(info[0], except ionState), exceptionState); 4940 long long longLongArg;
4941 {
4942 v8::TryCatch block;
4943 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longLongArg, toInt64(info[0], exce ptionState), exceptionState);
4944 }
4910 impl->voidMethodLongLongArg(longLongArg); 4945 impl->voidMethodLongLongArg(longLongArg);
4911 } 4946 }
4912 4947
4913 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 4948 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
4914 { 4949 {
4915 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4950 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4916 TestObjectV8Internal::voidMethodLongLongArgMethod(info); 4951 TestObjectV8Internal::voidMethodLongLongArgMethod(info);
4917 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4952 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4918 } 4953 }
4919 4954
4920 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 4955 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
4921 { 4956 {
4922 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO ctetArg", "TestObject", info.Holder(), info.GetIsolate()); 4957 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO ctetArg", "TestObject", info.Holder(), info.GetIsolate());
4923 if (UNLIKELY(info.Length() < 1)) { 4958 if (UNLIKELY(info.Length() < 1)) {
4924 throwArityTypeError(exceptionState, 1, info.Length()); 4959 throwArityTypeError(exceptionState, 1, info.Length());
4925 return; 4960 return;
4926 } 4961 }
4927 TestObject* impl = V8TestObject::toNative(info.Holder()); 4962 TestObject* impl = V8TestObject::toNative(info.Holder());
4928 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, octetArg, toUInt8(info[0], exceptionS tate), exceptionState); 4963 unsigned octetArg;
4964 {
4965 v8::TryCatch block;
4966 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(octetArg, toUInt8(info[0], excepti onState), exceptionState);
4967 }
4929 impl->voidMethodOctetArg(octetArg); 4968 impl->voidMethodOctetArg(octetArg);
4930 } 4969 }
4931 4970
4932 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 4971 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
4933 { 4972 {
4934 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4973 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4935 TestObjectV8Internal::voidMethodOctetArgMethod(info); 4974 TestObjectV8Internal::voidMethodOctetArgMethod(info);
4936 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4975 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4937 } 4976 }
4938 4977
4939 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 4978 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
4940 { 4979 {
4941 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS hortArg", "TestObject", info.Holder(), info.GetIsolate()); 4980 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS hortArg", "TestObject", info.Holder(), info.GetIsolate());
4942 if (UNLIKELY(info.Length() < 1)) { 4981 if (UNLIKELY(info.Length() < 1)) {
4943 throwArityTypeError(exceptionState, 1, info.Length()); 4982 throwArityTypeError(exceptionState, 1, info.Length());
4944 return; 4983 return;
4945 } 4984 }
4946 TestObject* impl = V8TestObject::toNative(info.Holder()); 4985 TestObject* impl = V8TestObject::toNative(info.Holder());
4947 TONATIVE_VOID_EXCEPTIONSTATE(int, shortArg, toInt16(info[0], exceptionState) , exceptionState); 4986 int shortArg;
4987 {
4988 v8::TryCatch block;
4989 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(shortArg, toInt16(info[0], excepti onState), exceptionState);
4990 }
4948 impl->voidMethodShortArg(shortArg); 4991 impl->voidMethodShortArg(shortArg);
4949 } 4992 }
4950 4993
4951 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 4994 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
4952 { 4995 {
4953 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4996 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4954 TestObjectV8Internal::voidMethodShortArgMethod(info); 4997 TestObjectV8Internal::voidMethodShortArgMethod(info);
4955 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4998 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4956 } 4999 }
4957 5000
4958 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 5001 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
4959 { 5002 {
4960 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); 5003 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedLongArg", "TestObject", info.Holder(), info.GetIsolate());
4961 if (UNLIKELY(info.Length() < 1)) { 5004 if (UNLIKELY(info.Length() < 1)) {
4962 throwArityTypeError(exceptionState, 1, info.Length()); 5005 throwArityTypeError(exceptionState, 1, info.Length());
4963 return; 5006 return;
4964 } 5007 }
4965 TestObject* impl = V8TestObject::toNative(info.Holder()); 5008 TestObject* impl = V8TestObject::toNative(info.Holder());
4966 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, unsignedLongArg, toUInt32(info[0], ex ceptionState), exceptionState); 5009 unsigned unsignedLongArg;
5010 {
5011 v8::TryCatch block;
5012 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedLongArg, toUInt32(info[0], exceptionState), exceptionState);
5013 }
4967 impl->voidMethodUnsignedLongArg(unsignedLongArg); 5014 impl->voidMethodUnsignedLongArg(unsignedLongArg);
4968 } 5015 }
4969 5016
4970 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 5017 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
4971 { 5018 {
4972 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5019 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4973 TestObjectV8Internal::voidMethodUnsignedLongArgMethod(info); 5020 TestObjectV8Internal::voidMethodUnsignedLongArgMethod(info);
4974 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5021 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4975 } 5022 }
4976 5023
4977 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) 5024 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info)
4978 { 5025 {
4979 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedLongLongArg", "TestObject", info.Holder(), info.GetIsolate()); 5026 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedLongLongArg", "TestObject", info.Holder(), info.GetIsolate());
4980 if (UNLIKELY(info.Length() < 1)) { 5027 if (UNLIKELY(info.Length() < 1)) {
4981 throwArityTypeError(exceptionState, 1, info.Length()); 5028 throwArityTypeError(exceptionState, 1, info.Length());
4982 return; 5029 return;
4983 } 5030 }
4984 TestObject* impl = V8TestObject::toNative(info.Holder()); 5031 TestObject* impl = V8TestObject::toNative(info.Holder());
4985 TONATIVE_VOID_EXCEPTIONSTATE(unsigned long long, unsignedLongLongArg, toUInt 64(info[0], exceptionState), exceptionState); 5032 unsigned long long unsignedLongLongArg;
5033 {
5034 v8::TryCatch block;
5035 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedLongLongArg, toUInt64(info [0], exceptionState), exceptionState);
5036 }
4986 impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg); 5037 impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg);
4987 } 5038 }
4988 5039
4989 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 5040 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
4990 { 5041 {
4991 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5042 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4992 TestObjectV8Internal::voidMethodUnsignedLongLongArgMethod(info); 5043 TestObjectV8Internal::voidMethodUnsignedLongLongArgMethod(info);
4993 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5044 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4994 } 5045 }
4995 5046
4996 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 5047 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
4997 { 5048 {
4998 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); 5049 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedShortArg", "TestObject", info.Holder(), info.GetIsolate());
4999 if (UNLIKELY(info.Length() < 1)) { 5050 if (UNLIKELY(info.Length() < 1)) {
5000 throwArityTypeError(exceptionState, 1, info.Length()); 5051 throwArityTypeError(exceptionState, 1, info.Length());
5001 return; 5052 return;
5002 } 5053 }
5003 TestObject* impl = V8TestObject::toNative(info.Holder()); 5054 TestObject* impl = V8TestObject::toNative(info.Holder());
5004 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, unsignedShortArg, toUInt16(info[0], e xceptionState), exceptionState); 5055 unsigned unsignedShortArg;
5056 {
5057 v8::TryCatch block;
5058 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedShortArg, toUInt16(info[0] , exceptionState), exceptionState);
5059 }
5005 impl->voidMethodUnsignedShortArg(unsignedShortArg); 5060 impl->voidMethodUnsignedShortArg(unsignedShortArg);
5006 } 5061 }
5007 5062
5008 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 5063 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
5009 { 5064 {
5010 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5065 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5011 TestObjectV8Internal::voidMethodUnsignedShortArgMethod(info); 5066 TestObjectV8Internal::voidMethodUnsignedShortArgMethod(info);
5012 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5067 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5013 } 5068 }
5014 5069
(...skipping 10 matching lines...) Expand all
5025 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5080 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5026 } 5081 }
5027 5082
5028 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 5083 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
5029 { 5084 {
5030 if (UNLIKELY(info.Length() < 1)) { 5085 if (UNLIKELY(info.Length() < 1)) {
5031 throwArityTypeErrorForMethod("voidMethodTestInterfaceEmptyArg", "TestObj ect", 1, info.Length(), info.GetIsolate()); 5086 throwArityTypeErrorForMethod("voidMethodTestInterfaceEmptyArg", "TestObj ect", 1, info.Length(), info.GetIsolate());
5032 return; 5087 return;
5033 } 5088 }
5034 TestObject* impl = V8TestObject::toNative(info.Holder()); 5089 TestObject* impl = V8TestObject::toNative(info.Holder());
5035 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 5090 TestInterfaceEmpty* testInterfaceEmptyArg;
5091 {
5092 v8::TryCatch block;
5093 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0]));
5094 }
5036 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); 5095 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg);
5037 } 5096 }
5038 5097
5039 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 5098 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
5040 { 5099 {
5041 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5100 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5042 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgMethod(info); 5101 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgMethod(info);
5043 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5102 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5044 } 5103 }
5045 5104
5046 static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info) 5105 static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info)
5047 { 5106 {
5048 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); 5107 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate());
5049 if (UNLIKELY(info.Length() < 2)) { 5108 if (UNLIKELY(info.Length() < 2)) {
5050 throwArityTypeError(exceptionState, 2, info.Length()); 5109 throwArityTypeError(exceptionState, 2, info.Length());
5051 return; 5110 return;
5052 } 5111 }
5053 TestObject* impl = V8TestObject::toNative(info.Holder()); 5112 TestObject* impl = V8TestObject::toNative(info.Holder());
5054 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState); 5113 int longArg;
5055 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp ty::toNativeWithTypeCheck(info.GetIsolate(), info[1])); 5114 TestInterfaceEmpty* testInterfaceEmptyArg;
5115 {
5116 v8::TryCatch block;
5117 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
5118 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[1]));
5119 }
5056 impl->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg) ; 5120 impl->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg) ;
5057 } 5121 }
5058 5122
5059 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) 5123 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
5060 { 5124 {
5061 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5125 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5062 TestObjectV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(info); 5126 TestObjectV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(info);
5063 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5127 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5064 } 5128 }
5065 5129
(...skipping 23 matching lines...) Expand all
5089 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5153 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5090 } 5154 }
5091 5155
5092 static void voidMethodVoidCallbackFunctionArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info) 5156 static void voidMethodVoidCallbackFunctionArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info)
5093 { 5157 {
5094 if (UNLIKELY(info.Length() < 1)) { 5158 if (UNLIKELY(info.Length() < 1)) {
5095 throwArityTypeErrorForMethod("voidMethodVoidCallbackFunctionArg", "TestO bject", 1, info.Length(), info.GetIsolate()); 5159 throwArityTypeErrorForMethod("voidMethodVoidCallbackFunctionArg", "TestO bject", 1, info.Length(), info.GetIsolate());
5096 return; 5160 return;
5097 } 5161 }
5098 TestObject* impl = V8TestObject::toNative(info.Holder()); 5162 TestObject* impl = V8TestObject::toNative(info.Holder());
5099 TONATIVE_VOID(ScriptValue, voidCallbackFunctionArg, ScriptValue(ScriptState: :current(info.GetIsolate()), info[0])); 5163 ScriptValue voidCallbackFunctionArg;
5164 {
5165 v8::TryCatch block;
5166 TONATIVE_VOID_INTERNAL(voidCallbackFunctionArg, ScriptValue(ScriptState: :current(info.GetIsolate()), info[0]));
5167 }
5100 impl->voidMethodVoidCallbackFunctionArg(voidCallbackFunctionArg); 5168 impl->voidMethodVoidCallbackFunctionArg(voidCallbackFunctionArg);
5101 } 5169 }
5102 5170
5103 static void voidMethodVoidCallbackFunctionArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info) 5171 static void voidMethodVoidCallbackFunctionArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info)
5104 { 5172 {
5105 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5173 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5106 TestObjectV8Internal::voidMethodVoidCallbackFunctionArgMethod(info); 5174 TestObjectV8Internal::voidMethodVoidCallbackFunctionArgMethod(info);
5107 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5175 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5108 } 5176 }
5109 5177
5110 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethod(const v8::Function CallbackInfo<v8::Value>& info) 5178 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethod(const v8::Function CallbackInfo<v8::Value>& info)
5111 { 5179 {
5112 if (UNLIKELY(info.Length() < 1)) { 5180 if (UNLIKELY(info.Length() < 1)) {
5113 throwArityTypeErrorForMethod("voidMethodAnyCallbackFunctionOptionalAnyAr g", "TestObject", 1, info.Length(), info.GetIsolate()); 5181 throwArityTypeErrorForMethod("voidMethodAnyCallbackFunctionOptionalAnyAr g", "TestObject", 1, info.Length(), info.GetIsolate());
5114 return; 5182 return;
5115 } 5183 }
5116 TestObject* impl = V8TestObject::toNative(info.Holder()); 5184 TestObject* impl = V8TestObject::toNative(info.Holder());
5117 TONATIVE_VOID(ScriptValue, anyCallbackFunctionOptionalAnyArgArg, ScriptValue (ScriptState::current(info.GetIsolate()), info[0])); 5185 ScriptValue anyCallbackFunctionOptionalAnyArgArg;
5186 {
5187 v8::TryCatch block;
5188 TONATIVE_VOID_INTERNAL(anyCallbackFunctionOptionalAnyArgArg, ScriptValue (ScriptState::current(info.GetIsolate()), info[0]));
5189 }
5118 impl->voidMethodAnyCallbackFunctionOptionalAnyArg(anyCallbackFunctionOptiona lAnyArgArg); 5190 impl->voidMethodAnyCallbackFunctionOptionalAnyArg(anyCallbackFunctionOptiona lAnyArgArg);
5119 } 5191 }
5120 5192
5121 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethodCallback(const v8:: FunctionCallbackInfo<v8::Value>& info) 5193 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethodCallback(const v8:: FunctionCallbackInfo<v8::Value>& info)
5122 { 5194 {
5123 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5195 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5124 TestObjectV8Internal::voidMethodAnyCallbackFunctionOptionalAnyArgMethod(info ); 5196 TestObjectV8Internal::voidMethodAnyCallbackFunctionOptionalAnyArgMethod(info );
5125 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5197 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5126 } 5198 }
5127 5199
(...skipping 23 matching lines...) Expand all
5151 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5223 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5152 } 5224 }
5153 5225
5154 static void voidMethodCompareHowArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 5226 static void voidMethodCompareHowArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
5155 { 5227 {
5156 if (UNLIKELY(info.Length() < 1)) { 5228 if (UNLIKELY(info.Length() < 1)) {
5157 throwArityTypeErrorForMethod("voidMethodCompareHowArg", "TestObject", 1, info.Length(), info.GetIsolate()); 5229 throwArityTypeErrorForMethod("voidMethodCompareHowArg", "TestObject", 1, info.Length(), info.GetIsolate());
5158 return; 5230 return;
5159 } 5231 }
5160 TestObject* impl = V8TestObject::toNative(info.Holder()); 5232 TestObject* impl = V8TestObject::toNative(info.Holder());
5161 TONATIVE_VOID(Range::CompareHow, compareHowArg, static_cast<Range::CompareHo w>(info[0]->Int32Value())); 5233 Range::CompareHow compareHowArg;
5234 {
5235 v8::TryCatch block;
5236 TONATIVE_VOID_INTERNAL(compareHowArg, static_cast<Range::CompareHow>(inf o[0]->Int32Value()));
5237 }
5162 impl->voidMethodCompareHowArg(compareHowArg); 5238 impl->voidMethodCompareHowArg(compareHowArg);
5163 } 5239 }
5164 5240
5165 static void voidMethodCompareHowArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 5241 static void voidMethodCompareHowArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
5166 { 5242 {
5167 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5243 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5168 TestObjectV8Internal::voidMethodCompareHowArgMethod(info); 5244 TestObjectV8Internal::voidMethodCompareHowArgMethod(info);
5169 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5245 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5170 } 5246 }
5171 5247
5172 static void voidMethodEventTargetArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 5248 static void voidMethodEventTargetArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
5173 { 5249 {
5174 if (UNLIKELY(info.Length() < 1)) { 5250 if (UNLIKELY(info.Length() < 1)) {
5175 throwArityTypeErrorForMethod("voidMethodEventTargetArg", "TestObject", 1 , info.Length(), info.GetIsolate()); 5251 throwArityTypeErrorForMethod("voidMethodEventTargetArg", "TestObject", 1 , info.Length(), info.GetIsolate());
5176 return; 5252 return;
5177 } 5253 }
5178 TestObject* impl = V8TestObject::toNative(info.Holder()); 5254 TestObject* impl = V8TestObject::toNative(info.Holder());
5179 TONATIVE_VOID(EventTarget*, eventTargetArg, V8DOMWrapper::isDOMWrapper(info[ 0]) ? toWrapperTypeInfo(v8::Handle<v8::Object>::Cast(info[0]))->toEventTarget(v8 ::Handle<v8::Object>::Cast(info[0])) : 0); 5255 EventTarget* eventTargetArg;
5256 {
5257 v8::TryCatch block;
5258 TONATIVE_VOID_INTERNAL(eventTargetArg, V8DOMWrapper::isDOMWrapper(info[0 ]) ? toWrapperTypeInfo(v8::Handle<v8::Object>::Cast(info[0]))->toEventTarget(v8: :Handle<v8::Object>::Cast(info[0])) : 0);
5259 }
5180 impl->voidMethodEventTargetArg(eventTargetArg); 5260 impl->voidMethodEventTargetArg(eventTargetArg);
5181 } 5261 }
5182 5262
5183 static void voidMethodEventTargetArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 5263 static void voidMethodEventTargetArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
5184 { 5264 {
5185 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5265 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5186 TestObjectV8Internal::voidMethodEventTargetArgMethod(info); 5266 TestObjectV8Internal::voidMethodEventTargetArgMethod(info);
5187 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5267 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5188 } 5268 }
5189 5269
5190 static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallback Info<v8::Value>& info) 5270 static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallback Info<v8::Value>& info)
5191 { 5271 {
5192 if (UNLIKELY(info.Length() < 1)) { 5272 if (UNLIKELY(info.Length() < 1)) {
5193 throwArityTypeErrorForMethod("voidMethodMediaQueryListListenerArg", "Tes tObject", 1, info.Length(), info.GetIsolate()); 5273 throwArityTypeErrorForMethod("voidMethodMediaQueryListListenerArg", "Tes tObject", 1, info.Length(), info.GetIsolate());
5194 return; 5274 return;
5195 } 5275 }
5196 TestObject* impl = V8TestObject::toNative(info.Holder()); 5276 TestObject* impl = V8TestObject::toNative(info.Holder());
5197 TONATIVE_VOID(RefPtrWillBeRawPtr<MediaQueryListListener>, mediaQueryListList enerArg, MediaQueryListListener::create(ScriptValue(ScriptState::current(info.Ge tIsolate()), info[0]))); 5277 RefPtrWillBeRawPtr<MediaQueryListListener> mediaQueryListListenerArg;
5278 {
5279 v8::TryCatch block;
5280 TONATIVE_VOID_INTERNAL(mediaQueryListListenerArg, MediaQueryListListener ::create(ScriptValue(ScriptState::current(info.GetIsolate()), info[0])));
5281 }
5198 impl->voidMethodMediaQueryListListenerArg(mediaQueryListListenerArg); 5282 impl->voidMethodMediaQueryListListenerArg(mediaQueryListListenerArg);
5199 } 5283 }
5200 5284
5201 static void voidMethodMediaQueryListListenerArgMethodCallback(const v8::Function CallbackInfo<v8::Value>& info) 5285 static void voidMethodMediaQueryListListenerArgMethodCallback(const v8::Function CallbackInfo<v8::Value>& info)
5202 { 5286 {
5203 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5287 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5204 TestObjectV8Internal::voidMethodMediaQueryListListenerArgMethod(info); 5288 TestObjectV8Internal::voidMethodMediaQueryListListenerArgMethod(info);
5205 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5289 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5206 } 5290 }
5207 5291
5208 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) 5292 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo)
5209 { 5293 {
5210 if (UNLIKELY(info.Length() < 1)) { 5294 if (UNLIKELY(info.Length() < 1)) {
5211 throwArityTypeErrorForMethod("voidMethodAnyArg", "TestObject", 1, info.L ength(), info.GetIsolate()); 5295 throwArityTypeErrorForMethod("voidMethodAnyArg", "TestObject", 1, info.L ength(), info.GetIsolate());
5212 return; 5296 return;
5213 } 5297 }
5214 TestObject* impl = V8TestObject::toNative(info.Holder()); 5298 TestObject* impl = V8TestObject::toNative(info.Holder());
5215 TONATIVE_VOID(ScriptValue, anyArg, ScriptValue(ScriptState::current(info.Get Isolate()), info[0])); 5299 ScriptValue anyArg;
5300 {
5301 v8::TryCatch block;
5302 TONATIVE_VOID_INTERNAL(anyArg, ScriptValue(ScriptState::current(info.Get Isolate()), info[0]));
5303 }
5216 impl->voidMethodAnyArg(anyArg); 5304 impl->voidMethodAnyArg(anyArg);
5217 } 5305 }
5218 5306
5219 static void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) 5307 static void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info)
5220 { 5308 {
5221 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5309 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5222 TestObjectV8Internal::voidMethodAnyArgMethod(info); 5310 TestObjectV8Internal::voidMethodAnyArgMethod(info);
5223 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5311 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5224 } 5312 }
5225 5313
5226 static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 5314 static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
5227 { 5315 {
5228 if (UNLIKELY(info.Length() < 1)) { 5316 if (UNLIKELY(info.Length() < 1)) {
5229 throwArityTypeErrorForMethod("voidMethodAttrArg", "TestObject", 1, info. Length(), info.GetIsolate()); 5317 throwArityTypeErrorForMethod("voidMethodAttrArg", "TestObject", 1, info. Length(), info.GetIsolate());
5230 return; 5318 return;
5231 } 5319 }
5232 TestObject* impl = V8TestObject::toNative(info.Holder()); 5320 TestObject* impl = V8TestObject::toNative(info.Holder());
5233 TONATIVE_VOID(Attr*, attrArg, V8Attr::toNativeWithTypeCheck(info.GetIsolate( ), info[0])); 5321 Attr* attrArg;
5322 {
5323 v8::TryCatch block;
5324 TONATIVE_VOID_INTERNAL(attrArg, V8Attr::toNativeWithTypeCheck(info.GetIs olate(), info[0]));
5325 }
5234 impl->voidMethodAttrArg(attrArg); 5326 impl->voidMethodAttrArg(attrArg);
5235 } 5327 }
5236 5328
5237 static void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 5329 static void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
5238 { 5330 {
5239 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5331 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5240 TestObjectV8Internal::voidMethodAttrArgMethod(info); 5332 TestObjectV8Internal::voidMethodAttrArgMethod(info);
5241 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5333 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5242 } 5334 }
5243 5335
5244 static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 5336 static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
5245 { 5337 {
5246 if (UNLIKELY(info.Length() < 1)) { 5338 if (UNLIKELY(info.Length() < 1)) {
5247 throwArityTypeErrorForMethod("voidMethodDocumentArg", "TestObject", 1, i nfo.Length(), info.GetIsolate()); 5339 throwArityTypeErrorForMethod("voidMethodDocumentArg", "TestObject", 1, i nfo.Length(), info.GetIsolate());
5248 return; 5340 return;
5249 } 5341 }
5250 TestObject* impl = V8TestObject::toNative(info.Holder()); 5342 TestObject* impl = V8TestObject::toNative(info.Holder());
5251 TONATIVE_VOID(Document*, documentArg, V8Document::toNativeWithTypeCheck(info .GetIsolate(), info[0])); 5343 Document* documentArg;
5344 {
5345 v8::TryCatch block;
5346 TONATIVE_VOID_INTERNAL(documentArg, V8Document::toNativeWithTypeCheck(in fo.GetIsolate(), info[0]));
5347 }
5252 impl->voidMethodDocumentArg(documentArg); 5348 impl->voidMethodDocumentArg(documentArg);
5253 } 5349 }
5254 5350
5255 static void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 5351 static void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
5256 { 5352 {
5257 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5353 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5258 TestObjectV8Internal::voidMethodDocumentArgMethod(info); 5354 TestObjectV8Internal::voidMethodDocumentArgMethod(info);
5259 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5355 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5260 } 5356 }
5261 5357
5262 static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 5358 static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
5263 { 5359 {
5264 if (UNLIKELY(info.Length() < 1)) { 5360 if (UNLIKELY(info.Length() < 1)) {
5265 throwArityTypeErrorForMethod("voidMethodDocumentTypeArg", "TestObject", 1, info.Length(), info.GetIsolate()); 5361 throwArityTypeErrorForMethod("voidMethodDocumentTypeArg", "TestObject", 1, info.Length(), info.GetIsolate());
5266 return; 5362 return;
5267 } 5363 }
5268 TestObject* impl = V8TestObject::toNative(info.Holder()); 5364 TestObject* impl = V8TestObject::toNative(info.Holder());
5269 TONATIVE_VOID(DocumentType*, documentTypeArg, V8DocumentType::toNativeWithTy peCheck(info.GetIsolate(), info[0])); 5365 DocumentType* documentTypeArg;
5366 {
5367 v8::TryCatch block;
5368 TONATIVE_VOID_INTERNAL(documentTypeArg, V8DocumentType::toNativeWithType Check(info.GetIsolate(), info[0]));
5369 }
5270 impl->voidMethodDocumentTypeArg(documentTypeArg); 5370 impl->voidMethodDocumentTypeArg(documentTypeArg);
5271 } 5371 }
5272 5372
5273 static void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 5373 static void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
5274 { 5374 {
5275 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5375 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5276 TestObjectV8Internal::voidMethodDocumentTypeArgMethod(info); 5376 TestObjectV8Internal::voidMethodDocumentTypeArgMethod(info);
5277 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5377 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5278 } 5378 }
5279 5379
5280 static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 5380 static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
5281 { 5381 {
5282 if (UNLIKELY(info.Length() < 1)) { 5382 if (UNLIKELY(info.Length() < 1)) {
5283 throwArityTypeErrorForMethod("voidMethodElementArg", "TestObject", 1, in fo.Length(), info.GetIsolate()); 5383 throwArityTypeErrorForMethod("voidMethodElementArg", "TestObject", 1, in fo.Length(), info.GetIsolate());
5284 return; 5384 return;
5285 } 5385 }
5286 TestObject* impl = V8TestObject::toNative(info.Holder()); 5386 TestObject* impl = V8TestObject::toNative(info.Holder());
5287 TONATIVE_VOID(Element*, elementArg, V8Element::toNativeWithTypeCheck(info.Ge tIsolate(), info[0])); 5387 Element* elementArg;
5388 {
5389 v8::TryCatch block;
5390 TONATIVE_VOID_INTERNAL(elementArg, V8Element::toNativeWithTypeCheck(info .GetIsolate(), info[0]));
5391 }
5288 impl->voidMethodElementArg(elementArg); 5392 impl->voidMethodElementArg(elementArg);
5289 } 5393 }
5290 5394
5291 static void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 5395 static void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
5292 { 5396 {
5293 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5397 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5294 TestObjectV8Internal::voidMethodElementArgMethod(info); 5398 TestObjectV8Internal::voidMethodElementArgMethod(info);
5295 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5399 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5296 } 5400 }
5297 5401
5298 static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 5402 static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
5299 { 5403 {
5300 if (UNLIKELY(info.Length() < 1)) { 5404 if (UNLIKELY(info.Length() < 1)) {
5301 throwArityTypeErrorForMethod("voidMethodNodeArg", "TestObject", 1, info. Length(), info.GetIsolate()); 5405 throwArityTypeErrorForMethod("voidMethodNodeArg", "TestObject", 1, info. Length(), info.GetIsolate());
5302 return; 5406 return;
5303 } 5407 }
5304 TestObject* impl = V8TestObject::toNative(info.Holder()); 5408 TestObject* impl = V8TestObject::toNative(info.Holder());
5305 TONATIVE_VOID(Node*, nodeArg, V8Node::toNativeWithTypeCheck(info.GetIsolate( ), info[0])); 5409 Node* nodeArg;
5410 {
5411 v8::TryCatch block;
5412 TONATIVE_VOID_INTERNAL(nodeArg, V8Node::toNativeWithTypeCheck(info.GetIs olate(), info[0]));
5413 }
5306 impl->voidMethodNodeArg(nodeArg); 5414 impl->voidMethodNodeArg(nodeArg);
5307 } 5415 }
5308 5416
5309 static void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 5417 static void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
5310 { 5418 {
5311 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5419 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5312 TestObjectV8Internal::voidMethodNodeArgMethod(info); 5420 TestObjectV8Internal::voidMethodNodeArgMethod(info);
5313 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5421 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5314 } 5422 }
5315 5423
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
5378 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5486 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5379 } 5487 }
5380 5488
5381 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 5489 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
5382 { 5490 {
5383 if (UNLIKELY(info.Length() < 1)) { 5491 if (UNLIKELY(info.Length() < 1)) {
5384 throwArityTypeErrorForMethod("voidMethodArrayBufferArg", "TestObject", 1 , info.Length(), info.GetIsolate()); 5492 throwArityTypeErrorForMethod("voidMethodArrayBufferArg", "TestObject", 1 , info.Length(), info.GetIsolate());
5385 return; 5493 return;
5386 } 5494 }
5387 TestObject* impl = V8TestObject::toNative(info.Holder()); 5495 TestObject* impl = V8TestObject::toNative(info.Holder());
5388 TONATIVE_VOID(ArrayBuffer*, arrayBufferArg, info[0]->IsArrayBuffer() ? V8Arr ayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0); 5496 ArrayBuffer* arrayBufferArg;
5497 {
5498 v8::TryCatch block;
5499 TONATIVE_VOID_INTERNAL(arrayBufferArg, info[0]->IsArrayBuffer() ? V8Arra yBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0);
5500 }
5389 impl->voidMethodArrayBufferArg(arrayBufferArg); 5501 impl->voidMethodArrayBufferArg(arrayBufferArg);
5390 } 5502 }
5391 5503
5392 static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 5504 static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
5393 { 5505 {
5394 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5506 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5395 TestObjectV8Internal::voidMethodArrayBufferArgMethod(info); 5507 TestObjectV8Internal::voidMethodArrayBufferArgMethod(info);
5396 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5508 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5397 } 5509 }
5398 5510
5399 static void voidMethodArrayBufferOrNullArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info) 5511 static void voidMethodArrayBufferOrNullArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info)
5400 { 5512 {
5401 if (UNLIKELY(info.Length() < 1)) { 5513 if (UNLIKELY(info.Length() < 1)) {
5402 throwArityTypeErrorForMethod("voidMethodArrayBufferOrNullArg", "TestObje ct", 1, info.Length(), info.GetIsolate()); 5514 throwArityTypeErrorForMethod("voidMethodArrayBufferOrNullArg", "TestObje ct", 1, info.Length(), info.GetIsolate());
5403 return; 5515 return;
5404 } 5516 }
5405 TestObject* impl = V8TestObject::toNative(info.Holder()); 5517 TestObject* impl = V8TestObject::toNative(info.Holder());
5406 TONATIVE_VOID(ArrayBuffer*, arrayBufferArg, info[0]->IsArrayBuffer() ? V8Arr ayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0); 5518 ArrayBuffer* arrayBufferArg;
5519 {
5520 v8::TryCatch block;
5521 TONATIVE_VOID_INTERNAL(arrayBufferArg, info[0]->IsArrayBuffer() ? V8Arra yBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0);
5522 }
5407 impl->voidMethodArrayBufferOrNullArg(arrayBufferArg); 5523 impl->voidMethodArrayBufferOrNullArg(arrayBufferArg);
5408 } 5524 }
5409 5525
5410 static void voidMethodArrayBufferOrNullArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 5526 static void voidMethodArrayBufferOrNullArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
5411 { 5527 {
5412 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5528 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5413 TestObjectV8Internal::voidMethodArrayBufferOrNullArgMethod(info); 5529 TestObjectV8Internal::voidMethodArrayBufferOrNullArgMethod(info);
5414 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5530 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5415 } 5531 }
5416 5532
5417 static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) 5533 static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info)
5418 { 5534 {
5419 if (UNLIKELY(info.Length() < 1)) { 5535 if (UNLIKELY(info.Length() < 1)) {
5420 throwArityTypeErrorForMethod("voidMethodArrayBufferViewArg", "TestObject ", 1, info.Length(), info.GetIsolate()); 5536 throwArityTypeErrorForMethod("voidMethodArrayBufferViewArg", "TestObject ", 1, info.Length(), info.GetIsolate());
5421 return; 5537 return;
5422 } 5538 }
5423 TestObject* impl = V8TestObject::toNative(info.Holder()); 5539 TestObject* impl = V8TestObject::toNative(info.Holder());
5424 TONATIVE_VOID(ArrayBufferView*, arrayBufferViewArg, info[0]->IsArrayBufferVi ew() ? V8ArrayBufferView::toNative(v8::Handle<v8::ArrayBufferView>::Cast(info[0] )) : 0); 5540 ArrayBufferView* arrayBufferViewArg;
5541 {
5542 v8::TryCatch block;
5543 TONATIVE_VOID_INTERNAL(arrayBufferViewArg, info[0]->IsArrayBufferView() ? V8ArrayBufferView::toNative(v8::Handle<v8::ArrayBufferView>::Cast(info[0])) : 0);
5544 }
5425 impl->voidMethodArrayBufferViewArg(arrayBufferViewArg); 5545 impl->voidMethodArrayBufferViewArg(arrayBufferViewArg);
5426 } 5546 }
5427 5547
5428 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 5548 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
5429 { 5549 {
5430 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5550 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5431 TestObjectV8Internal::voidMethodArrayBufferViewArgMethod(info); 5551 TestObjectV8Internal::voidMethodArrayBufferViewArgMethod(info);
5432 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5552 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5433 } 5553 }
5434 5554
5435 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 5555 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
5436 { 5556 {
5437 if (UNLIKELY(info.Length() < 1)) { 5557 if (UNLIKELY(info.Length() < 1)) {
5438 throwArityTypeErrorForMethod("voidMethodFloat32ArrayArg", "TestObject", 1, info.Length(), info.GetIsolate()); 5558 throwArityTypeErrorForMethod("voidMethodFloat32ArrayArg", "TestObject", 1, info.Length(), info.GetIsolate());
5439 return; 5559 return;
5440 } 5560 }
5441 TestObject* impl = V8TestObject::toNative(info.Holder()); 5561 TestObject* impl = V8TestObject::toNative(info.Holder());
5442 TONATIVE_VOID(Float32Array*, float32ArrayArg, info[0]->IsFloat32Array() ? V8 Float32Array::toNative(v8::Handle<v8::Float32Array>::Cast(info[0])) : 0); 5562 Float32Array* float32ArrayArg;
5563 {
5564 v8::TryCatch block;
5565 TONATIVE_VOID_INTERNAL(float32ArrayArg, info[0]->IsFloat32Array() ? V8Fl oat32Array::toNative(v8::Handle<v8::Float32Array>::Cast(info[0])) : 0);
5566 }
5443 impl->voidMethodFloat32ArrayArg(float32ArrayArg); 5567 impl->voidMethodFloat32ArrayArg(float32ArrayArg);
5444 } 5568 }
5445 5569
5446 static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 5570 static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
5447 { 5571 {
5448 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5572 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5449 TestObjectV8Internal::voidMethodFloat32ArrayArgMethod(info); 5573 TestObjectV8Internal::voidMethodFloat32ArrayArgMethod(info);
5450 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5574 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5451 } 5575 }
5452 5576
5453 static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 5577 static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
5454 { 5578 {
5455 if (UNLIKELY(info.Length() < 1)) { 5579 if (UNLIKELY(info.Length() < 1)) {
5456 throwArityTypeErrorForMethod("voidMethodInt32ArrayArg", "TestObject", 1, info.Length(), info.GetIsolate()); 5580 throwArityTypeErrorForMethod("voidMethodInt32ArrayArg", "TestObject", 1, info.Length(), info.GetIsolate());
5457 return; 5581 return;
5458 } 5582 }
5459 TestObject* impl = V8TestObject::toNative(info.Holder()); 5583 TestObject* impl = V8TestObject::toNative(info.Holder());
5460 TONATIVE_VOID(Int32Array*, int32ArrayArg, info[0]->IsInt32Array() ? V8Int32A rray::toNative(v8::Handle<v8::Int32Array>::Cast(info[0])) : 0); 5584 Int32Array* int32ArrayArg;
5585 {
5586 v8::TryCatch block;
5587 TONATIVE_VOID_INTERNAL(int32ArrayArg, info[0]->IsInt32Array() ? V8Int32A rray::toNative(v8::Handle<v8::Int32Array>::Cast(info[0])) : 0);
5588 }
5461 impl->voidMethodInt32ArrayArg(int32ArrayArg); 5589 impl->voidMethodInt32ArrayArg(int32ArrayArg);
5462 } 5590 }
5463 5591
5464 static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 5592 static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
5465 { 5593 {
5466 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5594 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5467 TestObjectV8Internal::voidMethodInt32ArrayArgMethod(info); 5595 TestObjectV8Internal::voidMethodInt32ArrayArgMethod(info);
5468 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5596 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5469 } 5597 }
5470 5598
5471 static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 5599 static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
5472 { 5600 {
5473 if (UNLIKELY(info.Length() < 1)) { 5601 if (UNLIKELY(info.Length() < 1)) {
5474 throwArityTypeErrorForMethod("voidMethodUint8ArrayArg", "TestObject", 1, info.Length(), info.GetIsolate()); 5602 throwArityTypeErrorForMethod("voidMethodUint8ArrayArg", "TestObject", 1, info.Length(), info.GetIsolate());
5475 return; 5603 return;
5476 } 5604 }
5477 TestObject* impl = V8TestObject::toNative(info.Holder()); 5605 TestObject* impl = V8TestObject::toNative(info.Holder());
5478 TONATIVE_VOID(Uint8Array*, uint8ArrayArg, info[0]->IsUint8Array() ? V8Uint8A rray::toNative(v8::Handle<v8::Uint8Array>::Cast(info[0])) : 0); 5606 Uint8Array* uint8ArrayArg;
5607 {
5608 v8::TryCatch block;
5609 TONATIVE_VOID_INTERNAL(uint8ArrayArg, info[0]->IsUint8Array() ? V8Uint8A rray::toNative(v8::Handle<v8::Uint8Array>::Cast(info[0])) : 0);
5610 }
5479 impl->voidMethodUint8ArrayArg(uint8ArrayArg); 5611 impl->voidMethodUint8ArrayArg(uint8ArrayArg);
5480 } 5612 }
5481 5613
5482 static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 5614 static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
5483 { 5615 {
5484 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5616 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5485 TestObjectV8Internal::voidMethodUint8ArrayArgMethod(info); 5617 TestObjectV8Internal::voidMethodUint8ArrayArgMethod(info);
5486 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5618 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5487 } 5619 }
5488 5620
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
5525 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5657 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5526 } 5658 }
5527 5659
5528 static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info) 5660 static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info)
5529 { 5661 {
5530 if (UNLIKELY(info.Length() < 1)) { 5662 if (UNLIKELY(info.Length() < 1)) {
5531 throwArityTypeErrorForMethod("voidMethodArrayLongArg", "TestObject", 1, info.Length(), info.GetIsolate()); 5663 throwArityTypeErrorForMethod("voidMethodArrayLongArg", "TestObject", 1, info.Length(), info.GetIsolate());
5532 return; 5664 return;
5533 } 5665 }
5534 TestObject* impl = V8TestObject::toNative(info.Holder()); 5666 TestObject* impl = V8TestObject::toNative(info.Holder());
5535 TONATIVE_VOID(Vector<int>, arrayLongArg, toNativeArray<int>(info[0], 1, info .GetIsolate())); 5667 Vector<int> arrayLongArg;
5668 {
5669 v8::TryCatch block;
5670 TONATIVE_VOID_INTERNAL(arrayLongArg, toNativeArray<int>(info[0], 1, info .GetIsolate()));
5671 }
5536 impl->voidMethodArrayLongArg(arrayLongArg); 5672 impl->voidMethodArrayLongArg(arrayLongArg);
5537 } 5673 }
5538 5674
5539 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info) 5675 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
5540 { 5676 {
5541 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5677 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5542 TestObjectV8Internal::voidMethodArrayLongArgMethod(info); 5678 TestObjectV8Internal::voidMethodArrayLongArgMethod(info);
5543 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5679 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5544 } 5680 }
5545 5681
5546 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 5682 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
5547 { 5683 {
5548 if (UNLIKELY(info.Length() < 1)) { 5684 if (UNLIKELY(info.Length() < 1)) {
5549 throwArityTypeErrorForMethod("voidMethodArrayStringArg", "TestObject", 1 , info.Length(), info.GetIsolate()); 5685 throwArityTypeErrorForMethod("voidMethodArrayStringArg", "TestObject", 1 , info.Length(), info.GetIsolate());
5550 return; 5686 return;
5551 } 5687 }
5552 TestObject* impl = V8TestObject::toNative(info.Holder()); 5688 TestObject* impl = V8TestObject::toNative(info.Holder());
5553 TONATIVE_VOID(Vector<String>, arrayStringArg, toNativeArray<String>(info[0], 1, info.GetIsolate())); 5689 Vector<String> arrayStringArg;
5690 {
5691 v8::TryCatch block;
5692 TONATIVE_VOID_INTERNAL(arrayStringArg, toNativeArray<String>(info[0], 1, info.GetIsolate()));
5693 }
5554 impl->voidMethodArrayStringArg(arrayStringArg); 5694 impl->voidMethodArrayStringArg(arrayStringArg);
5555 } 5695 }
5556 5696
5557 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 5697 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
5558 { 5698 {
5559 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5699 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5560 TestObjectV8Internal::voidMethodArrayStringArgMethod(info); 5700 TestObjectV8Internal::voidMethodArrayStringArgMethod(info);
5561 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5701 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5562 } 5702 }
5563 5703
5564 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) 5704 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info)
5565 { 5705 {
5566 if (UNLIKELY(info.Length() < 1)) { 5706 if (UNLIKELY(info.Length() < 1)) {
5567 throwArityTypeErrorForMethod("voidMethodArrayTestInterfaceEmptyArg", "Te stObject", 1, info.Length(), info.GetIsolate()); 5707 throwArityTypeErrorForMethod("voidMethodArrayTestInterfaceEmptyArg", "Te stObject", 1, info.Length(), info.GetIsolate());
5568 return; 5708 return;
5569 } 5709 }
5570 TestObject* impl = V8TestObject::toNative(info.Holder()); 5710 TestObject* impl = V8TestObject::toNative(info.Holder());
5571 TONATIVE_VOID(Vector<RefPtr<TestInterfaceEmpty> >, arrayTestInterfaceEmptyAr g, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, in fo.GetIsolate()))); 5711 Vector<RefPtr<TestInterfaceEmpty> > arrayTestInterfaceEmptyArg;
5712 {
5713 v8::TryCatch block;
5714 TONATIVE_VOID_INTERNAL(arrayTestInterfaceEmptyArg, (toRefPtrNativeArray< TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate())));
5715 }
5572 impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg); 5716 impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg);
5573 } 5717 }
5574 5718
5575 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 5719 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
5576 { 5720 {
5577 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5721 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5578 TestObjectV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info); 5722 TestObjectV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info);
5579 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5723 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5580 } 5724 }
5581 5725
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
5618 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5762 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5619 } 5763 }
5620 5764
5621 static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 5765 static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
5622 { 5766 {
5623 if (UNLIKELY(info.Length() < 1)) { 5767 if (UNLIKELY(info.Length() < 1)) {
5624 throwArityTypeErrorForMethod("voidMethodSequenceLongArg", "TestObject", 1, info.Length(), info.GetIsolate()); 5768 throwArityTypeErrorForMethod("voidMethodSequenceLongArg", "TestObject", 1, info.Length(), info.GetIsolate());
5625 return; 5769 return;
5626 } 5770 }
5627 TestObject* impl = V8TestObject::toNative(info.Holder()); 5771 TestObject* impl = V8TestObject::toNative(info.Holder());
5628 TONATIVE_VOID(Vector<int>, longSequenceArg, toNativeArray<int>(info[0], 1, i nfo.GetIsolate())); 5772 Vector<int> longSequenceArg;
5773 {
5774 v8::TryCatch block;
5775 TONATIVE_VOID_INTERNAL(longSequenceArg, toNativeArray<int>(info[0], 1, i nfo.GetIsolate()));
5776 }
5629 impl->voidMethodSequenceLongArg(longSequenceArg); 5777 impl->voidMethodSequenceLongArg(longSequenceArg);
5630 } 5778 }
5631 5779
5632 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 5780 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
5633 { 5781 {
5634 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5782 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5635 TestObjectV8Internal::voidMethodSequenceLongArgMethod(info); 5783 TestObjectV8Internal::voidMethodSequenceLongArgMethod(info);
5636 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5784 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5637 } 5785 }
5638 5786
5639 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 5787 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
5640 { 5788 {
5641 if (UNLIKELY(info.Length() < 1)) { 5789 if (UNLIKELY(info.Length() < 1)) {
5642 throwArityTypeErrorForMethod("voidMethodSequenceStringArg", "TestObject" , 1, info.Length(), info.GetIsolate()); 5790 throwArityTypeErrorForMethod("voidMethodSequenceStringArg", "TestObject" , 1, info.Length(), info.GetIsolate());
5643 return; 5791 return;
5644 } 5792 }
5645 TestObject* impl = V8TestObject::toNative(info.Holder()); 5793 TestObject* impl = V8TestObject::toNative(info.Holder());
5646 TONATIVE_VOID(Vector<String>, stringSequenceArg, toNativeArray<String>(info[ 0], 1, info.GetIsolate())); 5794 Vector<String> stringSequenceArg;
5795 {
5796 v8::TryCatch block;
5797 TONATIVE_VOID_INTERNAL(stringSequenceArg, toNativeArray<String>(info[0], 1, info.GetIsolate()));
5798 }
5647 impl->voidMethodSequenceStringArg(stringSequenceArg); 5799 impl->voidMethodSequenceStringArg(stringSequenceArg);
5648 } 5800 }
5649 5801
5650 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 5802 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
5651 { 5803 {
5652 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5804 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5653 TestObjectV8Internal::voidMethodSequenceStringArgMethod(info); 5805 TestObjectV8Internal::voidMethodSequenceStringArgMethod(info);
5654 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5806 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5655 } 5807 }
5656 5808
5657 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) 5809 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info)
5658 { 5810 {
5659 if (UNLIKELY(info.Length() < 1)) { 5811 if (UNLIKELY(info.Length() < 1)) {
5660 throwArityTypeErrorForMethod("voidMethodSequenceTestInterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate()); 5812 throwArityTypeErrorForMethod("voidMethodSequenceTestInterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate());
5661 return; 5813 return;
5662 } 5814 }
5663 TestObject* impl = V8TestObject::toNative(info.Holder()); 5815 TestObject* impl = V8TestObject::toNative(info.Holder());
5664 TONATIVE_VOID(Vector<RefPtr<TestInterfaceEmpty> >, testInterfaceEmptySequenc eArg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate()))); 5816 Vector<RefPtr<TestInterfaceEmpty> > testInterfaceEmptySequenceArg;
5817 {
5818 v8::TryCatch block;
5819 TONATIVE_VOID_INTERNAL(testInterfaceEmptySequenceArg, (toRefPtrNativeArr ay<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate())));
5820 }
5665 impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg) ; 5821 impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg) ;
5666 } 5822 }
5667 5823
5668 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 5824 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
5669 { 5825 {
5670 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5826 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5671 TestObjectV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(info); 5827 TestObjectV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(info);
5672 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5828 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5673 } 5829 }
5674 5830
5675 static void voidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallba ckInfo<v8::Value>& info) 5831 static void voidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallba ckInfo<v8::Value>& info)
5676 { 5832 {
5677 if (UNLIKELY(info.Length() < 1)) { 5833 if (UNLIKELY(info.Length() < 1)) {
5678 throwArityTypeErrorForMethod("voidMethodTestInterfaceEmptyOrNullArg", "T estObject", 1, info.Length(), info.GetIsolate()); 5834 throwArityTypeErrorForMethod("voidMethodTestInterfaceEmptyOrNullArg", "T estObject", 1, info.Length(), info.GetIsolate());
5679 return; 5835 return;
5680 } 5836 }
5681 TestObject* impl = V8TestObject::toNative(info.Holder()); 5837 TestObject* impl = V8TestObject::toNative(info.Holder());
5682 TONATIVE_VOID(TestInterfaceEmpty*, nullableTestInterfaceEmptyArg, V8TestInte rfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 5838 TestInterfaceEmpty* nullableTestInterfaceEmptyArg;
5839 {
5840 v8::TryCatch block;
5841 TONATIVE_VOID_INTERNAL(nullableTestInterfaceEmptyArg, V8TestInterfaceEmp ty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
5842 }
5683 impl->voidMethodTestInterfaceEmptyOrNullArg(nullableTestInterfaceEmptyArg); 5843 impl->voidMethodTestInterfaceEmptyOrNullArg(nullableTestInterfaceEmptyArg);
5684 } 5844 }
5685 5845
5686 static void voidMethodTestInterfaceEmptyOrNullArgMethodCallback(const v8::Functi onCallbackInfo<v8::Value>& info) 5846 static void voidMethodTestInterfaceEmptyOrNullArgMethodCallback(const v8::Functi onCallbackInfo<v8::Value>& info)
5687 { 5847 {
5688 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5848 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5689 TestObjectV8Internal::voidMethodTestInterfaceEmptyOrNullArgMethod(info); 5849 TestObjectV8Internal::voidMethodTestInterfaceEmptyOrNullArgMethod(info);
5690 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5850 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5691 } 5851 }
5692 5852
5693 static void voidMethodTestCallbackInterfaceArgMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 5853 static void voidMethodTestCallbackInterfaceArgMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
5694 { 5854 {
5695 if (UNLIKELY(info.Length() < 1)) { 5855 if (UNLIKELY(info.Length() < 1)) {
5696 throwArityTypeErrorForMethod("voidMethodTestCallbackInterfaceArg", "Test Object", 1, info.Length(), info.GetIsolate()); 5856 throwArityTypeErrorForMethod("voidMethodTestCallbackInterfaceArg", "Test Object", 1, info.Length(), info.GetIsolate());
5697 return; 5857 return;
5698 } 5858 }
5699 TestObject* impl = V8TestObject::toNative(info.Holder()); 5859 TestObject* impl = V8TestObject::toNative(info.Holder());
5700 if (info.Length() <= 0 || !info[0]->IsFunction()) { 5860 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg;
5701 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCallbac kInterfaceArg", "TestObject", "The callback provided as parameter 1 is not a fun ction."), info.GetIsolate()); 5861 {
5702 return; 5862 if (info.Length() <= 0 || !info[0]->IsFunction()) {
5863 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCal lbackInterfaceArg", "TestObject", "The callback provided as parameter 1 is not a function."), info.GetIsolate());
5864 return;
5865 }
5866 testCallbackInterfaceArg = V8TestCallbackInterface::create(v8::Handle<v8 ::Function>::Cast(info[0]), currentExecutionContext(info.GetIsolate()));
5703 } 5867 }
5704 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = V8TestCallbackInter face::create(v8::Handle<v8::Function>::Cast(info[0]), currentExecutionContext(in fo.GetIsolate()));
5705 impl->voidMethodTestCallbackInterfaceArg(testCallbackInterfaceArg.release()) ; 5868 impl->voidMethodTestCallbackInterfaceArg(testCallbackInterfaceArg.release()) ;
5706 } 5869 }
5707 5870
5708 static void voidMethodTestCallbackInterfaceArgMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 5871 static void voidMethodTestCallbackInterfaceArgMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
5709 { 5872 {
5710 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5873 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5711 TestObjectV8Internal::voidMethodTestCallbackInterfaceArgMethod(info); 5874 TestObjectV8Internal::voidMethodTestCallbackInterfaceArgMethod(info);
5712 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5875 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5713 } 5876 }
5714 5877
5715 static void voidMethodOptionalTestCallbackInterfaceArgMethod(const v8::FunctionC allbackInfo<v8::Value>& info) 5878 static void voidMethodOptionalTestCallbackInterfaceArgMethod(const v8::FunctionC allbackInfo<v8::Value>& info)
5716 { 5879 {
5717 TestObject* impl = V8TestObject::toNative(info.Holder()); 5880 TestObject* impl = V8TestObject::toNative(info.Holder());
5718 OwnPtr<TestCallbackInterface> optionalTestCallbackInterfaceArg; 5881 OwnPtr<TestCallbackInterface> optionalTestCallbackInterfaceArg;
5719 if (info.Length() > 0 && !isUndefinedOrNull(info[0])) { 5882 {
5720 if (!info[0]->IsFunction()) { 5883 if (info.Length() > 0 && !isUndefinedOrNull(info[0])) {
5721 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOptiona lTestCallbackInterfaceArg", "TestObject", "The callback provided as parameter 1 is not a function."), info.GetIsolate()); 5884 if (!info[0]->IsFunction()) {
5722 return; 5885 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOpt ionalTestCallbackInterfaceArg", "TestObject", "The callback provided as paramete r 1 is not a function."), info.GetIsolate());
5886 return;
5887 }
5888 optionalTestCallbackInterfaceArg = V8TestCallbackInterface::create(v 8::Handle<v8::Function>::Cast(info[0]), currentExecutionContext(info.GetIsolate( )));
5723 } 5889 }
5724 optionalTestCallbackInterfaceArg = V8TestCallbackInterface::create(v8::H andle<v8::Function>::Cast(info[0]), currentExecutionContext(info.GetIsolate()));
5725 } 5890 }
5726 impl->voidMethodOptionalTestCallbackInterfaceArg(optionalTestCallbackInterfa ceArg.release()); 5891 impl->voidMethodOptionalTestCallbackInterfaceArg(optionalTestCallbackInterfa ceArg.release());
5727 } 5892 }
5728 5893
5729 static void voidMethodOptionalTestCallbackInterfaceArgMethodCallback(const v8::F unctionCallbackInfo<v8::Value>& info) 5894 static void voidMethodOptionalTestCallbackInterfaceArgMethodCallback(const v8::F unctionCallbackInfo<v8::Value>& info)
5730 { 5895 {
5731 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5896 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5732 TestObjectV8Internal::voidMethodOptionalTestCallbackInterfaceArgMethod(info) ; 5897 TestObjectV8Internal::voidMethodOptionalTestCallbackInterfaceArgMethod(info) ;
5733 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5898 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5734 } 5899 }
5735 5900
5736 static void voidMethodTestCallbackInterfaceOrNullArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) 5901 static void voidMethodTestCallbackInterfaceOrNullArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info)
5737 { 5902 {
5738 if (UNLIKELY(info.Length() < 1)) { 5903 if (UNLIKELY(info.Length() < 1)) {
5739 throwArityTypeErrorForMethod("voidMethodTestCallbackInterfaceOrNullArg", "TestObject", 1, info.Length(), info.GetIsolate()); 5904 throwArityTypeErrorForMethod("voidMethodTestCallbackInterfaceOrNullArg", "TestObject", 1, info.Length(), info.GetIsolate());
5740 return; 5905 return;
5741 } 5906 }
5742 TestObject* impl = V8TestObject::toNative(info.Holder()); 5907 TestObject* impl = V8TestObject::toNative(info.Holder());
5743 if (info.Length() <= 0 || !(info[0]->IsFunction() || info[0]->IsNull())) { 5908 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg;
5744 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCallbac kInterfaceOrNullArg", "TestObject", "The callback provided as parameter 1 is not a function."), info.GetIsolate()); 5909 {
5745 return; 5910 if (info.Length() <= 0 || !(info[0]->IsFunction() || info[0]->IsNull())) {
5911 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCal lbackInterfaceOrNullArg", "TestObject", "The callback provided as parameter 1 is not a function."), info.GetIsolate());
5912 return;
5913 }
5914 testCallbackInterfaceArg = info[0]->IsNull() ? nullptr : V8TestCallbackI nterface::create(v8::Handle<v8::Function>::Cast(info[0]), currentExecutionContex t(info.GetIsolate()));
5746 } 5915 }
5747 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = info[0]->IsNull() ? nullptr : V8TestCallbackInterface::create(v8::Handle<v8::Function>::Cast(info[0 ]), currentExecutionContext(info.GetIsolate()));
5748 impl->voidMethodTestCallbackInterfaceOrNullArg(testCallbackInterfaceArg.rele ase()); 5916 impl->voidMethodTestCallbackInterfaceOrNullArg(testCallbackInterfaceArg.rele ase());
5749 } 5917 }
5750 5918
5751 static void voidMethodTestCallbackInterfaceOrNullArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 5919 static void voidMethodTestCallbackInterfaceOrNullArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
5752 { 5920 {
5753 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5921 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5754 TestObjectV8Internal::voidMethodTestCallbackInterfaceOrNullArgMethod(info); 5922 TestObjectV8Internal::voidMethodTestCallbackInterfaceOrNullArgMethod(info);
5755 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5923 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5756 } 5924 }
5757 5925
(...skipping 10 matching lines...) Expand all
5768 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5936 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5769 } 5937 }
5770 5938
5771 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 5939 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
5772 { 5940 {
5773 if (UNLIKELY(info.Length() < 1)) { 5941 if (UNLIKELY(info.Length() < 1)) {
5774 throwArityTypeErrorForMethod("voidMethodTestEnumArg", "TestObject", 1, i nfo.Length(), info.GetIsolate()); 5942 throwArityTypeErrorForMethod("voidMethodTestEnumArg", "TestObject", 1, i nfo.Length(), info.GetIsolate());
5775 return; 5943 return;
5776 } 5944 }
5777 TestObject* impl = V8TestObject::toNative(info.Holder()); 5945 TestObject* impl = V8TestObject::toNative(info.Holder());
5778 TOSTRING_VOID(V8StringResource<>, testEnumTypeArg, info[0]); 5946 V8StringResource<> testEnumTypeArg;
5779 String string = testEnumTypeArg; 5947 {
5780 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st ring == "EnumValue3")) { 5948 TOSTRING_VOID_INTERNAL(testEnumTypeArg, info[0]);
5781 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg ", "TestObject", "parameter 1 ('" + string + "') is not a valid enum value."), i nfo.GetIsolate()); 5949 String string = testEnumTypeArg;
5782 return; 5950 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" | | string == "EnumValue3")) {
5951 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnu mArg", "TestObject", "parameter 1 ('" + string + "') is not a valid enum value." ), info.GetIsolate());
5952 return;
5953 }
5783 } 5954 }
5784 impl->voidMethodTestEnumArg(testEnumTypeArg); 5955 impl->voidMethodTestEnumArg(testEnumTypeArg);
5785 } 5956 }
5786 5957
5787 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 5958 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
5788 { 5959 {
5789 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5960 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5790 TestObjectV8Internal::voidMethodTestEnumArgMethod(info); 5961 TestObjectV8Internal::voidMethodTestEnumArgMethod(info);
5791 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5962 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5792 } 5963 }
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
5856 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6027 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5857 } 6028 }
5858 6029
5859 static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 6030 static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
5860 { 6031 {
5861 if (UNLIKELY(info.Length() < 1)) { 6032 if (UNLIKELY(info.Length() < 1)) {
5862 throwArityTypeErrorForMethod("voidMethodDictionaryArg", "TestObject", 1, info.Length(), info.GetIsolate()); 6033 throwArityTypeErrorForMethod("voidMethodDictionaryArg", "TestObject", 1, info.Length(), info.GetIsolate());
5863 return; 6034 return;
5864 } 6035 }
5865 TestObject* impl = V8TestObject::toNative(info.Holder()); 6036 TestObject* impl = V8TestObject::toNative(info.Holder());
5866 TONATIVE_VOID(Dictionary, dictionaryArg, Dictionary(info[0], info.GetIsolate ())); 6037 Dictionary dictionaryArg;
5867 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) { 6038 {
5868 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryA rg", "TestObject", "parameter 1 ('dictionaryArg') is not an object."), info.GetI solate()); 6039 v8::TryCatch block;
5869 return; 6040 TONATIVE_VOID_INTERNAL(dictionaryArg, Dictionary(info[0], info.GetIsolat e()));
6041 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) {
6042 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDiction aryArg", "TestObject", "parameter 1 ('dictionaryArg') is not an object."), info. GetIsolate());
6043 block.ReThrow();
6044 return;
6045 }
5870 } 6046 }
5871 impl->voidMethodDictionaryArg(dictionaryArg); 6047 impl->voidMethodDictionaryArg(dictionaryArg);
5872 } 6048 }
5873 6049
5874 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 6050 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
5875 { 6051 {
5876 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6052 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5877 TestObjectV8Internal::voidMethodDictionaryArgMethod(info); 6053 TestObjectV8Internal::voidMethodDictionaryArgMethod(info);
5878 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6054 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5879 } 6055 }
5880 6056
5881 static void voidMethodEventListenerArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 6057 static void voidMethodEventListenerArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
5882 { 6058 {
5883 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE ventListenerArg", "TestObject", info.Holder(), info.GetIsolate()); 6059 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE ventListenerArg", "TestObject", info.Holder(), info.GetIsolate());
5884 if (UNLIKELY(info.Length() < 1)) { 6060 if (UNLIKELY(info.Length() < 1)) {
5885 throwArityTypeError(exceptionState, 1, info.Length()); 6061 throwArityTypeError(exceptionState, 1, info.Length());
5886 return; 6062 return;
5887 } 6063 }
5888 TestObject* impl = V8TestObject::toNative(info.Holder()); 6064 TestObject* impl = V8TestObject::toNative(info.Holder());
5889 RefPtr<EventListener> eventListenerArg = V8EventListenerList::getEventListen er(info[1], false, ListenerFindOrCreate); 6065 RefPtr<EventListener> eventListenerArg;
6066 {
6067 eventListenerArg = V8EventListenerList::getEventListener(info[1], false, ListenerFindOrCreate);
6068 }
5890 impl->voidMethodEventListenerArg(eventListenerArg); 6069 impl->voidMethodEventListenerArg(eventListenerArg);
5891 if (listener && !impl->toNode()) 6070 if (listener && !impl->toNode())
5892 removeHiddenValueFromArray(info.Holder(), info[1], V8TestObject::eventLi stenerCacheIndex, info.GetIsolate()); 6071 removeHiddenValueFromArray(info.Holder(), info[1], V8TestObject::eventLi stenerCacheIndex, info.GetIsolate());
5893 } 6072 }
5894 6073
5895 static void voidMethodEventListenerArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 6074 static void voidMethodEventListenerArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
5896 { 6075 {
5897 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6076 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5898 TestObjectV8Internal::voidMethodEventListenerArgMethod(info); 6077 TestObjectV8Internal::voidMethodEventListenerArgMethod(info);
5899 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6078 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5900 } 6079 }
5901 6080
5902 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 6081 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
5903 { 6082 {
5904 if (UNLIKELY(info.Length() < 1)) { 6083 if (UNLIKELY(info.Length() < 1)) {
5905 throwArityTypeErrorForMethod("voidMethodNodeFilterArg", "TestObject", 1, info.Length(), info.GetIsolate()); 6084 throwArityTypeErrorForMethod("voidMethodNodeFilterArg", "TestObject", 1, info.Length(), info.GetIsolate());
5906 return; 6085 return;
5907 } 6086 }
5908 TestObject* impl = V8TestObject::toNative(info.Holder()); 6087 TestObject* impl = V8TestObject::toNative(info.Holder());
5909 TONATIVE_VOID(RefPtr<NodeFilter>, nodeFilterArg, toNodeFilter(info[0], info. GetIsolate())); 6088 RefPtr<NodeFilter> nodeFilterArg;
6089 {
6090 v8::TryCatch block;
6091 TONATIVE_VOID_INTERNAL(nodeFilterArg, toNodeFilter(info[0], info.GetIsol ate()));
6092 }
5910 impl->voidMethodNodeFilterArg(nodeFilterArg.release()); 6093 impl->voidMethodNodeFilterArg(nodeFilterArg.release());
5911 } 6094 }
5912 6095
5913 static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 6096 static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
5914 { 6097 {
5915 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6098 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5916 TestObjectV8Internal::voidMethodNodeFilterArgMethod(info); 6099 TestObjectV8Internal::voidMethodNodeFilterArgMethod(info);
5917 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6100 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5918 } 6101 }
5919 6102
5920 static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 6103 static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
5921 { 6104 {
5922 if (UNLIKELY(info.Length() < 1)) { 6105 if (UNLIKELY(info.Length() < 1)) {
5923 throwArityTypeErrorForMethod("voidMethodPromiseArg", "TestObject", 1, in fo.Length(), info.GetIsolate()); 6106 throwArityTypeErrorForMethod("voidMethodPromiseArg", "TestObject", 1, in fo.Length(), info.GetIsolate());
5924 return; 6107 return;
5925 } 6108 }
5926 TestObject* impl = V8TestObject::toNative(info.Holder()); 6109 TestObject* impl = V8TestObject::toNative(info.Holder());
5927 TONATIVE_VOID(ScriptPromise, promiseArg, ScriptPromise(info[0], info.GetIsol ate())); 6110 ScriptPromise promiseArg;
5928 if (!promiseArg.isUndefinedOrNull() && !promiseArg.isObject()) { 6111 {
5929 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg" , "TestObject", "parameter 1 ('promiseArg') is not an object."), info.GetIsolate ()); 6112 v8::TryCatch block;
5930 return; 6113 TONATIVE_VOID_INTERNAL(promiseArg, ScriptPromise(info[0], info.GetIsolat e()));
6114 if (!promiseArg.isUndefinedOrNull() && !promiseArg.isObject()) {
6115 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromise Arg", "TestObject", "parameter 1 ('promiseArg') is not an object."), info.GetIso late());
6116 block.ReThrow();
6117 return;
6118 }
5931 } 6119 }
5932 impl->voidMethodPromiseArg(promiseArg); 6120 impl->voidMethodPromiseArg(promiseArg);
5933 } 6121 }
5934 6122
5935 static void voidMethodPromiseArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 6123 static void voidMethodPromiseArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
5936 { 6124 {
5937 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6125 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5938 TestObjectV8Internal::voidMethodPromiseArgMethod(info); 6126 TestObjectV8Internal::voidMethodPromiseArgMethod(info);
5939 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6127 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5940 } 6128 }
5941 6129
5942 static void voidMethodSerializedScriptValueArgMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 6130 static void voidMethodSerializedScriptValueArgMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
5943 { 6131 {
5944 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS erializedScriptValueArg", "TestObject", info.Holder(), info.GetIsolate()); 6132 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS erializedScriptValueArg", "TestObject", info.Holder(), info.GetIsolate());
5945 if (UNLIKELY(info.Length() < 1)) { 6133 if (UNLIKELY(info.Length() < 1)) {
5946 throwArityTypeError(exceptionState, 1, info.Length()); 6134 throwArityTypeError(exceptionState, 1, info.Length());
5947 return; 6135 return;
5948 } 6136 }
5949 TestObject* impl = V8TestObject::toNative(info.Holder()); 6137 TestObject* impl = V8TestObject::toNative(info.Holder());
5950 RefPtr<SerializedScriptValue> serializedScriptValueArg = SerializedScriptVal ue::create(info[0], 0, 0, exceptionState, info.GetIsolate()); 6138 RefPtr<SerializedScriptValue> serializedScriptValueArg;
5951 if (exceptionState.throwIfNeeded()) 6139 {
5952 return; 6140 serializedScriptValueArg = SerializedScriptValue::create(info[0], 0, 0, exceptionState, info.GetIsolate());
6141 if (exceptionState.throwIfNeeded())
6142 return;
6143 }
5953 impl->voidMethodSerializedScriptValueArg(serializedScriptValueArg); 6144 impl->voidMethodSerializedScriptValueArg(serializedScriptValueArg);
5954 } 6145 }
5955 6146
5956 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 6147 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
5957 { 6148 {
5958 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6149 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5959 TestObjectV8Internal::voidMethodSerializedScriptValueArgMethod(info); 6150 TestObjectV8Internal::voidMethodSerializedScriptValueArgMethod(info);
5960 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6151 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5961 } 6152 }
5962 6153
5963 static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) 6154 static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info)
5964 { 6155 {
5965 if (UNLIKELY(info.Length() < 1)) { 6156 if (UNLIKELY(info.Length() < 1)) {
5966 throwArityTypeErrorForMethod("voidMethodXPathNSResolverArg", "TestObject ", 1, info.Length(), info.GetIsolate()); 6157 throwArityTypeErrorForMethod("voidMethodXPathNSResolverArg", "TestObject ", 1, info.Length(), info.GetIsolate());
5967 return; 6158 return;
5968 } 6159 }
5969 TestObject* impl = V8TestObject::toNative(info.Holder()); 6160 TestObject* impl = V8TestObject::toNative(info.Holder());
5970 TONATIVE_VOID(RefPtrWillBeRawPtr<XPathNSResolver>, xPathNSResolverArg, toXPa thNSResolver(info[0], info.GetIsolate())); 6161 RefPtrWillBeRawPtr<XPathNSResolver> xPathNSResolverArg;
6162 {
6163 v8::TryCatch block;
6164 TONATIVE_VOID_INTERNAL(xPathNSResolverArg, toXPathNSResolver(info[0], in fo.GetIsolate()));
6165 }
5971 impl->voidMethodXPathNSResolverArg(xPathNSResolverArg.release()); 6166 impl->voidMethodXPathNSResolverArg(xPathNSResolverArg.release());
5972 } 6167 }
5973 6168
5974 static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 6169 static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
5975 { 6170 {
5976 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6171 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5977 TestObjectV8Internal::voidMethodXPathNSResolverArgMethod(info); 6172 TestObjectV8Internal::voidMethodXPathNSResolverArgMethod(info);
5978 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6173 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5979 } 6174 }
5980 6175
5981 static void voidMethodDictionarySequenceArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 6176 static void voidMethodDictionarySequenceArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
5982 { 6177 {
5983 if (UNLIKELY(info.Length() < 1)) { 6178 if (UNLIKELY(info.Length() < 1)) {
5984 throwArityTypeErrorForMethod("voidMethodDictionarySequenceArg", "TestObj ect", 1, info.Length(), info.GetIsolate()); 6179 throwArityTypeErrorForMethod("voidMethodDictionarySequenceArg", "TestObj ect", 1, info.Length(), info.GetIsolate());
5985 return; 6180 return;
5986 } 6181 }
5987 TestObject* impl = V8TestObject::toNative(info.Holder()); 6182 TestObject* impl = V8TestObject::toNative(info.Holder());
5988 TONATIVE_VOID(Vector<Dictionary>, dictionarySequenceArg, toNativeArray<Dicti onary>(info[0], 1, info.GetIsolate())); 6183 Vector<Dictionary> dictionarySequenceArg;
6184 {
6185 v8::TryCatch block;
6186 TONATIVE_VOID_INTERNAL(dictionarySequenceArg, toNativeArray<Dictionary>( info[0], 1, info.GetIsolate()));
6187 }
5989 impl->voidMethodDictionarySequenceArg(dictionarySequenceArg); 6188 impl->voidMethodDictionarySequenceArg(dictionarySequenceArg);
5990 } 6189 }
5991 6190
5992 static void voidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 6191 static void voidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
5993 { 6192 {
5994 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6193 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5995 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info); 6194 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info);
5996 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6195 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5997 } 6196 }
5998 6197
5999 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 6198 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
6000 { 6199 {
6001 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS tringArgLongArg", "TestObject", info.Holder(), info.GetIsolate()); 6200 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS tringArgLongArg", "TestObject", info.Holder(), info.GetIsolate());
6002 if (UNLIKELY(info.Length() < 2)) { 6201 if (UNLIKELY(info.Length() < 2)) {
6003 throwArityTypeError(exceptionState, 2, info.Length()); 6202 throwArityTypeError(exceptionState, 2, info.Length());
6004 return; 6203 return;
6005 } 6204 }
6006 TestObject* impl = V8TestObject::toNative(info.Holder()); 6205 TestObject* impl = V8TestObject::toNative(info.Holder());
6007 TOSTRING_VOID(V8StringResource<>, stringArg, info[0]); 6206 V8StringResource<> stringArg;
6008 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[1], exceptionState), exceptionState); 6207 int longArg;
6208 {
6209 v8::TryCatch block;
6210 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
6211 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio nState), exceptionState);
6212 }
6009 impl->voidMethodStringArgLongArg(stringArg, longArg); 6213 impl->voidMethodStringArgLongArg(stringArg, longArg);
6010 } 6214 }
6011 6215
6012 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 6216 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
6013 { 6217 {
6014 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6218 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6015 TestObjectV8Internal::voidMethodStringArgLongArgMethod(info); 6219 TestObjectV8Internal::voidMethodStringArgLongArgMethod(info);
6016 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6220 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6017 } 6221 }
6018 6222
6019 static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 6223 static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
6020 { 6224 {
6021 TestObject* impl = V8TestObject::toNative(info.Holder()); 6225 TestObject* impl = V8TestObject::toNative(info.Holder());
6022 if (UNLIKELY(info.Length() <= 0)) { 6226 V8StringResource<> optionalStringArg;
6023 impl->voidMethodOptionalStringArg(); 6227 {
6024 return; 6228 if (UNLIKELY(info.Length() <= 0)) {
6229 impl->voidMethodOptionalStringArg();
6230 return;
6231 }
6232 TOSTRING_VOID_INTERNAL(optionalStringArg, info[0]);
6025 } 6233 }
6026 TOSTRING_VOID(V8StringResource<>, optionalStringArg, info[0]);
6027 impl->voidMethodOptionalStringArg(optionalStringArg); 6234 impl->voidMethodOptionalStringArg(optionalStringArg);
6028 } 6235 }
6029 6236
6030 static void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 6237 static void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
6031 { 6238 {
6032 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6239 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6033 TestObjectV8Internal::voidMethodOptionalStringArgMethod(info); 6240 TestObjectV8Internal::voidMethodOptionalStringArgMethod(info);
6034 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6241 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6035 } 6242 }
6036 6243
6037 static void voidMethodOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) 6244 static void voidMethodOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info)
6038 { 6245 {
6039 TestObject* impl = V8TestObject::toNative(info.Holder()); 6246 TestObject* impl = V8TestObject::toNative(info.Holder());
6040 if (UNLIKELY(info.Length() <= 0)) { 6247 TestInterfaceEmpty* optionalTestInterfaceEmptyArg;
6041 impl->voidMethodOptionalTestInterfaceEmptyArg(); 6248 {
6042 return; 6249 v8::TryCatch block;
6250 if (UNLIKELY(info.Length() <= 0)) {
6251 impl->voidMethodOptionalTestInterfaceEmptyArg();
6252 return;
6253 }
6254 TONATIVE_VOID_INTERNAL(optionalTestInterfaceEmptyArg, V8TestInterfaceEmp ty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
6043 } 6255 }
6044 TONATIVE_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmptyArg, V8TestInte rfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
6045 impl->voidMethodOptionalTestInterfaceEmptyArg(optionalTestInterfaceEmptyArg) ; 6256 impl->voidMethodOptionalTestInterfaceEmptyArg(optionalTestInterfaceEmptyArg) ;
6046 } 6257 }
6047 6258
6048 static void voidMethodOptionalTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 6259 static void voidMethodOptionalTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
6049 { 6260 {
6050 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6261 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6051 TestObjectV8Internal::voidMethodOptionalTestInterfaceEmptyArgMethod(info); 6262 TestObjectV8Internal::voidMethodOptionalTestInterfaceEmptyArgMethod(info);
6052 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6263 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6053 } 6264 }
6054 6265
6055 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 6266 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
6056 { 6267 {
6057 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 6268 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
6058 TestObject* impl = V8TestObject::toNative(info.Holder()); 6269 TestObject* impl = V8TestObject::toNative(info.Holder());
6059 if (UNLIKELY(info.Length() <= 0)) { 6270 int optionalLongArg;
6060 impl->voidMethodOptionalLongArg(); 6271 {
6061 return; 6272 v8::TryCatch block;
6273 if (UNLIKELY(info.Length() <= 0)) {
6274 impl->voidMethodOptionalLongArg();
6275 return;
6276 }
6277 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState);
6062 } 6278 }
6063 TONATIVE_VOID_EXCEPTIONSTATE(int, optionalLongArg, toInt32(info[0], exceptio nState), exceptionState);
6064 impl->voidMethodOptionalLongArg(optionalLongArg); 6279 impl->voidMethodOptionalLongArg(optionalLongArg);
6065 } 6280 }
6066 6281
6067 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 6282 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
6068 { 6283 {
6069 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6284 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6070 TestObjectV8Internal::voidMethodOptionalLongArgMethod(info); 6285 TestObjectV8Internal::voidMethodOptionalLongArgMethod(info);
6071 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6286 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6072 } 6287 }
6073 6288
6074 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 6289 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
6075 { 6290 {
6076 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho dOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 6291 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho dOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
6077 TestObject* impl = V8TestObject::toNative(info.Holder()); 6292 TestObject* impl = V8TestObject::toNative(info.Holder());
6078 if (UNLIKELY(info.Length() <= 0)) { 6293 int optionalLongArg;
6079 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(), info.G etIsolate()); 6294 {
6080 return; 6295 v8::TryCatch block;
6296 if (UNLIKELY(info.Length() <= 0)) {
6297 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(), in fo.GetIsolate());
6298 return;
6299 }
6300 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState);
6081 } 6301 }
6082 TONATIVE_VOID_EXCEPTIONSTATE(int, optionalLongArg, toInt32(info[0], exceptio nState), exceptionState);
6083 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(optionalLongA rg), info.GetIsolate()); 6302 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(optionalLongA rg), info.GetIsolate());
6084 } 6303 }
6085 6304
6086 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 6305 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
6087 { 6306 {
6088 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6307 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6089 TestObjectV8Internal::stringMethodOptionalLongArgMethod(info); 6308 TestObjectV8Internal::stringMethodOptionalLongArgMethod(info);
6090 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6309 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6091 } 6310 }
6092 6311
6093 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) 6312 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall backInfo<v8::Value>& info)
6094 { 6313 {
6095 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa ceEmptyMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 6314 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa ceEmptyMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
6096 TestObject* impl = V8TestObject::toNative(info.Holder()); 6315 TestObject* impl = V8TestObject::toNative(info.Holder());
6097 if (UNLIKELY(info.Length() <= 0)) { 6316 int optionalLongArg;
6098 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg()); 6317 {
6099 return; 6318 v8::TryCatch block;
6319 if (UNLIKELY(info.Length() <= 0)) {
6320 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg ());
6321 return;
6322 }
6323 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState);
6100 } 6324 }
6101 TONATIVE_VOID_EXCEPTIONSTATE(int, optionalLongArg, toInt32(info[0], exceptio nState), exceptionState);
6102 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg(optiona lLongArg)); 6325 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg(optiona lLongArg));
6103 } 6326 }
6104 6327
6105 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 6328 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
6106 { 6329 {
6107 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6330 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6108 TestObjectV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(info); 6331 TestObjectV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(info);
6109 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6332 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6110 } 6333 }
6111 6334
6112 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 6335 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
6113 { 6336 {
6114 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodO ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 6337 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodO ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
6115 TestObject* impl = V8TestObject::toNative(info.Holder()); 6338 TestObject* impl = V8TestObject::toNative(info.Holder());
6116 if (UNLIKELY(info.Length() <= 0)) { 6339 int optionalLongArg;
6117 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg()); 6340 {
6118 return; 6341 v8::TryCatch block;
6342 if (UNLIKELY(info.Length() <= 0)) {
6343 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg());
6344 return;
6345 }
6346 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState);
6119 } 6347 }
6120 TONATIVE_VOID_EXCEPTIONSTATE(int, optionalLongArg, toInt32(info[0], exceptio nState), exceptionState);
6121 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg(optionalLongArg)); 6348 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg(optionalLongArg));
6122 } 6349 }
6123 6350
6124 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 6351 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
6125 { 6352 {
6126 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6353 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6127 TestObjectV8Internal::longMethodOptionalLongArgMethod(info); 6354 TestObjectV8Internal::longMethodOptionalLongArgMethod(info);
6128 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6355 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6129 } 6356 }
6130 6357
6131 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf o<v8::Value>& info) 6358 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf o<v8::Value>& info)
6132 { 6359 {
6133 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 6360 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
6134 if (UNLIKELY(info.Length() < 1)) { 6361 if (UNLIKELY(info.Length() < 1)) {
6135 throwArityTypeError(exceptionState, 1, info.Length()); 6362 throwArityTypeError(exceptionState, 1, info.Length());
6136 return; 6363 return;
6137 } 6364 }
6138 TestObject* impl = V8TestObject::toNative(info.Holder()); 6365 TestObject* impl = V8TestObject::toNative(info.Holder());
6139 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState); 6366 int longArg;
6140 if (UNLIKELY(info.Length() <= 1)) { 6367 int optionalLongArg;
6141 impl->voidMethodLongArgOptionalLongArg(longArg); 6368 {
6142 return; 6369 v8::TryCatch block;
6370 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
6371 if (UNLIKELY(info.Length() <= 1)) {
6372 impl->voidMethodLongArgOptionalLongArg(longArg);
6373 return;
6374 }
6375 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[1], exceptionState), exceptionState);
6143 } 6376 }
6144 TONATIVE_VOID_EXCEPTIONSTATE(int, optionalLongArg, toInt32(info[1], exceptio nState), exceptionState);
6145 impl->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg); 6377 impl->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg);
6146 } 6378 }
6147 6379
6148 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 6380 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
6149 { 6381 {
6150 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6382 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6151 TestObjectV8Internal::voidMethodLongArgOptionalLongArgMethod(info); 6383 TestObjectV8Internal::voidMethodLongArgOptionalLongArgMethod(info);
6152 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6384 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6153 } 6385 }
6154 6386
6155 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) 6387 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info)
6156 { 6388 {
6157 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalLongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsol ate()); 6389 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalLongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsol ate());
6158 if (UNLIKELY(info.Length() < 1)) { 6390 if (UNLIKELY(info.Length() < 1)) {
6159 throwArityTypeError(exceptionState, 1, info.Length()); 6391 throwArityTypeError(exceptionState, 1, info.Length());
6160 return; 6392 return;
6161 } 6393 }
6162 TestObject* impl = V8TestObject::toNative(info.Holder()); 6394 TestObject* impl = V8TestObject::toNative(info.Holder());
6163 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState); 6395 int longArg;
6164 if (UNLIKELY(info.Length() <= 1)) { 6396 int optionalLongArg1;
6165 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg); 6397 int optionalLongArg2;
6166 return; 6398 {
6399 v8::TryCatch block;
6400 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
6401 if (UNLIKELY(info.Length() <= 1)) {
6402 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg);
6403 return;
6404 }
6405 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg1, toInt32(info[1], exceptionState), exceptionState);
6406 if (UNLIKELY(info.Length() <= 2)) {
6407 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optio nalLongArg1);
6408 return;
6409 }
6410 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg2, toInt32(info[2], exceptionState), exceptionState);
6167 } 6411 }
6168 TONATIVE_VOID_EXCEPTIONSTATE(int, optionalLongArg1, toInt32(info[1], excepti onState), exceptionState);
6169 if (UNLIKELY(info.Length() <= 2)) {
6170 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalL ongArg1);
6171 return;
6172 }
6173 TONATIVE_VOID_EXCEPTIONSTATE(int, optionalLongArg2, toInt32(info[2], excepti onState), exceptionState);
6174 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongA rg1, optionalLongArg2); 6412 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongA rg1, optionalLongArg2);
6175 } 6413 }
6176 6414
6177 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 6415 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
6178 { 6416 {
6179 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6417 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6180 TestObjectV8Internal::voidMethodLongArgOptionalLongArgOptionalLongArgMethod( info); 6418 TestObjectV8Internal::voidMethodLongArgOptionalLongArgOptionalLongArgMethod( info);
6181 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6419 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6182 } 6420 }
6183 6421
6184 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct ionCallbackInfo<v8::Value>& info) 6422 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct ionCallbackInfo<v8::Value>& info)
6185 { 6423 {
6186 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsola te()); 6424 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsola te());
6187 if (UNLIKELY(info.Length() < 1)) { 6425 if (UNLIKELY(info.Length() < 1)) {
6188 throwArityTypeError(exceptionState, 1, info.Length()); 6426 throwArityTypeError(exceptionState, 1, info.Length());
6189 return; 6427 return;
6190 } 6428 }
6191 TestObject* impl = V8TestObject::toNative(info.Holder()); 6429 TestObject* impl = V8TestObject::toNative(info.Holder());
6192 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState); 6430 int longArg;
6193 if (UNLIKELY(info.Length() <= 1)) { 6431 TestInterfaceEmpty* optionalTestInterfaceEmpty;
6194 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg); 6432 {
6195 return; 6433 v8::TryCatch block;
6434 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
6435 if (UNLIKELY(info.Length() <= 1)) {
6436 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg);
6437 return;
6438 }
6439 TONATIVE_VOID_INTERNAL(optionalTestInterfaceEmpty, V8TestInterfaceEmpty: :toNativeWithTypeCheck(info.GetIsolate(), info[1]));
6196 } 6440 }
6197 TONATIVE_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInterfa ceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[1]));
6198 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestIn terfaceEmpty); 6441 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestIn terfaceEmpty);
6199 } 6442 }
6200 6443
6201 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info) 6444 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info)
6202 { 6445 {
6203 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6446 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6204 TestObjectV8Internal::voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(i nfo); 6447 TestObjectV8Internal::voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(i nfo);
6205 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6448 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6206 } 6449 }
6207 6450
6208 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::Funct ionCallbackInfo<v8::Value>& info) 6451 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::Funct ionCallbackInfo<v8::Value>& info)
6209 { 6452 {
6210 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT estInterfaceEmptyArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsola te()); 6453 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT estInterfaceEmptyArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsola te());
6211 if (UNLIKELY(info.Length() < 1)) { 6454 if (UNLIKELY(info.Length() < 1)) {
6212 throwArityTypeError(exceptionState, 1, info.Length()); 6455 throwArityTypeError(exceptionState, 1, info.Length());
6213 return; 6456 return;
6214 } 6457 }
6215 TestObject* impl = V8TestObject::toNative(info.Holder()); 6458 TestObject* impl = V8TestObject::toNative(info.Holder());
6216 TONATIVE_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInterfa ceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 6459 TestInterfaceEmpty* optionalTestInterfaceEmpty;
6217 if (UNLIKELY(info.Length() <= 1)) { 6460 int longArg;
6218 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfa ceEmpty); 6461 {
6219 return; 6462 v8::TryCatch block;
6463 TONATIVE_VOID_INTERNAL(optionalTestInterfaceEmpty, V8TestInterfaceEmpty: :toNativeWithTypeCheck(info.GetIsolate(), info[0]));
6464 if (UNLIKELY(info.Length() <= 1)) {
6465 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInt erfaceEmpty);
6466 return;
6467 }
6468 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio nState), exceptionState);
6220 } 6469 }
6221 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[1], exceptionState), exceptionState);
6222 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEm pty, longArg); 6470 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEm pty, longArg);
6223 } 6471 }
6224 6472
6225 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info) 6473 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info)
6226 { 6474 {
6227 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6475 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6228 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(i nfo); 6476 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(i nfo);
6229 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6477 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6230 } 6478 }
6231 6479
6232 static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 6480 static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
6233 { 6481 {
6234 TestObject* impl = V8TestObject::toNative(info.Holder()); 6482 TestObject* impl = V8TestObject::toNative(info.Holder());
6235 TONATIVE_VOID(Dictionary, optionalDictionaryArg, Dictionary(info[0], info.Ge tIsolate())); 6483 Dictionary optionalDictionaryArg;
6236 if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg.isO bject()) { 6484 {
6237 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOptionalDic tionaryArg", "TestObject", "parameter 1 ('optionalDictionaryArg') is not an obje ct."), info.GetIsolate()); 6485 v8::TryCatch block;
6238 return; 6486 TONATIVE_VOID_INTERNAL(optionalDictionaryArg, Dictionary(info[0], info.G etIsolate()));
6487 if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg .isObject()) {
6488 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOptiona lDictionaryArg", "TestObject", "parameter 1 ('optionalDictionaryArg') is not an object."), info.GetIsolate());
6489 block.ReThrow();
6490 return;
6491 }
6239 } 6492 }
6240 impl->voidMethodOptionalDictionaryArg(optionalDictionaryArg); 6493 impl->voidMethodOptionalDictionaryArg(optionalDictionaryArg);
6241 } 6494 }
6242 6495
6243 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 6496 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
6244 { 6497 {
6245 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6498 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6246 TestObjectV8Internal::voidMethodOptionalDictionaryArgMethod(info); 6499 TestObjectV8Internal::voidMethodOptionalDictionaryArgMethod(info);
6247 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6500 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6248 } 6501 }
6249 6502
6250 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 6503 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
6251 { 6504 {
6252 TestObject* impl = V8TestObject::toNative(info.Holder()); 6505 TestObject* impl = V8TestObject::toNative(info.Holder());
6253 TONATIVE_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String>( info, 0)); 6506 Vector<String> variadicStringArgs;
6507 {
6508 v8::TryCatch block;
6509 TONATIVE_VOID_INTERNAL(variadicStringArgs, toNativeArguments<String>(inf o, 0));
6510 }
6254 impl->voidMethodVariadicStringArg(variadicStringArgs); 6511 impl->voidMethodVariadicStringArg(variadicStringArgs);
6255 } 6512 }
6256 6513
6257 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 6514 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
6258 { 6515 {
6259 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6516 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6260 TestObjectV8Internal::voidMethodVariadicStringArgMethod(info); 6517 TestObjectV8Internal::voidMethodVariadicStringArgMethod(info);
6261 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6518 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6262 } 6519 }
6263 6520
6264 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) 6521 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info)
6265 { 6522 {
6266 if (UNLIKELY(info.Length() < 1)) { 6523 if (UNLIKELY(info.Length() < 1)) {
6267 throwArityTypeErrorForMethod("voidMethodStringArgVariadicStringArg", "Te stObject", 1, info.Length(), info.GetIsolate()); 6524 throwArityTypeErrorForMethod("voidMethodStringArgVariadicStringArg", "Te stObject", 1, info.Length(), info.GetIsolate());
6268 return; 6525 return;
6269 } 6526 }
6270 TestObject* impl = V8TestObject::toNative(info.Holder()); 6527 TestObject* impl = V8TestObject::toNative(info.Holder());
6271 TOSTRING_VOID(V8StringResource<>, stringArg, info[0]); 6528 V8StringResource<> stringArg;
6272 TONATIVE_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String>( info, 1)); 6529 Vector<String> variadicStringArgs;
6530 {
6531 v8::TryCatch block;
6532 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
6533 TONATIVE_VOID_INTERNAL(variadicStringArgs, toNativeArguments<String>(inf o, 1));
6534 }
6273 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); 6535 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs);
6274 } 6536 }
6275 6537
6276 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 6538 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
6277 { 6539 {
6278 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6540 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6279 TestObjectV8Internal::voidMethodStringArgVariadicStringArgMethod(info); 6541 TestObjectV8Internal::voidMethodStringArgVariadicStringArgMethod(info);
6280 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6542 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6281 } 6543 }
6282 6544
6283 static void voidMethodVariadicTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) 6545 static void voidMethodVariadicTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info)
6284 { 6546 {
6285 TestObject* impl = V8TestObject::toNative(info.Holder()); 6547 TestObject* impl = V8TestObject::toNative(info.Holder());
6286 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; 6548 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs;
6287 for (int i = 0; i < info.Length(); ++i) { 6549 {
6288 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) { 6550 for (int i = 0; i < info.Length(); ++i) {
6289 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVariadi cTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestInterfac eEmpty'."), info.GetIsolate()); 6551 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) {
6290 return; 6552 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVar iadicTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestInte rfaceEmpty'."), info.GetIsolate());
6553 return;
6554 }
6555 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative (v8::Handle<v8::Object>::Cast(info[i])));
6291 } 6556 }
6292 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative(v8: :Handle<v8::Object>::Cast(info[i])));
6293 } 6557 }
6294 impl->voidMethodVariadicTestInterfaceEmptyArg(variadicTestInterfaceEmptyArgs ); 6558 impl->voidMethodVariadicTestInterfaceEmptyArg(variadicTestInterfaceEmptyArgs );
6295 } 6559 }
6296 6560
6297 static void voidMethodVariadicTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 6561 static void voidMethodVariadicTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
6298 { 6562 {
6299 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6563 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6300 TestObjectV8Internal::voidMethodVariadicTestInterfaceEmptyArgMethod(info); 6564 TestObjectV8Internal::voidMethodVariadicTestInterfaceEmptyArgMethod(info);
6301 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6565 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6302 } 6566 }
6303 6567
6304 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(c onst v8::FunctionCallbackInfo<v8::Value>& info) 6568 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(c onst v8::FunctionCallbackInfo<v8::Value>& info)
6305 { 6569 {
6306 if (UNLIKELY(info.Length() < 1)) { 6570 if (UNLIKELY(info.Length() < 1)) {
6307 throwArityTypeErrorForMethod("voidMethodTestInterfaceEmptyArgVariadicTes tInterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate()); 6571 throwArityTypeErrorForMethod("voidMethodTestInterfaceEmptyArgVariadicTes tInterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate());
6308 return; 6572 return;
6309 } 6573 }
6310 TestObject* impl = V8TestObject::toNative(info.Holder()); 6574 TestObject* impl = V8TestObject::toNative(info.Holder());
6311 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 6575 TestInterfaceEmpty* testInterfaceEmptyArg;
6312 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; 6576 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs;
6313 for (int i = 1; i < info.Length(); ++i) { 6577 {
6314 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) { 6578 v8::TryCatch block;
6315 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInt erfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObject", "parameter 2 is not of type 'TestInterfaceEmpty'."), info.GetIsolate()); 6579 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0]));
6316 return; 6580 for (int i = 1; i < info.Length(); ++i) {
6581 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) {
6582 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTes tInterfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObject", "parameter 2 is not of type 'TestInterfaceEmpty'."), info.GetIsolate());
6583 block.ReThrow();
6584 return;
6585 }
6586 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative (v8::Handle<v8::Object>::Cast(info[i])));
6317 } 6587 }
6318 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative(v8: :Handle<v8::Object>::Cast(info[i])));
6319 } 6588 }
6320 impl->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInter faceEmptyArg, variadicTestInterfaceEmptyArgs); 6589 impl->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInter faceEmptyArg, variadicTestInterfaceEmptyArgs);
6321 } 6590 }
6322 6591
6323 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa llback(const v8::FunctionCallbackInfo<v8::Value>& info) 6592 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa llback(const v8::FunctionCallbackInfo<v8::Value>& info)
6324 { 6593 {
6325 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6594 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6326 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEm ptyArgMethod(info); 6595 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEm ptyArgMethod(info);
6327 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6596 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6328 } 6597 }
6329 6598
6330 static void voidMethodVariadicTestInterfaceGarbageCollectedArgMethod(const v8::F unctionCallbackInfo<v8::Value>& info) 6599 static void voidMethodVariadicTestInterfaceGarbageCollectedArgMethod(const v8::F unctionCallbackInfo<v8::Value>& info)
6331 { 6600 {
6332 TestObject* impl = V8TestObject::toNative(info.Holder()); 6601 TestObject* impl = V8TestObject::toNative(info.Holder());
6333 HeapVector<Member<TestInterfaceGarbageCollected> > variadicTestInterfaceGarb ageCollectedArg; 6602 HeapVector<Member<TestInterfaceGarbageCollected> > variadicTestInterfaceGarb ageCollectedArg;
6334 for (int i = 0; i < info.Length(); ++i) { 6603 {
6335 if (!V8TestInterfaceGarbageCollected::hasInstance(info[i], info.GetIsola te())) { 6604 for (int i = 0; i < info.Length(); ++i) {
6336 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVariadi cTestInterfaceGarbageCollectedArg", "TestObject", "parameter 1 is not of type 'T estInterfaceGarbageCollected'."), info.GetIsolate()); 6605 if (!V8TestInterfaceGarbageCollected::hasInstance(info[i], info.GetI solate())) {
6337 return; 6606 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVar iadicTestInterfaceGarbageCollectedArg", "TestObject", "parameter 1 is not of typ e 'TestInterfaceGarbageCollected'."), info.GetIsolate());
6607 return;
6608 }
6609 variadicTestInterfaceGarbageCollectedArg.append(V8TestInterfaceGarba geCollected::toNative(v8::Handle<v8::Object>::Cast(info[i])));
6338 } 6610 }
6339 variadicTestInterfaceGarbageCollectedArg.append(V8TestInterfaceGarbageCo llected::toNative(v8::Handle<v8::Object>::Cast(info[i])));
6340 } 6611 }
6341 impl->voidMethodVariadicTestInterfaceGarbageCollectedArg(variadicTestInterfa ceGarbageCollectedArg); 6612 impl->voidMethodVariadicTestInterfaceGarbageCollectedArg(variadicTestInterfa ceGarbageCollectedArg);
6342 } 6613 }
6343 6614
6344 static void voidMethodVariadicTestInterfaceGarbageCollectedArgMethodCallback(con st v8::FunctionCallbackInfo<v8::Value>& info) 6615 static void voidMethodVariadicTestInterfaceGarbageCollectedArgMethodCallback(con st v8::FunctionCallbackInfo<v8::Value>& info)
6345 { 6616 {
6346 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6617 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6347 TestObjectV8Internal::voidMethodVariadicTestInterfaceGarbageCollectedArgMeth od(info); 6618 TestObjectV8Internal::voidMethodVariadicTestInterfaceGarbageCollectedArgMeth od(info);
6348 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6619 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6349 } 6620 }
6350 6621
6351 static void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 6622 static void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
6352 { 6623 {
6353 TestObject* impl = V8TestObject::toNative(info.Holder()); 6624 TestObject* impl = V8TestObject::toNative(info.Holder());
6354 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > v ariadicTestInterfaceWillBeGarbageCollectedArg; 6625 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > v ariadicTestInterfaceWillBeGarbageCollectedArg;
6355 for (int i = 0; i < info.Length(); ++i) { 6626 {
6356 if (!V8TestInterfaceWillBeGarbageCollected::hasInstance(info[i], info.Ge tIsolate())) { 6627 for (int i = 0; i < info.Length(); ++i) {
6357 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVariadi cTestInterfaceWillBeGarbageCollectedArg", "TestObject", "parameter 1 is not of t ype 'TestInterfaceWillBeGarbageCollected'."), info.GetIsolate()); 6628 if (!V8TestInterfaceWillBeGarbageCollected::hasInstance(info[i], inf o.GetIsolate())) {
6358 return; 6629 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVar iadicTestInterfaceWillBeGarbageCollectedArg", "TestObject", "parameter 1 is not of type 'TestInterfaceWillBeGarbageCollected'."), info.GetIsolate());
6630 return;
6631 }
6632 variadicTestInterfaceWillBeGarbageCollectedArg.append(V8TestInterfac eWillBeGarbageCollected::toNative(v8::Handle<v8::Object>::Cast(info[i])));
6359 } 6633 }
6360 variadicTestInterfaceWillBeGarbageCollectedArg.append(V8TestInterfaceWil lBeGarbageCollected::toNative(v8::Handle<v8::Object>::Cast(info[i])));
6361 } 6634 }
6362 impl->voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg(variadicTestI nterfaceWillBeGarbageCollectedArg); 6635 impl->voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg(variadicTestI nterfaceWillBeGarbageCollectedArg);
6363 } 6636 }
6364 6637
6365 static void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info) 6638 static void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info)
6366 { 6639 {
6367 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6640 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6368 TestObjectV8Internal::voidMethodVariadicTestInterfaceWillBeGarbageCollectedA rgMethod(info); 6641 TestObjectV8Internal::voidMethodVariadicTestInterfaceWillBeGarbageCollectedA rgMethod(info);
6369 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6642 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6370 } 6643 }
6371 6644
6372 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6645 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6373 { 6646 {
6374 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate()); 6647 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate());
6375 if (UNLIKELY(info.Length() < 1)) { 6648 if (UNLIKELY(info.Length() < 1)) {
6376 throwArityTypeError(exceptionState, 1, info.Length()); 6649 throwArityTypeError(exceptionState, 1, info.Length());
6377 return; 6650 return;
6378 } 6651 }
6379 TestObject* impl = V8TestObject::toNative(info.Holder()); 6652 TestObject* impl = V8TestObject::toNative(info.Holder());
6380 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState); 6653 int longArg;
6654 {
6655 v8::TryCatch block;
6656 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
6657 }
6381 impl->overloadedMethodA(longArg); 6658 impl->overloadedMethodA(longArg);
6382 } 6659 }
6383 6660
6384 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6661 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6385 { 6662 {
6386 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate()); 6663 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate());
6387 if (UNLIKELY(info.Length() < 2)) { 6664 if (UNLIKELY(info.Length() < 2)) {
6388 throwArityTypeError(exceptionState, 2, info.Length()); 6665 throwArityTypeError(exceptionState, 2, info.Length());
6389 return; 6666 return;
6390 } 6667 }
6391 TestObject* impl = V8TestObject::toNative(info.Holder()); 6668 TestObject* impl = V8TestObject::toNative(info.Holder());
6392 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg1, toInt32(info[0], exceptionState) , exceptionState); 6669 int longArg1;
6393 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg2, toInt32(info[1], exceptionState) , exceptionState); 6670 int longArg2;
6671 {
6672 v8::TryCatch block;
6673 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg1, toInt32(info[0], excepti onState), exceptionState);
6674 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg2, toInt32(info[1], excepti onState), exceptionState);
6675 }
6394 impl->overloadedMethodA(longArg1, longArg2); 6676 impl->overloadedMethodA(longArg1, longArg2);
6395 } 6677 }
6396 6678
6397 static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6679 static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6398 { 6680 {
6399 if (((info.Length() == 1))) { 6681 if (((info.Length() == 1))) {
6400 overloadedMethodA1Method(info); 6682 overloadedMethodA1Method(info);
6401 return; 6683 return;
6402 } 6684 }
6403 if (((info.Length() == 2))) { 6685 if (((info.Length() == 2))) {
(...skipping 17 matching lines...) Expand all
6421 } 6703 }
6422 6704
6423 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6705 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6424 { 6706 {
6425 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate()); 6707 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate());
6426 if (UNLIKELY(info.Length() < 1)) { 6708 if (UNLIKELY(info.Length() < 1)) {
6427 throwArityTypeError(exceptionState, 1, info.Length()); 6709 throwArityTypeError(exceptionState, 1, info.Length());
6428 return; 6710 return;
6429 } 6711 }
6430 TestObject* impl = V8TestObject::toNative(info.Holder()); 6712 TestObject* impl = V8TestObject::toNative(info.Holder());
6431 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState); 6713 int longArg;
6714 {
6715 v8::TryCatch block;
6716 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
6717 }
6432 impl->overloadedMethodB(longArg); 6718 impl->overloadedMethodB(longArg);
6433 } 6719 }
6434 6720
6435 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6721 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6436 { 6722 {
6437 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate()); 6723 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate());
6438 if (UNLIKELY(info.Length() < 1)) { 6724 if (UNLIKELY(info.Length() < 1)) {
6439 throwArityTypeError(exceptionState, 1, info.Length()); 6725 throwArityTypeError(exceptionState, 1, info.Length());
6440 return; 6726 return;
6441 } 6727 }
6442 TestObject* impl = V8TestObject::toNative(info.Holder()); 6728 TestObject* impl = V8TestObject::toNative(info.Holder());
6443 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg1, toInt32(info[0], exceptionState) , exceptionState); 6729 int longArg1;
6444 if (UNLIKELY(info.Length() <= 1)) { 6730 int longArg2;
6445 impl->overloadedMethodB(longArg1); 6731 {
6446 return; 6732 v8::TryCatch block;
6733 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg1, toInt32(info[0], excepti onState), exceptionState);
6734 if (UNLIKELY(info.Length() <= 1)) {
6735 impl->overloadedMethodB(longArg1);
6736 return;
6737 }
6738 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg2, toInt32(info[1], excepti onState), exceptionState);
6447 } 6739 }
6448 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg2, toInt32(info[1], exceptionState) , exceptionState);
6449 impl->overloadedMethodB(longArg1, longArg2); 6740 impl->overloadedMethodB(longArg1, longArg2);
6450 } 6741 }
6451 6742
6452 static void overloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6743 static void overloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6453 { 6744 {
6454 if (((info.Length() == 1))) { 6745 if (((info.Length() == 1))) {
6455 overloadedMethodB1Method(info); 6746 overloadedMethodB1Method(info);
6456 return; 6747 return;
6457 } 6748 }
6458 if (((info.Length() == 1)) || ((info.Length() == 2))) { 6749 if (((info.Length() == 1)) || ((info.Length() == 2))) {
(...skipping 17 matching lines...) Expand all
6476 } 6767 }
6477 6768
6478 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6769 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6479 { 6770 {
6480 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObject", info.Holder(), info.GetIsolate()); 6771 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObject", info.Holder(), info.GetIsolate());
6481 if (UNLIKELY(info.Length() < 1)) { 6772 if (UNLIKELY(info.Length() < 1)) {
6482 throwArityTypeError(exceptionState, 1, info.Length()); 6773 throwArityTypeError(exceptionState, 1, info.Length());
6483 return; 6774 return;
6484 } 6775 }
6485 TestObject* impl = V8TestObject::toNative(info.Holder()); 6776 TestObject* impl = V8TestObject::toNative(info.Holder());
6486 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState); 6777 int longArg;
6778 {
6779 v8::TryCatch block;
6780 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
6781 }
6487 impl->overloadedMethodC(longArg); 6782 impl->overloadedMethodC(longArg);
6488 } 6783 }
6489 6784
6490 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6785 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6491 { 6786 {
6492 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObject", info.Holder(), info.GetIsolate()); 6787 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObject", info.Holder(), info.GetIsolate());
6493 if (UNLIKELY(info.Length() < 1)) { 6788 if (UNLIKELY(info.Length() < 1)) {
6494 throwArityTypeError(exceptionState, 1, info.Length()); 6789 throwArityTypeError(exceptionState, 1, info.Length());
6495 return; 6790 return;
6496 } 6791 }
6497 TestObject* impl = V8TestObject::toNative(info.Holder()); 6792 TestObject* impl = V8TestObject::toNative(info.Holder());
6498 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState); 6793 int longArg;
6499 TONATIVE_VOID(Vector<int>, longArgs, toNativeArguments<int>(info, 1)); 6794 Vector<int> longArgs;
6795 {
6796 v8::TryCatch block;
6797 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
6798 TONATIVE_VOID_INTERNAL(longArgs, toNativeArguments<int>(info, 1));
6799 }
6500 impl->overloadedMethodC(longArg, longArgs); 6800 impl->overloadedMethodC(longArg, longArgs);
6501 } 6801 }
6502 6802
6503 static void overloadedMethodCMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6803 static void overloadedMethodCMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6504 { 6804 {
6505 if (((info.Length() == 1))) { 6805 if (((info.Length() == 1))) {
6506 overloadedMethodC1Method(info); 6806 overloadedMethodC1Method(info);
6507 return; 6807 return;
6508 } 6808 }
6509 if () { 6809 if () {
(...skipping 17 matching lines...) Expand all
6527 } 6827 }
6528 6828
6529 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6829 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6530 { 6830 {
6531 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObject", info.Holder(), info.GetIsolate()); 6831 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObject", info.Holder(), info.GetIsolate());
6532 if (UNLIKELY(info.Length() < 1)) { 6832 if (UNLIKELY(info.Length() < 1)) {
6533 throwArityTypeError(exceptionState, 1, info.Length()); 6833 throwArityTypeError(exceptionState, 1, info.Length());
6534 return; 6834 return;
6535 } 6835 }
6536 TestObject* impl = V8TestObject::toNative(info.Holder()); 6836 TestObject* impl = V8TestObject::toNative(info.Holder());
6537 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState); 6837 int longArg;
6838 {
6839 v8::TryCatch block;
6840 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
6841 }
6538 impl->overloadedMethodD(longArg); 6842 impl->overloadedMethodD(longArg);
6539 } 6843 }
6540 6844
6541 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6845 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6542 { 6846 {
6543 if (UNLIKELY(info.Length() < 1)) { 6847 if (UNLIKELY(info.Length() < 1)) {
6544 throwArityTypeErrorForMethod("overloadedMethodD", "TestObject", 1, info. Length(), info.GetIsolate()); 6848 throwArityTypeErrorForMethod("overloadedMethodD", "TestObject", 1, info. Length(), info.GetIsolate());
6545 return; 6849 return;
6546 } 6850 }
6547 TestObject* impl = V8TestObject::toNative(info.Holder()); 6851 TestObject* impl = V8TestObject::toNative(info.Holder());
6548 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 6852 TestInterfaceEmpty* testInterfaceEmptyArg;
6853 {
6854 v8::TryCatch block;
6855 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0]));
6856 }
6549 impl->overloadedMethodD(testInterfaceEmptyArg); 6857 impl->overloadedMethodD(testInterfaceEmptyArg);
6550 } 6858 }
6551 6859
6552 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6860 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6553 { 6861 {
6554 if (((info.Length() == 1))) { 6862 if (((info.Length() == 1))) {
6555 overloadedMethodD1Method(info); 6863 overloadedMethodD1Method(info);
6556 return; 6864 return;
6557 } 6865 }
6558 if (((info.Length() == 1) && (V8TestInterfaceEmpty::hasInstance(info[0], inf o.GetIsolate())))) { 6866 if (((info.Length() == 1) && (V8TestInterfaceEmpty::hasInstance(info[0], inf o.GetIsolate())))) {
(...skipping 17 matching lines...) Expand all
6576 } 6884 }
6577 6885
6578 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6886 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6579 { 6887 {
6580 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodE", "TestObject", info.Holder(), info.GetIsolate()); 6888 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodE", "TestObject", info.Holder(), info.GetIsolate());
6581 if (UNLIKELY(info.Length() < 1)) { 6889 if (UNLIKELY(info.Length() < 1)) {
6582 throwArityTypeError(exceptionState, 1, info.Length()); 6890 throwArityTypeError(exceptionState, 1, info.Length());
6583 return; 6891 return;
6584 } 6892 }
6585 TestObject* impl = V8TestObject::toNative(info.Holder()); 6893 TestObject* impl = V8TestObject::toNative(info.Holder());
6586 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState); 6894 int longArg;
6895 {
6896 v8::TryCatch block;
6897 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
6898 }
6587 impl->overloadedMethodE(longArg); 6899 impl->overloadedMethodE(longArg);
6588 } 6900 }
6589 6901
6590 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6902 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6591 { 6903 {
6592 if (UNLIKELY(info.Length() < 1)) { 6904 if (UNLIKELY(info.Length() < 1)) {
6593 throwArityTypeErrorForMethod("overloadedMethodE", "TestObject", 1, info. Length(), info.GetIsolate()); 6905 throwArityTypeErrorForMethod("overloadedMethodE", "TestObject", 1, info. Length(), info.GetIsolate());
6594 return; 6906 return;
6595 } 6907 }
6596 TestObject* impl = V8TestObject::toNative(info.Holder()); 6908 TestObject* impl = V8TestObject::toNative(info.Holder());
6597 TONATIVE_VOID(Vector<int>, longArrayArg, toNativeArray<int>(info[0], 1, info .GetIsolate())); 6909 Vector<int> longArrayArg;
6910 {
6911 v8::TryCatch block;
6912 TONATIVE_VOID_INTERNAL(longArrayArg, toNativeArray<int>(info[0], 1, info .GetIsolate()));
6913 }
6598 impl->overloadedMethodE(longArrayArg); 6914 impl->overloadedMethodE(longArrayArg);
6599 } 6915 }
6600 6916
6601 static void overloadedMethodEMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6917 static void overloadedMethodEMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6602 { 6918 {
6603 if (((info.Length() == 1))) { 6919 if (((info.Length() == 1))) {
6604 overloadedMethodE1Method(info); 6920 overloadedMethodE1Method(info);
6605 return; 6921 return;
6606 } 6922 }
6607 if (((info.Length() == 1) && (info[0]->IsArray()))) { 6923 if (((info.Length() == 1) && (info[0]->IsArray()))) {
(...skipping 17 matching lines...) Expand all
6625 } 6941 }
6626 6942
6627 static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6943 static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6628 { 6944 {
6629 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodF", "TestObject", info.Holder(), info.GetIsolate()); 6945 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodF", "TestObject", info.Holder(), info.GetIsolate());
6630 if (UNLIKELY(info.Length() < 1)) { 6946 if (UNLIKELY(info.Length() < 1)) {
6631 throwArityTypeError(exceptionState, 1, info.Length()); 6947 throwArityTypeError(exceptionState, 1, info.Length());
6632 return; 6948 return;
6633 } 6949 }
6634 TestObject* impl = V8TestObject::toNative(info.Holder()); 6950 TestObject* impl = V8TestObject::toNative(info.Holder());
6635 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState); 6951 int longArg;
6952 {
6953 v8::TryCatch block;
6954 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
6955 }
6636 impl->overloadedMethodF(longArg); 6956 impl->overloadedMethodF(longArg);
6637 } 6957 }
6638 6958
6639 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6959 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6640 { 6960 {
6641 if (UNLIKELY(info.Length() < 1)) { 6961 if (UNLIKELY(info.Length() < 1)) {
6642 throwArityTypeErrorForMethod("overloadedMethodF", "TestObject", 1, info. Length(), info.GetIsolate()); 6962 throwArityTypeErrorForMethod("overloadedMethodF", "TestObject", 1, info. Length(), info.GetIsolate());
6643 return; 6963 return;
6644 } 6964 }
6645 TestObject* impl = V8TestObject::toNative(info.Holder()); 6965 TestObject* impl = V8TestObject::toNative(info.Holder());
6646 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyOrNullArg, V8TestInterf aceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 6966 TestInterfaceEmpty* testInterfaceEmptyOrNullArg;
6967 {
6968 v8::TryCatch block;
6969 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceEmpty ::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
6970 }
6647 impl->overloadedMethodF(testInterfaceEmptyOrNullArg); 6971 impl->overloadedMethodF(testInterfaceEmptyOrNullArg);
6648 } 6972 }
6649 6973
6650 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6974 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6651 { 6975 {
6652 if (((info.Length() == 1))) { 6976 if (((info.Length() == 1))) {
6653 overloadedMethodF1Method(info); 6977 overloadedMethodF1Method(info);
6654 return; 6978 return;
6655 } 6979 }
6656 if (((info.Length() == 1) && (info[0]->IsNull() || V8TestInterfaceEmpty::has Instance(info[0], info.GetIsolate())))) { 6980 if (((info.Length() == 1) && (info[0]->IsNull() || V8TestInterfaceEmpty::has Instance(info[0], info.GetIsolate())))) {
(...skipping 22 matching lines...) Expand all
6679 impl->overloadedMethodG(); 7003 impl->overloadedMethodG();
6680 } 7004 }
6681 7005
6682 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7006 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6683 { 7007 {
6684 if (UNLIKELY(info.Length() < 1)) { 7008 if (UNLIKELY(info.Length() < 1)) {
6685 throwArityTypeErrorForMethod("overloadedMethodG", "TestObject", 1, info. Length(), info.GetIsolate()); 7009 throwArityTypeErrorForMethod("overloadedMethodG", "TestObject", 1, info. Length(), info.GetIsolate());
6686 return; 7010 return;
6687 } 7011 }
6688 TestObject* impl = V8TestObject::toNative(info.Holder()); 7012 TestObject* impl = V8TestObject::toNative(info.Holder());
6689 TOSTRING_VOID(V8StringResource<>, legacyOverloadStringStringArg, info[0]); 7013 V8StringResource<> legacyOverloadStringStringArg;
7014 {
7015 TOSTRING_VOID_INTERNAL(legacyOverloadStringStringArg, info[0]);
7016 }
6690 impl->overloadedMethodG(legacyOverloadStringStringArg); 7017 impl->overloadedMethodG(legacyOverloadStringStringArg);
6691 } 7018 }
6692 7019
6693 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 7020 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6694 { 7021 {
6695 if (((info.Length() == 0))) { 7022 if (((info.Length() == 0))) {
6696 overloadedMethodG1Method(info); 7023 overloadedMethodG1Method(info);
6697 return; 7024 return;
6698 } 7025 }
6699 if (((info.Length() == 1) && (isUndefinedOrNull(info[0]) || info[0]->IsStrin g() || info[0]->IsObject()))) { 7026 if (((info.Length() == 1) && (isUndefinedOrNull(info[0]) || info[0]->IsStrin g() || info[0]->IsObject()))) {
(...skipping 16 matching lines...) Expand all
6716 impl->overloadedMethodH(); 7043 impl->overloadedMethodH();
6717 } 7044 }
6718 7045
6719 static void overloadedMethodH2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7046 static void overloadedMethodH2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6720 { 7047 {
6721 if (UNLIKELY(info.Length() < 1)) { 7048 if (UNLIKELY(info.Length() < 1)) {
6722 throwArityTypeErrorForMethod("overloadedMethodH", "TestObject", 1, info. Length(), info.GetIsolate()); 7049 throwArityTypeErrorForMethod("overloadedMethodH", "TestObject", 1, info. Length(), info.GetIsolate());
6723 return; 7050 return;
6724 } 7051 }
6725 TestObject* impl = V8TestObject::toNative(info.Holder()); 7052 TestObject* impl = V8TestObject::toNative(info.Holder());
6726 if (info.Length() <= 0 || !info[0]->IsFunction()) { 7053 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg;
6727 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodH", " TestObject", "The callback provided as parameter 1 is not a function."), info.Ge tIsolate()); 7054 {
6728 return; 7055 if (info.Length() <= 0 || !info[0]->IsFunction()) {
7056 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodH ", "TestObject", "The callback provided as parameter 1 is not a function."), inf o.GetIsolate());
7057 return;
7058 }
7059 testCallbackInterfaceArg = V8TestCallbackInterface::create(v8::Handle<v8 ::Function>::Cast(info[0]), currentExecutionContext(info.GetIsolate()));
6729 } 7060 }
6730 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = V8TestCallbackInter face::create(v8::Handle<v8::Function>::Cast(info[0]), currentExecutionContext(in fo.GetIsolate()));
6731 impl->overloadedMethodH(testCallbackInterfaceArg.release()); 7061 impl->overloadedMethodH(testCallbackInterfaceArg.release());
6732 } 7062 }
6733 7063
6734 static void overloadedMethodHMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 7064 static void overloadedMethodHMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6735 { 7065 {
6736 if (((info.Length() == 0))) { 7066 if (((info.Length() == 0))) {
6737 overloadedMethodH1Method(info); 7067 overloadedMethodH1Method(info);
6738 return; 7068 return;
6739 } 7069 }
6740 if (((info.Length() == 1) && (info[0]->IsNull() || info[0]->IsFunction()))) { 7070 if (((info.Length() == 1) && (info[0]->IsNull() || info[0]->IsFunction()))) {
(...skipping 10 matching lines...) Expand all
6751 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7081 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6752 } 7082 }
6753 7083
6754 static void overloadedMethodI1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7084 static void overloadedMethodI1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6755 { 7085 {
6756 if (UNLIKELY(info.Length() < 1)) { 7086 if (UNLIKELY(info.Length() < 1)) {
6757 throwArityTypeErrorForMethod("overloadedMethodI", "TestObject", 1, info. Length(), info.GetIsolate()); 7087 throwArityTypeErrorForMethod("overloadedMethodI", "TestObject", 1, info. Length(), info.GetIsolate());
6758 return; 7088 return;
6759 } 7089 }
6760 TestObject* impl = V8TestObject::toNative(info.Holder()); 7090 TestObject* impl = V8TestObject::toNative(info.Holder());
6761 TONATIVE_VOID(Dictionary, dictionaryArg, Dictionary(info[0], info.GetIsolate ())); 7091 Dictionary dictionaryArg;
6762 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) { 7092 {
6763 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodI", " TestObject", "parameter 1 ('dictionaryArg') is not an object."), info.GetIsolate ()); 7093 v8::TryCatch block;
6764 return; 7094 TONATIVE_VOID_INTERNAL(dictionaryArg, Dictionary(info[0], info.GetIsolat e()));
7095 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) {
7096 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodI ", "TestObject", "parameter 1 ('dictionaryArg') is not an object."), info.GetIso late());
7097 block.ReThrow();
7098 return;
7099 }
6765 } 7100 }
6766 impl->overloadedMethodI(dictionaryArg); 7101 impl->overloadedMethodI(dictionaryArg);
6767 } 7102 }
6768 7103
6769 static void overloadedMethodI2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7104 static void overloadedMethodI2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6770 { 7105 {
6771 if (UNLIKELY(info.Length() < 1)) { 7106 if (UNLIKELY(info.Length() < 1)) {
6772 throwArityTypeErrorForMethod("overloadedMethodI", "TestObject", 1, info. Length(), info.GetIsolate()); 7107 throwArityTypeErrorForMethod("overloadedMethodI", "TestObject", 1, info. Length(), info.GetIsolate());
6773 return; 7108 return;
6774 } 7109 }
6775 TestObject* impl = V8TestObject::toNative(info.Holder()); 7110 TestObject* impl = V8TestObject::toNative(info.Holder());
6776 TONATIVE_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue()) ); 7111 double doubleArg;
7112 {
7113 v8::TryCatch block;
7114 TONATIVE_VOID_INTERNAL(doubleArg, static_cast<double>(info[0]->NumberVal ue()));
7115 }
6777 impl->overloadedMethodI(doubleArg); 7116 impl->overloadedMethodI(doubleArg);
6778 } 7117 }
6779 7118
6780 static void overloadedMethodIMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 7119 static void overloadedMethodIMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6781 { 7120 {
6782 if (((info.Length() == 1) && (info[0]->IsObject()))) { 7121 if (((info.Length() == 1) && (info[0]->IsObject()))) {
6783 overloadedMethodI1Method(info); 7122 overloadedMethodI1Method(info);
6784 return; 7123 return;
6785 } 7124 }
6786 if (((info.Length() == 1))) { 7125 if (((info.Length() == 1))) {
(...skipping 17 matching lines...) Expand all
6804 } 7143 }
6805 7144
6806 static void overloadedMethodJ1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7145 static void overloadedMethodJ1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6807 { 7146 {
6808 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodJ", "TestObject", info.Holder(), info.GetIsolate()); 7147 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodJ", "TestObject", info.Holder(), info.GetIsolate());
6809 if (UNLIKELY(info.Length() < 1)) { 7148 if (UNLIKELY(info.Length() < 1)) {
6810 throwArityTypeError(exceptionState, 1, info.Length()); 7149 throwArityTypeError(exceptionState, 1, info.Length());
6811 return; 7150 return;
6812 } 7151 }
6813 TestObject* impl = V8TestObject::toNative(info.Holder()); 7152 TestObject* impl = V8TestObject::toNative(info.Holder());
6814 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState); 7153 int longArg;
7154 {
7155 v8::TryCatch block;
7156 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
7157 }
6815 impl->overloadedMethodJ(longArg); 7158 impl->overloadedMethodJ(longArg);
6816 } 7159 }
6817 7160
6818 static void overloadedMethodJ2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7161 static void overloadedMethodJ2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6819 { 7162 {
6820 if (UNLIKELY(info.Length() < 1)) { 7163 if (UNLIKELY(info.Length() < 1)) {
6821 throwArityTypeErrorForMethod("overloadedMethodJ", "TestObject", 1, info. Length(), info.GetIsolate()); 7164 throwArityTypeErrorForMethod("overloadedMethodJ", "TestObject", 1, info. Length(), info.GetIsolate());
6822 return; 7165 return;
6823 } 7166 }
6824 TestObject* impl = V8TestObject::toNative(info.Holder()); 7167 TestObject* impl = V8TestObject::toNative(info.Holder());
6825 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyOrNullArg, V8TestInterf aceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 7168 TestInterfaceEmpty* testInterfaceEmptyOrNullArg;
7169 {
7170 v8::TryCatch block;
7171 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceEmpty ::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
7172 }
6826 impl->overloadedMethodJ(testInterfaceEmptyOrNullArg); 7173 impl->overloadedMethodJ(testInterfaceEmptyOrNullArg);
6827 } 7174 }
6828 7175
6829 static void overloadedMethodJMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 7176 static void overloadedMethodJMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6830 { 7177 {
6831 if (((info.Length() == 1))) { 7178 if (((info.Length() == 1))) {
6832 overloadedMethodJ1Method(info); 7179 overloadedMethodJ1Method(info);
6833 return; 7180 return;
6834 } 7181 }
6835 if (((info.Length() == 1) && (isUndefinedOrNull(info[0]) || V8TestInterfaceE mpty::hasInstance(info[0], info.GetIsolate())))) { 7182 if (((info.Length() == 1) && (isUndefinedOrNull(info[0]) || V8TestInterfaceE mpty::hasInstance(info[0], info.GetIsolate())))) {
(...skipping 29 matching lines...) Expand all
6865 } 7212 }
6866 7213
6867 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn fo<v8::Value>& info) 7214 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn fo<v8::Value>& info)
6868 { 7215 {
6869 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); 7216 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate());
6870 if (UNLIKELY(info.Length() < 1)) { 7217 if (UNLIKELY(info.Length() < 1)) {
6871 throwArityTypeError(exceptionState, 1, info.Length()); 7218 throwArityTypeError(exceptionState, 1, info.Length());
6872 return; 7219 return;
6873 } 7220 }
6874 TestObject* impl = V8TestObject::toNative(info.Holder()); 7221 TestObject* impl = V8TestObject::toNative(info.Holder());
6875 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState); 7222 int longArg;
7223 {
7224 v8::TryCatch block;
7225 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
7226 }
6876 impl->overloadedPerWorldBindingsMethod(longArg); 7227 impl->overloadedPerWorldBindingsMethod(longArg);
6877 } 7228 }
6878 7229
6879 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info) 7230 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info)
6880 { 7231 {
6881 if (((info.Length() == 0))) { 7232 if (((info.Length() == 0))) {
6882 overloadedPerWorldBindingsMethod1Method(info); 7233 overloadedPerWorldBindingsMethod1Method(info);
6883 return; 7234 return;
6884 } 7235 }
6885 if (((info.Length() == 1))) { 7236 if (((info.Length() == 1))) {
(...skipping 11 matching lines...) Expand all
6897 } 7248 }
6898 7249
6899 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi onCallbackInfo<v8::Value>& info) 7250 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi onCallbackInfo<v8::Value>& info)
6900 { 7251 {
6901 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); 7252 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate());
6902 if (UNLIKELY(info.Length() < 1)) { 7253 if (UNLIKELY(info.Length() < 1)) {
6903 throwArityTypeError(exceptionState, 1, info.Length()); 7254 throwArityTypeError(exceptionState, 1, info.Length());
6904 return; 7255 return;
6905 } 7256 }
6906 TestObject* impl = V8TestObject::toNative(info.Holder()); 7257 TestObject* impl = V8TestObject::toNative(info.Holder());
6907 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState); 7258 int longArg;
7259 {
7260 v8::TryCatch block;
7261 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
7262 }
6908 impl->overloadedPerWorldBindingsMethod(longArg); 7263 impl->overloadedPerWorldBindingsMethod(longArg);
6909 } 7264 }
6910 7265
6911 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio nCallbackInfo<v8::Value>& info) 7266 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio nCallbackInfo<v8::Value>& info)
6912 { 7267 {
6913 if (((info.Length() == 0))) { 7268 if (((info.Length() == 0))) {
6914 overloadedPerWorldBindingsMethod1MethodForMainWorld(info); 7269 overloadedPerWorldBindingsMethod1MethodForMainWorld(info);
6915 return; 7270 return;
6916 } 7271 }
6917 if (((info.Length() == 1))) { 7272 if (((info.Length() == 1))) {
(...skipping 10 matching lines...) Expand all
6928 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7283 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6929 } 7284 }
6930 7285
6931 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val ue>& info) 7286 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val ue>& info)
6932 { 7287 {
6933 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate()); 7288 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate());
6934 if (UNLIKELY(info.Length() < 1)) { 7289 if (UNLIKELY(info.Length() < 1)) {
6935 throwArityTypeError(exceptionState, 1, info.Length()); 7290 throwArityTypeError(exceptionState, 1, info.Length());
6936 return; 7291 return;
6937 } 7292 }
6938 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState); 7293 int longArg;
7294 {
7295 v8::TryCatch block;
7296 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
7297 }
6939 TestObject::overloadedStaticMethod(longArg); 7298 TestObject::overloadedStaticMethod(longArg);
6940 } 7299 }
6941 7300
6942 static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val ue>& info) 7301 static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val ue>& info)
6943 { 7302 {
6944 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate()); 7303 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate());
6945 if (UNLIKELY(info.Length() < 2)) { 7304 if (UNLIKELY(info.Length() < 2)) {
6946 throwArityTypeError(exceptionState, 2, info.Length()); 7305 throwArityTypeError(exceptionState, 2, info.Length());
6947 return; 7306 return;
6948 } 7307 }
6949 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg1, toInt32(info[0], exceptionState) , exceptionState); 7308 int longArg1;
6950 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg2, toInt32(info[1], exceptionState) , exceptionState); 7309 int longArg2;
7310 {
7311 v8::TryCatch block;
7312 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg1, toInt32(info[0], excepti onState), exceptionState);
7313 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg2, toInt32(info[1], excepti onState), exceptionState);
7314 }
6951 TestObject::overloadedStaticMethod(longArg1, longArg2); 7315 TestObject::overloadedStaticMethod(longArg1, longArg2);
6952 } 7316 }
6953 7317
6954 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info) 7318 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info)
6955 { 7319 {
6956 if (((info.Length() == 1))) { 7320 if (((info.Length() == 1))) {
6957 overloadedStaticMethod1Method(info); 7321 overloadedStaticMethod1Method(info);
6958 return; 7322 return;
6959 } 7323 }
6960 if (((info.Length() == 2))) { 7324 if (((info.Length() == 2))) {
(...skipping 18 matching lines...) Expand all
6979 7343
6980 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 7344 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
6981 { 7345 {
6982 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC lampUnsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); 7346 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC lampUnsignedShortArg", "TestObject", info.Holder(), info.GetIsolate());
6983 if (UNLIKELY(info.Length() < 1)) { 7347 if (UNLIKELY(info.Length() < 1)) {
6984 throwArityTypeError(exceptionState, 1, info.Length()); 7348 throwArityTypeError(exceptionState, 1, info.Length());
6985 return; 7349 return;
6986 } 7350 }
6987 TestObject* impl = V8TestObject::toNative(info.Holder()); 7351 TestObject* impl = V8TestObject::toNative(info.Holder());
6988 unsigned clampUnsignedShortArg = 0; 7352 unsigned clampUnsignedShortArg = 0;
6989 TONATIVE_VOID(double, clampUnsignedShortArgNativeValue, info[0]->NumberValue ()); 7353 {
6990 if (!std::isnan(clampUnsignedShortArgNativeValue)) 7354 v8::TryCatch block;
6991 clampUnsignedShortArg = clampTo<unsigned short>(clampUnsignedShortArgNat iveValue); 7355 double clampUnsignedShortArgNativeValue;
7356 TONATIVE_VOID_INTERNAL(clampUnsignedShortArgNativeValue, info[0]->Number Value());
7357 if (!std::isnan(clampUnsignedShortArgNativeValue))
7358 clampUnsignedShortArg = clampTo<unsigned short>(clampUnsignedShortAr gNativeValue);
7359 }
6992 impl->voidMethodClampUnsignedShortArg(clampUnsignedShortArg); 7360 impl->voidMethodClampUnsignedShortArg(clampUnsignedShortArg);
6993 } 7361 }
6994 7362
6995 static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 7363 static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
6996 { 7364 {
6997 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7365 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6998 TestObjectV8Internal::voidMethodClampUnsignedShortArgMethod(info); 7366 TestObjectV8Internal::voidMethodClampUnsignedShortArgMethod(info);
6999 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7367 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7000 } 7368 }
7001 7369
7002 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info) 7370 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info)
7003 { 7371 {
7004 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC lampUnsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); 7372 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC lampUnsignedLongArg", "TestObject", info.Holder(), info.GetIsolate());
7005 if (UNLIKELY(info.Length() < 1)) { 7373 if (UNLIKELY(info.Length() < 1)) {
7006 throwArityTypeError(exceptionState, 1, info.Length()); 7374 throwArityTypeError(exceptionState, 1, info.Length());
7007 return; 7375 return;
7008 } 7376 }
7009 TestObject* impl = V8TestObject::toNative(info.Holder()); 7377 TestObject* impl = V8TestObject::toNative(info.Holder());
7010 unsigned clampUnsignedLongArg = 0; 7378 unsigned clampUnsignedLongArg = 0;
7011 TONATIVE_VOID(double, clampUnsignedLongArgNativeValue, info[0]->NumberValue( )); 7379 {
7012 if (!std::isnan(clampUnsignedLongArgNativeValue)) 7380 v8::TryCatch block;
7013 clampUnsignedLongArg = clampTo<unsigned long>(clampUnsignedLongArgNative Value); 7381 double clampUnsignedLongArgNativeValue;
7382 TONATIVE_VOID_INTERNAL(clampUnsignedLongArgNativeValue, info[0]->NumberV alue());
7383 if (!std::isnan(clampUnsignedLongArgNativeValue))
7384 clampUnsignedLongArg = clampTo<unsigned long>(clampUnsignedLongArgNa tiveValue);
7385 }
7014 impl->voidMethodClampUnsignedLongArg(clampUnsignedLongArg); 7386 impl->voidMethodClampUnsignedLongArg(clampUnsignedLongArg);
7015 } 7387 }
7016 7388
7017 static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 7389 static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
7018 { 7390 {
7019 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7391 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7020 TestObjectV8Internal::voidMethodClampUnsignedLongArgMethod(info); 7392 TestObjectV8Internal::voidMethodClampUnsignedLongArgMethod(info);
7021 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7393 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7022 } 7394 }
7023 7395
7024 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) 7396 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info)
7025 { 7397 {
7026 TestObject* impl = V8TestObject::toNative(info.Holder()); 7398 TestObject* impl = V8TestObject::toNative(info.Holder());
7027 TONATIVE_VOID(TestInterfaceEmpty*, defaultUndefinedTestInterfaceEmptyArg, V8 TestInterfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 7399 TestInterfaceEmpty* defaultUndefinedTestInterfaceEmptyArg;
7400 {
7401 v8::TryCatch block;
7402 TONATIVE_VOID_INTERNAL(defaultUndefinedTestInterfaceEmptyArg, V8TestInte rfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
7403 }
7028 impl->voidMethodDefaultUndefinedTestInterfaceEmptyArg(defaultUndefinedTestIn terfaceEmptyArg); 7404 impl->voidMethodDefaultUndefinedTestInterfaceEmptyArg(defaultUndefinedTestIn terfaceEmptyArg);
7029 } 7405 }
7030 7406
7031 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 7407 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
7032 { 7408 {
7033 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7409 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7034 TestObjectV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod( info); 7410 TestObjectV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod( info);
7035 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7411 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7036 } 7412 }
7037 7413
7038 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info) 7414 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info)
7039 { 7415 {
7040 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultUndefinedLongArg", "TestObject", info.Holder(), info.GetIsolate()); 7416 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultUndefinedLongArg", "TestObject", info.Holder(), info.GetIsolate());
7041 TestObject* impl = V8TestObject::toNative(info.Holder()); 7417 TestObject* impl = V8TestObject::toNative(info.Holder());
7042 TONATIVE_VOID_EXCEPTIONSTATE(int, defaultUndefinedLongArg, toInt32(info[0], exceptionState), exceptionState); 7418 int defaultUndefinedLongArg;
7419 {
7420 v8::TryCatch block;
7421 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultUndefinedLongArg, toInt32(i nfo[0], exceptionState), exceptionState);
7422 }
7043 impl->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg); 7423 impl->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg);
7044 } 7424 }
7045 7425
7046 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info) 7426 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info)
7047 { 7427 {
7048 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7428 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7049 TestObjectV8Internal::voidMethodDefaultUndefinedLongArgMethod(info); 7429 TestObjectV8Internal::voidMethodDefaultUndefinedLongArgMethod(info);
7050 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7430 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7051 } 7431 }
7052 7432
7053 static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback Info<v8::Value>& info) 7433 static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback Info<v8::Value>& info)
7054 { 7434 {
7055 TestObject* impl = V8TestObject::toNative(info.Holder()); 7435 TestObject* impl = V8TestObject::toNative(info.Holder());
7056 TOSTRING_VOID(V8StringResource<>, defaultUndefinedStringArg, info[0]); 7436 V8StringResource<> defaultUndefinedStringArg;
7437 {
7438 TOSTRING_VOID_INTERNAL(defaultUndefinedStringArg, info[0]);
7439 }
7057 impl->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg); 7440 impl->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg);
7058 } 7441 }
7059 7442
7060 static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function CallbackInfo<v8::Value>& info) 7443 static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function CallbackInfo<v8::Value>& info)
7061 { 7444 {
7062 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7445 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7063 TestObjectV8Internal::voidMethodDefaultUndefinedStringArgMethod(info); 7446 TestObjectV8Internal::voidMethodDefaultUndefinedStringArgMethod(info);
7064 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7447 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7065 } 7448 }
7066 7449
7067 static void voidMethodDefaultNullStringStringArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) 7450 static void voidMethodDefaultNullStringStringArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info)
7068 { 7451 {
7069 TestObject* impl = V8TestObject::toNative(info.Holder()); 7452 TestObject* impl = V8TestObject::toNative(info.Holder());
7070 TOSTRING_VOID(V8StringResource<>, defaultNullStringStringArg, argumentOrNull (info, 0)); 7453 V8StringResource<> defaultNullStringStringArg;
7454 {
7455 TOSTRING_VOID_INTERNAL(defaultNullStringStringArg, argumentOrNull(info, 0));
7456 }
7071 impl->voidMethodDefaultNullStringStringArg(defaultNullStringStringArg); 7457 impl->voidMethodDefaultNullStringStringArg(defaultNullStringStringArg);
7072 } 7458 }
7073 7459
7074 static void voidMethodDefaultNullStringStringArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 7460 static void voidMethodDefaultNullStringStringArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
7075 { 7461 {
7076 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7462 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7077 TestObjectV8Internal::voidMethodDefaultNullStringStringArgMethod(info); 7463 TestObjectV8Internal::voidMethodDefaultNullStringStringArgMethod(info);
7078 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7464 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7079 } 7465 }
7080 7466
7081 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) 7467 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info)
7082 { 7468 {
7083 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE nforceRangeLongArg", "TestObject", info.Holder(), info.GetIsolate()); 7469 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE nforceRangeLongArg", "TestObject", info.Holder(), info.GetIsolate());
7084 if (UNLIKELY(info.Length() < 1)) { 7470 if (UNLIKELY(info.Length() < 1)) {
7085 throwArityTypeError(exceptionState, 1, info.Length()); 7471 throwArityTypeError(exceptionState, 1, info.Length());
7086 return; 7472 return;
7087 } 7473 }
7088 TestObject* impl = V8TestObject::toNative(info.Holder()); 7474 TestObject* impl = V8TestObject::toNative(info.Holder());
7089 TONATIVE_VOID_EXCEPTIONSTATE(int, enforceRangeLongArg, toInt32(info[0], Enfo rceRange, exceptionState), exceptionState); 7475 int enforceRangeLongArg;
7476 {
7477 v8::TryCatch block;
7478 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(enforceRangeLongArg, toInt32(info[ 0], EnforceRange, exceptionState), exceptionState);
7479 }
7090 impl->voidMethodEnforceRangeLongArg(enforceRangeLongArg); 7480 impl->voidMethodEnforceRangeLongArg(enforceRangeLongArg);
7091 } 7481 }
7092 7482
7093 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 7483 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
7094 { 7484 {
7095 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7485 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7096 TestObjectV8Internal::voidMethodEnforceRangeLongArgMethod(info); 7486 TestObjectV8Internal::voidMethodEnforceRangeLongArgMethod(info);
7097 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7487 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7098 } 7488 }
7099 7489
7100 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) 7490 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info)
7101 { 7491 {
7102 if (UNLIKELY(info.Length() < 1)) { 7492 if (UNLIKELY(info.Length() < 1)) {
7103 throwArityTypeErrorForMethod("voidMethodTreatNullAsNullStringStringArg", "TestObject", 1, info.Length(), info.GetIsolate()); 7493 throwArityTypeErrorForMethod("voidMethodTreatNullAsNullStringStringArg", "TestObject", 1, info.Length(), info.GetIsolate());
7104 return; 7494 return;
7105 } 7495 }
7106 TestObject* impl = V8TestObject::toNative(info.Holder()); 7496 TestObject* impl = V8TestObject::toNative(info.Holder());
7107 TOSTRING_VOID(V8StringResource<WithNullCheck>, treatNullAsNullStringStringAr g, info[0]); 7497 V8StringResource<WithNullCheck> treatNullAsNullStringStringArg;
7498 {
7499 TOSTRING_VOID_INTERNAL(treatNullAsNullStringStringArg, info[0]);
7500 }
7108 impl->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringAr g); 7501 impl->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringAr g);
7109 } 7502 }
7110 7503
7111 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 7504 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
7112 { 7505 {
7113 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7506 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7114 TestObjectV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(info); 7507 TestObjectV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(info);
7115 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7508 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7116 } 7509 }
7117 7510
7118 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe thod(const v8::FunctionCallbackInfo<v8::Value>& info) 7511 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe thod(const v8::FunctionCallbackInfo<v8::Value>& info)
7119 { 7512 {
7120 if (UNLIKELY(info.Length() < 1)) { 7513 if (UNLIKELY(info.Length() < 1)) {
7121 throwArityTypeErrorForMethod("voidMethodTreatNullAsNullStringTreatUndefi nedAsNullStringStringArg", "TestObject", 1, info.Length(), info.GetIsolate()); 7514 throwArityTypeErrorForMethod("voidMethodTreatNullAsNullStringTreatUndefi nedAsNullStringStringArg", "TestObject", 1, info.Length(), info.GetIsolate());
7122 return; 7515 return;
7123 } 7516 }
7124 TestObject* impl = V8TestObject::toNative(info.Holder()); 7517 TestObject* impl = V8TestObject::toNative(info.Holder());
7125 TOSTRING_VOID(V8StringResource<WithUndefinedOrNullCheck>, treatNullAsNullStr ingStringArg, info[0]); 7518 V8StringResource<WithUndefinedOrNullCheck> treatNullAsNullStringStringArg;
7519 {
7520 TOSTRING_VOID_INTERNAL(treatNullAsNullStringStringArg, info[0]);
7521 }
7126 impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(tre atNullAsNullStringStringArg); 7522 impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(tre atNullAsNullStringStringArg);
7127 } 7523 }
7128 7524
7129 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 7525 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
7130 { 7526 {
7131 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7527 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7132 TestObjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStr ingStringArgMethod(info); 7528 TestObjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStr ingStringArgMethod(info);
7133 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7529 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7134 } 7530 }
7135 7531
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
7220 static void callWithScriptStateScriptArgumentsVoidMethodMethodCallback(const v8: :FunctionCallbackInfo<v8::Value>& info) 7616 static void callWithScriptStateScriptArgumentsVoidMethodMethodCallback(const v8: :FunctionCallbackInfo<v8::Value>& info)
7221 { 7617 {
7222 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7618 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7223 TestObjectV8Internal::callWithScriptStateScriptArgumentsVoidMethodMethod(inf o); 7619 TestObjectV8Internal::callWithScriptStateScriptArgumentsVoidMethodMethod(inf o);
7224 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7620 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7225 } 7621 }
7226 7622
7227 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod (const v8::FunctionCallbackInfo<v8::Value>& info) 7623 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod (const v8::FunctionCallbackInfo<v8::Value>& info)
7228 { 7624 {
7229 TestObject* impl = V8TestObject::toNative(info.Holder()); 7625 TestObject* impl = V8TestObject::toNative(info.Holder());
7230 if (UNLIKELY(info.Length() <= 0)) { 7626 bool optionalBooleanArg;
7231 ScriptState* state = ScriptState::current(info.GetIsolate()); 7627 {
7232 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1)); 7628 v8::TryCatch block;
7233 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(sta te, scriptArguments.release()); 7629 if (UNLIKELY(info.Length() <= 0)) {
7234 return; 7630 ScriptState* state = ScriptState::current(info.GetIsolate());
7631 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1));
7632 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg (state, scriptArguments.release());
7633 return;
7634 }
7635 TONATIVE_VOID_INTERNAL(optionalBooleanArg, info[0]->BooleanValue());
7235 } 7636 }
7236 TONATIVE_VOID(bool, optionalBooleanArg, info[0]->BooleanValue());
7237 ScriptState* state = ScriptState::current(info.GetIsolate()); 7637 ScriptState* state = ScriptState::current(info.GetIsolate());
7238 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1)); 7638 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1));
7239 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(state, scriptArguments.release(), optionalBooleanArg); 7639 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(state, scriptArguments.release(), optionalBooleanArg);
7240 } 7640 }
7241 7641
7242 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod Callback(const v8::FunctionCallbackInfo<v8::Value>& info) 7642 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod Callback(const v8::FunctionCallbackInfo<v8::Value>& info)
7243 { 7643 {
7244 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7644 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7245 TestObjectV8Internal::callWithScriptStateScriptArgumentsVoidMethodOptionalBo oleanArgMethod(info); 7645 TestObjectV8Internal::callWithScriptStateScriptArgumentsVoidMethodOptionalBo oleanArgMethod(info);
7246 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7646 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
7431 } 7831 }
7432 7832
7433 static void DeprecateAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8 ::Value>& info) 7833 static void DeprecateAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8 ::Value>& info)
7434 { 7834 {
7435 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 7835 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
7436 if (UNLIKELY(info.Length() < 1)) { 7836 if (UNLIKELY(info.Length() < 1)) {
7437 throwArityTypeError(exceptionState, 1, info.Length()); 7837 throwArityTypeError(exceptionState, 1, info.Length());
7438 return; 7838 return;
7439 } 7839 }
7440 TestObject* impl = V8TestObject::toNative(info.Holder()); 7840 TestObject* impl = V8TestObject::toNative(info.Holder());
7441 TONATIVE_VOID_EXCEPTIONSTATE(int, arg, toInt32(info[0], exceptionState), exc eptionState); 7841 int arg;
7842 {
7843 v8::TryCatch block;
7844 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
7845 }
7442 impl->DeprecateAsOverloadedMethod(arg); 7846 impl->DeprecateAsOverloadedMethod(arg);
7443 } 7847 }
7444 7848
7445 static void DeprecateAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 7849 static void DeprecateAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
7446 { 7850 {
7447 if (((info.Length() == 0))) { 7851 if (((info.Length() == 0))) {
7448 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), UseCounter::TestFeatureA); 7852 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), UseCounter::TestFeatureA);
7449 DeprecateAsOverloadedMethod1Method(info); 7853 DeprecateAsOverloadedMethod1Method(info);
7450 return; 7854 return;
7451 } 7855 }
(...skipping 19 matching lines...) Expand all
7471 } 7875 }
7472 7876
7473 static void DeprecateAsSameValueOverloadedMethod2Method(const v8::FunctionCallba ckInfo<v8::Value>& info) 7877 static void DeprecateAsSameValueOverloadedMethod2Method(const v8::FunctionCallba ckInfo<v8::Value>& info)
7474 { 7878 {
7475 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 7879 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
7476 if (UNLIKELY(info.Length() < 1)) { 7880 if (UNLIKELY(info.Length() < 1)) {
7477 throwArityTypeError(exceptionState, 1, info.Length()); 7881 throwArityTypeError(exceptionState, 1, info.Length());
7478 return; 7882 return;
7479 } 7883 }
7480 TestObject* impl = V8TestObject::toNative(info.Holder()); 7884 TestObject* impl = V8TestObject::toNative(info.Holder());
7481 TONATIVE_VOID_EXCEPTIONSTATE(int, arg, toInt32(info[0], exceptionState), exc eptionState); 7885 int arg;
7886 {
7887 v8::TryCatch block;
7888 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
7889 }
7482 impl->DeprecateAsSameValueOverloadedMethod(arg); 7890 impl->DeprecateAsSameValueOverloadedMethod(arg);
7483 } 7891 }
7484 7892
7485 static void DeprecateAsSameValueOverloadedMethodMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) 7893 static void DeprecateAsSameValueOverloadedMethodMethod(const v8::FunctionCallbac kInfo<v8::Value>& info)
7486 { 7894 {
7487 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::TestFeature); 7895 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::TestFeature);
7488 if (((info.Length() == 0))) { 7896 if (((info.Length() == 0))) {
7489 DeprecateAsSameValueOverloadedMethod1Method(info); 7897 DeprecateAsSameValueOverloadedMethod1Method(info);
7490 return; 7898 return;
7491 } 7899 }
(...skipping 18 matching lines...) Expand all
7510 } 7918 }
7511 7919
7512 static void measureAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8:: Value>& info) 7920 static void measureAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8:: Value>& info)
7513 { 7921 {
7514 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv erloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 7922 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv erloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
7515 if (UNLIKELY(info.Length() < 1)) { 7923 if (UNLIKELY(info.Length() < 1)) {
7516 throwArityTypeError(exceptionState, 1, info.Length()); 7924 throwArityTypeError(exceptionState, 1, info.Length());
7517 return; 7925 return;
7518 } 7926 }
7519 TestObject* impl = V8TestObject::toNative(info.Holder()); 7927 TestObject* impl = V8TestObject::toNative(info.Holder());
7520 TONATIVE_VOID_EXCEPTIONSTATE(int, arg, toInt32(info[0], exceptionState), exc eptionState); 7928 int arg;
7929 {
7930 v8::TryCatch block;
7931 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
7932 }
7521 impl->measureAsOverloadedMethod(arg); 7933 impl->measureAsOverloadedMethod(arg);
7522 } 7934 }
7523 7935
7524 static void measureAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 7936 static void measureAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
7525 { 7937 {
7526 if (((info.Length() == 0))) { 7938 if (((info.Length() == 0))) {
7527 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter ::TestFeatureA); 7939 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter ::TestFeatureA);
7528 measureAsOverloadedMethod1Method(info); 7940 measureAsOverloadedMethod1Method(info);
7529 return; 7941 return;
7530 } 7942 }
(...skipping 19 matching lines...) Expand all
7550 } 7962 }
7551 7963
7552 static void measureAsSameValueOverloadedMethod2Method(const v8::FunctionCallback Info<v8::Value>& info) 7964 static void measureAsSameValueOverloadedMethod2Method(const v8::FunctionCallback Info<v8::Value>& info)
7553 { 7965 {
7554 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 7966 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
7555 if (UNLIKELY(info.Length() < 1)) { 7967 if (UNLIKELY(info.Length() < 1)) {
7556 throwArityTypeError(exceptionState, 1, info.Length()); 7968 throwArityTypeError(exceptionState, 1, info.Length());
7557 return; 7969 return;
7558 } 7970 }
7559 TestObject* impl = V8TestObject::toNative(info.Holder()); 7971 TestObject* impl = V8TestObject::toNative(info.Holder());
7560 TONATIVE_VOID_EXCEPTIONSTATE(int, arg, toInt32(info[0], exceptionState), exc eptionState); 7972 int arg;
7973 {
7974 v8::TryCatch block;
7975 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
7976 }
7561 impl->measureAsSameValueOverloadedMethod(arg); 7977 impl->measureAsSameValueOverloadedMethod(arg);
7562 } 7978 }
7563 7979
7564 static void measureAsSameValueOverloadedMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 7980 static void measureAsSameValueOverloadedMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
7565 { 7981 {
7566 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeature); 7982 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeature);
7567 if (((info.Length() == 0))) { 7983 if (((info.Length() == 0))) {
7568 measureAsSameValueOverloadedMethod1Method(info); 7984 measureAsSameValueOverloadedMethod1Method(info);
7569 return; 7985 return;
7570 } 7986 }
(...skipping 18 matching lines...) Expand all
7589 } 8005 }
7590 8006
7591 static void deprecateAsMeasureAsSameValueOverloadedMethod2Method(const v8::Funct ionCallbackInfo<v8::Value>& info) 8007 static void deprecateAsMeasureAsSameValueOverloadedMethod2Method(const v8::Funct ionCallbackInfo<v8::Value>& info)
7592 { 8008 {
7593 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e()); 8009 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e());
7594 if (UNLIKELY(info.Length() < 1)) { 8010 if (UNLIKELY(info.Length() < 1)) {
7595 throwArityTypeError(exceptionState, 1, info.Length()); 8011 throwArityTypeError(exceptionState, 1, info.Length());
7596 return; 8012 return;
7597 } 8013 }
7598 TestObject* impl = V8TestObject::toNative(info.Holder()); 8014 TestObject* impl = V8TestObject::toNative(info.Holder());
7599 TONATIVE_VOID_EXCEPTIONSTATE(int, arg, toInt32(info[0], exceptionState), exc eptionState); 8015 int arg;
8016 {
8017 v8::TryCatch block;
8018 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
8019 }
7600 impl->deprecateAsMeasureAsSameValueOverloadedMethod(arg); 8020 impl->deprecateAsMeasureAsSameValueOverloadedMethod(arg);
7601 } 8021 }
7602 8022
7603 static void deprecateAsMeasureAsSameValueOverloadedMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info) 8023 static void deprecateAsMeasureAsSameValueOverloadedMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info)
7604 { 8024 {
7605 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeature); 8025 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeature);
7606 if (((info.Length() == 0))) { 8026 if (((info.Length() == 0))) {
7607 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), UseCounter::TestFeatureA); 8027 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), UseCounter::TestFeatureA);
7608 deprecateAsMeasureAsSameValueOverloadedMethod1Method(info); 8028 deprecateAsMeasureAsSameValueOverloadedMethod1Method(info);
7609 return; 8029 return;
(...skipping 20 matching lines...) Expand all
7630 } 8050 }
7631 8051
7632 static void deprecateAsSameValueMeasureAsOverloadedMethod2Method(const v8::Funct ionCallbackInfo<v8::Value>& info) 8052 static void deprecateAsSameValueMeasureAsOverloadedMethod2Method(const v8::Funct ionCallbackInfo<v8::Value>& info)
7633 { 8053 {
7634 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e()); 8054 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e());
7635 if (UNLIKELY(info.Length() < 1)) { 8055 if (UNLIKELY(info.Length() < 1)) {
7636 throwArityTypeError(exceptionState, 1, info.Length()); 8056 throwArityTypeError(exceptionState, 1, info.Length());
7637 return; 8057 return;
7638 } 8058 }
7639 TestObject* impl = V8TestObject::toNative(info.Holder()); 8059 TestObject* impl = V8TestObject::toNative(info.Holder());
7640 TONATIVE_VOID_EXCEPTIONSTATE(int, arg, toInt32(info[0], exceptionState), exc eptionState); 8060 int arg;
8061 {
8062 v8::TryCatch block;
8063 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
8064 }
7641 impl->deprecateAsSameValueMeasureAsOverloadedMethod(arg); 8065 impl->deprecateAsSameValueMeasureAsOverloadedMethod(arg);
7642 } 8066 }
7643 8067
7644 static void deprecateAsSameValueMeasureAsOverloadedMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info) 8068 static void deprecateAsSameValueMeasureAsOverloadedMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info)
7645 { 8069 {
7646 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::TestFeature); 8070 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::TestFeature);
7647 if (((info.Length() == 0))) { 8071 if (((info.Length() == 0))) {
7648 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter ::TestFeatureA); 8072 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter ::TestFeatureA);
7649 deprecateAsSameValueMeasureAsOverloadedMethod1Method(info); 8073 deprecateAsSameValueMeasureAsOverloadedMethod1Method(info);
7650 return; 8074 return;
(...skipping 20 matching lines...) Expand all
7671 } 8095 }
7672 8096
7673 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 8097 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
7674 { 8098 {
7675 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info. GetIsolate()); 8099 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info. GetIsolate());
7676 if (UNLIKELY(info.Length() < 1)) { 8100 if (UNLIKELY(info.Length() < 1)) {
7677 throwArityTypeError(exceptionState, 1, info.Length()); 8101 throwArityTypeError(exceptionState, 1, info.Length());
7678 return; 8102 return;
7679 } 8103 }
7680 TestObject* impl = V8TestObject::toNative(info.Holder()); 8104 TestObject* impl = V8TestObject::toNative(info.Holder());
7681 TONATIVE_VOID_EXCEPTIONSTATE(int, arg, toInt32(info[0], exceptionState), exc eptionState); 8105 int arg;
8106 {
8107 v8::TryCatch block;
8108 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
8109 }
7682 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(arg); 8110 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(arg);
7683 } 8111 }
7684 8112
7685 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethod(const v 8::FunctionCallbackInfo<v8::Value>& info) 8113 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethod(const v 8::FunctionCallbackInfo<v8::Value>& info)
7686 { 8114 {
7687 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeatureB); 8115 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeatureB);
7688 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::TestFeatureA); 8116 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::TestFeatureA);
7689 if (((info.Length() == 0))) { 8117 if (((info.Length() == 0))) {
7690 deprecateAsSameValueMeasureAsSameValueOverloadedMethod1Method(info); 8118 deprecateAsSameValueMeasureAsSameValueOverloadedMethod1Method(info);
7691 return; 8119 return;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
7756 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8184 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7757 } 8185 }
7758 8186
7759 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) 8187 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info)
7760 { 8188 {
7761 if (UNLIKELY(info.Length() < 1)) { 8189 if (UNLIKELY(info.Length() < 1)) {
7762 throwArityTypeErrorForMethod("perWorldBindingsVoidMethodTestInterfaceEmp tyArg", "TestObject", 1, info.Length(), info.GetIsolate()); 8190 throwArityTypeErrorForMethod("perWorldBindingsVoidMethodTestInterfaceEmp tyArg", "TestObject", 1, info.Length(), info.GetIsolate());
7763 return; 8191 return;
7764 } 8192 }
7765 TestObject* impl = V8TestObject::toNative(info.Holder()); 8193 TestObject* impl = V8TestObject::toNative(info.Holder());
7766 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 8194 TestInterfaceEmpty* testInterfaceEmptyArg;
8195 {
8196 v8::TryCatch block;
8197 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0]));
8198 }
7767 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg) ; 8199 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg) ;
7768 } 8200 }
7769 8201
7770 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 8202 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
7771 { 8203 {
7772 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8204 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7773 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod( info); 8205 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod( info);
7774 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8206 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7775 } 8207 }
7776 8208
7777 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(co nst v8::FunctionCallbackInfo<v8::Value>& info) 8209 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(co nst v8::FunctionCallbackInfo<v8::Value>& info)
7778 { 8210 {
7779 if (UNLIKELY(info.Length() < 1)) { 8211 if (UNLIKELY(info.Length() < 1)) {
7780 throwArityTypeErrorForMethod("perWorldBindingsVoidMethodTestInterfaceEmp tyArg", "TestObject", 1, info.Length(), info.GetIsolate()); 8212 throwArityTypeErrorForMethod("perWorldBindingsVoidMethodTestInterfaceEmp tyArg", "TestObject", 1, info.Length(), info.GetIsolate());
7781 return; 8213 return;
7782 } 8214 }
7783 TestObject* impl = V8TestObject::toNative(info.Holder()); 8215 TestObject* impl = V8TestObject::toNative(info.Holder());
7784 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 8216 TestInterfaceEmpty* testInterfaceEmptyArg;
8217 {
8218 v8::TryCatch block;
8219 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0]));
8220 }
7785 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg) ; 8221 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg) ;
7786 } 8222 }
7787 8223
7788 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMain World(const v8::FunctionCallbackInfo<v8::Value>& info) 8224 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMain World(const v8::FunctionCallbackInfo<v8::Value>& info)
7789 { 8225 {
7790 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8226 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7791 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodF orMainWorld(info); 8227 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodF orMainWorld(info);
7792 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8228 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7793 } 8229 }
7794 8230
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
7889 { 8325 {
7890 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8326 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7891 TestObjectV8Internal::raisesExceptionStringMethodMethod(info); 8327 TestObjectV8Internal::raisesExceptionStringMethodMethod(info);
7892 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8328 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7893 } 8329 }
7894 8330
7895 static void raisesExceptionVoidMethodOptionalLongArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) 8331 static void raisesExceptionVoidMethodOptionalLongArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info)
7896 { 8332 {
7897 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep tionVoidMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 8333 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep tionVoidMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
7898 TestObject* impl = V8TestObject::toNative(info.Holder()); 8334 TestObject* impl = V8TestObject::toNative(info.Holder());
7899 if (UNLIKELY(info.Length() <= 0)) { 8335 int optionalLongArg;
7900 impl->raisesExceptionVoidMethodOptionalLongArg(exceptionState); 8336 {
7901 if (exceptionState.throwIfNeeded()) 8337 v8::TryCatch block;
8338 if (UNLIKELY(info.Length() <= 0)) {
8339 impl->raisesExceptionVoidMethodOptionalLongArg(exceptionState);
8340 if (exceptionState.throwIfNeeded())
8341 return;
7902 return; 8342 return;
7903 return; 8343 }
8344 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState);
7904 } 8345 }
7905 TONATIVE_VOID_EXCEPTIONSTATE(int, optionalLongArg, toInt32(info[0], exceptio nState), exceptionState);
7906 impl->raisesExceptionVoidMethodOptionalLongArg(optionalLongArg, exceptionSta te); 8346 impl->raisesExceptionVoidMethodOptionalLongArg(optionalLongArg, exceptionSta te);
7907 if (exceptionState.throwIfNeeded()) 8347 if (exceptionState.throwIfNeeded())
7908 return; 8348 return;
7909 } 8349 }
7910 8350
7911 static void raisesExceptionVoidMethodOptionalLongArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 8351 static void raisesExceptionVoidMethodOptionalLongArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
7912 { 8352 {
7913 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8353 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7914 TestObjectV8Internal::raisesExceptionVoidMethodOptionalLongArgMethod(info); 8354 TestObjectV8Internal::raisesExceptionVoidMethodOptionalLongArgMethod(info);
7915 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8355 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7916 } 8356 }
7917 8357
7918 static void raisesExceptionVoidMethodTestCallbackInterfaceArgMethod(const v8::Fu nctionCallbackInfo<v8::Value>& info) 8358 static void raisesExceptionVoidMethodTestCallbackInterfaceArgMethod(const v8::Fu nctionCallbackInfo<v8::Value>& info)
7919 { 8359 {
7920 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep tionVoidMethodTestCallbackInterfaceArg", "TestObject", info.Holder(), info.GetIs olate()); 8360 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep tionVoidMethodTestCallbackInterfaceArg", "TestObject", info.Holder(), info.GetIs olate());
7921 if (UNLIKELY(info.Length() < 1)) { 8361 if (UNLIKELY(info.Length() < 1)) {
7922 throwArityTypeError(exceptionState, 1, info.Length()); 8362 throwArityTypeError(exceptionState, 1, info.Length());
7923 return; 8363 return;
7924 } 8364 }
7925 TestObject* impl = V8TestObject::toNative(info.Holder()); 8365 TestObject* impl = V8TestObject::toNative(info.Holder());
7926 if (info.Length() <= 0 || !info[0]->IsFunction()) { 8366 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg;
7927 exceptionState.throwTypeError("The callback provided as parameter 1 is n ot a function."); 8367 {
7928 exceptionState.throwIfNeeded(); 8368 if (info.Length() <= 0 || !info[0]->IsFunction()) {
7929 return; 8369 exceptionState.throwTypeError("The callback provided as parameter 1 is not a function.");
8370 exceptionState.throwIfNeeded();
8371 return;
8372 }
8373 testCallbackInterfaceArg = V8TestCallbackInterface::create(v8::Handle<v8 ::Function>::Cast(info[0]), currentExecutionContext(info.GetIsolate()));
7930 } 8374 }
7931 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = V8TestCallbackInter face::create(v8::Handle<v8::Function>::Cast(info[0]), currentExecutionContext(in fo.GetIsolate()));
7932 impl->raisesExceptionVoidMethodTestCallbackInterfaceArg(testCallbackInterfac eArg.release(), exceptionState); 8375 impl->raisesExceptionVoidMethodTestCallbackInterfaceArg(testCallbackInterfac eArg.release(), exceptionState);
7933 if (exceptionState.throwIfNeeded()) 8376 if (exceptionState.throwIfNeeded())
7934 return; 8377 return;
7935 } 8378 }
7936 8379
7937 static void raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback(cons t v8::FunctionCallbackInfo<v8::Value>& info) 8380 static void raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback(cons t v8::FunctionCallbackInfo<v8::Value>& info)
7938 { 8381 {
7939 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8382 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7940 TestObjectV8Internal::raisesExceptionVoidMethodTestCallbackInterfaceArgMetho d(info); 8383 TestObjectV8Internal::raisesExceptionVoidMethodTestCallbackInterfaceArgMetho d(info);
7941 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8384 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7942 } 8385 }
7943 8386
7944 static void raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethod(cons t v8::FunctionCallbackInfo<v8::Value>& info) 8387 static void raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethod(cons t v8::FunctionCallbackInfo<v8::Value>& info)
7945 { 8388 {
7946 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep tionVoidMethodOptionalTestCallbackInterfaceArg", "TestObject", info.Holder(), in fo.GetIsolate()); 8389 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep tionVoidMethodOptionalTestCallbackInterfaceArg", "TestObject", info.Holder(), in fo.GetIsolate());
7947 TestObject* impl = V8TestObject::toNative(info.Holder()); 8390 TestObject* impl = V8TestObject::toNative(info.Holder());
7948 OwnPtr<TestCallbackInterface> optionalTestCallbackInterfaceArg; 8391 OwnPtr<TestCallbackInterface> optionalTestCallbackInterfaceArg;
7949 if (info.Length() > 0 && !isUndefinedOrNull(info[0])) { 8392 {
7950 if (!info[0]->IsFunction()) { 8393 if (info.Length() > 0 && !isUndefinedOrNull(info[0])) {
7951 exceptionState.throwTypeError("The callback provided as parameter 1 is not a function."); 8394 if (!info[0]->IsFunction()) {
7952 exceptionState.throwIfNeeded(); 8395 exceptionState.throwTypeError("The callback provided as paramete r 1 is not a function.");
7953 return; 8396 exceptionState.throwIfNeeded();
8397 return;
8398 }
8399 optionalTestCallbackInterfaceArg = V8TestCallbackInterface::create(v 8::Handle<v8::Function>::Cast(info[0]), currentExecutionContext(info.GetIsolate( )));
7954 } 8400 }
7955 optionalTestCallbackInterfaceArg = V8TestCallbackInterface::create(v8::H andle<v8::Function>::Cast(info[0]), currentExecutionContext(info.GetIsolate()));
7956 } 8401 }
7957 impl->raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg(optionalTest CallbackInterfaceArg.release(), exceptionState); 8402 impl->raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg(optionalTest CallbackInterfaceArg.release(), exceptionState);
7958 if (exceptionState.throwIfNeeded()) 8403 if (exceptionState.throwIfNeeded())
7959 return; 8404 return;
7960 } 8405 }
7961 8406
7962 static void raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCallb ack(const v8::FunctionCallbackInfo<v8::Value>& info) 8407 static void raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCallb ack(const v8::FunctionCallbackInfo<v8::Value>& info)
7963 { 8408 {
7964 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8409 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7965 TestObjectV8Internal::raisesExceptionVoidMethodOptionalTestCallbackInterface ArgMethod(info); 8410 TestObjectV8Internal::raisesExceptionVoidMethodOptionalTestCallbackInterface ArgMethod(info);
(...skipping 18 matching lines...) Expand all
7984 } 8429 }
7985 8430
7986 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 8431 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
7987 { 8432 {
7988 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe cutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), inf o.GetIsolate()); 8433 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe cutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), inf o.GetIsolate());
7989 if (UNLIKELY(info.Length() < 1)) { 8434 if (UNLIKELY(info.Length() < 1)) {
7990 throwArityTypeError(exceptionState, 1, info.Length()); 8435 throwArityTypeError(exceptionState, 1, info.Length());
7991 return; 8436 return;
7992 } 8437 }
7993 TestObject* impl = V8TestObject::toNative(info.Holder()); 8438 TestObject* impl = V8TestObject::toNative(info.Holder());
7994 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState), exceptionState); 8439 int longArg;
8440 {
8441 v8::TryCatch block;
8442 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
8443 }
7995 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ; 8444 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ;
7996 impl->callWithExecutionContextRaisesExceptionVoidMethodLongArg(scriptContext , longArg, exceptionState); 8445 impl->callWithExecutionContextRaisesExceptionVoidMethodLongArg(scriptContext , longArg, exceptionState);
7997 if (exceptionState.throwIfNeeded()) 8446 if (exceptionState.throwIfNeeded())
7998 return; 8447 return;
7999 } 8448 }
8000 8449
8001 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info) 8450 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info)
8002 { 8451 {
8003 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8452 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8004 TestObjectV8Internal::callWithExecutionContextRaisesExceptionVoidMethodLongA rgMethod(info); 8453 TestObjectV8Internal::callWithExecutionContextRaisesExceptionVoidMethodLongA rgMethod(info);
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
8096 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8545 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
8097 } 8546 }
8098 8547
8099 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethod(const v8: :FunctionCallbackInfo<v8::Value>& info) 8548 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethod(const v8: :FunctionCallbackInfo<v8::Value>& info)
8100 { 8549 {
8101 if (UNLIKELY(info.Length() < 1)) { 8550 if (UNLIKELY(info.Length() < 1)) {
8102 throwArityTypeErrorForMethod("typeCheckingInterfaceVoidMethodTestInterfa ceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate()); 8551 throwArityTypeErrorForMethod("typeCheckingInterfaceVoidMethodTestInterfa ceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate());
8103 return; 8552 return;
8104 } 8553 }
8105 TestObject* impl = V8TestObject::toNative(info.Holder()); 8554 TestObject* impl = V8TestObject::toNative(info.Holder());
8106 if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], info.Ge tIsolate())) { 8555 TestInterfaceEmpty* testInterfaceEmptyArg;
8107 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingInterface VoidMethodTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'Tes tInterfaceEmpty'."), info.GetIsolate()); 8556 {
8108 return; 8557 v8::TryCatch block;
8558 if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], inf o.GetIsolate())) {
8559 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingInter faceVoidMethodTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestInterfaceEmpty'."), info.GetIsolate());
8560 block.ReThrow();
8561 return;
8562 }
8563 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0]));
8109 } 8564 }
8110 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp ty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
8111 impl->typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg(testInterfaceEmpt yArg); 8565 impl->typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg(testInterfaceEmpt yArg);
8112 } 8566 }
8113 8567
8114 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info) 8568 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info)
8115 { 8569 {
8116 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8570 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8117 TestObjectV8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMe thod(info); 8571 TestObjectV8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMe thod(info);
8118 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8572 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
8119 } 8573 }
8120 8574
8121 static void typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethod(cons t v8::FunctionCallbackInfo<v8::Value>& info) 8575 static void typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethod(cons t v8::FunctionCallbackInfo<v8::Value>& info)
8122 { 8576 {
8123 if (UNLIKELY(info.Length() < 1)) { 8577 if (UNLIKELY(info.Length() < 1)) {
8124 throwArityTypeErrorForMethod("typeCheckingNullableVoidMethodTestInterfac eEmptyOrNullArg", "TestObject", 1, info.Length(), info.GetIsolate()); 8578 throwArityTypeErrorForMethod("typeCheckingNullableVoidMethodTestInterfac eEmptyOrNullArg", "TestObject", 1, info.Length(), info.GetIsolate());
8125 return; 8579 return;
8126 } 8580 }
8127 TestObject* impl = V8TestObject::toNative(info.Holder()); 8581 TestObject* impl = V8TestObject::toNative(info.Holder());
8128 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyOrNullArg, V8TestInterf aceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 8582 TestInterfaceEmpty* testInterfaceEmptyOrNullArg;
8583 {
8584 v8::TryCatch block;
8585 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceEmpty ::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
8586 }
8129 impl->typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArg(testInterfac eEmptyOrNullArg); 8587 impl->typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArg(testInterfac eEmptyOrNullArg);
8130 } 8588 }
8131 8589
8132 static void typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethodCallb ack(const v8::FunctionCallbackInfo<v8::Value>& info) 8590 static void typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethodCallb ack(const v8::FunctionCallbackInfo<v8::Value>& info)
8133 { 8591 {
8134 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8592 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8135 TestObjectV8Internal::typeCheckingNullableVoidMethodTestInterfaceEmptyOrNull ArgMethod(info); 8593 TestObjectV8Internal::typeCheckingNullableVoidMethodTestInterfaceEmptyOrNull ArgMethod(info);
8136 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8594 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
8137 } 8595 }
8138 8596
8139 static void typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArgMe thod(const v8::FunctionCallbackInfo<v8::Value>& info) 8597 static void typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArgMe thod(const v8::FunctionCallbackInfo<v8::Value>& info)
8140 { 8598 {
8141 if (UNLIKELY(info.Length() < 1)) { 8599 if (UNLIKELY(info.Length() < 1)) {
8142 throwArityTypeErrorForMethod("typeCheckingInterfaceNullableVoidMethodTes tInterfaceEmptyOrNullArg", "TestObject", 1, info.Length(), info.GetIsolate()); 8600 throwArityTypeErrorForMethod("typeCheckingInterfaceNullableVoidMethodTes tInterfaceEmptyOrNullArg", "TestObject", 1, info.Length(), info.GetIsolate());
8143 return; 8601 return;
8144 } 8602 }
8145 TestObject* impl = V8TestObject::toNative(info.Holder()); 8603 TestObject* impl = V8TestObject::toNative(info.Holder());
8146 if (info.Length() > 0 && !isUndefinedOrNull(info[0]) && !V8TestInterfaceEmpt y::hasInstance(info[0], info.GetIsolate())) { 8604 TestInterfaceEmpty* testInterfaceEmptyOrNullArg;
8147 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingInterface NullableVoidMethodTestInterfaceEmptyOrNullArg", "TestObject", "parameter 1 is no t of type 'TestInterfaceEmpty'."), info.GetIsolate()); 8605 {
8148 return; 8606 v8::TryCatch block;
8607 if (info.Length() > 0 && !isUndefinedOrNull(info[0]) && !V8TestInterface Empty::hasInstance(info[0], info.GetIsolate())) {
8608 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingInter faceNullableVoidMethodTestInterfaceEmptyOrNullArg", "TestObject", "parameter 1 i s not of type 'TestInterfaceEmpty'."), info.GetIsolate());
8609 block.ReThrow();
8610 return;
8611 }
8612 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceEmpty ::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
8149 } 8613 }
8150 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyOrNullArg, V8TestInterf aceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
8151 impl->typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArg(tes tInterfaceEmptyOrNullArg); 8614 impl->typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArg(tes tInterfaceEmptyOrNullArg);
8152 } 8615 }
8153 8616
8154 static void typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArgMe thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 8617 static void typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArgMe thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
8155 { 8618 {
8156 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8619 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8157 TestObjectV8Internal::typeCheckingInterfaceNullableVoidMethodTestInterfaceEm ptyOrNullArgMethod(info); 8620 TestObjectV8Internal::typeCheckingInterfaceNullableVoidMethodTestInterfaceEm ptyOrNullArgMethod(info);
8158 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8621 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
8159 } 8622 }
8160 8623
8161 static void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethod(const v8:: FunctionCallbackInfo<v8::Value>& info) 8624 static void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethod(const v8:: FunctionCallbackInfo<v8::Value>& info)
8162 { 8625 {
8163 if (UNLIKELY(info.Length() < 2)) { 8626 if (UNLIKELY(info.Length() < 2)) {
8164 throwArityTypeErrorForMethod("typeCheckingUnrestrictedVoidMethodFloatArg DoubleArg", "TestObject", 2, info.Length(), info.GetIsolate()); 8627 throwArityTypeErrorForMethod("typeCheckingUnrestrictedVoidMethodFloatArg DoubleArg", "TestObject", 2, info.Length(), info.GetIsolate());
8165 return; 8628 return;
8166 } 8629 }
8167 TestObject* impl = V8TestObject::toNative(info.Holder()); 8630 TestObject* impl = V8TestObject::toNative(info.Holder());
8168 TONATIVE_VOID(float, floatArg, static_cast<float>(info[0]->NumberValue())); 8631 float floatArg;
8169 if (!std::isfinite(floatArg)) { 8632 double doubleArg;
8170 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingUnrestric tedVoidMethodFloatArgDoubleArg", "TestObject", "float parameter 1 is non-finite. "), info.GetIsolate()); 8633 {
8171 return; 8634 v8::TryCatch block;
8172 } 8635 TONATIVE_VOID_INTERNAL(floatArg, static_cast<float>(info[0]->NumberValue ()));
8173 TONATIVE_VOID(double, doubleArg, static_cast<double>(info[1]->NumberValue()) ); 8636 if (!std::isfinite(floatArg)) {
8174 if (!std::isfinite(doubleArg)) { 8637 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingUnres trictedVoidMethodFloatArgDoubleArg", "TestObject", "float parameter 1 is non-fin ite."), info.GetIsolate());
8175 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingUnrestric tedVoidMethodFloatArgDoubleArg", "TestObject", "double parameter 2 is non-finite ."), info.GetIsolate()); 8638 block.ReThrow();
8176 return; 8639 return;
8640 }
8641 TONATIVE_VOID_INTERNAL(doubleArg, static_cast<double>(info[1]->NumberVal ue()));
8642 if (!std::isfinite(doubleArg)) {
8643 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingUnres trictedVoidMethodFloatArgDoubleArg", "TestObject", "double parameter 2 is non-fi nite."), info.GetIsolate());
8644 block.ReThrow();
8645 return;
8646 }
8177 } 8647 }
8178 impl->typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg(floatArg, doubleAr g); 8648 impl->typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg(floatArg, doubleAr g);
8179 } 8649 }
8180 8650
8181 static void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethodCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info) 8651 static void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethodCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info)
8182 { 8652 {
8183 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8653 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8184 TestObjectV8Internal::typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMet hod(info); 8654 TestObjectV8Internal::typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMet hod(info);
8185 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8655 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
8186 } 8656 }
(...skipping 11 matching lines...) Expand all
8198 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8668 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
8199 } 8669 }
8200 8670
8201 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethod(const v8::F unctionCallbackInfo<v8::Value>& info) 8671 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethod(const v8::F unctionCallbackInfo<v8::Value>& info)
8202 { 8672 {
8203 if (UNLIKELY(info.Length() < 1)) { 8673 if (UNLIKELY(info.Length() < 1)) {
8204 throwArityTypeErrorForMethod("voidMethodTestInterfaceGarbageCollectedSeq uenceArg", "TestObject", 1, info.Length(), info.GetIsolate()); 8674 throwArityTypeErrorForMethod("voidMethodTestInterfaceGarbageCollectedSeq uenceArg", "TestObject", 1, info.Length(), info.GetIsolate());
8205 return; 8675 return;
8206 } 8676 }
8207 TestObject* impl = V8TestObject::toNative(info.Holder()); 8677 TestObject* impl = V8TestObject::toNative(info.Holder());
8208 TONATIVE_VOID(HeapVector<Member<TestInterfaceGarbageCollected> >, testInterf aceGarbageCollectedSequenceArg, (toMemberNativeArray<TestInterfaceGarbageCollect ed, V8TestInterfaceGarbageCollected>(info[0], 1, info.GetIsolate()))); 8678 HeapVector<Member<TestInterfaceGarbageCollected> > testInterfaceGarbageColle ctedSequenceArg;
8679 {
8680 v8::TryCatch block;
8681 TONATIVE_VOID_INTERNAL(testInterfaceGarbageCollectedSequenceArg, (toMemb erNativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageCollected>(in fo[0], 1, info.GetIsolate())));
8682 }
8209 impl->voidMethodTestInterfaceGarbageCollectedSequenceArg(testInterfaceGarbag eCollectedSequenceArg); 8683 impl->voidMethodTestInterfaceGarbageCollectedSequenceArg(testInterfaceGarbag eCollectedSequenceArg);
8210 } 8684 }
8211 8685
8212 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback(con st v8::FunctionCallbackInfo<v8::Value>& info) 8686 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback(con st v8::FunctionCallbackInfo<v8::Value>& info)
8213 { 8687 {
8214 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8688 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8215 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedSequenceArgMeth od(info); 8689 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedSequenceArgMeth od(info);
8216 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8690 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
8217 } 8691 }
8218 8692
8219 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) 8693 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info)
8220 { 8694 {
8221 if (UNLIKELY(info.Length() < 1)) { 8695 if (UNLIKELY(info.Length() < 1)) {
8222 throwArityTypeErrorForMethod("voidMethodTestInterfaceGarbageCollectedArr ayArg", "TestObject", 1, info.Length(), info.GetIsolate()); 8696 throwArityTypeErrorForMethod("voidMethodTestInterfaceGarbageCollectedArr ayArg", "TestObject", 1, info.Length(), info.GetIsolate());
8223 return; 8697 return;
8224 } 8698 }
8225 TestObject* impl = V8TestObject::toNative(info.Holder()); 8699 TestObject* impl = V8TestObject::toNative(info.Holder());
8226 TONATIVE_VOID(HeapVector<Member<TestInterfaceGarbageCollected> >, testInterf aceGarbageCollectedArrayArg, (toMemberNativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageCollected>(info[0], 1, info.GetIsolate()))); 8700 HeapVector<Member<TestInterfaceGarbageCollected> > testInterfaceGarbageColle ctedArrayArg;
8701 {
8702 v8::TryCatch block;
8703 TONATIVE_VOID_INTERNAL(testInterfaceGarbageCollectedArrayArg, (toMemberN ativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageCollected>(info[ 0], 1, info.GetIsolate())));
8704 }
8227 impl->voidMethodTestInterfaceGarbageCollectedArrayArg(testInterfaceGarbageCo llectedArrayArg); 8705 impl->voidMethodTestInterfaceGarbageCollectedArrayArg(testInterfaceGarbageCo llectedArrayArg);
8228 } 8706 }
8229 8707
8230 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 8708 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
8231 { 8709 {
8232 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8710 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8233 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedArrayArgMethod( info); 8711 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedArrayArgMethod( info);
8234 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8712 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
8235 } 8713 }
8236 8714
8237 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 8715 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
8238 { 8716 {
8239 if (UNLIKELY(info.Length() < 1)) { 8717 if (UNLIKELY(info.Length() < 1)) {
8240 throwArityTypeErrorForMethod("voidMethodTestInterfaceWillBeGarbageCollec tedSequenceArg", "TestObject", 1, info.Length(), info.GetIsolate()); 8718 throwArityTypeErrorForMethod("voidMethodTestInterfaceWillBeGarbageCollec tedSequenceArg", "TestObject", 1, info.Length(), info.GetIsolate());
8241 return; 8719 return;
8242 } 8720 }
8243 TestObject* impl = V8TestObject::toNative(info.Holder()); 8721 TestObject* impl = V8TestObject::toNative(info.Holder());
8244 TONATIVE_VOID(WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbage Collected> >, testInterfaceWillBeGarbageCollectedSequenceArg, (toRefPtrWillBeMem berNativeArray<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbage Collected>(info[0], 1, info.GetIsolate()))); 8722 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > t estInterfaceWillBeGarbageCollectedSequenceArg;
8723 {
8724 v8::TryCatch block;
8725 TONATIVE_VOID_INTERNAL(testInterfaceWillBeGarbageCollectedSequenceArg, ( toRefPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollected, V8TestInter faceWillBeGarbageCollected>(info[0], 1, info.GetIsolate())));
8726 }
8245 impl->voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(testInterface WillBeGarbageCollectedSequenceArg); 8727 impl->voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(testInterface WillBeGarbageCollectedSequenceArg);
8246 } 8728 }
8247 8729
8248 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info) 8730 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info)
8249 { 8731 {
8250 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8732 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8251 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceA rgMethod(info); 8733 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceA rgMethod(info);
8252 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8734 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
8253 } 8735 }
8254 8736
8255 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info) 8737 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info)
8256 { 8738 {
8257 if (UNLIKELY(info.Length() < 1)) { 8739 if (UNLIKELY(info.Length() < 1)) {
8258 throwArityTypeErrorForMethod("voidMethodTestInterfaceWillBeGarbageCollec tedArrayArg", "TestObject", 1, info.Length(), info.GetIsolate()); 8740 throwArityTypeErrorForMethod("voidMethodTestInterfaceWillBeGarbageCollec tedArrayArg", "TestObject", 1, info.Length(), info.GetIsolate());
8259 return; 8741 return;
8260 } 8742 }
8261 TestObject* impl = V8TestObject::toNative(info.Holder()); 8743 TestObject* impl = V8TestObject::toNative(info.Holder());
8262 TONATIVE_VOID(WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbage Collected> >, testInterfaceWillBeGarbageCollectedArrayArg, (toRefPtrWillBeMember NativeArray<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageCol lected>(info[0], 1, info.GetIsolate()))); 8744 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > t estInterfaceWillBeGarbageCollectedArrayArg;
8745 {
8746 v8::TryCatch block;
8747 TONATIVE_VOID_INTERNAL(testInterfaceWillBeGarbageCollectedArrayArg, (toR efPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollected, V8TestInterfac eWillBeGarbageCollected>(info[0], 1, info.GetIsolate())));
8748 }
8263 impl->voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(testInterfaceWil lBeGarbageCollectedArrayArg); 8749 impl->voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(testInterfaceWil lBeGarbageCollectedArrayArg);
8264 } 8750 }
8265 8751
8266 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info) 8752 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info)
8267 { 8753 {
8268 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8754 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8269 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgM ethod(info); 8755 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgM ethod(info);
8270 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8756 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
8271 } 8757 }
8272 8758
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
8777 fromInternalPointer(object)->deref(); 9263 fromInternalPointer(object)->deref();
8778 } 9264 }
8779 9265
8780 template<> 9266 template<>
8781 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) 9267 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate)
8782 { 9268 {
8783 return toV8(impl, creationContext, isolate); 9269 return toV8(impl, creationContext, isolate);
8784 } 9270 }
8785 9271
8786 } // namespace WebCore 9272 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698