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

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

Issue 304223007: Use auto-rethrowing v8::TryCatch variant (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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 4783 matching lines...) Expand 10 before | Expand all | Expand 10 after
4794 4794
4795 static void voidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 4795 static void voidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
4796 { 4796 {
4797 if (UNLIKELY(info.Length() < 1)) { 4797 if (UNLIKELY(info.Length() < 1)) {
4798 throwMinimumArityTypeErrorForMethod("voidMethodDateArg", "TestObject", 1 , info.Length(), info.GetIsolate()); 4798 throwMinimumArityTypeErrorForMethod("voidMethodDateArg", "TestObject", 1 , info.Length(), info.GetIsolate());
4799 return; 4799 return;
4800 } 4800 }
4801 TestObject* impl = V8TestObject::toNative(info.Holder()); 4801 TestObject* impl = V8TestObject::toNative(info.Holder());
4802 double dateArg; 4802 double dateArg;
4803 { 4803 {
4804 v8::TryCatch block; 4804 V8TryPropagate block;
4805 TONATIVE_VOID_INTERNAL(dateArg, toCoreDate(info[0])); 4805 TONATIVE_VOID_INTERNAL(dateArg, toCoreDate(info[0]));
4806 } 4806 }
4807 impl->voidMethodDateArg(dateArg); 4807 impl->voidMethodDateArg(dateArg);
4808 } 4808 }
4809 4809
4810 static void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 4810 static void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
4811 { 4811 {
4812 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4812 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4813 TestObjectV8Internal::voidMethodDateArgMethod(info); 4813 TestObjectV8Internal::voidMethodDateArgMethod(info);
4814 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4814 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4815 } 4815 }
4816 4816
4817 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 4817 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
4818 { 4818 {
4819 if (UNLIKELY(info.Length() < 1)) { 4819 if (UNLIKELY(info.Length() < 1)) {
4820 throwMinimumArityTypeErrorForMethod("voidMethodStringArg", "TestObject", 1, info.Length(), info.GetIsolate()); 4820 throwMinimumArityTypeErrorForMethod("voidMethodStringArg", "TestObject", 1, info.Length(), info.GetIsolate());
4821 return; 4821 return;
4822 } 4822 }
4823 TestObject* impl = V8TestObject::toNative(info.Holder()); 4823 TestObject* impl = V8TestObject::toNative(info.Holder());
4824 V8StringResource<> stringArg; 4824 V8StringResource<> stringArg;
4825 { 4825 {
4826 TOSTRING_VOID_INTERNAL_NOTRYCATCH(stringArg, info[0]); 4826 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
4827 } 4827 }
4828 impl->voidMethodStringArg(stringArg); 4828 impl->voidMethodStringArg(stringArg);
4829 } 4829 }
4830 4830
4831 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 4831 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
4832 { 4832 {
4833 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4833 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4834 TestObjectV8Internal::voidMethodStringArgMethod(info); 4834 TestObjectV8Internal::voidMethodStringArgMethod(info);
4835 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4835 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4836 } 4836 }
4837 4837
4838 static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 4838 static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
4839 { 4839 {
4840 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD OMTimeStampArg", "TestObject", info.Holder(), info.GetIsolate()); 4840 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD OMTimeStampArg", "TestObject", info.Holder(), info.GetIsolate());
4841 if (UNLIKELY(info.Length() < 1)) { 4841 if (UNLIKELY(info.Length() < 1)) {
4842 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 4842 throwMinimumArityTypeError(exceptionState, 1, info.Length());
4843 return; 4843 return;
4844 } 4844 }
4845 TestObject* impl = V8TestObject::toNative(info.Holder()); 4845 TestObject* impl = V8TestObject::toNative(info.Holder());
4846 unsigned long long domTimeStampArg; 4846 unsigned long long domTimeStampArg;
4847 { 4847 {
4848 v8::TryCatch block; 4848 V8TryPropagate block;
4849 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(domTimeStampArg, toUInt64(info[0], exceptionState), exceptionState); 4849 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(domTimeStampArg, toUInt64(info[0], exceptionState), exceptionState);
4850 } 4850 }
4851 impl->voidMethodDOMTimeStampArg(domTimeStampArg); 4851 impl->voidMethodDOMTimeStampArg(domTimeStampArg);
4852 } 4852 }
4853 4853
4854 static void voidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 4854 static void voidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
4855 { 4855 {
4856 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4856 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4857 TestObjectV8Internal::voidMethodDOMTimeStampArgMethod(info); 4857 TestObjectV8Internal::voidMethodDOMTimeStampArgMethod(info);
4858 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4858 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4859 } 4859 }
4860 4860
4861 static void voidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 4861 static void voidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
4862 { 4862 {
4863 if (UNLIKELY(info.Length() < 1)) { 4863 if (UNLIKELY(info.Length() < 1)) {
4864 throwMinimumArityTypeErrorForMethod("voidMethodBooleanArg", "TestObject" , 1, info.Length(), info.GetIsolate()); 4864 throwMinimumArityTypeErrorForMethod("voidMethodBooleanArg", "TestObject" , 1, info.Length(), info.GetIsolate());
4865 return; 4865 return;
4866 } 4866 }
4867 TestObject* impl = V8TestObject::toNative(info.Holder()); 4867 TestObject* impl = V8TestObject::toNative(info.Holder());
4868 bool booleanArg; 4868 bool booleanArg;
4869 { 4869 {
4870 v8::TryCatch block; 4870 V8TryPropagate block;
4871 TONATIVE_VOID_INTERNAL(booleanArg, info[0]->BooleanValue()); 4871 TONATIVE_VOID_INTERNAL(booleanArg, info[0]->BooleanValue());
4872 } 4872 }
4873 impl->voidMethodBooleanArg(booleanArg); 4873 impl->voidMethodBooleanArg(booleanArg);
4874 } 4874 }
4875 4875
4876 static void voidMethodBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 4876 static void voidMethodBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
4877 { 4877 {
4878 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4878 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4879 TestObjectV8Internal::voidMethodBooleanArgMethod(info); 4879 TestObjectV8Internal::voidMethodBooleanArgMethod(info);
4880 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4880 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4881 } 4881 }
4882 4882
4883 static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 4883 static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
4884 { 4884 {
4885 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB yteArg", "TestObject", info.Holder(), info.GetIsolate()); 4885 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB yteArg", "TestObject", info.Holder(), info.GetIsolate());
4886 if (UNLIKELY(info.Length() < 1)) { 4886 if (UNLIKELY(info.Length() < 1)) {
4887 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 4887 throwMinimumArityTypeError(exceptionState, 1, info.Length());
4888 return; 4888 return;
4889 } 4889 }
4890 TestObject* impl = V8TestObject::toNative(info.Holder()); 4890 TestObject* impl = V8TestObject::toNative(info.Holder());
4891 int byteArg; 4891 int byteArg;
4892 { 4892 {
4893 v8::TryCatch block; 4893 V8TryPropagate block;
4894 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(byteArg, toInt8(info[0], exception State), exceptionState); 4894 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(byteArg, toInt8(info[0], exception State), exceptionState);
4895 } 4895 }
4896 impl->voidMethodByteArg(byteArg); 4896 impl->voidMethodByteArg(byteArg);
4897 } 4897 }
4898 4898
4899 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 4899 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
4900 { 4900 {
4901 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4901 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4902 TestObjectV8Internal::voidMethodByteArgMethod(info); 4902 TestObjectV8Internal::voidMethodByteArgMethod(info);
4903 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4903 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4904 } 4904 }
4905 4905
4906 static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 4906 static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
4907 { 4907 {
4908 if (UNLIKELY(info.Length() < 1)) { 4908 if (UNLIKELY(info.Length() < 1)) {
4909 throwMinimumArityTypeErrorForMethod("voidMethodDoubleArg", "TestObject", 1, info.Length(), info.GetIsolate()); 4909 throwMinimumArityTypeErrorForMethod("voidMethodDoubleArg", "TestObject", 1, info.Length(), info.GetIsolate());
4910 return; 4910 return;
4911 } 4911 }
4912 TestObject* impl = V8TestObject::toNative(info.Holder()); 4912 TestObject* impl = V8TestObject::toNative(info.Holder());
4913 double doubleArg; 4913 double doubleArg;
4914 { 4914 {
4915 v8::TryCatch block; 4915 V8TryPropagate block;
4916 TONATIVE_VOID_INTERNAL(doubleArg, static_cast<double>(info[0]->NumberVal ue())); 4916 TONATIVE_VOID_INTERNAL(doubleArg, static_cast<double>(info[0]->NumberVal ue()));
4917 } 4917 }
4918 impl->voidMethodDoubleArg(doubleArg); 4918 impl->voidMethodDoubleArg(doubleArg);
4919 } 4919 }
4920 4920
4921 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 4921 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
4922 { 4922 {
4923 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4923 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4924 TestObjectV8Internal::voidMethodDoubleArgMethod(info); 4924 TestObjectV8Internal::voidMethodDoubleArgMethod(info);
4925 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4925 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4926 } 4926 }
4927 4927
4928 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 4928 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
4929 { 4929 {
4930 if (UNLIKELY(info.Length() < 1)) { 4930 if (UNLIKELY(info.Length() < 1)) {
4931 throwMinimumArityTypeErrorForMethod("voidMethodFloatArg", "TestObject", 1, info.Length(), info.GetIsolate()); 4931 throwMinimumArityTypeErrorForMethod("voidMethodFloatArg", "TestObject", 1, info.Length(), info.GetIsolate());
4932 return; 4932 return;
4933 } 4933 }
4934 TestObject* impl = V8TestObject::toNative(info.Holder()); 4934 TestObject* impl = V8TestObject::toNative(info.Holder());
4935 float floatArg; 4935 float floatArg;
4936 { 4936 {
4937 v8::TryCatch block; 4937 V8TryPropagate block;
4938 TONATIVE_VOID_INTERNAL(floatArg, static_cast<float>(info[0]->NumberValue ())); 4938 TONATIVE_VOID_INTERNAL(floatArg, static_cast<float>(info[0]->NumberValue ()));
4939 } 4939 }
4940 impl->voidMethodFloatArg(floatArg); 4940 impl->voidMethodFloatArg(floatArg);
4941 } 4941 }
4942 4942
4943 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 4943 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
4944 { 4944 {
4945 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4945 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4946 TestObjectV8Internal::voidMethodFloatArgMethod(info); 4946 TestObjectV8Internal::voidMethodFloatArgMethod(info);
4947 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4947 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4948 } 4948 }
4949 4949
4950 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 4950 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
4951 { 4951 {
4952 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArg", "TestObject", info.Holder(), info.GetIsolate()); 4952 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArg", "TestObject", info.Holder(), info.GetIsolate());
4953 if (UNLIKELY(info.Length() < 1)) { 4953 if (UNLIKELY(info.Length() < 1)) {
4954 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 4954 throwMinimumArityTypeError(exceptionState, 1, info.Length());
4955 return; 4955 return;
4956 } 4956 }
4957 TestObject* impl = V8TestObject::toNative(info.Holder()); 4957 TestObject* impl = V8TestObject::toNative(info.Holder());
4958 int longArg; 4958 int longArg;
4959 { 4959 {
4960 v8::TryCatch block; 4960 V8TryPropagate block;
4961 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 4961 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
4962 } 4962 }
4963 impl->voidMethodLongArg(longArg); 4963 impl->voidMethodLongArg(longArg);
4964 } 4964 }
4965 4965
4966 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 4966 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
4967 { 4967 {
4968 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4968 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4969 TestObjectV8Internal::voidMethodLongArgMethod(info); 4969 TestObjectV8Internal::voidMethodLongArgMethod(info);
4970 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4970 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4971 } 4971 }
4972 4972
4973 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 4973 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
4974 { 4974 {
4975 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongLongArg", "TestObject", info.Holder(), info.GetIsolate()); 4975 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongLongArg", "TestObject", info.Holder(), info.GetIsolate());
4976 if (UNLIKELY(info.Length() < 1)) { 4976 if (UNLIKELY(info.Length() < 1)) {
4977 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 4977 throwMinimumArityTypeError(exceptionState, 1, info.Length());
4978 return; 4978 return;
4979 } 4979 }
4980 TestObject* impl = V8TestObject::toNative(info.Holder()); 4980 TestObject* impl = V8TestObject::toNative(info.Holder());
4981 long long longLongArg; 4981 long long longLongArg;
4982 { 4982 {
4983 v8::TryCatch block; 4983 V8TryPropagate block;
4984 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longLongArg, toInt64(info[0], exce ptionState), exceptionState); 4984 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longLongArg, toInt64(info[0], exce ptionState), exceptionState);
4985 } 4985 }
4986 impl->voidMethodLongLongArg(longLongArg); 4986 impl->voidMethodLongLongArg(longLongArg);
4987 } 4987 }
4988 4988
4989 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 4989 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
4990 { 4990 {
4991 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4991 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4992 TestObjectV8Internal::voidMethodLongLongArgMethod(info); 4992 TestObjectV8Internal::voidMethodLongLongArgMethod(info);
4993 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4993 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4994 } 4994 }
4995 4995
4996 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 4996 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
4997 { 4997 {
4998 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO ctetArg", "TestObject", info.Holder(), info.GetIsolate()); 4998 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO ctetArg", "TestObject", info.Holder(), info.GetIsolate());
4999 if (UNLIKELY(info.Length() < 1)) { 4999 if (UNLIKELY(info.Length() < 1)) {
5000 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 5000 throwMinimumArityTypeError(exceptionState, 1, info.Length());
5001 return; 5001 return;
5002 } 5002 }
5003 TestObject* impl = V8TestObject::toNative(info.Holder()); 5003 TestObject* impl = V8TestObject::toNative(info.Holder());
5004 unsigned octetArg; 5004 unsigned octetArg;
5005 { 5005 {
5006 v8::TryCatch block; 5006 V8TryPropagate block;
5007 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(octetArg, toUInt8(info[0], excepti onState), exceptionState); 5007 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(octetArg, toUInt8(info[0], excepti onState), exceptionState);
5008 } 5008 }
5009 impl->voidMethodOctetArg(octetArg); 5009 impl->voidMethodOctetArg(octetArg);
5010 } 5010 }
5011 5011
5012 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 5012 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
5013 { 5013 {
5014 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5014 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5015 TestObjectV8Internal::voidMethodOctetArgMethod(info); 5015 TestObjectV8Internal::voidMethodOctetArgMethod(info);
5016 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5016 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5017 } 5017 }
5018 5018
5019 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 5019 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
5020 { 5020 {
5021 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS hortArg", "TestObject", info.Holder(), info.GetIsolate()); 5021 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS hortArg", "TestObject", info.Holder(), info.GetIsolate());
5022 if (UNLIKELY(info.Length() < 1)) { 5022 if (UNLIKELY(info.Length() < 1)) {
5023 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 5023 throwMinimumArityTypeError(exceptionState, 1, info.Length());
5024 return; 5024 return;
5025 } 5025 }
5026 TestObject* impl = V8TestObject::toNative(info.Holder()); 5026 TestObject* impl = V8TestObject::toNative(info.Holder());
5027 int shortArg; 5027 int shortArg;
5028 { 5028 {
5029 v8::TryCatch block; 5029 V8TryPropagate block;
5030 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(shortArg, toInt16(info[0], excepti onState), exceptionState); 5030 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(shortArg, toInt16(info[0], excepti onState), exceptionState);
5031 } 5031 }
5032 impl->voidMethodShortArg(shortArg); 5032 impl->voidMethodShortArg(shortArg);
5033 } 5033 }
5034 5034
5035 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 5035 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
5036 { 5036 {
5037 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5037 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5038 TestObjectV8Internal::voidMethodShortArgMethod(info); 5038 TestObjectV8Internal::voidMethodShortArgMethod(info);
5039 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5039 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5040 } 5040 }
5041 5041
5042 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 5042 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
5043 { 5043 {
5044 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); 5044 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedLongArg", "TestObject", info.Holder(), info.GetIsolate());
5045 if (UNLIKELY(info.Length() < 1)) { 5045 if (UNLIKELY(info.Length() < 1)) {
5046 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 5046 throwMinimumArityTypeError(exceptionState, 1, info.Length());
5047 return; 5047 return;
5048 } 5048 }
5049 TestObject* impl = V8TestObject::toNative(info.Holder()); 5049 TestObject* impl = V8TestObject::toNative(info.Holder());
5050 unsigned unsignedLongArg; 5050 unsigned unsignedLongArg;
5051 { 5051 {
5052 v8::TryCatch block; 5052 V8TryPropagate block;
5053 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedLongArg, toUInt32(info[0], exceptionState), exceptionState); 5053 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedLongArg, toUInt32(info[0], exceptionState), exceptionState);
5054 } 5054 }
5055 impl->voidMethodUnsignedLongArg(unsignedLongArg); 5055 impl->voidMethodUnsignedLongArg(unsignedLongArg);
5056 } 5056 }
5057 5057
5058 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 5058 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
5059 { 5059 {
5060 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5060 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5061 TestObjectV8Internal::voidMethodUnsignedLongArgMethod(info); 5061 TestObjectV8Internal::voidMethodUnsignedLongArgMethod(info);
5062 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5062 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5063 } 5063 }
5064 5064
5065 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) 5065 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info)
5066 { 5066 {
5067 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedLongLongArg", "TestObject", info.Holder(), info.GetIsolate()); 5067 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedLongLongArg", "TestObject", info.Holder(), info.GetIsolate());
5068 if (UNLIKELY(info.Length() < 1)) { 5068 if (UNLIKELY(info.Length() < 1)) {
5069 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 5069 throwMinimumArityTypeError(exceptionState, 1, info.Length());
5070 return; 5070 return;
5071 } 5071 }
5072 TestObject* impl = V8TestObject::toNative(info.Holder()); 5072 TestObject* impl = V8TestObject::toNative(info.Holder());
5073 unsigned long long unsignedLongLongArg; 5073 unsigned long long unsignedLongLongArg;
5074 { 5074 {
5075 v8::TryCatch block; 5075 V8TryPropagate block;
5076 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedLongLongArg, toUInt64(info [0], exceptionState), exceptionState); 5076 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedLongLongArg, toUInt64(info [0], exceptionState), exceptionState);
5077 } 5077 }
5078 impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg); 5078 impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg);
5079 } 5079 }
5080 5080
5081 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 5081 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
5082 { 5082 {
5083 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5083 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5084 TestObjectV8Internal::voidMethodUnsignedLongLongArgMethod(info); 5084 TestObjectV8Internal::voidMethodUnsignedLongLongArgMethod(info);
5085 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5085 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5086 } 5086 }
5087 5087
5088 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 5088 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
5089 { 5089 {
5090 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); 5090 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedShortArg", "TestObject", info.Holder(), info.GetIsolate());
5091 if (UNLIKELY(info.Length() < 1)) { 5091 if (UNLIKELY(info.Length() < 1)) {
5092 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 5092 throwMinimumArityTypeError(exceptionState, 1, info.Length());
5093 return; 5093 return;
5094 } 5094 }
5095 TestObject* impl = V8TestObject::toNative(info.Holder()); 5095 TestObject* impl = V8TestObject::toNative(info.Holder());
5096 unsigned unsignedShortArg; 5096 unsigned unsignedShortArg;
5097 { 5097 {
5098 v8::TryCatch block; 5098 V8TryPropagate block;
5099 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedShortArg, toUInt16(info[0] , exceptionState), exceptionState); 5099 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedShortArg, toUInt16(info[0] , exceptionState), exceptionState);
5100 } 5100 }
5101 impl->voidMethodUnsignedShortArg(unsignedShortArg); 5101 impl->voidMethodUnsignedShortArg(unsignedShortArg);
5102 } 5102 }
5103 5103
5104 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 5104 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
5105 { 5105 {
5106 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5106 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5107 TestObjectV8Internal::voidMethodUnsignedShortArgMethod(info); 5107 TestObjectV8Internal::voidMethodUnsignedShortArgMethod(info);
5108 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5108 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 14 matching lines...) Expand all
5123 5123
5124 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 5124 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
5125 { 5125 {
5126 if (UNLIKELY(info.Length() < 1)) { 5126 if (UNLIKELY(info.Length() < 1)) {
5127 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceEmptyArg", " TestObject", 1, info.Length(), info.GetIsolate()); 5127 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceEmptyArg", " TestObject", 1, info.Length(), info.GetIsolate());
5128 return; 5128 return;
5129 } 5129 }
5130 TestObject* impl = V8TestObject::toNative(info.Holder()); 5130 TestObject* impl = V8TestObject::toNative(info.Holder());
5131 TestInterfaceEmpty* testInterfaceEmptyArg; 5131 TestInterfaceEmpty* testInterfaceEmptyArg;
5132 { 5132 {
5133 v8::TryCatch block; 5133 V8TryPropagate block;
5134 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0])); 5134 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0]));
5135 } 5135 }
5136 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); 5136 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg);
5137 } 5137 }
5138 5138
5139 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 5139 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
5140 { 5140 {
5141 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5141 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5142 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgMethod(info); 5142 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgMethod(info);
5143 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5143 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5144 } 5144 }
5145 5145
5146 static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info) 5146 static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info)
5147 { 5147 {
5148 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); 5148 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate());
5149 if (UNLIKELY(info.Length() < 2)) { 5149 if (UNLIKELY(info.Length() < 2)) {
5150 throwMinimumArityTypeError(exceptionState, 2, info.Length()); 5150 throwMinimumArityTypeError(exceptionState, 2, info.Length());
5151 return; 5151 return;
5152 } 5152 }
5153 TestObject* impl = V8TestObject::toNative(info.Holder()); 5153 TestObject* impl = V8TestObject::toNative(info.Holder());
5154 int longArg; 5154 int longArg;
5155 TestInterfaceEmpty* testInterfaceEmptyArg; 5155 TestInterfaceEmpty* testInterfaceEmptyArg;
5156 { 5156 {
5157 v8::TryCatch block; 5157 V8TryPropagate block;
5158 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 5158 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
5159 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[1])); 5159 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[1]));
5160 } 5160 }
5161 impl->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg) ; 5161 impl->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg) ;
5162 } 5162 }
5163 5163
5164 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) 5164 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
5165 { 5165 {
5166 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5166 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5167 TestObjectV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(info); 5167 TestObjectV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(info);
(...skipping 28 matching lines...) Expand all
5196 5196
5197 static void voidMethodVoidCallbackFunctionArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info) 5197 static void voidMethodVoidCallbackFunctionArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info)
5198 { 5198 {
5199 if (UNLIKELY(info.Length() < 1)) { 5199 if (UNLIKELY(info.Length() < 1)) {
5200 throwMinimumArityTypeErrorForMethod("voidMethodVoidCallbackFunctionArg", "TestObject", 1, info.Length(), info.GetIsolate()); 5200 throwMinimumArityTypeErrorForMethod("voidMethodVoidCallbackFunctionArg", "TestObject", 1, info.Length(), info.GetIsolate());
5201 return; 5201 return;
5202 } 5202 }
5203 TestObject* impl = V8TestObject::toNative(info.Holder()); 5203 TestObject* impl = V8TestObject::toNative(info.Holder());
5204 ScriptValue voidCallbackFunctionArg; 5204 ScriptValue voidCallbackFunctionArg;
5205 { 5205 {
5206 v8::TryCatch block; 5206 V8TryPropagate block;
5207 TONATIVE_VOID_INTERNAL(voidCallbackFunctionArg, ScriptValue(ScriptState: :current(info.GetIsolate()), info[0])); 5207 TONATIVE_VOID_INTERNAL(voidCallbackFunctionArg, ScriptValue(ScriptState: :current(info.GetIsolate()), info[0]));
5208 } 5208 }
5209 impl->voidMethodVoidCallbackFunctionArg(voidCallbackFunctionArg); 5209 impl->voidMethodVoidCallbackFunctionArg(voidCallbackFunctionArg);
5210 } 5210 }
5211 5211
5212 static void voidMethodVoidCallbackFunctionArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info) 5212 static void voidMethodVoidCallbackFunctionArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info)
5213 { 5213 {
5214 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5214 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5215 TestObjectV8Internal::voidMethodVoidCallbackFunctionArgMethod(info); 5215 TestObjectV8Internal::voidMethodVoidCallbackFunctionArgMethod(info);
5216 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5216 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5217 } 5217 }
5218 5218
5219 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethod(const v8::Function CallbackInfo<v8::Value>& info) 5219 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethod(const v8::Function CallbackInfo<v8::Value>& info)
5220 { 5220 {
5221 if (UNLIKELY(info.Length() < 1)) { 5221 if (UNLIKELY(info.Length() < 1)) {
5222 throwMinimumArityTypeErrorForMethod("voidMethodAnyCallbackFunctionOption alAnyArg", "TestObject", 1, info.Length(), info.GetIsolate()); 5222 throwMinimumArityTypeErrorForMethod("voidMethodAnyCallbackFunctionOption alAnyArg", "TestObject", 1, info.Length(), info.GetIsolate());
5223 return; 5223 return;
5224 } 5224 }
5225 TestObject* impl = V8TestObject::toNative(info.Holder()); 5225 TestObject* impl = V8TestObject::toNative(info.Holder());
5226 ScriptValue anyCallbackFunctionOptionalAnyArgArg; 5226 ScriptValue anyCallbackFunctionOptionalAnyArgArg;
5227 { 5227 {
5228 v8::TryCatch block; 5228 V8TryPropagate block;
5229 TONATIVE_VOID_INTERNAL(anyCallbackFunctionOptionalAnyArgArg, ScriptValue (ScriptState::current(info.GetIsolate()), info[0])); 5229 TONATIVE_VOID_INTERNAL(anyCallbackFunctionOptionalAnyArgArg, ScriptValue (ScriptState::current(info.GetIsolate()), info[0]));
5230 } 5230 }
5231 impl->voidMethodAnyCallbackFunctionOptionalAnyArg(anyCallbackFunctionOptiona lAnyArgArg); 5231 impl->voidMethodAnyCallbackFunctionOptionalAnyArg(anyCallbackFunctionOptiona lAnyArgArg);
5232 } 5232 }
5233 5233
5234 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethodCallback(const v8:: FunctionCallbackInfo<v8::Value>& info) 5234 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethodCallback(const v8:: FunctionCallbackInfo<v8::Value>& info)
5235 { 5235 {
5236 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5236 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5237 TestObjectV8Internal::voidMethodAnyCallbackFunctionOptionalAnyArgMethod(info ); 5237 TestObjectV8Internal::voidMethodAnyCallbackFunctionOptionalAnyArgMethod(info );
5238 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5238 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 27 matching lines...) Expand all
5266 5266
5267 static void voidMethodCompareHowArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 5267 static void voidMethodCompareHowArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
5268 { 5268 {
5269 if (UNLIKELY(info.Length() < 1)) { 5269 if (UNLIKELY(info.Length() < 1)) {
5270 throwMinimumArityTypeErrorForMethod("voidMethodCompareHowArg", "TestObje ct", 1, info.Length(), info.GetIsolate()); 5270 throwMinimumArityTypeErrorForMethod("voidMethodCompareHowArg", "TestObje ct", 1, info.Length(), info.GetIsolate());
5271 return; 5271 return;
5272 } 5272 }
5273 TestObject* impl = V8TestObject::toNative(info.Holder()); 5273 TestObject* impl = V8TestObject::toNative(info.Holder());
5274 Range::CompareHow compareHowArg; 5274 Range::CompareHow compareHowArg;
5275 { 5275 {
5276 v8::TryCatch block; 5276 V8TryPropagate block;
5277 TONATIVE_VOID_INTERNAL(compareHowArg, static_cast<Range::CompareHow>(inf o[0]->Int32Value())); 5277 TONATIVE_VOID_INTERNAL(compareHowArg, static_cast<Range::CompareHow>(inf o[0]->Int32Value()));
5278 } 5278 }
5279 impl->voidMethodCompareHowArg(compareHowArg); 5279 impl->voidMethodCompareHowArg(compareHowArg);
5280 } 5280 }
5281 5281
5282 static void voidMethodCompareHowArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 5282 static void voidMethodCompareHowArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
5283 { 5283 {
5284 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5284 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5285 TestObjectV8Internal::voidMethodCompareHowArgMethod(info); 5285 TestObjectV8Internal::voidMethodCompareHowArgMethod(info);
5286 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5286 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5287 } 5287 }
5288 5288
5289 static void voidMethodEventTargetArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 5289 static void voidMethodEventTargetArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
5290 { 5290 {
5291 if (UNLIKELY(info.Length() < 1)) { 5291 if (UNLIKELY(info.Length() < 1)) {
5292 throwMinimumArityTypeErrorForMethod("voidMethodEventTargetArg", "TestObj ect", 1, info.Length(), info.GetIsolate()); 5292 throwMinimumArityTypeErrorForMethod("voidMethodEventTargetArg", "TestObj ect", 1, info.Length(), info.GetIsolate());
5293 return; 5293 return;
5294 } 5294 }
5295 TestObject* impl = V8TestObject::toNative(info.Holder()); 5295 TestObject* impl = V8TestObject::toNative(info.Holder());
5296 EventTarget* eventTargetArg; 5296 EventTarget* eventTargetArg;
5297 { 5297 {
5298 v8::TryCatch block; 5298 V8TryPropagate block;
5299 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); 5299 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);
5300 } 5300 }
5301 impl->voidMethodEventTargetArg(eventTargetArg); 5301 impl->voidMethodEventTargetArg(eventTargetArg);
5302 } 5302 }
5303 5303
5304 static void voidMethodEventTargetArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 5304 static void voidMethodEventTargetArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
5305 { 5305 {
5306 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5306 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5307 TestObjectV8Internal::voidMethodEventTargetArgMethod(info); 5307 TestObjectV8Internal::voidMethodEventTargetArgMethod(info);
5308 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5308 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5309 } 5309 }
5310 5310
5311 static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallback Info<v8::Value>& info) 5311 static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallback Info<v8::Value>& info)
5312 { 5312 {
5313 if (UNLIKELY(info.Length() < 1)) { 5313 if (UNLIKELY(info.Length() < 1)) {
5314 throwMinimumArityTypeErrorForMethod("voidMethodMediaQueryListListenerArg ", "TestObject", 1, info.Length(), info.GetIsolate()); 5314 throwMinimumArityTypeErrorForMethod("voidMethodMediaQueryListListenerArg ", "TestObject", 1, info.Length(), info.GetIsolate());
5315 return; 5315 return;
5316 } 5316 }
5317 TestObject* impl = V8TestObject::toNative(info.Holder()); 5317 TestObject* impl = V8TestObject::toNative(info.Holder());
5318 RefPtrWillBeRawPtr<MediaQueryListListener> mediaQueryListListenerArg; 5318 RefPtrWillBeRawPtr<MediaQueryListListener> mediaQueryListListenerArg;
5319 { 5319 {
5320 v8::TryCatch block; 5320 V8TryPropagate block;
5321 TONATIVE_VOID_INTERNAL(mediaQueryListListenerArg, MediaQueryListListener ::create(ScriptState::current(info.GetIsolate()), ScriptValue(ScriptState::curre nt(info.GetIsolate()), info[0]))); 5321 TONATIVE_VOID_INTERNAL(mediaQueryListListenerArg, MediaQueryListListener ::create(ScriptState::current(info.GetIsolate()), ScriptValue(ScriptState::curre nt(info.GetIsolate()), info[0])));
5322 } 5322 }
5323 impl->voidMethodMediaQueryListListenerArg(mediaQueryListListenerArg); 5323 impl->voidMethodMediaQueryListListenerArg(mediaQueryListListenerArg);
5324 } 5324 }
5325 5325
5326 static void voidMethodMediaQueryListListenerArgMethodCallback(const v8::Function CallbackInfo<v8::Value>& info) 5326 static void voidMethodMediaQueryListListenerArgMethodCallback(const v8::Function CallbackInfo<v8::Value>& info)
5327 { 5327 {
5328 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5328 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5329 TestObjectV8Internal::voidMethodMediaQueryListListenerArgMethod(info); 5329 TestObjectV8Internal::voidMethodMediaQueryListListenerArgMethod(info);
5330 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5330 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5331 } 5331 }
5332 5332
5333 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) 5333 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo)
5334 { 5334 {
5335 if (UNLIKELY(info.Length() < 1)) { 5335 if (UNLIKELY(info.Length() < 1)) {
5336 throwMinimumArityTypeErrorForMethod("voidMethodAnyArg", "TestObject", 1, info.Length(), info.GetIsolate()); 5336 throwMinimumArityTypeErrorForMethod("voidMethodAnyArg", "TestObject", 1, info.Length(), info.GetIsolate());
5337 return; 5337 return;
5338 } 5338 }
5339 TestObject* impl = V8TestObject::toNative(info.Holder()); 5339 TestObject* impl = V8TestObject::toNative(info.Holder());
5340 ScriptValue anyArg; 5340 ScriptValue anyArg;
5341 { 5341 {
5342 v8::TryCatch block; 5342 V8TryPropagate block;
5343 TONATIVE_VOID_INTERNAL(anyArg, ScriptValue(ScriptState::current(info.Get Isolate()), info[0])); 5343 TONATIVE_VOID_INTERNAL(anyArg, ScriptValue(ScriptState::current(info.Get Isolate()), info[0]));
5344 } 5344 }
5345 impl->voidMethodAnyArg(anyArg); 5345 impl->voidMethodAnyArg(anyArg);
5346 } 5346 }
5347 5347
5348 static void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) 5348 static void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info)
5349 { 5349 {
5350 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5350 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5351 TestObjectV8Internal::voidMethodAnyArgMethod(info); 5351 TestObjectV8Internal::voidMethodAnyArgMethod(info);
5352 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5352 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5353 } 5353 }
5354 5354
5355 static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 5355 static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
5356 { 5356 {
5357 if (UNLIKELY(info.Length() < 1)) { 5357 if (UNLIKELY(info.Length() < 1)) {
5358 throwMinimumArityTypeErrorForMethod("voidMethodAttrArg", "TestObject", 1 , info.Length(), info.GetIsolate()); 5358 throwMinimumArityTypeErrorForMethod("voidMethodAttrArg", "TestObject", 1 , info.Length(), info.GetIsolate());
5359 return; 5359 return;
5360 } 5360 }
5361 TestObject* impl = V8TestObject::toNative(info.Holder()); 5361 TestObject* impl = V8TestObject::toNative(info.Holder());
5362 Attr* attrArg; 5362 Attr* attrArg;
5363 { 5363 {
5364 v8::TryCatch block; 5364 V8TryPropagate block;
5365 TONATIVE_VOID_INTERNAL(attrArg, V8Attr::toNativeWithTypeCheck(info.GetIs olate(), info[0])); 5365 TONATIVE_VOID_INTERNAL(attrArg, V8Attr::toNativeWithTypeCheck(info.GetIs olate(), info[0]));
5366 } 5366 }
5367 impl->voidMethodAttrArg(attrArg); 5367 impl->voidMethodAttrArg(attrArg);
5368 } 5368 }
5369 5369
5370 static void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 5370 static void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
5371 { 5371 {
5372 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5372 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5373 TestObjectV8Internal::voidMethodAttrArgMethod(info); 5373 TestObjectV8Internal::voidMethodAttrArgMethod(info);
5374 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5374 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5375 } 5375 }
5376 5376
5377 static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 5377 static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
5378 { 5378 {
5379 if (UNLIKELY(info.Length() < 1)) { 5379 if (UNLIKELY(info.Length() < 1)) {
5380 throwMinimumArityTypeErrorForMethod("voidMethodDocumentArg", "TestObject ", 1, info.Length(), info.GetIsolate()); 5380 throwMinimumArityTypeErrorForMethod("voidMethodDocumentArg", "TestObject ", 1, info.Length(), info.GetIsolate());
5381 return; 5381 return;
5382 } 5382 }
5383 TestObject* impl = V8TestObject::toNative(info.Holder()); 5383 TestObject* impl = V8TestObject::toNative(info.Holder());
5384 Document* documentArg; 5384 Document* documentArg;
5385 { 5385 {
5386 v8::TryCatch block; 5386 V8TryPropagate block;
5387 TONATIVE_VOID_INTERNAL(documentArg, V8Document::toNativeWithTypeCheck(in fo.GetIsolate(), info[0])); 5387 TONATIVE_VOID_INTERNAL(documentArg, V8Document::toNativeWithTypeCheck(in fo.GetIsolate(), info[0]));
5388 } 5388 }
5389 impl->voidMethodDocumentArg(documentArg); 5389 impl->voidMethodDocumentArg(documentArg);
5390 } 5390 }
5391 5391
5392 static void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 5392 static void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
5393 { 5393 {
5394 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5394 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5395 TestObjectV8Internal::voidMethodDocumentArgMethod(info); 5395 TestObjectV8Internal::voidMethodDocumentArgMethod(info);
5396 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5396 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5397 } 5397 }
5398 5398
5399 static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 5399 static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
5400 { 5400 {
5401 if (UNLIKELY(info.Length() < 1)) { 5401 if (UNLIKELY(info.Length() < 1)) {
5402 throwMinimumArityTypeErrorForMethod("voidMethodDocumentTypeArg", "TestOb ject", 1, info.Length(), info.GetIsolate()); 5402 throwMinimumArityTypeErrorForMethod("voidMethodDocumentTypeArg", "TestOb ject", 1, info.Length(), info.GetIsolate());
5403 return; 5403 return;
5404 } 5404 }
5405 TestObject* impl = V8TestObject::toNative(info.Holder()); 5405 TestObject* impl = V8TestObject::toNative(info.Holder());
5406 DocumentType* documentTypeArg; 5406 DocumentType* documentTypeArg;
5407 { 5407 {
5408 v8::TryCatch block; 5408 V8TryPropagate block;
5409 TONATIVE_VOID_INTERNAL(documentTypeArg, V8DocumentType::toNativeWithType Check(info.GetIsolate(), info[0])); 5409 TONATIVE_VOID_INTERNAL(documentTypeArg, V8DocumentType::toNativeWithType Check(info.GetIsolate(), info[0]));
5410 } 5410 }
5411 impl->voidMethodDocumentTypeArg(documentTypeArg); 5411 impl->voidMethodDocumentTypeArg(documentTypeArg);
5412 } 5412 }
5413 5413
5414 static void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 5414 static void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
5415 { 5415 {
5416 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5416 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5417 TestObjectV8Internal::voidMethodDocumentTypeArgMethod(info); 5417 TestObjectV8Internal::voidMethodDocumentTypeArgMethod(info);
5418 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5418 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5419 } 5419 }
5420 5420
5421 static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 5421 static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
5422 { 5422 {
5423 if (UNLIKELY(info.Length() < 1)) { 5423 if (UNLIKELY(info.Length() < 1)) {
5424 throwMinimumArityTypeErrorForMethod("voidMethodElementArg", "TestObject" , 1, info.Length(), info.GetIsolate()); 5424 throwMinimumArityTypeErrorForMethod("voidMethodElementArg", "TestObject" , 1, info.Length(), info.GetIsolate());
5425 return; 5425 return;
5426 } 5426 }
5427 TestObject* impl = V8TestObject::toNative(info.Holder()); 5427 TestObject* impl = V8TestObject::toNative(info.Holder());
5428 Element* elementArg; 5428 Element* elementArg;
5429 { 5429 {
5430 v8::TryCatch block; 5430 V8TryPropagate block;
5431 TONATIVE_VOID_INTERNAL(elementArg, V8Element::toNativeWithTypeCheck(info .GetIsolate(), info[0])); 5431 TONATIVE_VOID_INTERNAL(elementArg, V8Element::toNativeWithTypeCheck(info .GetIsolate(), info[0]));
5432 } 5432 }
5433 impl->voidMethodElementArg(elementArg); 5433 impl->voidMethodElementArg(elementArg);
5434 } 5434 }
5435 5435
5436 static void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 5436 static void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
5437 { 5437 {
5438 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5438 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5439 TestObjectV8Internal::voidMethodElementArgMethod(info); 5439 TestObjectV8Internal::voidMethodElementArgMethod(info);
5440 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5440 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5441 } 5441 }
5442 5442
5443 static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 5443 static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
5444 { 5444 {
5445 if (UNLIKELY(info.Length() < 1)) { 5445 if (UNLIKELY(info.Length() < 1)) {
5446 throwMinimumArityTypeErrorForMethod("voidMethodNodeArg", "TestObject", 1 , info.Length(), info.GetIsolate()); 5446 throwMinimumArityTypeErrorForMethod("voidMethodNodeArg", "TestObject", 1 , info.Length(), info.GetIsolate());
5447 return; 5447 return;
5448 } 5448 }
5449 TestObject* impl = V8TestObject::toNative(info.Holder()); 5449 TestObject* impl = V8TestObject::toNative(info.Holder());
5450 Node* nodeArg; 5450 Node* nodeArg;
5451 { 5451 {
5452 v8::TryCatch block; 5452 V8TryPropagate block;
5453 TONATIVE_VOID_INTERNAL(nodeArg, V8Node::toNativeWithTypeCheck(info.GetIs olate(), info[0])); 5453 TONATIVE_VOID_INTERNAL(nodeArg, V8Node::toNativeWithTypeCheck(info.GetIs olate(), info[0]));
5454 } 5454 }
5455 impl->voidMethodNodeArg(nodeArg); 5455 impl->voidMethodNodeArg(nodeArg);
5456 } 5456 }
5457 5457
5458 static void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 5458 static void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
5459 { 5459 {
5460 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5460 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5461 TestObjectV8Internal::voidMethodNodeArgMethod(info); 5461 TestObjectV8Internal::voidMethodNodeArgMethod(info);
5462 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5462 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
5529 5529
5530 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 5530 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
5531 { 5531 {
5532 if (UNLIKELY(info.Length() < 1)) { 5532 if (UNLIKELY(info.Length() < 1)) {
5533 throwMinimumArityTypeErrorForMethod("voidMethodArrayBufferArg", "TestObj ect", 1, info.Length(), info.GetIsolate()); 5533 throwMinimumArityTypeErrorForMethod("voidMethodArrayBufferArg", "TestObj ect", 1, info.Length(), info.GetIsolate());
5534 return; 5534 return;
5535 } 5535 }
5536 TestObject* impl = V8TestObject::toNative(info.Holder()); 5536 TestObject* impl = V8TestObject::toNative(info.Holder());
5537 ArrayBuffer* arrayBufferArg; 5537 ArrayBuffer* arrayBufferArg;
5538 { 5538 {
5539 v8::TryCatch block; 5539 V8TryPropagate block;
5540 TONATIVE_VOID_INTERNAL(arrayBufferArg, info[0]->IsArrayBuffer() ? V8Arra yBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0); 5540 TONATIVE_VOID_INTERNAL(arrayBufferArg, info[0]->IsArrayBuffer() ? V8Arra yBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0);
5541 } 5541 }
5542 impl->voidMethodArrayBufferArg(arrayBufferArg); 5542 impl->voidMethodArrayBufferArg(arrayBufferArg);
5543 } 5543 }
5544 5544
5545 static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 5545 static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
5546 { 5546 {
5547 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5547 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5548 TestObjectV8Internal::voidMethodArrayBufferArgMethod(info); 5548 TestObjectV8Internal::voidMethodArrayBufferArgMethod(info);
5549 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5549 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5550 } 5550 }
5551 5551
5552 static void voidMethodArrayBufferOrNullArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info) 5552 static void voidMethodArrayBufferOrNullArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info)
5553 { 5553 {
5554 if (UNLIKELY(info.Length() < 1)) { 5554 if (UNLIKELY(info.Length() < 1)) {
5555 throwMinimumArityTypeErrorForMethod("voidMethodArrayBufferOrNullArg", "T estObject", 1, info.Length(), info.GetIsolate()); 5555 throwMinimumArityTypeErrorForMethod("voidMethodArrayBufferOrNullArg", "T estObject", 1, info.Length(), info.GetIsolate());
5556 return; 5556 return;
5557 } 5557 }
5558 TestObject* impl = V8TestObject::toNative(info.Holder()); 5558 TestObject* impl = V8TestObject::toNative(info.Holder());
5559 ArrayBuffer* arrayBufferArg; 5559 ArrayBuffer* arrayBufferArg;
5560 { 5560 {
5561 v8::TryCatch block; 5561 V8TryPropagate block;
5562 TONATIVE_VOID_INTERNAL(arrayBufferArg, info[0]->IsArrayBuffer() ? V8Arra yBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0); 5562 TONATIVE_VOID_INTERNAL(arrayBufferArg, info[0]->IsArrayBuffer() ? V8Arra yBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0);
5563 } 5563 }
5564 impl->voidMethodArrayBufferOrNullArg(arrayBufferArg); 5564 impl->voidMethodArrayBufferOrNullArg(arrayBufferArg);
5565 } 5565 }
5566 5566
5567 static void voidMethodArrayBufferOrNullArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 5567 static void voidMethodArrayBufferOrNullArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
5568 { 5568 {
5569 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5569 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5570 TestObjectV8Internal::voidMethodArrayBufferOrNullArgMethod(info); 5570 TestObjectV8Internal::voidMethodArrayBufferOrNullArgMethod(info);
5571 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5571 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5572 } 5572 }
5573 5573
5574 static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) 5574 static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info)
5575 { 5575 {
5576 if (UNLIKELY(info.Length() < 1)) { 5576 if (UNLIKELY(info.Length() < 1)) {
5577 throwMinimumArityTypeErrorForMethod("voidMethodArrayBufferViewArg", "Tes tObject", 1, info.Length(), info.GetIsolate()); 5577 throwMinimumArityTypeErrorForMethod("voidMethodArrayBufferViewArg", "Tes tObject", 1, info.Length(), info.GetIsolate());
5578 return; 5578 return;
5579 } 5579 }
5580 TestObject* impl = V8TestObject::toNative(info.Holder()); 5580 TestObject* impl = V8TestObject::toNative(info.Holder());
5581 ArrayBufferView* arrayBufferViewArg; 5581 ArrayBufferView* arrayBufferViewArg;
5582 { 5582 {
5583 v8::TryCatch block; 5583 V8TryPropagate block;
5584 TONATIVE_VOID_INTERNAL(arrayBufferViewArg, info[0]->IsArrayBufferView() ? V8ArrayBufferView::toNative(v8::Handle<v8::ArrayBufferView>::Cast(info[0])) : 0); 5584 TONATIVE_VOID_INTERNAL(arrayBufferViewArg, info[0]->IsArrayBufferView() ? V8ArrayBufferView::toNative(v8::Handle<v8::ArrayBufferView>::Cast(info[0])) : 0);
5585 } 5585 }
5586 impl->voidMethodArrayBufferViewArg(arrayBufferViewArg); 5586 impl->voidMethodArrayBufferViewArg(arrayBufferViewArg);
5587 } 5587 }
5588 5588
5589 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 5589 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
5590 { 5590 {
5591 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5591 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5592 TestObjectV8Internal::voidMethodArrayBufferViewArgMethod(info); 5592 TestObjectV8Internal::voidMethodArrayBufferViewArgMethod(info);
5593 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5593 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5594 } 5594 }
5595 5595
5596 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 5596 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
5597 { 5597 {
5598 if (UNLIKELY(info.Length() < 1)) { 5598 if (UNLIKELY(info.Length() < 1)) {
5599 throwMinimumArityTypeErrorForMethod("voidMethodFloat32ArrayArg", "TestOb ject", 1, info.Length(), info.GetIsolate()); 5599 throwMinimumArityTypeErrorForMethod("voidMethodFloat32ArrayArg", "TestOb ject", 1, info.Length(), info.GetIsolate());
5600 return; 5600 return;
5601 } 5601 }
5602 TestObject* impl = V8TestObject::toNative(info.Holder()); 5602 TestObject* impl = V8TestObject::toNative(info.Holder());
5603 Float32Array* float32ArrayArg; 5603 Float32Array* float32ArrayArg;
5604 { 5604 {
5605 v8::TryCatch block; 5605 V8TryPropagate block;
5606 TONATIVE_VOID_INTERNAL(float32ArrayArg, info[0]->IsFloat32Array() ? V8Fl oat32Array::toNative(v8::Handle<v8::Float32Array>::Cast(info[0])) : 0); 5606 TONATIVE_VOID_INTERNAL(float32ArrayArg, info[0]->IsFloat32Array() ? V8Fl oat32Array::toNative(v8::Handle<v8::Float32Array>::Cast(info[0])) : 0);
5607 } 5607 }
5608 impl->voidMethodFloat32ArrayArg(float32ArrayArg); 5608 impl->voidMethodFloat32ArrayArg(float32ArrayArg);
5609 } 5609 }
5610 5610
5611 static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 5611 static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
5612 { 5612 {
5613 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5613 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5614 TestObjectV8Internal::voidMethodFloat32ArrayArgMethod(info); 5614 TestObjectV8Internal::voidMethodFloat32ArrayArgMethod(info);
5615 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5615 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5616 } 5616 }
5617 5617
5618 static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 5618 static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
5619 { 5619 {
5620 if (UNLIKELY(info.Length() < 1)) { 5620 if (UNLIKELY(info.Length() < 1)) {
5621 throwMinimumArityTypeErrorForMethod("voidMethodInt32ArrayArg", "TestObje ct", 1, info.Length(), info.GetIsolate()); 5621 throwMinimumArityTypeErrorForMethod("voidMethodInt32ArrayArg", "TestObje ct", 1, info.Length(), info.GetIsolate());
5622 return; 5622 return;
5623 } 5623 }
5624 TestObject* impl = V8TestObject::toNative(info.Holder()); 5624 TestObject* impl = V8TestObject::toNative(info.Holder());
5625 Int32Array* int32ArrayArg; 5625 Int32Array* int32ArrayArg;
5626 { 5626 {
5627 v8::TryCatch block; 5627 V8TryPropagate block;
5628 TONATIVE_VOID_INTERNAL(int32ArrayArg, info[0]->IsInt32Array() ? V8Int32A rray::toNative(v8::Handle<v8::Int32Array>::Cast(info[0])) : 0); 5628 TONATIVE_VOID_INTERNAL(int32ArrayArg, info[0]->IsInt32Array() ? V8Int32A rray::toNative(v8::Handle<v8::Int32Array>::Cast(info[0])) : 0);
5629 } 5629 }
5630 impl->voidMethodInt32ArrayArg(int32ArrayArg); 5630 impl->voidMethodInt32ArrayArg(int32ArrayArg);
5631 } 5631 }
5632 5632
5633 static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 5633 static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
5634 { 5634 {
5635 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5635 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5636 TestObjectV8Internal::voidMethodInt32ArrayArgMethod(info); 5636 TestObjectV8Internal::voidMethodInt32ArrayArgMethod(info);
5637 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5637 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5638 } 5638 }
5639 5639
5640 static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 5640 static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
5641 { 5641 {
5642 if (UNLIKELY(info.Length() < 1)) { 5642 if (UNLIKELY(info.Length() < 1)) {
5643 throwMinimumArityTypeErrorForMethod("voidMethodUint8ArrayArg", "TestObje ct", 1, info.Length(), info.GetIsolate()); 5643 throwMinimumArityTypeErrorForMethod("voidMethodUint8ArrayArg", "TestObje ct", 1, info.Length(), info.GetIsolate());
5644 return; 5644 return;
5645 } 5645 }
5646 TestObject* impl = V8TestObject::toNative(info.Holder()); 5646 TestObject* impl = V8TestObject::toNative(info.Holder());
5647 Uint8Array* uint8ArrayArg; 5647 Uint8Array* uint8ArrayArg;
5648 { 5648 {
5649 v8::TryCatch block; 5649 V8TryPropagate block;
5650 TONATIVE_VOID_INTERNAL(uint8ArrayArg, info[0]->IsUint8Array() ? V8Uint8A rray::toNative(v8::Handle<v8::Uint8Array>::Cast(info[0])) : 0); 5650 TONATIVE_VOID_INTERNAL(uint8ArrayArg, info[0]->IsUint8Array() ? V8Uint8A rray::toNative(v8::Handle<v8::Uint8Array>::Cast(info[0])) : 0);
5651 } 5651 }
5652 impl->voidMethodUint8ArrayArg(uint8ArrayArg); 5652 impl->voidMethodUint8ArrayArg(uint8ArrayArg);
5653 } 5653 }
5654 5654
5655 static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 5655 static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
5656 { 5656 {
5657 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5657 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5658 TestObjectV8Internal::voidMethodUint8ArrayArgMethod(info); 5658 TestObjectV8Internal::voidMethodUint8ArrayArgMethod(info);
5659 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5659 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
5700 5700
5701 static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info) 5701 static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info)
5702 { 5702 {
5703 if (UNLIKELY(info.Length() < 1)) { 5703 if (UNLIKELY(info.Length() < 1)) {
5704 throwMinimumArityTypeErrorForMethod("voidMethodArrayLongArg", "TestObjec t", 1, info.Length(), info.GetIsolate()); 5704 throwMinimumArityTypeErrorForMethod("voidMethodArrayLongArg", "TestObjec t", 1, info.Length(), info.GetIsolate());
5705 return; 5705 return;
5706 } 5706 }
5707 TestObject* impl = V8TestObject::toNative(info.Holder()); 5707 TestObject* impl = V8TestObject::toNative(info.Holder());
5708 Vector<int> arrayLongArg; 5708 Vector<int> arrayLongArg;
5709 { 5709 {
5710 v8::TryCatch block; 5710 V8TryPropagate block;
5711 TONATIVE_VOID_INTERNAL(arrayLongArg, toNativeArray<int>(info[0], 1, info .GetIsolate())); 5711 TONATIVE_VOID_INTERNAL(arrayLongArg, toNativeArray<int>(info[0], 1, info .GetIsolate()));
5712 } 5712 }
5713 impl->voidMethodArrayLongArg(arrayLongArg); 5713 impl->voidMethodArrayLongArg(arrayLongArg);
5714 } 5714 }
5715 5715
5716 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info) 5716 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
5717 { 5717 {
5718 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5718 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5719 TestObjectV8Internal::voidMethodArrayLongArgMethod(info); 5719 TestObjectV8Internal::voidMethodArrayLongArgMethod(info);
5720 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5720 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5721 } 5721 }
5722 5722
5723 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 5723 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
5724 { 5724 {
5725 if (UNLIKELY(info.Length() < 1)) { 5725 if (UNLIKELY(info.Length() < 1)) {
5726 throwMinimumArityTypeErrorForMethod("voidMethodArrayStringArg", "TestObj ect", 1, info.Length(), info.GetIsolate()); 5726 throwMinimumArityTypeErrorForMethod("voidMethodArrayStringArg", "TestObj ect", 1, info.Length(), info.GetIsolate());
5727 return; 5727 return;
5728 } 5728 }
5729 TestObject* impl = V8TestObject::toNative(info.Holder()); 5729 TestObject* impl = V8TestObject::toNative(info.Holder());
5730 Vector<String> arrayStringArg; 5730 Vector<String> arrayStringArg;
5731 { 5731 {
5732 v8::TryCatch block; 5732 V8TryPropagate block;
5733 TONATIVE_VOID_INTERNAL(arrayStringArg, toNativeArray<String>(info[0], 1, info.GetIsolate())); 5733 TONATIVE_VOID_INTERNAL(arrayStringArg, toNativeArray<String>(info[0], 1, info.GetIsolate()));
5734 } 5734 }
5735 impl->voidMethodArrayStringArg(arrayStringArg); 5735 impl->voidMethodArrayStringArg(arrayStringArg);
5736 } 5736 }
5737 5737
5738 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 5738 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
5739 { 5739 {
5740 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5740 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5741 TestObjectV8Internal::voidMethodArrayStringArgMethod(info); 5741 TestObjectV8Internal::voidMethodArrayStringArgMethod(info);
5742 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5742 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5743 } 5743 }
5744 5744
5745 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) 5745 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info)
5746 { 5746 {
5747 if (UNLIKELY(info.Length() < 1)) { 5747 if (UNLIKELY(info.Length() < 1)) {
5748 throwMinimumArityTypeErrorForMethod("voidMethodArrayTestInterfaceEmptyAr g", "TestObject", 1, info.Length(), info.GetIsolate()); 5748 throwMinimumArityTypeErrorForMethod("voidMethodArrayTestInterfaceEmptyAr g", "TestObject", 1, info.Length(), info.GetIsolate());
5749 return; 5749 return;
5750 } 5750 }
5751 TestObject* impl = V8TestObject::toNative(info.Holder()); 5751 TestObject* impl = V8TestObject::toNative(info.Holder());
5752 Vector<RefPtr<TestInterfaceEmpty> > arrayTestInterfaceEmptyArg; 5752 Vector<RefPtr<TestInterfaceEmpty> > arrayTestInterfaceEmptyArg;
5753 { 5753 {
5754 v8::TryCatch block; 5754 V8TryPropagate block;
5755 TONATIVE_VOID_INTERNAL(arrayTestInterfaceEmptyArg, (toRefPtrNativeArray< TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate()))); 5755 TONATIVE_VOID_INTERNAL(arrayTestInterfaceEmptyArg, (toRefPtrNativeArray< TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate())));
5756 } 5756 }
5757 impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg); 5757 impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg);
5758 } 5758 }
5759 5759
5760 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 5760 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
5761 { 5761 {
5762 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5762 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5763 TestObjectV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info); 5763 TestObjectV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info);
5764 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5764 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
5805 5805
5806 static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 5806 static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
5807 { 5807 {
5808 if (UNLIKELY(info.Length() < 1)) { 5808 if (UNLIKELY(info.Length() < 1)) {
5809 throwMinimumArityTypeErrorForMethod("voidMethodSequenceLongArg", "TestOb ject", 1, info.Length(), info.GetIsolate()); 5809 throwMinimumArityTypeErrorForMethod("voidMethodSequenceLongArg", "TestOb ject", 1, info.Length(), info.GetIsolate());
5810 return; 5810 return;
5811 } 5811 }
5812 TestObject* impl = V8TestObject::toNative(info.Holder()); 5812 TestObject* impl = V8TestObject::toNative(info.Holder());
5813 Vector<int> longSequenceArg; 5813 Vector<int> longSequenceArg;
5814 { 5814 {
5815 v8::TryCatch block; 5815 V8TryPropagate block;
5816 TONATIVE_VOID_INTERNAL(longSequenceArg, toNativeArray<int>(info[0], 1, i nfo.GetIsolate())); 5816 TONATIVE_VOID_INTERNAL(longSequenceArg, toNativeArray<int>(info[0], 1, i nfo.GetIsolate()));
5817 } 5817 }
5818 impl->voidMethodSequenceLongArg(longSequenceArg); 5818 impl->voidMethodSequenceLongArg(longSequenceArg);
5819 } 5819 }
5820 5820
5821 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 5821 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
5822 { 5822 {
5823 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5823 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5824 TestObjectV8Internal::voidMethodSequenceLongArgMethod(info); 5824 TestObjectV8Internal::voidMethodSequenceLongArgMethod(info);
5825 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5825 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5826 } 5826 }
5827 5827
5828 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 5828 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
5829 { 5829 {
5830 if (UNLIKELY(info.Length() < 1)) { 5830 if (UNLIKELY(info.Length() < 1)) {
5831 throwMinimumArityTypeErrorForMethod("voidMethodSequenceStringArg", "Test Object", 1, info.Length(), info.GetIsolate()); 5831 throwMinimumArityTypeErrorForMethod("voidMethodSequenceStringArg", "Test Object", 1, info.Length(), info.GetIsolate());
5832 return; 5832 return;
5833 } 5833 }
5834 TestObject* impl = V8TestObject::toNative(info.Holder()); 5834 TestObject* impl = V8TestObject::toNative(info.Holder());
5835 Vector<String> stringSequenceArg; 5835 Vector<String> stringSequenceArg;
5836 { 5836 {
5837 v8::TryCatch block; 5837 V8TryPropagate block;
5838 TONATIVE_VOID_INTERNAL(stringSequenceArg, toNativeArray<String>(info[0], 1, info.GetIsolate())); 5838 TONATIVE_VOID_INTERNAL(stringSequenceArg, toNativeArray<String>(info[0], 1, info.GetIsolate()));
5839 } 5839 }
5840 impl->voidMethodSequenceStringArg(stringSequenceArg); 5840 impl->voidMethodSequenceStringArg(stringSequenceArg);
5841 } 5841 }
5842 5842
5843 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 5843 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
5844 { 5844 {
5845 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5845 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5846 TestObjectV8Internal::voidMethodSequenceStringArgMethod(info); 5846 TestObjectV8Internal::voidMethodSequenceStringArgMethod(info);
5847 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5847 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5848 } 5848 }
5849 5849
5850 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) 5850 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info)
5851 { 5851 {
5852 if (UNLIKELY(info.Length() < 1)) { 5852 if (UNLIKELY(info.Length() < 1)) {
5853 throwMinimumArityTypeErrorForMethod("voidMethodSequenceTestInterfaceEmpt yArg", "TestObject", 1, info.Length(), info.GetIsolate()); 5853 throwMinimumArityTypeErrorForMethod("voidMethodSequenceTestInterfaceEmpt yArg", "TestObject", 1, info.Length(), info.GetIsolate());
5854 return; 5854 return;
5855 } 5855 }
5856 TestObject* impl = V8TestObject::toNative(info.Holder()); 5856 TestObject* impl = V8TestObject::toNative(info.Holder());
5857 Vector<RefPtr<TestInterfaceEmpty> > testInterfaceEmptySequenceArg; 5857 Vector<RefPtr<TestInterfaceEmpty> > testInterfaceEmptySequenceArg;
5858 { 5858 {
5859 v8::TryCatch block; 5859 V8TryPropagate block;
5860 TONATIVE_VOID_INTERNAL(testInterfaceEmptySequenceArg, (toRefPtrNativeArr ay<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate()))); 5860 TONATIVE_VOID_INTERNAL(testInterfaceEmptySequenceArg, (toRefPtrNativeArr ay<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate())));
5861 } 5861 }
5862 impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg) ; 5862 impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg) ;
5863 } 5863 }
5864 5864
5865 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 5865 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
5866 { 5866 {
5867 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5867 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5868 TestObjectV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(info); 5868 TestObjectV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(info);
5869 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5869 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5870 } 5870 }
5871 5871
5872 static void voidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallba ckInfo<v8::Value>& info) 5872 static void voidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallba ckInfo<v8::Value>& info)
5873 { 5873 {
5874 if (UNLIKELY(info.Length() < 1)) { 5874 if (UNLIKELY(info.Length() < 1)) {
5875 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceEmptyOrNullA rg", "TestObject", 1, info.Length(), info.GetIsolate()); 5875 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceEmptyOrNullA rg", "TestObject", 1, info.Length(), info.GetIsolate());
5876 return; 5876 return;
5877 } 5877 }
5878 TestObject* impl = V8TestObject::toNative(info.Holder()); 5878 TestObject* impl = V8TestObject::toNative(info.Holder());
5879 TestInterfaceEmpty* nullableTestInterfaceEmptyArg; 5879 TestInterfaceEmpty* nullableTestInterfaceEmptyArg;
5880 { 5880 {
5881 v8::TryCatch block; 5881 V8TryPropagate block;
5882 TONATIVE_VOID_INTERNAL(nullableTestInterfaceEmptyArg, V8TestInterfaceEmp ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 5882 TONATIVE_VOID_INTERNAL(nullableTestInterfaceEmptyArg, V8TestInterfaceEmp ty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
5883 } 5883 }
5884 impl->voidMethodTestInterfaceEmptyOrNullArg(nullableTestInterfaceEmptyArg); 5884 impl->voidMethodTestInterfaceEmptyOrNullArg(nullableTestInterfaceEmptyArg);
5885 } 5885 }
5886 5886
5887 static void voidMethodTestInterfaceEmptyOrNullArgMethodCallback(const v8::Functi onCallbackInfo<v8::Value>& info) 5887 static void voidMethodTestInterfaceEmptyOrNullArgMethodCallback(const v8::Functi onCallbackInfo<v8::Value>& info)
5888 { 5888 {
5889 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5889 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5890 TestObjectV8Internal::voidMethodTestInterfaceEmptyOrNullArgMethod(info); 5890 TestObjectV8Internal::voidMethodTestInterfaceEmptyOrNullArgMethod(info);
5891 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5891 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
5979 5979
5980 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 5980 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
5981 { 5981 {
5982 if (UNLIKELY(info.Length() < 1)) { 5982 if (UNLIKELY(info.Length() < 1)) {
5983 throwMinimumArityTypeErrorForMethod("voidMethodTestEnumArg", "TestObject ", 1, info.Length(), info.GetIsolate()); 5983 throwMinimumArityTypeErrorForMethod("voidMethodTestEnumArg", "TestObject ", 1, info.Length(), info.GetIsolate());
5984 return; 5984 return;
5985 } 5985 }
5986 TestObject* impl = V8TestObject::toNative(info.Holder()); 5986 TestObject* impl = V8TestObject::toNative(info.Holder());
5987 V8StringResource<> testEnumTypeArg; 5987 V8StringResource<> testEnumTypeArg;
5988 { 5988 {
5989 v8::TryCatch block; 5989 V8TryPropagate block;
5990 TOSTRING_VOID_INTERNAL(testEnumTypeArg, info[0]); 5990 TOSTRING_VOID_INTERNAL(testEnumTypeArg, info[0]);
5991 String string = testEnumTypeArg; 5991 String string = testEnumTypeArg;
5992 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" | | string == "EnumValue3")) { 5992 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" | | string == "EnumValue3")) {
5993 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnu mArg", "TestObject", "parameter 1 ('" + string + "') is not a valid enum value." ), info.GetIsolate()); 5993 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnu mArg", "TestObject", "parameter 1 ('" + string + "') is not a valid enum value." ), info.GetIsolate());
5994 block.ReThrow();
5995 return; 5994 return;
5996 } 5995 }
5997 } 5996 }
5998 impl->voidMethodTestEnumArg(testEnumTypeArg); 5997 impl->voidMethodTestEnumArg(testEnumTypeArg);
5999 } 5998 }
6000 5999
6001 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 6000 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
6002 { 6001 {
6003 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6002 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6004 TestObjectV8Internal::voidMethodTestEnumArgMethod(info); 6003 TestObjectV8Internal::voidMethodTestEnumArgMethod(info);
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
6072 6071
6073 static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 6072 static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
6074 { 6073 {
6075 if (UNLIKELY(info.Length() < 1)) { 6074 if (UNLIKELY(info.Length() < 1)) {
6076 throwMinimumArityTypeErrorForMethod("voidMethodDictionaryArg", "TestObje ct", 1, info.Length(), info.GetIsolate()); 6075 throwMinimumArityTypeErrorForMethod("voidMethodDictionaryArg", "TestObje ct", 1, info.Length(), info.GetIsolate());
6077 return; 6076 return;
6078 } 6077 }
6079 TestObject* impl = V8TestObject::toNative(info.Holder()); 6078 TestObject* impl = V8TestObject::toNative(info.Holder());
6080 Dictionary dictionaryArg; 6079 Dictionary dictionaryArg;
6081 { 6080 {
6082 v8::TryCatch block; 6081 V8TryPropagate block;
6083 TONATIVE_VOID_INTERNAL(dictionaryArg, Dictionary(info[0], info.GetIsolat e())); 6082 TONATIVE_VOID_INTERNAL(dictionaryArg, Dictionary(info[0], info.GetIsolat e()));
6084 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) { 6083 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) {
6085 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDiction aryArg", "TestObject", "parameter 1 ('dictionaryArg') is not an object."), info. GetIsolate()); 6084 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDiction aryArg", "TestObject", "parameter 1 ('dictionaryArg') is not an object."), info. GetIsolate());
6086 block.ReThrow();
6087 return; 6085 return;
6088 } 6086 }
6089 } 6087 }
6090 impl->voidMethodDictionaryArg(dictionaryArg); 6088 impl->voidMethodDictionaryArg(dictionaryArg);
6091 } 6089 }
6092 6090
6093 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 6091 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
6094 { 6092 {
6095 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6093 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6096 TestObjectV8Internal::voidMethodDictionaryArgMethod(info); 6094 TestObjectV8Internal::voidMethodDictionaryArgMethod(info);
(...skipping 26 matching lines...) Expand all
6123 6121
6124 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 6122 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
6125 { 6123 {
6126 if (UNLIKELY(info.Length() < 1)) { 6124 if (UNLIKELY(info.Length() < 1)) {
6127 throwMinimumArityTypeErrorForMethod("voidMethodNodeFilterArg", "TestObje ct", 1, info.Length(), info.GetIsolate()); 6125 throwMinimumArityTypeErrorForMethod("voidMethodNodeFilterArg", "TestObje ct", 1, info.Length(), info.GetIsolate());
6128 return; 6126 return;
6129 } 6127 }
6130 TestObject* impl = V8TestObject::toNative(info.Holder()); 6128 TestObject* impl = V8TestObject::toNative(info.Holder());
6131 RefPtrWillBeRawPtr<NodeFilter> nodeFilterArg; 6129 RefPtrWillBeRawPtr<NodeFilter> nodeFilterArg;
6132 { 6130 {
6133 v8::TryCatch block; 6131 V8TryPropagate block;
6134 TONATIVE_VOID_INTERNAL(nodeFilterArg, toNodeFilter(info[0], info.Holder( ), ScriptState::current(info.GetIsolate()))); 6132 TONATIVE_VOID_INTERNAL(nodeFilterArg, toNodeFilter(info[0], info.Holder( ), ScriptState::current(info.GetIsolate())));
6135 } 6133 }
6136 impl->voidMethodNodeFilterArg(nodeFilterArg.release()); 6134 impl->voidMethodNodeFilterArg(nodeFilterArg.release());
6137 } 6135 }
6138 6136
6139 static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 6137 static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
6140 { 6138 {
6141 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6139 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6142 TestObjectV8Internal::voidMethodNodeFilterArgMethod(info); 6140 TestObjectV8Internal::voidMethodNodeFilterArgMethod(info);
6143 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6141 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6144 } 6142 }
6145 6143
6146 static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 6144 static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
6147 { 6145 {
6148 if (UNLIKELY(info.Length() < 1)) { 6146 if (UNLIKELY(info.Length() < 1)) {
6149 throwMinimumArityTypeErrorForMethod("voidMethodPromiseArg", "TestObject" , 1, info.Length(), info.GetIsolate()); 6147 throwMinimumArityTypeErrorForMethod("voidMethodPromiseArg", "TestObject" , 1, info.Length(), info.GetIsolate());
6150 return; 6148 return;
6151 } 6149 }
6152 TestObject* impl = V8TestObject::toNative(info.Holder()); 6150 TestObject* impl = V8TestObject::toNative(info.Holder());
6153 ScriptPromise promiseArg; 6151 ScriptPromise promiseArg;
6154 { 6152 {
6155 v8::TryCatch block; 6153 V8TryPropagate block;
6156 TONATIVE_VOID_INTERNAL(promiseArg, ScriptPromise::cast(ScriptState::curr ent(info.GetIsolate()), info[0])); 6154 TONATIVE_VOID_INTERNAL(promiseArg, ScriptPromise::cast(ScriptState::curr ent(info.GetIsolate()), info[0]));
6157 if (!promiseArg.isUndefinedOrNull() && !promiseArg.isObject()) { 6155 if (!promiseArg.isUndefinedOrNull() && !promiseArg.isObject()) {
6158 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromise Arg", "TestObject", "parameter 1 ('promiseArg') is not an object."), info.GetIso late()); 6156 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromise Arg", "TestObject", "parameter 1 ('promiseArg') is not an object."), info.GetIso late());
6159 block.ReThrow();
6160 return; 6157 return;
6161 } 6158 }
6162 } 6159 }
6163 impl->voidMethodPromiseArg(promiseArg); 6160 impl->voidMethodPromiseArg(promiseArg);
6164 } 6161 }
6165 6162
6166 static void voidMethodPromiseArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 6163 static void voidMethodPromiseArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
6167 { 6164 {
6168 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6165 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6169 TestObjectV8Internal::voidMethodPromiseArgMethod(info); 6166 TestObjectV8Internal::voidMethodPromiseArgMethod(info);
(...skipping 28 matching lines...) Expand all
6198 6195
6199 static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) 6196 static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info)
6200 { 6197 {
6201 if (UNLIKELY(info.Length() < 1)) { 6198 if (UNLIKELY(info.Length() < 1)) {
6202 throwMinimumArityTypeErrorForMethod("voidMethodXPathNSResolverArg", "Tes tObject", 1, info.Length(), info.GetIsolate()); 6199 throwMinimumArityTypeErrorForMethod("voidMethodXPathNSResolverArg", "Tes tObject", 1, info.Length(), info.GetIsolate());
6203 return; 6200 return;
6204 } 6201 }
6205 TestObject* impl = V8TestObject::toNative(info.Holder()); 6202 TestObject* impl = V8TestObject::toNative(info.Holder());
6206 RefPtrWillBeRawPtr<XPathNSResolver> xPathNSResolverArg; 6203 RefPtrWillBeRawPtr<XPathNSResolver> xPathNSResolverArg;
6207 { 6204 {
6208 v8::TryCatch block; 6205 V8TryPropagate block;
6209 TONATIVE_VOID_INTERNAL(xPathNSResolverArg, toXPathNSResolver(info[0], in fo.GetIsolate())); 6206 TONATIVE_VOID_INTERNAL(xPathNSResolverArg, toXPathNSResolver(info[0], in fo.GetIsolate()));
6210 } 6207 }
6211 impl->voidMethodXPathNSResolverArg(xPathNSResolverArg.release()); 6208 impl->voidMethodXPathNSResolverArg(xPathNSResolverArg.release());
6212 } 6209 }
6213 6210
6214 static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 6211 static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
6215 { 6212 {
6216 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6213 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6217 TestObjectV8Internal::voidMethodXPathNSResolverArgMethod(info); 6214 TestObjectV8Internal::voidMethodXPathNSResolverArgMethod(info);
6218 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6215 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6219 } 6216 }
6220 6217
6221 static void voidMethodDictionarySequenceArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 6218 static void voidMethodDictionarySequenceArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
6222 { 6219 {
6223 if (UNLIKELY(info.Length() < 1)) { 6220 if (UNLIKELY(info.Length() < 1)) {
6224 throwMinimumArityTypeErrorForMethod("voidMethodDictionarySequenceArg", " TestObject", 1, info.Length(), info.GetIsolate()); 6221 throwMinimumArityTypeErrorForMethod("voidMethodDictionarySequenceArg", " TestObject", 1, info.Length(), info.GetIsolate());
6225 return; 6222 return;
6226 } 6223 }
6227 TestObject* impl = V8TestObject::toNative(info.Holder()); 6224 TestObject* impl = V8TestObject::toNative(info.Holder());
6228 Vector<Dictionary> dictionarySequenceArg; 6225 Vector<Dictionary> dictionarySequenceArg;
6229 { 6226 {
6230 v8::TryCatch block; 6227 V8TryPropagate block;
6231 TONATIVE_VOID_INTERNAL(dictionarySequenceArg, toNativeArray<Dictionary>( info[0], 1, info.GetIsolate())); 6228 TONATIVE_VOID_INTERNAL(dictionarySequenceArg, toNativeArray<Dictionary>( info[0], 1, info.GetIsolate()));
6232 } 6229 }
6233 impl->voidMethodDictionarySequenceArg(dictionarySequenceArg); 6230 impl->voidMethodDictionarySequenceArg(dictionarySequenceArg);
6234 } 6231 }
6235 6232
6236 static void voidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 6233 static void voidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
6237 { 6234 {
6238 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6235 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6239 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info); 6236 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info);
6240 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6237 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6241 } 6238 }
6242 6239
6243 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 6240 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
6244 { 6241 {
6245 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS tringArgLongArg", "TestObject", info.Holder(), info.GetIsolate()); 6242 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS tringArgLongArg", "TestObject", info.Holder(), info.GetIsolate());
6246 if (UNLIKELY(info.Length() < 2)) { 6243 if (UNLIKELY(info.Length() < 2)) {
6247 throwMinimumArityTypeError(exceptionState, 2, info.Length()); 6244 throwMinimumArityTypeError(exceptionState, 2, info.Length());
6248 return; 6245 return;
6249 } 6246 }
6250 TestObject* impl = V8TestObject::toNative(info.Holder()); 6247 TestObject* impl = V8TestObject::toNative(info.Holder());
6251 V8StringResource<> stringArg; 6248 V8StringResource<> stringArg;
6252 int longArg; 6249 int longArg;
6253 { 6250 {
6254 v8::TryCatch block; 6251 V8TryPropagate block;
6255 TOSTRING_VOID_INTERNAL(stringArg, info[0]); 6252 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
6256 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio nState), exceptionState); 6253 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio nState), exceptionState);
6257 } 6254 }
6258 impl->voidMethodStringArgLongArg(stringArg, longArg); 6255 impl->voidMethodStringArgLongArg(stringArg, longArg);
6259 } 6256 }
6260 6257
6261 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 6258 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
6262 { 6259 {
6263 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6260 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6264 TestObjectV8Internal::voidMethodStringArgLongArgMethod(info); 6261 TestObjectV8Internal::voidMethodStringArgLongArgMethod(info);
6265 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6262 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6266 } 6263 }
6267 6264
6268 static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 6265 static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
6269 { 6266 {
6270 TestObject* impl = V8TestObject::toNative(info.Holder()); 6267 TestObject* impl = V8TestObject::toNative(info.Holder());
6271 V8StringResource<> optionalStringArg; 6268 V8StringResource<> optionalStringArg;
6272 { 6269 {
6273 if (UNLIKELY(info.Length() <= 0)) { 6270 if (UNLIKELY(info.Length() <= 0)) {
6274 impl->voidMethodOptionalStringArg(); 6271 impl->voidMethodOptionalStringArg();
6275 return; 6272 return;
6276 } 6273 }
6277 TOSTRING_VOID_INTERNAL_NOTRYCATCH(optionalStringArg, info[0]); 6274 TOSTRING_VOID_INTERNAL(optionalStringArg, info[0]);
6278 } 6275 }
6279 impl->voidMethodOptionalStringArg(optionalStringArg); 6276 impl->voidMethodOptionalStringArg(optionalStringArg);
6280 } 6277 }
6281 6278
6282 static void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 6279 static void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
6283 { 6280 {
6284 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6281 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6285 TestObjectV8Internal::voidMethodOptionalStringArgMethod(info); 6282 TestObjectV8Internal::voidMethodOptionalStringArgMethod(info);
6286 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6283 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6287 } 6284 }
6288 6285
6289 static void voidMethodOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) 6286 static void voidMethodOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info)
6290 { 6287 {
6291 TestObject* impl = V8TestObject::toNative(info.Holder()); 6288 TestObject* impl = V8TestObject::toNative(info.Holder());
6292 TestInterfaceEmpty* optionalTestInterfaceEmptyArg; 6289 TestInterfaceEmpty* optionalTestInterfaceEmptyArg;
6293 { 6290 {
6294 v8::TryCatch block; 6291 V8TryPropagate block;
6295 if (UNLIKELY(info.Length() <= 0)) { 6292 if (UNLIKELY(info.Length() <= 0)) {
6296 impl->voidMethodOptionalTestInterfaceEmptyArg(); 6293 impl->voidMethodOptionalTestInterfaceEmptyArg();
6297 return; 6294 return;
6298 } 6295 }
6299 TONATIVE_VOID_INTERNAL(optionalTestInterfaceEmptyArg, V8TestInterfaceEmp ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 6296 TONATIVE_VOID_INTERNAL(optionalTestInterfaceEmptyArg, V8TestInterfaceEmp ty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
6300 } 6297 }
6301 impl->voidMethodOptionalTestInterfaceEmptyArg(optionalTestInterfaceEmptyArg) ; 6298 impl->voidMethodOptionalTestInterfaceEmptyArg(optionalTestInterfaceEmptyArg) ;
6302 } 6299 }
6303 6300
6304 static void voidMethodOptionalTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 6301 static void voidMethodOptionalTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
6305 { 6302 {
6306 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6303 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6307 TestObjectV8Internal::voidMethodOptionalTestInterfaceEmptyArgMethod(info); 6304 TestObjectV8Internal::voidMethodOptionalTestInterfaceEmptyArgMethod(info);
6308 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6305 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6309 } 6306 }
6310 6307
6311 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 6308 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
6312 { 6309 {
6313 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 6310 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
6314 TestObject* impl = V8TestObject::toNative(info.Holder()); 6311 TestObject* impl = V8TestObject::toNative(info.Holder());
6315 int optionalLongArg; 6312 int optionalLongArg;
6316 { 6313 {
6317 v8::TryCatch block; 6314 V8TryPropagate block;
6318 if (UNLIKELY(info.Length() <= 0)) { 6315 if (UNLIKELY(info.Length() <= 0)) {
6319 impl->voidMethodOptionalLongArg(); 6316 impl->voidMethodOptionalLongArg();
6320 return; 6317 return;
6321 } 6318 }
6322 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState); 6319 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState);
6323 } 6320 }
6324 impl->voidMethodOptionalLongArg(optionalLongArg); 6321 impl->voidMethodOptionalLongArg(optionalLongArg);
6325 } 6322 }
6326 6323
6327 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 6324 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
6328 { 6325 {
6329 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6326 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6330 TestObjectV8Internal::voidMethodOptionalLongArgMethod(info); 6327 TestObjectV8Internal::voidMethodOptionalLongArgMethod(info);
6331 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6328 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6332 } 6329 }
6333 6330
6334 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 6331 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
6335 { 6332 {
6336 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho dOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 6333 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho dOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
6337 TestObject* impl = V8TestObject::toNative(info.Holder()); 6334 TestObject* impl = V8TestObject::toNative(info.Holder());
6338 int optionalLongArg; 6335 int optionalLongArg;
6339 { 6336 {
6340 v8::TryCatch block; 6337 V8TryPropagate block;
6341 if (UNLIKELY(info.Length() <= 0)) { 6338 if (UNLIKELY(info.Length() <= 0)) {
6342 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(), in fo.GetIsolate()); 6339 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(), in fo.GetIsolate());
6343 return; 6340 return;
6344 } 6341 }
6345 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState); 6342 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState);
6346 } 6343 }
6347 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(optionalLongA rg), info.GetIsolate()); 6344 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(optionalLongA rg), info.GetIsolate());
6348 } 6345 }
6349 6346
6350 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 6347 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
6351 { 6348 {
6352 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6349 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6353 TestObjectV8Internal::stringMethodOptionalLongArgMethod(info); 6350 TestObjectV8Internal::stringMethodOptionalLongArgMethod(info);
6354 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6351 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6355 } 6352 }
6356 6353
6357 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) 6354 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall backInfo<v8::Value>& info)
6358 { 6355 {
6359 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa ceEmptyMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 6356 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa ceEmptyMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
6360 TestObject* impl = V8TestObject::toNative(info.Holder()); 6357 TestObject* impl = V8TestObject::toNative(info.Holder());
6361 int optionalLongArg; 6358 int optionalLongArg;
6362 { 6359 {
6363 v8::TryCatch block; 6360 V8TryPropagate block;
6364 if (UNLIKELY(info.Length() <= 0)) { 6361 if (UNLIKELY(info.Length() <= 0)) {
6365 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg ()); 6362 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg ());
6366 return; 6363 return;
6367 } 6364 }
6368 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState); 6365 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState);
6369 } 6366 }
6370 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg(optiona lLongArg)); 6367 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg(optiona lLongArg));
6371 } 6368 }
6372 6369
6373 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 6370 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
6374 { 6371 {
6375 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6372 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6376 TestObjectV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(info); 6373 TestObjectV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(info);
6377 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6374 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6378 } 6375 }
6379 6376
6380 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 6377 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
6381 { 6378 {
6382 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodO ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 6379 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodO ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
6383 TestObject* impl = V8TestObject::toNative(info.Holder()); 6380 TestObject* impl = V8TestObject::toNative(info.Holder());
6384 int optionalLongArg; 6381 int optionalLongArg;
6385 { 6382 {
6386 v8::TryCatch block; 6383 V8TryPropagate block;
6387 if (UNLIKELY(info.Length() <= 0)) { 6384 if (UNLIKELY(info.Length() <= 0)) {
6388 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg()); 6385 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg());
6389 return; 6386 return;
6390 } 6387 }
6391 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState); 6388 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState);
6392 } 6389 }
6393 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg(optionalLongArg)); 6390 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg(optionalLongArg));
6394 } 6391 }
6395 6392
6396 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 6393 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
6397 { 6394 {
6398 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6395 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6399 TestObjectV8Internal::longMethodOptionalLongArgMethod(info); 6396 TestObjectV8Internal::longMethodOptionalLongArgMethod(info);
6400 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6397 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6401 } 6398 }
6402 6399
6403 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf o<v8::Value>& info) 6400 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf o<v8::Value>& info)
6404 { 6401 {
6405 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 6402 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
6406 if (UNLIKELY(info.Length() < 1)) { 6403 if (UNLIKELY(info.Length() < 1)) {
6407 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 6404 throwMinimumArityTypeError(exceptionState, 1, info.Length());
6408 return; 6405 return;
6409 } 6406 }
6410 TestObject* impl = V8TestObject::toNative(info.Holder()); 6407 TestObject* impl = V8TestObject::toNative(info.Holder());
6411 int longArg; 6408 int longArg;
6412 int optionalLongArg; 6409 int optionalLongArg;
6413 { 6410 {
6414 v8::TryCatch block; 6411 V8TryPropagate block;
6415 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 6412 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
6416 if (UNLIKELY(info.Length() <= 1)) { 6413 if (UNLIKELY(info.Length() <= 1)) {
6417 impl->voidMethodLongArgOptionalLongArg(longArg); 6414 impl->voidMethodLongArgOptionalLongArg(longArg);
6418 return; 6415 return;
6419 } 6416 }
6420 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[1], exceptionState), exceptionState); 6417 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[1], exceptionState), exceptionState);
6421 } 6418 }
6422 impl->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg); 6419 impl->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg);
6423 } 6420 }
6424 6421
6425 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 6422 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
6426 { 6423 {
6427 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6424 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6428 TestObjectV8Internal::voidMethodLongArgOptionalLongArgMethod(info); 6425 TestObjectV8Internal::voidMethodLongArgOptionalLongArgMethod(info);
6429 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6426 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6430 } 6427 }
6431 6428
6432 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) 6429 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info)
6433 { 6430 {
6434 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalLongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsol ate()); 6431 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalLongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsol ate());
6435 if (UNLIKELY(info.Length() < 1)) { 6432 if (UNLIKELY(info.Length() < 1)) {
6436 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 6433 throwMinimumArityTypeError(exceptionState, 1, info.Length());
6437 return; 6434 return;
6438 } 6435 }
6439 TestObject* impl = V8TestObject::toNative(info.Holder()); 6436 TestObject* impl = V8TestObject::toNative(info.Holder());
6440 int longArg; 6437 int longArg;
6441 int optionalLongArg1; 6438 int optionalLongArg1;
6442 int optionalLongArg2; 6439 int optionalLongArg2;
6443 { 6440 {
6444 v8::TryCatch block; 6441 V8TryPropagate block;
6445 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 6442 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
6446 if (UNLIKELY(info.Length() <= 1)) { 6443 if (UNLIKELY(info.Length() <= 1)) {
6447 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg); 6444 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg);
6448 return; 6445 return;
6449 } 6446 }
6450 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg1, toInt32(info[1], exceptionState), exceptionState); 6447 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg1, toInt32(info[1], exceptionState), exceptionState);
6451 if (UNLIKELY(info.Length() <= 2)) { 6448 if (UNLIKELY(info.Length() <= 2)) {
6452 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optio nalLongArg1); 6449 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optio nalLongArg1);
6453 return; 6450 return;
6454 } 6451 }
(...skipping 13 matching lines...) Expand all
6468 { 6465 {
6469 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsola te()); 6466 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsola te());
6470 if (UNLIKELY(info.Length() < 1)) { 6467 if (UNLIKELY(info.Length() < 1)) {
6471 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 6468 throwMinimumArityTypeError(exceptionState, 1, info.Length());
6472 return; 6469 return;
6473 } 6470 }
6474 TestObject* impl = V8TestObject::toNative(info.Holder()); 6471 TestObject* impl = V8TestObject::toNative(info.Holder());
6475 int longArg; 6472 int longArg;
6476 TestInterfaceEmpty* optionalTestInterfaceEmpty; 6473 TestInterfaceEmpty* optionalTestInterfaceEmpty;
6477 { 6474 {
6478 v8::TryCatch block; 6475 V8TryPropagate block;
6479 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 6476 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
6480 if (UNLIKELY(info.Length() <= 1)) { 6477 if (UNLIKELY(info.Length() <= 1)) {
6481 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg); 6478 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg);
6482 return; 6479 return;
6483 } 6480 }
6484 TONATIVE_VOID_INTERNAL(optionalTestInterfaceEmpty, V8TestInterfaceEmpty: :toNativeWithTypeCheck(info.GetIsolate(), info[1])); 6481 TONATIVE_VOID_INTERNAL(optionalTestInterfaceEmpty, V8TestInterfaceEmpty: :toNativeWithTypeCheck(info.GetIsolate(), info[1]));
6485 } 6482 }
6486 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestIn terfaceEmpty); 6483 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestIn terfaceEmpty);
6487 } 6484 }
6488 6485
6489 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info) 6486 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info)
6490 { 6487 {
6491 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6488 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6492 TestObjectV8Internal::voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(i nfo); 6489 TestObjectV8Internal::voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(i nfo);
6493 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6490 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6494 } 6491 }
6495 6492
6496 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::Funct ionCallbackInfo<v8::Value>& info) 6493 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::Funct ionCallbackInfo<v8::Value>& info)
6497 { 6494 {
6498 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT estInterfaceEmptyArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsola te()); 6495 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT estInterfaceEmptyArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsola te());
6499 if (UNLIKELY(info.Length() < 1)) { 6496 if (UNLIKELY(info.Length() < 1)) {
6500 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 6497 throwMinimumArityTypeError(exceptionState, 1, info.Length());
6501 return; 6498 return;
6502 } 6499 }
6503 TestObject* impl = V8TestObject::toNative(info.Holder()); 6500 TestObject* impl = V8TestObject::toNative(info.Holder());
6504 TestInterfaceEmpty* optionalTestInterfaceEmpty; 6501 TestInterfaceEmpty* optionalTestInterfaceEmpty;
6505 int longArg; 6502 int longArg;
6506 { 6503 {
6507 v8::TryCatch block; 6504 V8TryPropagate block;
6508 TONATIVE_VOID_INTERNAL(optionalTestInterfaceEmpty, V8TestInterfaceEmpty: :toNativeWithTypeCheck(info.GetIsolate(), info[0])); 6505 TONATIVE_VOID_INTERNAL(optionalTestInterfaceEmpty, V8TestInterfaceEmpty: :toNativeWithTypeCheck(info.GetIsolate(), info[0]));
6509 if (UNLIKELY(info.Length() <= 1)) { 6506 if (UNLIKELY(info.Length() <= 1)) {
6510 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInt erfaceEmpty); 6507 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInt erfaceEmpty);
6511 return; 6508 return;
6512 } 6509 }
6513 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio nState), exceptionState); 6510 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio nState), exceptionState);
6514 } 6511 }
6515 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEm pty, longArg); 6512 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEm pty, longArg);
6516 } 6513 }
6517 6514
6518 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info) 6515 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info)
6519 { 6516 {
6520 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6517 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6521 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(i nfo); 6518 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(i nfo);
6522 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6519 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6523 } 6520 }
6524 6521
6525 static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 6522 static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
6526 { 6523 {
6527 TestObject* impl = V8TestObject::toNative(info.Holder()); 6524 TestObject* impl = V8TestObject::toNative(info.Holder());
6528 Dictionary optionalDictionaryArg; 6525 Dictionary optionalDictionaryArg;
6529 { 6526 {
6530 v8::TryCatch block; 6527 V8TryPropagate block;
6531 TONATIVE_VOID_INTERNAL(optionalDictionaryArg, Dictionary(info[0], info.G etIsolate())); 6528 TONATIVE_VOID_INTERNAL(optionalDictionaryArg, Dictionary(info[0], info.G etIsolate()));
6532 if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg .isObject()) { 6529 if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg .isObject()) {
6533 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOptiona lDictionaryArg", "TestObject", "parameter 1 ('optionalDictionaryArg') is not an object."), info.GetIsolate()); 6530 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOptiona lDictionaryArg", "TestObject", "parameter 1 ('optionalDictionaryArg') is not an object."), info.GetIsolate());
6534 block.ReThrow();
6535 return; 6531 return;
6536 } 6532 }
6537 } 6533 }
6538 impl->voidMethodOptionalDictionaryArg(optionalDictionaryArg); 6534 impl->voidMethodOptionalDictionaryArg(optionalDictionaryArg);
6539 } 6535 }
6540 6536
6541 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 6537 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
6542 { 6538 {
6543 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6539 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6544 TestObjectV8Internal::voidMethodOptionalDictionaryArgMethod(info); 6540 TestObjectV8Internal::voidMethodOptionalDictionaryArgMethod(info);
6545 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6541 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6546 } 6542 }
6547 6543
6548 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 6544 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
6549 { 6545 {
6550 TestObject* impl = V8TestObject::toNative(info.Holder()); 6546 TestObject* impl = V8TestObject::toNative(info.Holder());
6551 Vector<String> variadicStringArgs; 6547 Vector<String> variadicStringArgs;
6552 { 6548 {
6553 v8::TryCatch block; 6549 V8TryPropagate block;
6554 TONATIVE_VOID_INTERNAL(variadicStringArgs, toNativeArguments<String>(inf o, 0)); 6550 TONATIVE_VOID_INTERNAL(variadicStringArgs, toNativeArguments<String>(inf o, 0));
6555 } 6551 }
6556 impl->voidMethodVariadicStringArg(variadicStringArgs); 6552 impl->voidMethodVariadicStringArg(variadicStringArgs);
6557 } 6553 }
6558 6554
6559 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 6555 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
6560 { 6556 {
6561 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6557 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6562 TestObjectV8Internal::voidMethodVariadicStringArgMethod(info); 6558 TestObjectV8Internal::voidMethodVariadicStringArgMethod(info);
6563 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6559 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6564 } 6560 }
6565 6561
6566 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) 6562 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info)
6567 { 6563 {
6568 if (UNLIKELY(info.Length() < 1)) { 6564 if (UNLIKELY(info.Length() < 1)) {
6569 throwMinimumArityTypeErrorForMethod("voidMethodStringArgVariadicStringAr g", "TestObject", 1, info.Length(), info.GetIsolate()); 6565 throwMinimumArityTypeErrorForMethod("voidMethodStringArgVariadicStringAr g", "TestObject", 1, info.Length(), info.GetIsolate());
6570 return; 6566 return;
6571 } 6567 }
6572 TestObject* impl = V8TestObject::toNative(info.Holder()); 6568 TestObject* impl = V8TestObject::toNative(info.Holder());
6573 V8StringResource<> stringArg; 6569 V8StringResource<> stringArg;
6574 Vector<String> variadicStringArgs; 6570 Vector<String> variadicStringArgs;
6575 { 6571 {
6576 v8::TryCatch block; 6572 V8TryPropagate block;
6577 TOSTRING_VOID_INTERNAL(stringArg, info[0]); 6573 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
6578 TONATIVE_VOID_INTERNAL(variadicStringArgs, toNativeArguments<String>(inf o, 1)); 6574 TONATIVE_VOID_INTERNAL(variadicStringArgs, toNativeArguments<String>(inf o, 1));
6579 } 6575 }
6580 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); 6576 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs);
6581 } 6577 }
6582 6578
6583 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 6579 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
6584 { 6580 {
6585 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6581 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6586 TestObjectV8Internal::voidMethodStringArgVariadicStringArgMethod(info); 6582 TestObjectV8Internal::voidMethodStringArgVariadicStringArgMethod(info);
(...skipping 26 matching lines...) Expand all
6613 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(c onst v8::FunctionCallbackInfo<v8::Value>& info) 6609 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(c onst v8::FunctionCallbackInfo<v8::Value>& info)
6614 { 6610 {
6615 if (UNLIKELY(info.Length() < 1)) { 6611 if (UNLIKELY(info.Length() < 1)) {
6616 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceEmptyArgVari adicTestInterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate()); 6612 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceEmptyArgVari adicTestInterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate());
6617 return; 6613 return;
6618 } 6614 }
6619 TestObject* impl = V8TestObject::toNative(info.Holder()); 6615 TestObject* impl = V8TestObject::toNative(info.Holder());
6620 TestInterfaceEmpty* testInterfaceEmptyArg; 6616 TestInterfaceEmpty* testInterfaceEmptyArg;
6621 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; 6617 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs;
6622 { 6618 {
6623 v8::TryCatch block; 6619 V8TryPropagate block;
6624 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0])); 6620 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0]));
6625 for (int i = 1; i < info.Length(); ++i) { 6621 for (int i = 1; i < info.Length(); ++i) {
6626 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) { 6622 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) {
6627 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTes tInterfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObject", "parameter 2 is not of type 'TestInterfaceEmpty'."), info.GetIsolate()); 6623 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTes tInterfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObject", "parameter 2 is not of type 'TestInterfaceEmpty'."), info.GetIsolate());
6628 block.ReThrow();
6629 return; 6624 return;
6630 } 6625 }
6631 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative (v8::Handle<v8::Object>::Cast(info[i]))); 6626 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative (v8::Handle<v8::Object>::Cast(info[i])));
6632 } 6627 }
6633 } 6628 }
6634 impl->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInter faceEmptyArg, variadicTestInterfaceEmptyArgs); 6629 impl->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInter faceEmptyArg, variadicTestInterfaceEmptyArgs);
6635 } 6630 }
6636 6631
6637 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa llback(const v8::FunctionCallbackInfo<v8::Value>& info) 6632 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa llback(const v8::FunctionCallbackInfo<v8::Value>& info)
6638 { 6633 {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
6686 TestObjectV8Internal::voidMethodVariadicTestInterfaceWillBeGarbageCollectedA rgMethod(info); 6681 TestObjectV8Internal::voidMethodVariadicTestInterfaceWillBeGarbageCollectedA rgMethod(info);
6687 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6682 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6688 } 6683 }
6689 6684
6690 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6685 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6691 { 6686 {
6692 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate()); 6687 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate());
6693 TestObject* impl = V8TestObject::toNative(info.Holder()); 6688 TestObject* impl = V8TestObject::toNative(info.Holder());
6694 int longArg; 6689 int longArg;
6695 { 6690 {
6696 v8::TryCatch block; 6691 V8TryPropagate block;
6697 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 6692 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
6698 } 6693 }
6699 impl->overloadedMethodA(longArg); 6694 impl->overloadedMethodA(longArg);
6700 } 6695 }
6701 6696
6702 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6697 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6703 { 6698 {
6704 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate()); 6699 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate());
6705 TestObject* impl = V8TestObject::toNative(info.Holder()); 6700 TestObject* impl = V8TestObject::toNative(info.Holder());
6706 int longArg1; 6701 int longArg1;
6707 int longArg2; 6702 int longArg2;
6708 { 6703 {
6709 v8::TryCatch block; 6704 V8TryPropagate block;
6710 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg1, toInt32(info[0], excepti onState), exceptionState); 6705 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg1, toInt32(info[0], excepti onState), exceptionState);
6711 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg2, toInt32(info[1], excepti onState), exceptionState); 6706 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg2, toInt32(info[1], excepti onState), exceptionState);
6712 } 6707 }
6713 impl->overloadedMethodA(longArg1, longArg2); 6708 impl->overloadedMethodA(longArg1, longArg2);
6714 } 6709 }
6715 6710
6716 static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6711 static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6717 { 6712 {
6718 v8::Isolate* isolate = info.GetIsolate(); 6713 v8::Isolate* isolate = info.GetIsolate();
6719 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), isolate); 6714 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), isolate);
(...skipping 25 matching lines...) Expand all
6745 TestObjectV8Internal::overloadedMethodAMethod(info); 6740 TestObjectV8Internal::overloadedMethodAMethod(info);
6746 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6741 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6747 } 6742 }
6748 6743
6749 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6744 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6750 { 6745 {
6751 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate()); 6746 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate());
6752 TestObject* impl = V8TestObject::toNative(info.Holder()); 6747 TestObject* impl = V8TestObject::toNative(info.Holder());
6753 int longArg; 6748 int longArg;
6754 { 6749 {
6755 v8::TryCatch block; 6750 V8TryPropagate block;
6756 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 6751 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
6757 } 6752 }
6758 impl->overloadedMethodB(longArg); 6753 impl->overloadedMethodB(longArg);
6759 } 6754 }
6760 6755
6761 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6756 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6762 { 6757 {
6763 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate()); 6758 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate());
6764 TestObject* impl = V8TestObject::toNative(info.Holder()); 6759 TestObject* impl = V8TestObject::toNative(info.Holder());
6765 V8StringResource<> stringArg; 6760 V8StringResource<> stringArg;
6766 int longArg; 6761 int longArg;
6767 { 6762 {
6768 v8::TryCatch block; 6763 V8TryPropagate block;
6769 TOSTRING_VOID_INTERNAL(stringArg, info[0]); 6764 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
6770 if (UNLIKELY(info.Length() <= 1)) { 6765 if (UNLIKELY(info.Length() <= 1)) {
6771 impl->overloadedMethodB(stringArg); 6766 impl->overloadedMethodB(stringArg);
6772 return; 6767 return;
6773 } 6768 }
6774 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio nState), exceptionState); 6769 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio nState), exceptionState);
6775 } 6770 }
6776 impl->overloadedMethodB(stringArg, longArg); 6771 impl->overloadedMethodB(stringArg, longArg);
6777 } 6772 }
6778 6773
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
6812 TestObjectV8Internal::overloadedMethodBMethod(info); 6807 TestObjectV8Internal::overloadedMethodBMethod(info);
6813 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6808 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6814 } 6809 }
6815 6810
6816 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6811 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6817 { 6812 {
6818 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObject", info.Holder(), info.GetIsolate()); 6813 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObject", info.Holder(), info.GetIsolate());
6819 TestObject* impl = V8TestObject::toNative(info.Holder()); 6814 TestObject* impl = V8TestObject::toNative(info.Holder());
6820 int longArg; 6815 int longArg;
6821 { 6816 {
6822 v8::TryCatch block; 6817 V8TryPropagate block;
6823 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 6818 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
6824 } 6819 }
6825 impl->overloadedMethodC(longArg); 6820 impl->overloadedMethodC(longArg);
6826 } 6821 }
6827 6822
6828 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6823 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6829 { 6824 {
6830 TestObject* impl = V8TestObject::toNative(info.Holder()); 6825 TestObject* impl = V8TestObject::toNative(info.Holder());
6831 TestInterfaceEmpty* testInterfaceEmptyArg; 6826 TestInterfaceEmpty* testInterfaceEmptyArg;
6832 { 6827 {
6833 v8::TryCatch block; 6828 V8TryPropagate block;
6834 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0])); 6829 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0]));
6835 } 6830 }
6836 impl->overloadedMethodC(testInterfaceEmptyArg); 6831 impl->overloadedMethodC(testInterfaceEmptyArg);
6837 } 6832 }
6838 6833
6839 static void overloadedMethodCMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6834 static void overloadedMethodCMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6840 { 6835 {
6841 v8::Isolate* isolate = info.GetIsolate(); 6836 v8::Isolate* isolate = info.GetIsolate();
6842 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObject", info.Holder(), isolate); 6837 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObject", info.Holder(), isolate);
6843 switch (std::min(1, info.Length())) { 6838 switch (std::min(1, info.Length())) {
(...skipping 22 matching lines...) Expand all
6866 TestObjectV8Internal::overloadedMethodCMethod(info); 6861 TestObjectV8Internal::overloadedMethodCMethod(info);
6867 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6862 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6868 } 6863 }
6869 6864
6870 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6865 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6871 { 6866 {
6872 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObject", info.Holder(), info.GetIsolate()); 6867 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObject", info.Holder(), info.GetIsolate());
6873 TestObject* impl = V8TestObject::toNative(info.Holder()); 6868 TestObject* impl = V8TestObject::toNative(info.Holder());
6874 int longArg; 6869 int longArg;
6875 { 6870 {
6876 v8::TryCatch block; 6871 V8TryPropagate block;
6877 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 6872 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
6878 } 6873 }
6879 impl->overloadedMethodD(longArg); 6874 impl->overloadedMethodD(longArg);
6880 } 6875 }
6881 6876
6882 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6877 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6883 { 6878 {
6884 TestObject* impl = V8TestObject::toNative(info.Holder()); 6879 TestObject* impl = V8TestObject::toNative(info.Holder());
6885 Vector<int> longArrayArg; 6880 Vector<int> longArrayArg;
6886 { 6881 {
6887 v8::TryCatch block; 6882 V8TryPropagate block;
6888 TONATIVE_VOID_INTERNAL(longArrayArg, toNativeArray<int>(info[0], 1, info .GetIsolate())); 6883 TONATIVE_VOID_INTERNAL(longArrayArg, toNativeArray<int>(info[0], 1, info .GetIsolate()));
6889 } 6884 }
6890 impl->overloadedMethodD(longArrayArg); 6885 impl->overloadedMethodD(longArrayArg);
6891 } 6886 }
6892 6887
6893 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6888 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6894 { 6889 {
6895 v8::Isolate* isolate = info.GetIsolate(); 6890 v8::Isolate* isolate = info.GetIsolate();
6896 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObject", info.Holder(), isolate); 6891 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObject", info.Holder(), isolate);
6897 switch (std::min(1, info.Length())) { 6892 switch (std::min(1, info.Length())) {
(...skipping 22 matching lines...) Expand all
6920 TestObjectV8Internal::overloadedMethodDMethod(info); 6915 TestObjectV8Internal::overloadedMethodDMethod(info);
6921 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6916 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6922 } 6917 }
6923 6918
6924 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6919 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6925 { 6920 {
6926 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodE", "TestObject", info.Holder(), info.GetIsolate()); 6921 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodE", "TestObject", info.Holder(), info.GetIsolate());
6927 TestObject* impl = V8TestObject::toNative(info.Holder()); 6922 TestObject* impl = V8TestObject::toNative(info.Holder());
6928 int longArg; 6923 int longArg;
6929 { 6924 {
6930 v8::TryCatch block; 6925 V8TryPropagate block;
6931 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 6926 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
6932 } 6927 }
6933 impl->overloadedMethodE(longArg); 6928 impl->overloadedMethodE(longArg);
6934 } 6929 }
6935 6930
6936 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6931 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6937 { 6932 {
6938 TestObject* impl = V8TestObject::toNative(info.Holder()); 6933 TestObject* impl = V8TestObject::toNative(info.Holder());
6939 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; 6934 TestInterfaceEmpty* testInterfaceEmptyOrNullArg;
6940 { 6935 {
6941 v8::TryCatch block; 6936 V8TryPropagate block;
6942 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceEmpty ::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 6937 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceEmpty ::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
6943 } 6938 }
6944 impl->overloadedMethodE(testInterfaceEmptyOrNullArg); 6939 impl->overloadedMethodE(testInterfaceEmptyOrNullArg);
6945 } 6940 }
6946 6941
6947 static void overloadedMethodEMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6942 static void overloadedMethodEMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6948 { 6943 {
6949 v8::Isolate* isolate = info.GetIsolate(); 6944 v8::Isolate* isolate = info.GetIsolate();
6950 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodE", "TestObject", info.Holder(), isolate); 6945 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodE", "TestObject", info.Holder(), isolate);
6951 switch (std::min(1, info.Length())) { 6946 switch (std::min(1, info.Length())) {
(...skipping 29 matching lines...) Expand all
6981 6976
6982 static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6977 static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6983 { 6978 {
6984 TestObject* impl = V8TestObject::toNative(info.Holder()); 6979 TestObject* impl = V8TestObject::toNative(info.Holder());
6985 V8StringResource<> stringArg; 6980 V8StringResource<> stringArg;
6986 { 6981 {
6987 if (UNLIKELY(info.Length() <= 0)) { 6982 if (UNLIKELY(info.Length() <= 0)) {
6988 impl->overloadedMethodF(); 6983 impl->overloadedMethodF();
6989 return; 6984 return;
6990 } 6985 }
6991 TOSTRING_VOID_INTERNAL_NOTRYCATCH(stringArg, info[0]); 6986 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
6992 } 6987 }
6993 impl->overloadedMethodF(stringArg); 6988 impl->overloadedMethodF(stringArg);
6994 } 6989 }
6995 6990
6996 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6991 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6997 { 6992 {
6998 TestObject* impl = V8TestObject::toNative(info.Holder()); 6993 TestObject* impl = V8TestObject::toNative(info.Holder());
6999 double doubleArg; 6994 double doubleArg;
7000 { 6995 {
7001 v8::TryCatch block; 6996 V8TryPropagate block;
7002 TONATIVE_VOID_INTERNAL(doubleArg, static_cast<double>(info[0]->NumberVal ue())); 6997 TONATIVE_VOID_INTERNAL(doubleArg, static_cast<double>(info[0]->NumberVal ue()));
7003 } 6998 }
7004 impl->overloadedMethodF(doubleArg); 6999 impl->overloadedMethodF(doubleArg);
7005 } 7000 }
7006 7001
7007 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 7002 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
7008 { 7003 {
7009 v8::Isolate* isolate = info.GetIsolate(); 7004 v8::Isolate* isolate = info.GetIsolate();
7010 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodF", "TestObject", info.Holder(), isolate); 7005 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodF", "TestObject", info.Holder(), isolate);
7011 switch (std::min(1, info.Length())) { 7006 switch (std::min(1, info.Length())) {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
7044 TestObjectV8Internal::overloadedMethodFMethod(info); 7039 TestObjectV8Internal::overloadedMethodFMethod(info);
7045 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7040 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7046 } 7041 }
7047 7042
7048 static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7043 static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
7049 { 7044 {
7050 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodG", "TestObject", info.Holder(), info.GetIsolate()); 7045 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodG", "TestObject", info.Holder(), info.GetIsolate());
7051 TestObject* impl = V8TestObject::toNative(info.Holder()); 7046 TestObject* impl = V8TestObject::toNative(info.Holder());
7052 int longArg; 7047 int longArg;
7053 { 7048 {
7054 v8::TryCatch block; 7049 V8TryPropagate block;
7055 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 7050 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
7056 } 7051 }
7057 impl->overloadedMethodG(longArg); 7052 impl->overloadedMethodG(longArg);
7058 } 7053 }
7059 7054
7060 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7055 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
7061 { 7056 {
7062 TestObject* impl = V8TestObject::toNative(info.Holder()); 7057 TestObject* impl = V8TestObject::toNative(info.Holder());
7063 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; 7058 TestInterfaceEmpty* testInterfaceEmptyOrNullArg;
7064 { 7059 {
7065 v8::TryCatch block; 7060 V8TryPropagate block;
7066 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceEmpty ::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 7061 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceEmpty ::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
7067 } 7062 }
7068 impl->overloadedMethodG(testInterfaceEmptyOrNullArg); 7063 impl->overloadedMethodG(testInterfaceEmptyOrNullArg);
7069 } 7064 }
7070 7065
7071 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 7066 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
7072 { 7067 {
7073 v8::Isolate* isolate = info.GetIsolate(); 7068 v8::Isolate* isolate = info.GetIsolate();
7074 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodG", "TestObject", info.Holder(), isolate); 7069 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodG", "TestObject", info.Holder(), isolate);
7075 switch (std::min(1, info.Length())) { 7070 switch (std::min(1, info.Length())) {
(...skipping 25 matching lines...) Expand all
7101 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7096 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7102 TestObjectV8Internal::overloadedMethodGMethod(info); 7097 TestObjectV8Internal::overloadedMethodGMethod(info);
7103 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7098 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7104 } 7099 }
7105 7100
7106 static void overloadedMethodH1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7101 static void overloadedMethodH1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
7107 { 7102 {
7108 TestObject* impl = V8TestObject::toNative(info.Holder()); 7103 TestObject* impl = V8TestObject::toNative(info.Holder());
7109 TestInterfaceImplementation* testInterfaceArg; 7104 TestInterfaceImplementation* testInterfaceArg;
7110 { 7105 {
7111 v8::TryCatch block; 7106 V8TryPropagate block;
7112 TONATIVE_VOID_INTERNAL(testInterfaceArg, V8TestInterface::toNativeWithTy peCheck(info.GetIsolate(), info[0])); 7107 TONATIVE_VOID_INTERNAL(testInterfaceArg, V8TestInterface::toNativeWithTy peCheck(info.GetIsolate(), info[0]));
7113 } 7108 }
7114 impl->overloadedMethodH(testInterfaceArg); 7109 impl->overloadedMethodH(testInterfaceArg);
7115 } 7110 }
7116 7111
7117 static void overloadedMethodH2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7112 static void overloadedMethodH2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
7118 { 7113 {
7119 TestObject* impl = V8TestObject::toNative(info.Holder()); 7114 TestObject* impl = V8TestObject::toNative(info.Holder());
7120 TestInterfaceEmpty* testInterfaceEmptyArg; 7115 TestInterfaceEmpty* testInterfaceEmptyArg;
7121 { 7116 {
7122 v8::TryCatch block; 7117 V8TryPropagate block;
7123 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0])); 7118 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0]));
7124 } 7119 }
7125 impl->overloadedMethodH(testInterfaceEmptyArg); 7120 impl->overloadedMethodH(testInterfaceEmptyArg);
7126 } 7121 }
7127 7122
7128 static void overloadedMethodHMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 7123 static void overloadedMethodHMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
7129 { 7124 {
7130 v8::Isolate* isolate = info.GetIsolate(); 7125 v8::Isolate* isolate = info.GetIsolate();
7131 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodH", "TestObject", info.Holder(), isolate); 7126 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodH", "TestObject", info.Holder(), isolate);
7132 switch (std::min(1, info.Length())) { 7127 switch (std::min(1, info.Length())) {
(...skipping 21 matching lines...) Expand all
7154 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7149 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7155 TestObjectV8Internal::overloadedMethodHMethod(info); 7150 TestObjectV8Internal::overloadedMethodHMethod(info);
7156 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7151 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7157 } 7152 }
7158 7153
7159 static void overloadedMethodI1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7154 static void overloadedMethodI1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
7160 { 7155 {
7161 TestObject* impl = V8TestObject::toNative(info.Holder()); 7156 TestObject* impl = V8TestObject::toNative(info.Holder());
7162 V8StringResource<> stringArg; 7157 V8StringResource<> stringArg;
7163 { 7158 {
7164 TOSTRING_VOID_INTERNAL_NOTRYCATCH(stringArg, info[0]); 7159 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
7165 } 7160 }
7166 impl->overloadedMethodI(stringArg); 7161 impl->overloadedMethodI(stringArg);
7167 } 7162 }
7168 7163
7169 static void overloadedMethodI2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7164 static void overloadedMethodI2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
7170 { 7165 {
7171 TestObject* impl = V8TestObject::toNative(info.Holder()); 7166 TestObject* impl = V8TestObject::toNative(info.Holder());
7172 double doubleArg; 7167 double doubleArg;
7173 { 7168 {
7174 v8::TryCatch block; 7169 V8TryPropagate block;
7175 TONATIVE_VOID_INTERNAL(doubleArg, static_cast<double>(info[0]->NumberVal ue())); 7170 TONATIVE_VOID_INTERNAL(doubleArg, static_cast<double>(info[0]->NumberVal ue()));
7176 } 7171 }
7177 impl->overloadedMethodI(doubleArg); 7172 impl->overloadedMethodI(doubleArg);
7178 } 7173 }
7179 7174
7180 static void overloadedMethodIMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 7175 static void overloadedMethodIMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
7181 { 7176 {
7182 v8::Isolate* isolate = info.GetIsolate(); 7177 v8::Isolate* isolate = info.GetIsolate();
7183 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodI", "TestObject", info.Holder(), isolate); 7178 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodI", "TestObject", info.Holder(), isolate);
7184 switch (std::min(1, info.Length())) { 7179 switch (std::min(1, info.Length())) {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
7219 TestObject* impl = V8TestObject::toNative(info.Holder()); 7214 TestObject* impl = V8TestObject::toNative(info.Holder());
7220 impl->overloadedPerWorldBindingsMethod(); 7215 impl->overloadedPerWorldBindingsMethod();
7221 } 7216 }
7222 7217
7223 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn fo<v8::Value>& info) 7218 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn fo<v8::Value>& info)
7224 { 7219 {
7225 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); 7220 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate());
7226 TestObject* impl = V8TestObject::toNative(info.Holder()); 7221 TestObject* impl = V8TestObject::toNative(info.Holder());
7227 int longArg; 7222 int longArg;
7228 { 7223 {
7229 v8::TryCatch block; 7224 V8TryPropagate block;
7230 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 7225 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
7231 } 7226 }
7232 impl->overloadedPerWorldBindingsMethod(longArg); 7227 impl->overloadedPerWorldBindingsMethod(longArg);
7233 } 7228 }
7234 7229
7235 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info) 7230 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info)
7236 { 7231 {
7237 v8::Isolate* isolate = info.GetIsolate(); 7232 v8::Isolate* isolate = info.GetIsolate();
7238 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), isolate); 7233 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), isolate);
7239 switch (std::min(1, info.Length())) { 7234 switch (std::min(1, info.Length())) {
(...skipping 24 matching lines...) Expand all
7264 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethod(info); 7259 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethod(info);
7265 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7260 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7266 } 7261 }
7267 7262
7268 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi onCallbackInfo<v8::Value>& info) 7263 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi onCallbackInfo<v8::Value>& info)
7269 { 7264 {
7270 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); 7265 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate());
7271 TestObject* impl = V8TestObject::toNative(info.Holder()); 7266 TestObject* impl = V8TestObject::toNative(info.Holder());
7272 int longArg; 7267 int longArg;
7273 { 7268 {
7274 v8::TryCatch block; 7269 V8TryPropagate block;
7275 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 7270 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
7276 } 7271 }
7277 impl->overloadedPerWorldBindingsMethod(longArg); 7272 impl->overloadedPerWorldBindingsMethod(longArg);
7278 } 7273 }
7279 7274
7280 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio nCallbackInfo<v8::Value>& info) 7275 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio nCallbackInfo<v8::Value>& info)
7281 { 7276 {
7282 v8::Isolate* isolate = info.GetIsolate(); 7277 v8::Isolate* isolate = info.GetIsolate();
7283 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), isolate); 7278 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), isolate);
7284 switch (std::min(1, info.Length())) { 7279 switch (std::min(1, info.Length())) {
(...skipping 23 matching lines...) Expand all
7308 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7303 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7309 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethodForMainWorld(inf o); 7304 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethodForMainWorld(inf o);
7310 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7305 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7311 } 7306 }
7312 7307
7313 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val ue>& info) 7308 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val ue>& info)
7314 { 7309 {
7315 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate()); 7310 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate());
7316 int longArg; 7311 int longArg;
7317 { 7312 {
7318 v8::TryCatch block; 7313 V8TryPropagate block;
7319 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 7314 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
7320 } 7315 }
7321 TestObject::overloadedStaticMethod(longArg); 7316 TestObject::overloadedStaticMethod(longArg);
7322 } 7317 }
7323 7318
7324 static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val ue>& info) 7319 static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val ue>& info)
7325 { 7320 {
7326 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate()); 7321 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate());
7327 int longArg1; 7322 int longArg1;
7328 int longArg2; 7323 int longArg2;
7329 { 7324 {
7330 v8::TryCatch block; 7325 V8TryPropagate block;
7331 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg1, toInt32(info[0], excepti onState), exceptionState); 7326 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg1, toInt32(info[0], excepti onState), exceptionState);
7332 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg2, toInt32(info[1], excepti onState), exceptionState); 7327 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg2, toInt32(info[1], excepti onState), exceptionState);
7333 } 7328 }
7334 TestObject::overloadedStaticMethod(longArg1, longArg2); 7329 TestObject::overloadedStaticMethod(longArg1, longArg2);
7335 } 7330 }
7336 7331
7337 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info) 7332 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info)
7338 { 7333 {
7339 v8::Isolate* isolate = info.GetIsolate(); 7334 v8::Isolate* isolate = info.GetIsolate();
7340 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), isolate); 7335 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), isolate);
(...skipping 29 matching lines...) Expand all
7370 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 7365 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
7371 { 7366 {
7372 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC lampUnsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); 7367 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC lampUnsignedShortArg", "TestObject", info.Holder(), info.GetIsolate());
7373 if (UNLIKELY(info.Length() < 1)) { 7368 if (UNLIKELY(info.Length() < 1)) {
7374 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 7369 throwMinimumArityTypeError(exceptionState, 1, info.Length());
7375 return; 7370 return;
7376 } 7371 }
7377 TestObject* impl = V8TestObject::toNative(info.Holder()); 7372 TestObject* impl = V8TestObject::toNative(info.Holder());
7378 unsigned clampUnsignedShortArg = 0; 7373 unsigned clampUnsignedShortArg = 0;
7379 { 7374 {
7380 v8::TryCatch block; 7375 V8TryPropagate block;
7381 double clampUnsignedShortArgNativeValue; 7376 double clampUnsignedShortArgNativeValue;
7382 TONATIVE_VOID_INTERNAL(clampUnsignedShortArgNativeValue, info[0]->Number Value()); 7377 TONATIVE_VOID_INTERNAL(clampUnsignedShortArgNativeValue, info[0]->Number Value());
7383 if (!std::isnan(clampUnsignedShortArgNativeValue)) 7378 if (!std::isnan(clampUnsignedShortArgNativeValue))
7384 clampUnsignedShortArg = clampTo<unsigned short>(clampUnsignedShortAr gNativeValue); 7379 clampUnsignedShortArg = clampTo<unsigned short>(clampUnsignedShortAr gNativeValue);
7385 } 7380 }
7386 impl->voidMethodClampUnsignedShortArg(clampUnsignedShortArg); 7381 impl->voidMethodClampUnsignedShortArg(clampUnsignedShortArg);
7387 } 7382 }
7388 7383
7389 static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 7384 static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
7390 { 7385 {
7391 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7386 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7392 TestObjectV8Internal::voidMethodClampUnsignedShortArgMethod(info); 7387 TestObjectV8Internal::voidMethodClampUnsignedShortArgMethod(info);
7393 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7388 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7394 } 7389 }
7395 7390
7396 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info) 7391 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info)
7397 { 7392 {
7398 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC lampUnsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); 7393 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC lampUnsignedLongArg", "TestObject", info.Holder(), info.GetIsolate());
7399 if (UNLIKELY(info.Length() < 1)) { 7394 if (UNLIKELY(info.Length() < 1)) {
7400 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 7395 throwMinimumArityTypeError(exceptionState, 1, info.Length());
7401 return; 7396 return;
7402 } 7397 }
7403 TestObject* impl = V8TestObject::toNative(info.Holder()); 7398 TestObject* impl = V8TestObject::toNative(info.Holder());
7404 unsigned clampUnsignedLongArg = 0; 7399 unsigned clampUnsignedLongArg = 0;
7405 { 7400 {
7406 v8::TryCatch block; 7401 V8TryPropagate block;
7407 double clampUnsignedLongArgNativeValue; 7402 double clampUnsignedLongArgNativeValue;
7408 TONATIVE_VOID_INTERNAL(clampUnsignedLongArgNativeValue, info[0]->NumberV alue()); 7403 TONATIVE_VOID_INTERNAL(clampUnsignedLongArgNativeValue, info[0]->NumberV alue());
7409 if (!std::isnan(clampUnsignedLongArgNativeValue)) 7404 if (!std::isnan(clampUnsignedLongArgNativeValue))
7410 clampUnsignedLongArg = clampTo<unsigned long>(clampUnsignedLongArgNa tiveValue); 7405 clampUnsignedLongArg = clampTo<unsigned long>(clampUnsignedLongArgNa tiveValue);
7411 } 7406 }
7412 impl->voidMethodClampUnsignedLongArg(clampUnsignedLongArg); 7407 impl->voidMethodClampUnsignedLongArg(clampUnsignedLongArg);
7413 } 7408 }
7414 7409
7415 static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 7410 static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
7416 { 7411 {
7417 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7412 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7418 TestObjectV8Internal::voidMethodClampUnsignedLongArgMethod(info); 7413 TestObjectV8Internal::voidMethodClampUnsignedLongArgMethod(info);
7419 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7414 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7420 } 7415 }
7421 7416
7422 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) 7417 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info)
7423 { 7418 {
7424 TestObject* impl = V8TestObject::toNative(info.Holder()); 7419 TestObject* impl = V8TestObject::toNative(info.Holder());
7425 TestInterfaceEmpty* defaultUndefinedTestInterfaceEmptyArg; 7420 TestInterfaceEmpty* defaultUndefinedTestInterfaceEmptyArg;
7426 { 7421 {
7427 v8::TryCatch block; 7422 V8TryPropagate block;
7428 TONATIVE_VOID_INTERNAL(defaultUndefinedTestInterfaceEmptyArg, V8TestInte rfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 7423 TONATIVE_VOID_INTERNAL(defaultUndefinedTestInterfaceEmptyArg, V8TestInte rfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
7429 } 7424 }
7430 impl->voidMethodDefaultUndefinedTestInterfaceEmptyArg(defaultUndefinedTestIn terfaceEmptyArg); 7425 impl->voidMethodDefaultUndefinedTestInterfaceEmptyArg(defaultUndefinedTestIn terfaceEmptyArg);
7431 } 7426 }
7432 7427
7433 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 7428 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
7434 { 7429 {
7435 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7430 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7436 TestObjectV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod( info); 7431 TestObjectV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod( info);
7437 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7432 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7438 } 7433 }
7439 7434
7440 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info) 7435 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info)
7441 { 7436 {
7442 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultUndefinedLongArg", "TestObject", info.Holder(), info.GetIsolate()); 7437 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultUndefinedLongArg", "TestObject", info.Holder(), info.GetIsolate());
7443 TestObject* impl = V8TestObject::toNative(info.Holder()); 7438 TestObject* impl = V8TestObject::toNative(info.Holder());
7444 int defaultUndefinedLongArg; 7439 int defaultUndefinedLongArg;
7445 { 7440 {
7446 v8::TryCatch block; 7441 V8TryPropagate block;
7447 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultUndefinedLongArg, toInt32(i nfo[0], exceptionState), exceptionState); 7442 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultUndefinedLongArg, toInt32(i nfo[0], exceptionState), exceptionState);
7448 } 7443 }
7449 impl->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg); 7444 impl->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg);
7450 } 7445 }
7451 7446
7452 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info) 7447 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info)
7453 { 7448 {
7454 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7449 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7455 TestObjectV8Internal::voidMethodDefaultUndefinedLongArgMethod(info); 7450 TestObjectV8Internal::voidMethodDefaultUndefinedLongArgMethod(info);
7456 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7451 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7457 } 7452 }
7458 7453
7459 static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback Info<v8::Value>& info) 7454 static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback Info<v8::Value>& info)
7460 { 7455 {
7461 TestObject* impl = V8TestObject::toNative(info.Holder()); 7456 TestObject* impl = V8TestObject::toNative(info.Holder());
7462 V8StringResource<> defaultUndefinedStringArg; 7457 V8StringResource<> defaultUndefinedStringArg;
7463 { 7458 {
7464 TOSTRING_VOID_INTERNAL_NOTRYCATCH(defaultUndefinedStringArg, info[0]); 7459 TOSTRING_VOID_INTERNAL(defaultUndefinedStringArg, info[0]);
7465 } 7460 }
7466 impl->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg); 7461 impl->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg);
7467 } 7462 }
7468 7463
7469 static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function CallbackInfo<v8::Value>& info) 7464 static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function CallbackInfo<v8::Value>& info)
7470 { 7465 {
7471 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7466 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7472 TestObjectV8Internal::voidMethodDefaultUndefinedStringArgMethod(info); 7467 TestObjectV8Internal::voidMethodDefaultUndefinedStringArgMethod(info);
7473 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7468 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7474 } 7469 }
7475 7470
7476 static void voidMethodDefaultNullStringStringArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) 7471 static void voidMethodDefaultNullStringStringArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info)
7477 { 7472 {
7478 TestObject* impl = V8TestObject::toNative(info.Holder()); 7473 TestObject* impl = V8TestObject::toNative(info.Holder());
7479 V8StringResource<> defaultNullStringStringArg; 7474 V8StringResource<> defaultNullStringStringArg;
7480 { 7475 {
7481 TOSTRING_VOID_INTERNAL_NOTRYCATCH(defaultNullStringStringArg, argumentOr Null(info, 0)); 7476 TOSTRING_VOID_INTERNAL(defaultNullStringStringArg, argumentOrNull(info, 0));
7482 } 7477 }
7483 impl->voidMethodDefaultNullStringStringArg(defaultNullStringStringArg); 7478 impl->voidMethodDefaultNullStringStringArg(defaultNullStringStringArg);
7484 } 7479 }
7485 7480
7486 static void voidMethodDefaultNullStringStringArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 7481 static void voidMethodDefaultNullStringStringArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
7487 { 7482 {
7488 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7483 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7489 TestObjectV8Internal::voidMethodDefaultNullStringStringArgMethod(info); 7484 TestObjectV8Internal::voidMethodDefaultNullStringStringArgMethod(info);
7490 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7485 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7491 } 7486 }
7492 7487
7493 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) 7488 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info)
7494 { 7489 {
7495 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE nforceRangeLongArg", "TestObject", info.Holder(), info.GetIsolate()); 7490 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE nforceRangeLongArg", "TestObject", info.Holder(), info.GetIsolate());
7496 if (UNLIKELY(info.Length() < 1)) { 7491 if (UNLIKELY(info.Length() < 1)) {
7497 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 7492 throwMinimumArityTypeError(exceptionState, 1, info.Length());
7498 return; 7493 return;
7499 } 7494 }
7500 TestObject* impl = V8TestObject::toNative(info.Holder()); 7495 TestObject* impl = V8TestObject::toNative(info.Holder());
7501 int enforceRangeLongArg; 7496 int enforceRangeLongArg;
7502 { 7497 {
7503 v8::TryCatch block; 7498 V8TryPropagate block;
7504 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(enforceRangeLongArg, toInt32(info[ 0], EnforceRange, exceptionState), exceptionState); 7499 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(enforceRangeLongArg, toInt32(info[ 0], EnforceRange, exceptionState), exceptionState);
7505 } 7500 }
7506 impl->voidMethodEnforceRangeLongArg(enforceRangeLongArg); 7501 impl->voidMethodEnforceRangeLongArg(enforceRangeLongArg);
7507 } 7502 }
7508 7503
7509 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 7504 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
7510 { 7505 {
7511 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7506 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7512 TestObjectV8Internal::voidMethodEnforceRangeLongArgMethod(info); 7507 TestObjectV8Internal::voidMethodEnforceRangeLongArgMethod(info);
7513 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7508 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7514 } 7509 }
7515 7510
7516 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) 7511 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info)
7517 { 7512 {
7518 if (UNLIKELY(info.Length() < 1)) { 7513 if (UNLIKELY(info.Length() < 1)) {
7519 throwMinimumArityTypeErrorForMethod("voidMethodTreatNullAsNullStringStri ngArg", "TestObject", 1, info.Length(), info.GetIsolate()); 7514 throwMinimumArityTypeErrorForMethod("voidMethodTreatNullAsNullStringStri ngArg", "TestObject", 1, info.Length(), info.GetIsolate());
7520 return; 7515 return;
7521 } 7516 }
7522 TestObject* impl = V8TestObject::toNative(info.Holder()); 7517 TestObject* impl = V8TestObject::toNative(info.Holder());
7523 V8StringResource<WithNullCheck> treatNullAsNullStringStringArg; 7518 V8StringResource<WithNullCheck> treatNullAsNullStringStringArg;
7524 { 7519 {
7525 TOSTRING_VOID_INTERNAL_NOTRYCATCH(treatNullAsNullStringStringArg, info[0 ]); 7520 TOSTRING_VOID_INTERNAL(treatNullAsNullStringStringArg, info[0]);
7526 } 7521 }
7527 impl->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringAr g); 7522 impl->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringAr g);
7528 } 7523 }
7529 7524
7530 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 7525 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
7531 { 7526 {
7532 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7527 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7533 TestObjectV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(info); 7528 TestObjectV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(info);
7534 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7529 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7535 } 7530 }
7536 7531
7537 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe thod(const v8::FunctionCallbackInfo<v8::Value>& info) 7532 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe thod(const v8::FunctionCallbackInfo<v8::Value>& info)
7538 { 7533 {
7539 if (UNLIKELY(info.Length() < 1)) { 7534 if (UNLIKELY(info.Length() < 1)) {
7540 throwMinimumArityTypeErrorForMethod("voidMethodTreatNullAsNullStringTrea tUndefinedAsNullStringStringArg", "TestObject", 1, info.Length(), info.GetIsolat e()); 7535 throwMinimumArityTypeErrorForMethod("voidMethodTreatNullAsNullStringTrea tUndefinedAsNullStringStringArg", "TestObject", 1, info.Length(), info.GetIsolat e());
7541 return; 7536 return;
7542 } 7537 }
7543 TestObject* impl = V8TestObject::toNative(info.Holder()); 7538 TestObject* impl = V8TestObject::toNative(info.Holder());
7544 V8StringResource<WithUndefinedOrNullCheck> treatNullAsNullStringStringArg; 7539 V8StringResource<WithUndefinedOrNullCheck> treatNullAsNullStringStringArg;
7545 { 7540 {
7546 TOSTRING_VOID_INTERNAL_NOTRYCATCH(treatNullAsNullStringStringArg, info[0 ]); 7541 TOSTRING_VOID_INTERNAL(treatNullAsNullStringStringArg, info[0]);
7547 } 7542 }
7548 impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(tre atNullAsNullStringStringArg); 7543 impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(tre atNullAsNullStringStringArg);
7549 } 7544 }
7550 7545
7551 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 7546 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
7552 { 7547 {
7553 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7548 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7554 TestObjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStr ingStringArgMethod(info); 7549 TestObjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStr ingStringArgMethod(info);
7555 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7550 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7556 } 7551 }
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
7644 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7639 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7645 TestObjectV8Internal::callWithScriptStateScriptArgumentsVoidMethodMethod(inf o); 7640 TestObjectV8Internal::callWithScriptStateScriptArgumentsVoidMethodMethod(inf o);
7646 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7641 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7647 } 7642 }
7648 7643
7649 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod (const v8::FunctionCallbackInfo<v8::Value>& info) 7644 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod (const v8::FunctionCallbackInfo<v8::Value>& info)
7650 { 7645 {
7651 TestObject* impl = V8TestObject::toNative(info.Holder()); 7646 TestObject* impl = V8TestObject::toNative(info.Holder());
7652 bool optionalBooleanArg; 7647 bool optionalBooleanArg;
7653 { 7648 {
7654 v8::TryCatch block; 7649 V8TryPropagate block;
7655 if (UNLIKELY(info.Length() <= 0)) { 7650 if (UNLIKELY(info.Length() <= 0)) {
7656 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); 7651 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
7657 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1)); 7652 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1));
7658 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg (scriptState, scriptArguments.release()); 7653 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg (scriptState, scriptArguments.release());
7659 return; 7654 return;
7660 } 7655 }
7661 TONATIVE_VOID_INTERNAL(optionalBooleanArg, info[0]->BooleanValue()); 7656 TONATIVE_VOID_INTERNAL(optionalBooleanArg, info[0]->BooleanValue());
7662 } 7657 }
7663 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); 7658 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
7664 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1)); 7659 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1));
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
7855 TestObject* impl = V8TestObject::toNative(info.Holder()); 7850 TestObject* impl = V8TestObject::toNative(info.Holder());
7856 impl->DeprecateAsOverloadedMethod(); 7851 impl->DeprecateAsOverloadedMethod();
7857 } 7852 }
7858 7853
7859 static void DeprecateAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8 ::Value>& info) 7854 static void DeprecateAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8 ::Value>& info)
7860 { 7855 {
7861 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 7856 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
7862 TestObject* impl = V8TestObject::toNative(info.Holder()); 7857 TestObject* impl = V8TestObject::toNative(info.Holder());
7863 int arg; 7858 int arg;
7864 { 7859 {
7865 v8::TryCatch block; 7860 V8TryPropagate block;
7866 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 7861 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
7867 } 7862 }
7868 impl->DeprecateAsOverloadedMethod(arg); 7863 impl->DeprecateAsOverloadedMethod(arg);
7869 } 7864 }
7870 7865
7871 static void DeprecateAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 7866 static void DeprecateAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
7872 { 7867 {
7873 v8::Isolate* isolate = info.GetIsolate(); 7868 v8::Isolate* isolate = info.GetIsolate();
7874 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs OverloadedMethod", "TestObject", info.Holder(), isolate); 7869 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs OverloadedMethod", "TestObject", info.Holder(), isolate);
7875 switch (std::min(1, info.Length())) { 7870 switch (std::min(1, info.Length())) {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
7908 TestObject* impl = V8TestObject::toNative(info.Holder()); 7903 TestObject* impl = V8TestObject::toNative(info.Holder());
7909 impl->DeprecateAsSameValueOverloadedMethod(); 7904 impl->DeprecateAsSameValueOverloadedMethod();
7910 } 7905 }
7911 7906
7912 static void DeprecateAsSameValueOverloadedMethod2Method(const v8::FunctionCallba ckInfo<v8::Value>& info) 7907 static void DeprecateAsSameValueOverloadedMethod2Method(const v8::FunctionCallba ckInfo<v8::Value>& info)
7913 { 7908 {
7914 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 7909 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
7915 TestObject* impl = V8TestObject::toNative(info.Holder()); 7910 TestObject* impl = V8TestObject::toNative(info.Holder());
7916 int arg; 7911 int arg;
7917 { 7912 {
7918 v8::TryCatch block; 7913 V8TryPropagate block;
7919 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 7914 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
7920 } 7915 }
7921 impl->DeprecateAsSameValueOverloadedMethod(arg); 7916 impl->DeprecateAsSameValueOverloadedMethod(arg);
7922 } 7917 }
7923 7918
7924 static void DeprecateAsSameValueOverloadedMethodMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) 7919 static void DeprecateAsSameValueOverloadedMethodMethod(const v8::FunctionCallbac kInfo<v8::Value>& info)
7925 { 7920 {
7926 v8::Isolate* isolate = info.GetIsolate(); 7921 v8::Isolate* isolate = info.GetIsolate();
7927 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs SameValueOverloadedMethod", "TestObject", info.Holder(), isolate); 7922 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs SameValueOverloadedMethod", "TestObject", info.Holder(), isolate);
7928 UseCounter::countDeprecation(callingExecutionContext(isolate), UseCounter::T estFeature); 7923 UseCounter::countDeprecation(callingExecutionContext(isolate), UseCounter::T estFeature);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
7960 TestObject* impl = V8TestObject::toNative(info.Holder()); 7955 TestObject* impl = V8TestObject::toNative(info.Holder());
7961 impl->measureAsOverloadedMethod(); 7956 impl->measureAsOverloadedMethod();
7962 } 7957 }
7963 7958
7964 static void measureAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8:: Value>& info) 7959 static void measureAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8:: Value>& info)
7965 { 7960 {
7966 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv erloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 7961 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv erloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
7967 TestObject* impl = V8TestObject::toNative(info.Holder()); 7962 TestObject* impl = V8TestObject::toNative(info.Holder());
7968 int arg; 7963 int arg;
7969 { 7964 {
7970 v8::TryCatch block; 7965 V8TryPropagate block;
7971 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 7966 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
7972 } 7967 }
7973 impl->measureAsOverloadedMethod(arg); 7968 impl->measureAsOverloadedMethod(arg);
7974 } 7969 }
7975 7970
7976 static void measureAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 7971 static void measureAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
7977 { 7972 {
7978 v8::Isolate* isolate = info.GetIsolate(); 7973 v8::Isolate* isolate = info.GetIsolate();
7979 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv erloadedMethod", "TestObject", info.Holder(), isolate); 7974 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv erloadedMethod", "TestObject", info.Holder(), isolate);
7980 switch (std::min(1, info.Length())) { 7975 switch (std::min(1, info.Length())) {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
8013 TestObject* impl = V8TestObject::toNative(info.Holder()); 8008 TestObject* impl = V8TestObject::toNative(info.Holder());
8014 impl->measureAsSameValueOverloadedMethod(); 8009 impl->measureAsSameValueOverloadedMethod();
8015 } 8010 }
8016 8011
8017 static void measureAsSameValueOverloadedMethod2Method(const v8::FunctionCallback Info<v8::Value>& info) 8012 static void measureAsSameValueOverloadedMethod2Method(const v8::FunctionCallback Info<v8::Value>& info)
8018 { 8013 {
8019 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 8014 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
8020 TestObject* impl = V8TestObject::toNative(info.Holder()); 8015 TestObject* impl = V8TestObject::toNative(info.Holder());
8021 int arg; 8016 int arg;
8022 { 8017 {
8023 v8::TryCatch block; 8018 V8TryPropagate block;
8024 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 8019 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
8025 } 8020 }
8026 impl->measureAsSameValueOverloadedMethod(arg); 8021 impl->measureAsSameValueOverloadedMethod(arg);
8027 } 8022 }
8028 8023
8029 static void measureAsSameValueOverloadedMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 8024 static void measureAsSameValueOverloadedMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
8030 { 8025 {
8031 v8::Isolate* isolate = info.GetIsolate(); 8026 v8::Isolate* isolate = info.GetIsolate();
8032 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa meValueOverloadedMethod", "TestObject", info.Holder(), isolate); 8027 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa meValueOverloadedMethod", "TestObject", info.Holder(), isolate);
8033 UseCounter::count(callingExecutionContext(isolate), UseCounter::TestFeature) ; 8028 UseCounter::count(callingExecutionContext(isolate), UseCounter::TestFeature) ;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
8065 TestObject* impl = V8TestObject::toNative(info.Holder()); 8060 TestObject* impl = V8TestObject::toNative(info.Holder());
8066 impl->deprecateAsMeasureAsSameValueOverloadedMethod(); 8061 impl->deprecateAsMeasureAsSameValueOverloadedMethod();
8067 } 8062 }
8068 8063
8069 static void deprecateAsMeasureAsSameValueOverloadedMethod2Method(const v8::Funct ionCallbackInfo<v8::Value>& info) 8064 static void deprecateAsMeasureAsSameValueOverloadedMethod2Method(const v8::Funct ionCallbackInfo<v8::Value>& info)
8070 { 8065 {
8071 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e()); 8066 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e());
8072 TestObject* impl = V8TestObject::toNative(info.Holder()); 8067 TestObject* impl = V8TestObject::toNative(info.Holder());
8073 int arg; 8068 int arg;
8074 { 8069 {
8075 v8::TryCatch block; 8070 V8TryPropagate block;
8076 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 8071 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
8077 } 8072 }
8078 impl->deprecateAsMeasureAsSameValueOverloadedMethod(arg); 8073 impl->deprecateAsMeasureAsSameValueOverloadedMethod(arg);
8079 } 8074 }
8080 8075
8081 static void deprecateAsMeasureAsSameValueOverloadedMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info) 8076 static void deprecateAsMeasureAsSameValueOverloadedMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info)
8082 { 8077 {
8083 v8::Isolate* isolate = info.GetIsolate(); 8078 v8::Isolate* isolate = info.GetIsolate();
8084 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), isolate); 8079 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), isolate);
8085 UseCounter::count(callingExecutionContext(isolate), UseCounter::TestFeature) ; 8080 UseCounter::count(callingExecutionContext(isolate), UseCounter::TestFeature) ;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
8119 TestObject* impl = V8TestObject::toNative(info.Holder()); 8114 TestObject* impl = V8TestObject::toNative(info.Holder());
8120 impl->deprecateAsSameValueMeasureAsOverloadedMethod(); 8115 impl->deprecateAsSameValueMeasureAsOverloadedMethod();
8121 } 8116 }
8122 8117
8123 static void deprecateAsSameValueMeasureAsOverloadedMethod2Method(const v8::Funct ionCallbackInfo<v8::Value>& info) 8118 static void deprecateAsSameValueMeasureAsOverloadedMethod2Method(const v8::Funct ionCallbackInfo<v8::Value>& info)
8124 { 8119 {
8125 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e()); 8120 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e());
8126 TestObject* impl = V8TestObject::toNative(info.Holder()); 8121 TestObject* impl = V8TestObject::toNative(info.Holder());
8127 int arg; 8122 int arg;
8128 { 8123 {
8129 v8::TryCatch block; 8124 V8TryPropagate block;
8130 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 8125 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
8131 } 8126 }
8132 impl->deprecateAsSameValueMeasureAsOverloadedMethod(arg); 8127 impl->deprecateAsSameValueMeasureAsOverloadedMethod(arg);
8133 } 8128 }
8134 8129
8135 static void deprecateAsSameValueMeasureAsOverloadedMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info) 8130 static void deprecateAsSameValueMeasureAsOverloadedMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info)
8136 { 8131 {
8137 v8::Isolate* isolate = info.GetIsolate(); 8132 v8::Isolate* isolate = info.GetIsolate();
8138 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), isolate); 8133 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), isolate);
8139 UseCounter::countDeprecation(callingExecutionContext(isolate), UseCounter::T estFeature); 8134 UseCounter::countDeprecation(callingExecutionContext(isolate), UseCounter::T estFeature);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
8173 TestObject* impl = V8TestObject::toNative(info.Holder()); 8168 TestObject* impl = V8TestObject::toNative(info.Holder());
8174 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(); 8169 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod();
8175 } 8170 }
8176 8171
8177 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 8172 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
8178 { 8173 {
8179 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info. GetIsolate()); 8174 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info. GetIsolate());
8180 TestObject* impl = V8TestObject::toNative(info.Holder()); 8175 TestObject* impl = V8TestObject::toNative(info.Holder());
8181 int arg; 8176 int arg;
8182 { 8177 {
8183 v8::TryCatch block; 8178 V8TryPropagate block;
8184 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 8179 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
8185 } 8180 }
8186 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(arg); 8181 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(arg);
8187 } 8182 }
8188 8183
8189 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethod(const v 8::FunctionCallbackInfo<v8::Value>& info) 8184 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethod(const v 8::FunctionCallbackInfo<v8::Value>& info)
8190 { 8185 {
8191 v8::Isolate* isolate = info.GetIsolate(); 8186 v8::Isolate* isolate = info.GetIsolate();
8192 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), isola te); 8187 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), isola te);
8193 UseCounter::count(callingExecutionContext(isolate), UseCounter::TestFeatureB ); 8188 UseCounter::count(callingExecutionContext(isolate), UseCounter::TestFeatureB );
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
8275 8270
8276 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) 8271 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info)
8277 { 8272 {
8278 if (UNLIKELY(info.Length() < 1)) { 8273 if (UNLIKELY(info.Length() < 1)) {
8279 throwMinimumArityTypeErrorForMethod("perWorldBindingsVoidMethodTestInter faceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate()); 8274 throwMinimumArityTypeErrorForMethod("perWorldBindingsVoidMethodTestInter faceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate());
8280 return; 8275 return;
8281 } 8276 }
8282 TestObject* impl = V8TestObject::toNative(info.Holder()); 8277 TestObject* impl = V8TestObject::toNative(info.Holder());
8283 TestInterfaceEmpty* testInterfaceEmptyArg; 8278 TestInterfaceEmpty* testInterfaceEmptyArg;
8284 { 8279 {
8285 v8::TryCatch block; 8280 V8TryPropagate block;
8286 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0])); 8281 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0]));
8287 } 8282 }
8288 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg) ; 8283 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg) ;
8289 } 8284 }
8290 8285
8291 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 8286 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
8292 { 8287 {
8293 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8288 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8294 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod( info); 8289 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod( info);
8295 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8290 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
8296 } 8291 }
8297 8292
8298 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(co nst v8::FunctionCallbackInfo<v8::Value>& info) 8293 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(co nst v8::FunctionCallbackInfo<v8::Value>& info)
8299 { 8294 {
8300 if (UNLIKELY(info.Length() < 1)) { 8295 if (UNLIKELY(info.Length() < 1)) {
8301 throwMinimumArityTypeErrorForMethod("perWorldBindingsVoidMethodTestInter faceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate()); 8296 throwMinimumArityTypeErrorForMethod("perWorldBindingsVoidMethodTestInter faceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate());
8302 return; 8297 return;
8303 } 8298 }
8304 TestObject* impl = V8TestObject::toNative(info.Holder()); 8299 TestObject* impl = V8TestObject::toNative(info.Holder());
8305 TestInterfaceEmpty* testInterfaceEmptyArg; 8300 TestInterfaceEmpty* testInterfaceEmptyArg;
8306 { 8301 {
8307 v8::TryCatch block; 8302 V8TryPropagate block;
8308 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0])); 8303 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0]));
8309 } 8304 }
8310 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg) ; 8305 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg) ;
8311 } 8306 }
8312 8307
8313 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMain World(const v8::FunctionCallbackInfo<v8::Value>& info) 8308 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMain World(const v8::FunctionCallbackInfo<v8::Value>& info)
8314 { 8309 {
8315 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8310 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8316 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodF orMainWorld(info); 8311 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodF orMainWorld(info);
8317 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8312 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
8420 TestObjectV8Internal::raisesExceptionStringMethodMethod(info); 8415 TestObjectV8Internal::raisesExceptionStringMethodMethod(info);
8421 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8416 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
8422 } 8417 }
8423 8418
8424 static void raisesExceptionVoidMethodOptionalLongArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) 8419 static void raisesExceptionVoidMethodOptionalLongArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info)
8425 { 8420 {
8426 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep tionVoidMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 8421 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep tionVoidMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
8427 TestObject* impl = V8TestObject::toNative(info.Holder()); 8422 TestObject* impl = V8TestObject::toNative(info.Holder());
8428 int optionalLongArg; 8423 int optionalLongArg;
8429 { 8424 {
8430 v8::TryCatch block; 8425 V8TryPropagate block;
8431 if (UNLIKELY(info.Length() <= 0)) { 8426 if (UNLIKELY(info.Length() <= 0)) {
8432 impl->raisesExceptionVoidMethodOptionalLongArg(exceptionState); 8427 impl->raisesExceptionVoidMethodOptionalLongArg(exceptionState);
8433 if (exceptionState.hadException()) { 8428 if (exceptionState.hadException()) {
8434 exceptionState.throwIfNeeded(); 8429 exceptionState.throwIfNeeded();
8435 return; 8430 return;
8436 } 8431 }
8437 return; 8432 return;
8438 } 8433 }
8439 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState); 8434 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState);
8440 } 8435 }
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
8534 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 8529 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
8535 { 8530 {
8536 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe cutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), inf o.GetIsolate()); 8531 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe cutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), inf o.GetIsolate());
8537 if (UNLIKELY(info.Length() < 1)) { 8532 if (UNLIKELY(info.Length() < 1)) {
8538 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 8533 throwMinimumArityTypeError(exceptionState, 1, info.Length());
8539 return; 8534 return;
8540 } 8535 }
8541 TestObject* impl = V8TestObject::toNative(info.Holder()); 8536 TestObject* impl = V8TestObject::toNative(info.Holder());
8542 int longArg; 8537 int longArg;
8543 { 8538 {
8544 v8::TryCatch block; 8539 V8TryPropagate block;
8545 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 8540 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
8546 } 8541 }
8547 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ; 8542 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ;
8548 impl->callWithExecutionContextRaisesExceptionVoidMethodLongArg(scriptContext , longArg, exceptionState); 8543 impl->callWithExecutionContextRaisesExceptionVoidMethodLongArg(scriptContext , longArg, exceptionState);
8549 if (exceptionState.hadException()) { 8544 if (exceptionState.hadException()) {
8550 exceptionState.throwIfNeeded(); 8545 exceptionState.throwIfNeeded();
8551 return; 8546 return;
8552 } 8547 }
8553 } 8548 }
8554 8549
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
8652 8647
8653 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethod(const v8: :FunctionCallbackInfo<v8::Value>& info) 8648 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethod(const v8: :FunctionCallbackInfo<v8::Value>& info)
8654 { 8649 {
8655 if (UNLIKELY(info.Length() < 1)) { 8650 if (UNLIKELY(info.Length() < 1)) {
8656 throwMinimumArityTypeErrorForMethod("typeCheckingInterfaceVoidMethodTest InterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate()); 8651 throwMinimumArityTypeErrorForMethod("typeCheckingInterfaceVoidMethodTest InterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate());
8657 return; 8652 return;
8658 } 8653 }
8659 TestObject* impl = V8TestObject::toNative(info.Holder()); 8654 TestObject* impl = V8TestObject::toNative(info.Holder());
8660 TestInterfaceEmpty* testInterfaceEmptyArg; 8655 TestInterfaceEmpty* testInterfaceEmptyArg;
8661 { 8656 {
8662 v8::TryCatch block; 8657 V8TryPropagate block;
8663 if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], inf o.GetIsolate())) { 8658 if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], inf o.GetIsolate())) {
8664 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingInter faceVoidMethodTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestInterfaceEmpty'."), info.GetIsolate()); 8659 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingInter faceVoidMethodTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestInterfaceEmpty'."), info.GetIsolate());
8665 block.ReThrow();
8666 return; 8660 return;
8667 } 8661 }
8668 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0])); 8662 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0]));
8669 } 8663 }
8670 impl->typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg(testInterfaceEmpt yArg); 8664 impl->typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg(testInterfaceEmpt yArg);
8671 } 8665 }
8672 8666
8673 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info) 8667 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info)
8674 { 8668 {
8675 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8669 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8676 TestObjectV8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMe thod(info); 8670 TestObjectV8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMe thod(info);
8677 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8671 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
8678 } 8672 }
8679 8673
8680 static void typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethod(cons t v8::FunctionCallbackInfo<v8::Value>& info) 8674 static void typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethod(cons t v8::FunctionCallbackInfo<v8::Value>& info)
8681 { 8675 {
8682 if (UNLIKELY(info.Length() < 1)) { 8676 if (UNLIKELY(info.Length() < 1)) {
8683 throwMinimumArityTypeErrorForMethod("typeCheckingNullableVoidMethodTestI nterfaceEmptyOrNullArg", "TestObject", 1, info.Length(), info.GetIsolate()); 8677 throwMinimumArityTypeErrorForMethod("typeCheckingNullableVoidMethodTestI nterfaceEmptyOrNullArg", "TestObject", 1, info.Length(), info.GetIsolate());
8684 return; 8678 return;
8685 } 8679 }
8686 TestObject* impl = V8TestObject::toNative(info.Holder()); 8680 TestObject* impl = V8TestObject::toNative(info.Holder());
8687 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; 8681 TestInterfaceEmpty* testInterfaceEmptyOrNullArg;
8688 { 8682 {
8689 v8::TryCatch block; 8683 V8TryPropagate block;
8690 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceEmpty ::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 8684 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceEmpty ::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
8691 } 8685 }
8692 impl->typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArg(testInterfac eEmptyOrNullArg); 8686 impl->typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArg(testInterfac eEmptyOrNullArg);
8693 } 8687 }
8694 8688
8695 static void typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethodCallb ack(const v8::FunctionCallbackInfo<v8::Value>& info) 8689 static void typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethodCallb ack(const v8::FunctionCallbackInfo<v8::Value>& info)
8696 { 8690 {
8697 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8691 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8698 TestObjectV8Internal::typeCheckingNullableVoidMethodTestInterfaceEmptyOrNull ArgMethod(info); 8692 TestObjectV8Internal::typeCheckingNullableVoidMethodTestInterfaceEmptyOrNull ArgMethod(info);
8699 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8693 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
8700 } 8694 }
8701 8695
8702 static void typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArgMe thod(const v8::FunctionCallbackInfo<v8::Value>& info) 8696 static void typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArgMe thod(const v8::FunctionCallbackInfo<v8::Value>& info)
8703 { 8697 {
8704 if (UNLIKELY(info.Length() < 1)) { 8698 if (UNLIKELY(info.Length() < 1)) {
8705 throwMinimumArityTypeErrorForMethod("typeCheckingInterfaceNullableVoidMe thodTestInterfaceEmptyOrNullArg", "TestObject", 1, info.Length(), info.GetIsolat e()); 8699 throwMinimumArityTypeErrorForMethod("typeCheckingInterfaceNullableVoidMe thodTestInterfaceEmptyOrNullArg", "TestObject", 1, info.Length(), info.GetIsolat e());
8706 return; 8700 return;
8707 } 8701 }
8708 TestObject* impl = V8TestObject::toNative(info.Holder()); 8702 TestObject* impl = V8TestObject::toNative(info.Holder());
8709 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; 8703 TestInterfaceEmpty* testInterfaceEmptyOrNullArg;
8710 { 8704 {
8711 v8::TryCatch block; 8705 V8TryPropagate block;
8712 if (info.Length() > 0 && !isUndefinedOrNull(info[0]) && !V8TestInterface Empty::hasInstance(info[0], info.GetIsolate())) { 8706 if (info.Length() > 0 && !isUndefinedOrNull(info[0]) && !V8TestInterface Empty::hasInstance(info[0], info.GetIsolate())) {
8713 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingInter faceNullableVoidMethodTestInterfaceEmptyOrNullArg", "TestObject", "parameter 1 i s not of type 'TestInterfaceEmpty'."), info.GetIsolate()); 8707 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingInter faceNullableVoidMethodTestInterfaceEmptyOrNullArg", "TestObject", "parameter 1 i s not of type 'TestInterfaceEmpty'."), info.GetIsolate());
8714 block.ReThrow();
8715 return; 8708 return;
8716 } 8709 }
8717 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceEmpty ::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 8710 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceEmpty ::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
8718 } 8711 }
8719 impl->typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArg(tes tInterfaceEmptyOrNullArg); 8712 impl->typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArg(tes tInterfaceEmptyOrNullArg);
8720 } 8713 }
8721 8714
8722 static void typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArgMe thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 8715 static void typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArgMe thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
8723 { 8716 {
8724 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8717 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8725 TestObjectV8Internal::typeCheckingInterfaceNullableVoidMethodTestInterfaceEm ptyOrNullArgMethod(info); 8718 TestObjectV8Internal::typeCheckingInterfaceNullableVoidMethodTestInterfaceEm ptyOrNullArgMethod(info);
8726 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8719 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
8727 } 8720 }
8728 8721
8729 static void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethod(const v8:: FunctionCallbackInfo<v8::Value>& info) 8722 static void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethod(const v8:: FunctionCallbackInfo<v8::Value>& info)
8730 { 8723 {
8731 if (UNLIKELY(info.Length() < 2)) { 8724 if (UNLIKELY(info.Length() < 2)) {
8732 throwMinimumArityTypeErrorForMethod("typeCheckingUnrestrictedVoidMethodF loatArgDoubleArg", "TestObject", 2, info.Length(), info.GetIsolate()); 8725 throwMinimumArityTypeErrorForMethod("typeCheckingUnrestrictedVoidMethodF loatArgDoubleArg", "TestObject", 2, info.Length(), info.GetIsolate());
8733 return; 8726 return;
8734 } 8727 }
8735 TestObject* impl = V8TestObject::toNative(info.Holder()); 8728 TestObject* impl = V8TestObject::toNative(info.Holder());
8736 float floatArg; 8729 float floatArg;
8737 double doubleArg; 8730 double doubleArg;
8738 { 8731 {
8739 v8::TryCatch block; 8732 V8TryPropagate block;
8740 TONATIVE_VOID_INTERNAL(floatArg, static_cast<float>(info[0]->NumberValue ())); 8733 TONATIVE_VOID_INTERNAL(floatArg, static_cast<float>(info[0]->NumberValue ()));
8741 if (!std::isfinite(floatArg)) { 8734 if (!std::isfinite(floatArg)) {
8742 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingUnres trictedVoidMethodFloatArgDoubleArg", "TestObject", "float parameter 1 is non-fin ite."), info.GetIsolate()); 8735 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingUnres trictedVoidMethodFloatArgDoubleArg", "TestObject", "float parameter 1 is non-fin ite."), info.GetIsolate());
8743 block.ReThrow();
8744 return; 8736 return;
8745 } 8737 }
8746 TONATIVE_VOID_INTERNAL(doubleArg, static_cast<double>(info[1]->NumberVal ue())); 8738 TONATIVE_VOID_INTERNAL(doubleArg, static_cast<double>(info[1]->NumberVal ue()));
8747 if (!std::isfinite(doubleArg)) { 8739 if (!std::isfinite(doubleArg)) {
8748 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingUnres trictedVoidMethodFloatArgDoubleArg", "TestObject", "double parameter 2 is non-fi nite."), info.GetIsolate()); 8740 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingUnres trictedVoidMethodFloatArgDoubleArg", "TestObject", "double parameter 2 is non-fi nite."), info.GetIsolate());
8749 block.ReThrow();
8750 return; 8741 return;
8751 } 8742 }
8752 } 8743 }
8753 impl->typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg(floatArg, doubleAr g); 8744 impl->typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg(floatArg, doubleAr g);
8754 } 8745 }
8755 8746
8756 static void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethodCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info) 8747 static void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethodCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info)
8757 { 8748 {
8758 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8749 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8759 TestObjectV8Internal::typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMet hod(info); 8750 TestObjectV8Internal::typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMet hod(info);
(...skipping 15 matching lines...) Expand all
8775 8766
8776 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethod(const v8::F unctionCallbackInfo<v8::Value>& info) 8767 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethod(const v8::F unctionCallbackInfo<v8::Value>& info)
8777 { 8768 {
8778 if (UNLIKELY(info.Length() < 1)) { 8769 if (UNLIKELY(info.Length() < 1)) {
8779 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceGarbageColle ctedSequenceArg", "TestObject", 1, info.Length(), info.GetIsolate()); 8770 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceGarbageColle ctedSequenceArg", "TestObject", 1, info.Length(), info.GetIsolate());
8780 return; 8771 return;
8781 } 8772 }
8782 TestObject* impl = V8TestObject::toNative(info.Holder()); 8773 TestObject* impl = V8TestObject::toNative(info.Holder());
8783 HeapVector<Member<TestInterfaceGarbageCollected> > testInterfaceGarbageColle ctedSequenceArg; 8774 HeapVector<Member<TestInterfaceGarbageCollected> > testInterfaceGarbageColle ctedSequenceArg;
8784 { 8775 {
8785 v8::TryCatch block; 8776 V8TryPropagate block;
8786 TONATIVE_VOID_INTERNAL(testInterfaceGarbageCollectedSequenceArg, (toMemb erNativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageCollected>(in fo[0], 1, info.GetIsolate()))); 8777 TONATIVE_VOID_INTERNAL(testInterfaceGarbageCollectedSequenceArg, (toMemb erNativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageCollected>(in fo[0], 1, info.GetIsolate())));
8787 } 8778 }
8788 impl->voidMethodTestInterfaceGarbageCollectedSequenceArg(testInterfaceGarbag eCollectedSequenceArg); 8779 impl->voidMethodTestInterfaceGarbageCollectedSequenceArg(testInterfaceGarbag eCollectedSequenceArg);
8789 } 8780 }
8790 8781
8791 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback(con st v8::FunctionCallbackInfo<v8::Value>& info) 8782 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback(con st v8::FunctionCallbackInfo<v8::Value>& info)
8792 { 8783 {
8793 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8784 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8794 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedSequenceArgMeth od(info); 8785 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedSequenceArgMeth od(info);
8795 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8786 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
8796 } 8787 }
8797 8788
8798 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) 8789 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info)
8799 { 8790 {
8800 if (UNLIKELY(info.Length() < 1)) { 8791 if (UNLIKELY(info.Length() < 1)) {
8801 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceGarbageColle ctedArrayArg", "TestObject", 1, info.Length(), info.GetIsolate()); 8792 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceGarbageColle ctedArrayArg", "TestObject", 1, info.Length(), info.GetIsolate());
8802 return; 8793 return;
8803 } 8794 }
8804 TestObject* impl = V8TestObject::toNative(info.Holder()); 8795 TestObject* impl = V8TestObject::toNative(info.Holder());
8805 HeapVector<Member<TestInterfaceGarbageCollected> > testInterfaceGarbageColle ctedArrayArg; 8796 HeapVector<Member<TestInterfaceGarbageCollected> > testInterfaceGarbageColle ctedArrayArg;
8806 { 8797 {
8807 v8::TryCatch block; 8798 V8TryPropagate block;
8808 TONATIVE_VOID_INTERNAL(testInterfaceGarbageCollectedArrayArg, (toMemberN ativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageCollected>(info[ 0], 1, info.GetIsolate()))); 8799 TONATIVE_VOID_INTERNAL(testInterfaceGarbageCollectedArrayArg, (toMemberN ativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageCollected>(info[ 0], 1, info.GetIsolate())));
8809 } 8800 }
8810 impl->voidMethodTestInterfaceGarbageCollectedArrayArg(testInterfaceGarbageCo llectedArrayArg); 8801 impl->voidMethodTestInterfaceGarbageCollectedArrayArg(testInterfaceGarbageCo llectedArrayArg);
8811 } 8802 }
8812 8803
8813 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 8804 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
8814 { 8805 {
8815 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8806 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8816 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedArrayArgMethod( info); 8807 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedArrayArgMethod( info);
8817 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8808 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
8818 } 8809 }
8819 8810
8820 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 8811 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
8821 { 8812 {
8822 if (UNLIKELY(info.Length() < 1)) { 8813 if (UNLIKELY(info.Length() < 1)) {
8823 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceWillBeGarbag eCollectedSequenceArg", "TestObject", 1, info.Length(), info.GetIsolate()); 8814 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceWillBeGarbag eCollectedSequenceArg", "TestObject", 1, info.Length(), info.GetIsolate());
8824 return; 8815 return;
8825 } 8816 }
8826 TestObject* impl = V8TestObject::toNative(info.Holder()); 8817 TestObject* impl = V8TestObject::toNative(info.Holder());
8827 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > t estInterfaceWillBeGarbageCollectedSequenceArg; 8818 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > t estInterfaceWillBeGarbageCollectedSequenceArg;
8828 { 8819 {
8829 v8::TryCatch block; 8820 V8TryPropagate block;
8830 TONATIVE_VOID_INTERNAL(testInterfaceWillBeGarbageCollectedSequenceArg, ( toRefPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollected, V8TestInter faceWillBeGarbageCollected>(info[0], 1, info.GetIsolate()))); 8821 TONATIVE_VOID_INTERNAL(testInterfaceWillBeGarbageCollectedSequenceArg, ( toRefPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollected, V8TestInter faceWillBeGarbageCollected>(info[0], 1, info.GetIsolate())));
8831 } 8822 }
8832 impl->voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(testInterface WillBeGarbageCollectedSequenceArg); 8823 impl->voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(testInterface WillBeGarbageCollectedSequenceArg);
8833 } 8824 }
8834 8825
8835 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info) 8826 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info)
8836 { 8827 {
8837 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8828 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8838 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceA rgMethod(info); 8829 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceA rgMethod(info);
8839 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8830 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
8840 } 8831 }
8841 8832
8842 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info) 8833 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info)
8843 { 8834 {
8844 if (UNLIKELY(info.Length() < 1)) { 8835 if (UNLIKELY(info.Length() < 1)) {
8845 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceWillBeGarbag eCollectedArrayArg", "TestObject", 1, info.Length(), info.GetIsolate()); 8836 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceWillBeGarbag eCollectedArrayArg", "TestObject", 1, info.Length(), info.GetIsolate());
8846 return; 8837 return;
8847 } 8838 }
8848 TestObject* impl = V8TestObject::toNative(info.Holder()); 8839 TestObject* impl = V8TestObject::toNative(info.Holder());
8849 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > t estInterfaceWillBeGarbageCollectedArrayArg; 8840 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > t estInterfaceWillBeGarbageCollectedArrayArg;
8850 { 8841 {
8851 v8::TryCatch block; 8842 V8TryPropagate block;
8852 TONATIVE_VOID_INTERNAL(testInterfaceWillBeGarbageCollectedArrayArg, (toR efPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollected, V8TestInterfac eWillBeGarbageCollected>(info[0], 1, info.GetIsolate()))); 8843 TONATIVE_VOID_INTERNAL(testInterfaceWillBeGarbageCollectedArrayArg, (toR efPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollected, V8TestInterfac eWillBeGarbageCollected>(info[0], 1, info.GetIsolate())));
8853 } 8844 }
8854 impl->voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(testInterfaceWil lBeGarbageCollectedArrayArg); 8845 impl->voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(testInterfaceWil lBeGarbageCollectedArrayArg);
8855 } 8846 }
8856 8847
8857 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info) 8848 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info)
8858 { 8849 {
8859 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8850 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8860 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgM ethod(info); 8851 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgM ethod(info);
8861 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8852 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
9368 fromInternalPointer(object)->deref(); 9359 fromInternalPointer(object)->deref();
9369 } 9360 }
9370 9361
9371 template<> 9362 template<>
9372 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) 9363 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate)
9373 { 9364 {
9374 return toV8(impl, creationContext, isolate); 9365 return toV8(impl, creationContext, isolate);
9375 } 9366 }
9376 9367
9377 } // namespace WebCore 9368 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698