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

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: make constructors explicit 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 4784 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 v8::TryCatch block;
4805 V8RethrowTryCatchScope rethrow(block);
4805 TONATIVE_VOID_INTERNAL(dateArg, toCoreDate(info[0])); 4806 TONATIVE_VOID_INTERNAL(dateArg, toCoreDate(info[0]));
4806 } 4807 }
4807 impl->voidMethodDateArg(dateArg); 4808 impl->voidMethodDateArg(dateArg);
4808 } 4809 }
4809 4810
4810 static void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 4811 static void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
4811 { 4812 {
4812 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4813 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4813 TestObjectV8Internal::voidMethodDateArgMethod(info); 4814 TestObjectV8Internal::voidMethodDateArgMethod(info);
4814 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4815 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4815 } 4816 }
4816 4817
4817 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 4818 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
4818 { 4819 {
4819 if (UNLIKELY(info.Length() < 1)) { 4820 if (UNLIKELY(info.Length() < 1)) {
4820 throwMinimumArityTypeErrorForMethod("voidMethodStringArg", "TestObject", 1, info.Length(), info.GetIsolate()); 4821 throwMinimumArityTypeErrorForMethod("voidMethodStringArg", "TestObject", 1, info.Length(), info.GetIsolate());
4821 return; 4822 return;
4822 } 4823 }
4823 TestObject* impl = V8TestObject::toNative(info.Holder()); 4824 TestObject* impl = V8TestObject::toNative(info.Holder());
4824 V8StringResource<> stringArg; 4825 V8StringResource<> stringArg;
4825 { 4826 {
4826 TOSTRING_VOID_INTERNAL_NOTRYCATCH(stringArg, info[0]); 4827 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
4827 } 4828 }
4828 impl->voidMethodStringArg(stringArg); 4829 impl->voidMethodStringArg(stringArg);
4829 } 4830 }
4830 4831
4831 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 4832 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
4832 { 4833 {
4833 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4834 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4834 TestObjectV8Internal::voidMethodStringArgMethod(info); 4835 TestObjectV8Internal::voidMethodStringArgMethod(info);
4835 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4836 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4836 } 4837 }
4837 4838
4838 static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 4839 static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
4839 { 4840 {
4840 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD OMTimeStampArg", "TestObject", info.Holder(), info.GetIsolate()); 4841 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD OMTimeStampArg", "TestObject", info.Holder(), info.GetIsolate());
4841 if (UNLIKELY(info.Length() < 1)) { 4842 if (UNLIKELY(info.Length() < 1)) {
4842 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 4843 throwMinimumArityTypeError(exceptionState, 1, info.Length());
4843 return; 4844 return;
4844 } 4845 }
4845 TestObject* impl = V8TestObject::toNative(info.Holder()); 4846 TestObject* impl = V8TestObject::toNative(info.Holder());
4846 unsigned long long domTimeStampArg; 4847 unsigned long long domTimeStampArg;
4847 { 4848 {
4848 v8::TryCatch block; 4849 v8::TryCatch block;
4850 V8RethrowTryCatchScope rethrow(block);
4849 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(domTimeStampArg, toUInt64(info[0], exceptionState), exceptionState); 4851 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(domTimeStampArg, toUInt64(info[0], exceptionState), exceptionState);
4850 } 4852 }
4851 impl->voidMethodDOMTimeStampArg(domTimeStampArg); 4853 impl->voidMethodDOMTimeStampArg(domTimeStampArg);
4852 } 4854 }
4853 4855
4854 static void voidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 4856 static void voidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
4855 { 4857 {
4856 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4858 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4857 TestObjectV8Internal::voidMethodDOMTimeStampArgMethod(info); 4859 TestObjectV8Internal::voidMethodDOMTimeStampArgMethod(info);
4858 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4860 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4859 } 4861 }
4860 4862
4861 static void voidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 4863 static void voidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
4862 { 4864 {
4863 if (UNLIKELY(info.Length() < 1)) { 4865 if (UNLIKELY(info.Length() < 1)) {
4864 throwMinimumArityTypeErrorForMethod("voidMethodBooleanArg", "TestObject" , 1, info.Length(), info.GetIsolate()); 4866 throwMinimumArityTypeErrorForMethod("voidMethodBooleanArg", "TestObject" , 1, info.Length(), info.GetIsolate());
4865 return; 4867 return;
4866 } 4868 }
4867 TestObject* impl = V8TestObject::toNative(info.Holder()); 4869 TestObject* impl = V8TestObject::toNative(info.Holder());
4868 bool booleanArg; 4870 bool booleanArg;
4869 { 4871 {
4870 v8::TryCatch block; 4872 v8::TryCatch block;
4873 V8RethrowTryCatchScope rethrow(block);
4871 TONATIVE_VOID_INTERNAL(booleanArg, info[0]->BooleanValue()); 4874 TONATIVE_VOID_INTERNAL(booleanArg, info[0]->BooleanValue());
4872 } 4875 }
4873 impl->voidMethodBooleanArg(booleanArg); 4876 impl->voidMethodBooleanArg(booleanArg);
4874 } 4877 }
4875 4878
4876 static void voidMethodBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 4879 static void voidMethodBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
4877 { 4880 {
4878 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4881 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4879 TestObjectV8Internal::voidMethodBooleanArgMethod(info); 4882 TestObjectV8Internal::voidMethodBooleanArgMethod(info);
4880 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4883 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4881 } 4884 }
4882 4885
4883 static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 4886 static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
4884 { 4887 {
4885 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB yteArg", "TestObject", info.Holder(), info.GetIsolate()); 4888 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB yteArg", "TestObject", info.Holder(), info.GetIsolate());
4886 if (UNLIKELY(info.Length() < 1)) { 4889 if (UNLIKELY(info.Length() < 1)) {
4887 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 4890 throwMinimumArityTypeError(exceptionState, 1, info.Length());
4888 return; 4891 return;
4889 } 4892 }
4890 TestObject* impl = V8TestObject::toNative(info.Holder()); 4893 TestObject* impl = V8TestObject::toNative(info.Holder());
4891 int byteArg; 4894 int byteArg;
4892 { 4895 {
4893 v8::TryCatch block; 4896 v8::TryCatch block;
4897 V8RethrowTryCatchScope rethrow(block);
4894 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(byteArg, toInt8(info[0], exception State), exceptionState); 4898 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(byteArg, toInt8(info[0], exception State), exceptionState);
4895 } 4899 }
4896 impl->voidMethodByteArg(byteArg); 4900 impl->voidMethodByteArg(byteArg);
4897 } 4901 }
4898 4902
4899 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 4903 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
4900 { 4904 {
4901 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4905 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4902 TestObjectV8Internal::voidMethodByteArgMethod(info); 4906 TestObjectV8Internal::voidMethodByteArgMethod(info);
4903 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4907 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4904 } 4908 }
4905 4909
4906 static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 4910 static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
4907 { 4911 {
4908 if (UNLIKELY(info.Length() < 1)) { 4912 if (UNLIKELY(info.Length() < 1)) {
4909 throwMinimumArityTypeErrorForMethod("voidMethodDoubleArg", "TestObject", 1, info.Length(), info.GetIsolate()); 4913 throwMinimumArityTypeErrorForMethod("voidMethodDoubleArg", "TestObject", 1, info.Length(), info.GetIsolate());
4910 return; 4914 return;
4911 } 4915 }
4912 TestObject* impl = V8TestObject::toNative(info.Holder()); 4916 TestObject* impl = V8TestObject::toNative(info.Holder());
4913 double doubleArg; 4917 double doubleArg;
4914 { 4918 {
4915 v8::TryCatch block; 4919 v8::TryCatch block;
4920 V8RethrowTryCatchScope rethrow(block);
4916 TONATIVE_VOID_INTERNAL(doubleArg, static_cast<double>(info[0]->NumberVal ue())); 4921 TONATIVE_VOID_INTERNAL(doubleArg, static_cast<double>(info[0]->NumberVal ue()));
4917 } 4922 }
4918 impl->voidMethodDoubleArg(doubleArg); 4923 impl->voidMethodDoubleArg(doubleArg);
4919 } 4924 }
4920 4925
4921 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 4926 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
4922 { 4927 {
4923 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4928 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4924 TestObjectV8Internal::voidMethodDoubleArgMethod(info); 4929 TestObjectV8Internal::voidMethodDoubleArgMethod(info);
4925 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4930 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4926 } 4931 }
4927 4932
4928 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 4933 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
4929 { 4934 {
4930 if (UNLIKELY(info.Length() < 1)) { 4935 if (UNLIKELY(info.Length() < 1)) {
4931 throwMinimumArityTypeErrorForMethod("voidMethodFloatArg", "TestObject", 1, info.Length(), info.GetIsolate()); 4936 throwMinimumArityTypeErrorForMethod("voidMethodFloatArg", "TestObject", 1, info.Length(), info.GetIsolate());
4932 return; 4937 return;
4933 } 4938 }
4934 TestObject* impl = V8TestObject::toNative(info.Holder()); 4939 TestObject* impl = V8TestObject::toNative(info.Holder());
4935 float floatArg; 4940 float floatArg;
4936 { 4941 {
4937 v8::TryCatch block; 4942 v8::TryCatch block;
4943 V8RethrowTryCatchScope rethrow(block);
4938 TONATIVE_VOID_INTERNAL(floatArg, static_cast<float>(info[0]->NumberValue ())); 4944 TONATIVE_VOID_INTERNAL(floatArg, static_cast<float>(info[0]->NumberValue ()));
4939 } 4945 }
4940 impl->voidMethodFloatArg(floatArg); 4946 impl->voidMethodFloatArg(floatArg);
4941 } 4947 }
4942 4948
4943 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 4949 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
4944 { 4950 {
4945 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4951 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4946 TestObjectV8Internal::voidMethodFloatArgMethod(info); 4952 TestObjectV8Internal::voidMethodFloatArgMethod(info);
4947 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4953 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4948 } 4954 }
4949 4955
4950 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 4956 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
4951 { 4957 {
4952 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArg", "TestObject", info.Holder(), info.GetIsolate()); 4958 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArg", "TestObject", info.Holder(), info.GetIsolate());
4953 if (UNLIKELY(info.Length() < 1)) { 4959 if (UNLIKELY(info.Length() < 1)) {
4954 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 4960 throwMinimumArityTypeError(exceptionState, 1, info.Length());
4955 return; 4961 return;
4956 } 4962 }
4957 TestObject* impl = V8TestObject::toNative(info.Holder()); 4963 TestObject* impl = V8TestObject::toNative(info.Holder());
4958 int longArg; 4964 int longArg;
4959 { 4965 {
4960 v8::TryCatch block; 4966 v8::TryCatch block;
4967 V8RethrowTryCatchScope rethrow(block);
4961 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 4968 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
4962 } 4969 }
4963 impl->voidMethodLongArg(longArg); 4970 impl->voidMethodLongArg(longArg);
4964 } 4971 }
4965 4972
4966 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 4973 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
4967 { 4974 {
4968 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4975 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4969 TestObjectV8Internal::voidMethodLongArgMethod(info); 4976 TestObjectV8Internal::voidMethodLongArgMethod(info);
4970 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4977 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4971 } 4978 }
4972 4979
4973 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 4980 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
4974 { 4981 {
4975 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongLongArg", "TestObject", info.Holder(), info.GetIsolate()); 4982 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongLongArg", "TestObject", info.Holder(), info.GetIsolate());
4976 if (UNLIKELY(info.Length() < 1)) { 4983 if (UNLIKELY(info.Length() < 1)) {
4977 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 4984 throwMinimumArityTypeError(exceptionState, 1, info.Length());
4978 return; 4985 return;
4979 } 4986 }
4980 TestObject* impl = V8TestObject::toNative(info.Holder()); 4987 TestObject* impl = V8TestObject::toNative(info.Holder());
4981 long long longLongArg; 4988 long long longLongArg;
4982 { 4989 {
4983 v8::TryCatch block; 4990 v8::TryCatch block;
4991 V8RethrowTryCatchScope rethrow(block);
4984 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longLongArg, toInt64(info[0], exce ptionState), exceptionState); 4992 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longLongArg, toInt64(info[0], exce ptionState), exceptionState);
4985 } 4993 }
4986 impl->voidMethodLongLongArg(longLongArg); 4994 impl->voidMethodLongLongArg(longLongArg);
4987 } 4995 }
4988 4996
4989 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 4997 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
4990 { 4998 {
4991 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4999 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4992 TestObjectV8Internal::voidMethodLongLongArgMethod(info); 5000 TestObjectV8Internal::voidMethodLongLongArgMethod(info);
4993 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5001 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4994 } 5002 }
4995 5003
4996 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 5004 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
4997 { 5005 {
4998 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO ctetArg", "TestObject", info.Holder(), info.GetIsolate()); 5006 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO ctetArg", "TestObject", info.Holder(), info.GetIsolate());
4999 if (UNLIKELY(info.Length() < 1)) { 5007 if (UNLIKELY(info.Length() < 1)) {
5000 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 5008 throwMinimumArityTypeError(exceptionState, 1, info.Length());
5001 return; 5009 return;
5002 } 5010 }
5003 TestObject* impl = V8TestObject::toNative(info.Holder()); 5011 TestObject* impl = V8TestObject::toNative(info.Holder());
5004 unsigned octetArg; 5012 unsigned octetArg;
5005 { 5013 {
5006 v8::TryCatch block; 5014 v8::TryCatch block;
5015 V8RethrowTryCatchScope rethrow(block);
5007 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(octetArg, toUInt8(info[0], excepti onState), exceptionState); 5016 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(octetArg, toUInt8(info[0], excepti onState), exceptionState);
5008 } 5017 }
5009 impl->voidMethodOctetArg(octetArg); 5018 impl->voidMethodOctetArg(octetArg);
5010 } 5019 }
5011 5020
5012 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 5021 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
5013 { 5022 {
5014 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5023 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5015 TestObjectV8Internal::voidMethodOctetArgMethod(info); 5024 TestObjectV8Internal::voidMethodOctetArgMethod(info);
5016 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5025 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5017 } 5026 }
5018 5027
5019 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 5028 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
5020 { 5029 {
5021 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS hortArg", "TestObject", info.Holder(), info.GetIsolate()); 5030 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS hortArg", "TestObject", info.Holder(), info.GetIsolate());
5022 if (UNLIKELY(info.Length() < 1)) { 5031 if (UNLIKELY(info.Length() < 1)) {
5023 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 5032 throwMinimumArityTypeError(exceptionState, 1, info.Length());
5024 return; 5033 return;
5025 } 5034 }
5026 TestObject* impl = V8TestObject::toNative(info.Holder()); 5035 TestObject* impl = V8TestObject::toNative(info.Holder());
5027 int shortArg; 5036 int shortArg;
5028 { 5037 {
5029 v8::TryCatch block; 5038 v8::TryCatch block;
5039 V8RethrowTryCatchScope rethrow(block);
5030 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(shortArg, toInt16(info[0], excepti onState), exceptionState); 5040 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(shortArg, toInt16(info[0], excepti onState), exceptionState);
5031 } 5041 }
5032 impl->voidMethodShortArg(shortArg); 5042 impl->voidMethodShortArg(shortArg);
5033 } 5043 }
5034 5044
5035 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 5045 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
5036 { 5046 {
5037 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5047 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5038 TestObjectV8Internal::voidMethodShortArgMethod(info); 5048 TestObjectV8Internal::voidMethodShortArgMethod(info);
5039 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5049 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5040 } 5050 }
5041 5051
5042 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 5052 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
5043 { 5053 {
5044 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); 5054 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedLongArg", "TestObject", info.Holder(), info.GetIsolate());
5045 if (UNLIKELY(info.Length() < 1)) { 5055 if (UNLIKELY(info.Length() < 1)) {
5046 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 5056 throwMinimumArityTypeError(exceptionState, 1, info.Length());
5047 return; 5057 return;
5048 } 5058 }
5049 TestObject* impl = V8TestObject::toNative(info.Holder()); 5059 TestObject* impl = V8TestObject::toNative(info.Holder());
5050 unsigned unsignedLongArg; 5060 unsigned unsignedLongArg;
5051 { 5061 {
5052 v8::TryCatch block; 5062 v8::TryCatch block;
5063 V8RethrowTryCatchScope rethrow(block);
5053 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedLongArg, toUInt32(info[0], exceptionState), exceptionState); 5064 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedLongArg, toUInt32(info[0], exceptionState), exceptionState);
5054 } 5065 }
5055 impl->voidMethodUnsignedLongArg(unsignedLongArg); 5066 impl->voidMethodUnsignedLongArg(unsignedLongArg);
5056 } 5067 }
5057 5068
5058 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 5069 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
5059 { 5070 {
5060 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5071 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5061 TestObjectV8Internal::voidMethodUnsignedLongArgMethod(info); 5072 TestObjectV8Internal::voidMethodUnsignedLongArgMethod(info);
5062 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5073 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5063 } 5074 }
5064 5075
5065 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) 5076 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info)
5066 { 5077 {
5067 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedLongLongArg", "TestObject", info.Holder(), info.GetIsolate()); 5078 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedLongLongArg", "TestObject", info.Holder(), info.GetIsolate());
5068 if (UNLIKELY(info.Length() < 1)) { 5079 if (UNLIKELY(info.Length() < 1)) {
5069 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 5080 throwMinimumArityTypeError(exceptionState, 1, info.Length());
5070 return; 5081 return;
5071 } 5082 }
5072 TestObject* impl = V8TestObject::toNative(info.Holder()); 5083 TestObject* impl = V8TestObject::toNative(info.Holder());
5073 unsigned long long unsignedLongLongArg; 5084 unsigned long long unsignedLongLongArg;
5074 { 5085 {
5075 v8::TryCatch block; 5086 v8::TryCatch block;
5087 V8RethrowTryCatchScope rethrow(block);
5076 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedLongLongArg, toUInt64(info [0], exceptionState), exceptionState); 5088 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedLongLongArg, toUInt64(info [0], exceptionState), exceptionState);
5077 } 5089 }
5078 impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg); 5090 impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg);
5079 } 5091 }
5080 5092
5081 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 5093 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
5082 { 5094 {
5083 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5095 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5084 TestObjectV8Internal::voidMethodUnsignedLongLongArgMethod(info); 5096 TestObjectV8Internal::voidMethodUnsignedLongLongArgMethod(info);
5085 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5097 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5086 } 5098 }
5087 5099
5088 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 5100 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
5089 { 5101 {
5090 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); 5102 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedShortArg", "TestObject", info.Holder(), info.GetIsolate());
5091 if (UNLIKELY(info.Length() < 1)) { 5103 if (UNLIKELY(info.Length() < 1)) {
5092 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 5104 throwMinimumArityTypeError(exceptionState, 1, info.Length());
5093 return; 5105 return;
5094 } 5106 }
5095 TestObject* impl = V8TestObject::toNative(info.Holder()); 5107 TestObject* impl = V8TestObject::toNative(info.Holder());
5096 unsigned unsignedShortArg; 5108 unsigned unsignedShortArg;
5097 { 5109 {
5098 v8::TryCatch block; 5110 v8::TryCatch block;
5111 V8RethrowTryCatchScope rethrow(block);
5099 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedShortArg, toUInt16(info[0] , exceptionState), exceptionState); 5112 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedShortArg, toUInt16(info[0] , exceptionState), exceptionState);
5100 } 5113 }
5101 impl->voidMethodUnsignedShortArg(unsignedShortArg); 5114 impl->voidMethodUnsignedShortArg(unsignedShortArg);
5102 } 5115 }
5103 5116
5104 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 5117 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
5105 { 5118 {
5106 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5119 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5107 TestObjectV8Internal::voidMethodUnsignedShortArgMethod(info); 5120 TestObjectV8Internal::voidMethodUnsignedShortArgMethod(info);
5108 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5121 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 15 matching lines...) Expand all
5124 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 5137 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
5125 { 5138 {
5126 if (UNLIKELY(info.Length() < 1)) { 5139 if (UNLIKELY(info.Length() < 1)) {
5127 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceEmptyArg", " TestObject", 1, info.Length(), info.GetIsolate()); 5140 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceEmptyArg", " TestObject", 1, info.Length(), info.GetIsolate());
5128 return; 5141 return;
5129 } 5142 }
5130 TestObject* impl = V8TestObject::toNative(info.Holder()); 5143 TestObject* impl = V8TestObject::toNative(info.Holder());
5131 TestInterfaceEmpty* testInterfaceEmptyArg; 5144 TestInterfaceEmpty* testInterfaceEmptyArg;
5132 { 5145 {
5133 v8::TryCatch block; 5146 v8::TryCatch block;
5147 V8RethrowTryCatchScope rethrow(block);
5134 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0])); 5148 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0]));
5135 } 5149 }
5136 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); 5150 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg);
5137 } 5151 }
5138 5152
5139 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 5153 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
5140 { 5154 {
5141 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5155 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5142 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgMethod(info); 5156 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgMethod(info);
5143 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5157 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5144 } 5158 }
5145 5159
5146 static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info) 5160 static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info)
5147 { 5161 {
5148 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); 5162 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate());
5149 if (UNLIKELY(info.Length() < 2)) { 5163 if (UNLIKELY(info.Length() < 2)) {
5150 throwMinimumArityTypeError(exceptionState, 2, info.Length()); 5164 throwMinimumArityTypeError(exceptionState, 2, info.Length());
5151 return; 5165 return;
5152 } 5166 }
5153 TestObject* impl = V8TestObject::toNative(info.Holder()); 5167 TestObject* impl = V8TestObject::toNative(info.Holder());
5154 int longArg; 5168 int longArg;
5155 TestInterfaceEmpty* testInterfaceEmptyArg; 5169 TestInterfaceEmpty* testInterfaceEmptyArg;
5156 { 5170 {
5157 v8::TryCatch block; 5171 v8::TryCatch block;
5172 V8RethrowTryCatchScope rethrow(block);
5158 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 5173 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
5159 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[1])); 5174 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[1]));
5160 } 5175 }
5161 impl->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg) ; 5176 impl->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg) ;
5162 } 5177 }
5163 5178
5164 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) 5179 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
5165 { 5180 {
5166 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5181 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5167 TestObjectV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(info); 5182 TestObjectV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(info);
(...skipping 29 matching lines...) Expand all
5197 static void voidMethodVoidCallbackFunctionArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info) 5212 static void voidMethodVoidCallbackFunctionArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info)
5198 { 5213 {
5199 if (UNLIKELY(info.Length() < 1)) { 5214 if (UNLIKELY(info.Length() < 1)) {
5200 throwMinimumArityTypeErrorForMethod("voidMethodVoidCallbackFunctionArg", "TestObject", 1, info.Length(), info.GetIsolate()); 5215 throwMinimumArityTypeErrorForMethod("voidMethodVoidCallbackFunctionArg", "TestObject", 1, info.Length(), info.GetIsolate());
5201 return; 5216 return;
5202 } 5217 }
5203 TestObject* impl = V8TestObject::toNative(info.Holder()); 5218 TestObject* impl = V8TestObject::toNative(info.Holder());
5204 ScriptValue voidCallbackFunctionArg; 5219 ScriptValue voidCallbackFunctionArg;
5205 { 5220 {
5206 v8::TryCatch block; 5221 v8::TryCatch block;
5222 V8RethrowTryCatchScope rethrow(block);
5207 TONATIVE_VOID_INTERNAL(voidCallbackFunctionArg, ScriptValue(ScriptState: :current(info.GetIsolate()), info[0])); 5223 TONATIVE_VOID_INTERNAL(voidCallbackFunctionArg, ScriptValue(ScriptState: :current(info.GetIsolate()), info[0]));
5208 } 5224 }
5209 impl->voidMethodVoidCallbackFunctionArg(voidCallbackFunctionArg); 5225 impl->voidMethodVoidCallbackFunctionArg(voidCallbackFunctionArg);
5210 } 5226 }
5211 5227
5212 static void voidMethodVoidCallbackFunctionArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info) 5228 static void voidMethodVoidCallbackFunctionArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info)
5213 { 5229 {
5214 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5230 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5215 TestObjectV8Internal::voidMethodVoidCallbackFunctionArgMethod(info); 5231 TestObjectV8Internal::voidMethodVoidCallbackFunctionArgMethod(info);
5216 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5232 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5217 } 5233 }
5218 5234
5219 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethod(const v8::Function CallbackInfo<v8::Value>& info) 5235 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethod(const v8::Function CallbackInfo<v8::Value>& info)
5220 { 5236 {
5221 if (UNLIKELY(info.Length() < 1)) { 5237 if (UNLIKELY(info.Length() < 1)) {
5222 throwMinimumArityTypeErrorForMethod("voidMethodAnyCallbackFunctionOption alAnyArg", "TestObject", 1, info.Length(), info.GetIsolate()); 5238 throwMinimumArityTypeErrorForMethod("voidMethodAnyCallbackFunctionOption alAnyArg", "TestObject", 1, info.Length(), info.GetIsolate());
5223 return; 5239 return;
5224 } 5240 }
5225 TestObject* impl = V8TestObject::toNative(info.Holder()); 5241 TestObject* impl = V8TestObject::toNative(info.Holder());
5226 ScriptValue anyCallbackFunctionOptionalAnyArgArg; 5242 ScriptValue anyCallbackFunctionOptionalAnyArgArg;
5227 { 5243 {
5228 v8::TryCatch block; 5244 v8::TryCatch block;
5245 V8RethrowTryCatchScope rethrow(block);
5229 TONATIVE_VOID_INTERNAL(anyCallbackFunctionOptionalAnyArgArg, ScriptValue (ScriptState::current(info.GetIsolate()), info[0])); 5246 TONATIVE_VOID_INTERNAL(anyCallbackFunctionOptionalAnyArgArg, ScriptValue (ScriptState::current(info.GetIsolate()), info[0]));
5230 } 5247 }
5231 impl->voidMethodAnyCallbackFunctionOptionalAnyArg(anyCallbackFunctionOptiona lAnyArgArg); 5248 impl->voidMethodAnyCallbackFunctionOptionalAnyArg(anyCallbackFunctionOptiona lAnyArgArg);
5232 } 5249 }
5233 5250
5234 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethodCallback(const v8:: FunctionCallbackInfo<v8::Value>& info) 5251 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethodCallback(const v8:: FunctionCallbackInfo<v8::Value>& info)
5235 { 5252 {
5236 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5253 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5237 TestObjectV8Internal::voidMethodAnyCallbackFunctionOptionalAnyArgMethod(info ); 5254 TestObjectV8Internal::voidMethodAnyCallbackFunctionOptionalAnyArgMethod(info );
5238 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5255 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 28 matching lines...) Expand all
5267 static void voidMethodCompareHowArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 5284 static void voidMethodCompareHowArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
5268 { 5285 {
5269 if (UNLIKELY(info.Length() < 1)) { 5286 if (UNLIKELY(info.Length() < 1)) {
5270 throwMinimumArityTypeErrorForMethod("voidMethodCompareHowArg", "TestObje ct", 1, info.Length(), info.GetIsolate()); 5287 throwMinimumArityTypeErrorForMethod("voidMethodCompareHowArg", "TestObje ct", 1, info.Length(), info.GetIsolate());
5271 return; 5288 return;
5272 } 5289 }
5273 TestObject* impl = V8TestObject::toNative(info.Holder()); 5290 TestObject* impl = V8TestObject::toNative(info.Holder());
5274 Range::CompareHow compareHowArg; 5291 Range::CompareHow compareHowArg;
5275 { 5292 {
5276 v8::TryCatch block; 5293 v8::TryCatch block;
5294 V8RethrowTryCatchScope rethrow(block);
5277 TONATIVE_VOID_INTERNAL(compareHowArg, static_cast<Range::CompareHow>(inf o[0]->Int32Value())); 5295 TONATIVE_VOID_INTERNAL(compareHowArg, static_cast<Range::CompareHow>(inf o[0]->Int32Value()));
5278 } 5296 }
5279 impl->voidMethodCompareHowArg(compareHowArg); 5297 impl->voidMethodCompareHowArg(compareHowArg);
5280 } 5298 }
5281 5299
5282 static void voidMethodCompareHowArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 5300 static void voidMethodCompareHowArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
5283 { 5301 {
5284 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5302 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5285 TestObjectV8Internal::voidMethodCompareHowArgMethod(info); 5303 TestObjectV8Internal::voidMethodCompareHowArgMethod(info);
5286 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5304 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5287 } 5305 }
5288 5306
5289 static void voidMethodEventTargetArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 5307 static void voidMethodEventTargetArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
5290 { 5308 {
5291 if (UNLIKELY(info.Length() < 1)) { 5309 if (UNLIKELY(info.Length() < 1)) {
5292 throwMinimumArityTypeErrorForMethod("voidMethodEventTargetArg", "TestObj ect", 1, info.Length(), info.GetIsolate()); 5310 throwMinimumArityTypeErrorForMethod("voidMethodEventTargetArg", "TestObj ect", 1, info.Length(), info.GetIsolate());
5293 return; 5311 return;
5294 } 5312 }
5295 TestObject* impl = V8TestObject::toNative(info.Holder()); 5313 TestObject* impl = V8TestObject::toNative(info.Holder());
5296 EventTarget* eventTargetArg; 5314 EventTarget* eventTargetArg;
5297 { 5315 {
5298 v8::TryCatch block; 5316 v8::TryCatch block;
5317 V8RethrowTryCatchScope rethrow(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); 5318 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 } 5319 }
5301 impl->voidMethodEventTargetArg(eventTargetArg); 5320 impl->voidMethodEventTargetArg(eventTargetArg);
5302 } 5321 }
5303 5322
5304 static void voidMethodEventTargetArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 5323 static void voidMethodEventTargetArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
5305 { 5324 {
5306 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5325 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5307 TestObjectV8Internal::voidMethodEventTargetArgMethod(info); 5326 TestObjectV8Internal::voidMethodEventTargetArgMethod(info);
5308 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5327 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5309 } 5328 }
5310 5329
5311 static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallback Info<v8::Value>& info) 5330 static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallback Info<v8::Value>& info)
5312 { 5331 {
5313 if (UNLIKELY(info.Length() < 1)) { 5332 if (UNLIKELY(info.Length() < 1)) {
5314 throwMinimumArityTypeErrorForMethod("voidMethodMediaQueryListListenerArg ", "TestObject", 1, info.Length(), info.GetIsolate()); 5333 throwMinimumArityTypeErrorForMethod("voidMethodMediaQueryListListenerArg ", "TestObject", 1, info.Length(), info.GetIsolate());
5315 return; 5334 return;
5316 } 5335 }
5317 TestObject* impl = V8TestObject::toNative(info.Holder()); 5336 TestObject* impl = V8TestObject::toNative(info.Holder());
5318 RefPtrWillBeRawPtr<MediaQueryListListener> mediaQueryListListenerArg; 5337 RefPtrWillBeRawPtr<MediaQueryListListener> mediaQueryListListenerArg;
5319 { 5338 {
5320 v8::TryCatch block; 5339 v8::TryCatch block;
5340 V8RethrowTryCatchScope rethrow(block);
5321 TONATIVE_VOID_INTERNAL(mediaQueryListListenerArg, MediaQueryListListener ::create(ScriptState::current(info.GetIsolate()), ScriptValue(ScriptState::curre nt(info.GetIsolate()), info[0]))); 5341 TONATIVE_VOID_INTERNAL(mediaQueryListListenerArg, MediaQueryListListener ::create(ScriptState::current(info.GetIsolate()), ScriptValue(ScriptState::curre nt(info.GetIsolate()), info[0])));
5322 } 5342 }
5323 impl->voidMethodMediaQueryListListenerArg(mediaQueryListListenerArg); 5343 impl->voidMethodMediaQueryListListenerArg(mediaQueryListListenerArg);
5324 } 5344 }
5325 5345
5326 static void voidMethodMediaQueryListListenerArgMethodCallback(const v8::Function CallbackInfo<v8::Value>& info) 5346 static void voidMethodMediaQueryListListenerArgMethodCallback(const v8::Function CallbackInfo<v8::Value>& info)
5327 { 5347 {
5328 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5348 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5329 TestObjectV8Internal::voidMethodMediaQueryListListenerArgMethod(info); 5349 TestObjectV8Internal::voidMethodMediaQueryListListenerArgMethod(info);
5330 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5350 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5331 } 5351 }
5332 5352
5333 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) 5353 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo)
5334 { 5354 {
5335 if (UNLIKELY(info.Length() < 1)) { 5355 if (UNLIKELY(info.Length() < 1)) {
5336 throwMinimumArityTypeErrorForMethod("voidMethodAnyArg", "TestObject", 1, info.Length(), info.GetIsolate()); 5356 throwMinimumArityTypeErrorForMethod("voidMethodAnyArg", "TestObject", 1, info.Length(), info.GetIsolate());
5337 return; 5357 return;
5338 } 5358 }
5339 TestObject* impl = V8TestObject::toNative(info.Holder()); 5359 TestObject* impl = V8TestObject::toNative(info.Holder());
5340 ScriptValue anyArg; 5360 ScriptValue anyArg;
5341 { 5361 {
5342 v8::TryCatch block; 5362 v8::TryCatch block;
5363 V8RethrowTryCatchScope rethrow(block);
5343 TONATIVE_VOID_INTERNAL(anyArg, ScriptValue(ScriptState::current(info.Get Isolate()), info[0])); 5364 TONATIVE_VOID_INTERNAL(anyArg, ScriptValue(ScriptState::current(info.Get Isolate()), info[0]));
5344 } 5365 }
5345 impl->voidMethodAnyArg(anyArg); 5366 impl->voidMethodAnyArg(anyArg);
5346 } 5367 }
5347 5368
5348 static void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) 5369 static void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info)
5349 { 5370 {
5350 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5371 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5351 TestObjectV8Internal::voidMethodAnyArgMethod(info); 5372 TestObjectV8Internal::voidMethodAnyArgMethod(info);
5352 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5373 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5353 } 5374 }
5354 5375
5355 static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 5376 static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
5356 { 5377 {
5357 if (UNLIKELY(info.Length() < 1)) { 5378 if (UNLIKELY(info.Length() < 1)) {
5358 throwMinimumArityTypeErrorForMethod("voidMethodAttrArg", "TestObject", 1 , info.Length(), info.GetIsolate()); 5379 throwMinimumArityTypeErrorForMethod("voidMethodAttrArg", "TestObject", 1 , info.Length(), info.GetIsolate());
5359 return; 5380 return;
5360 } 5381 }
5361 TestObject* impl = V8TestObject::toNative(info.Holder()); 5382 TestObject* impl = V8TestObject::toNative(info.Holder());
5362 Attr* attrArg; 5383 Attr* attrArg;
5363 { 5384 {
5364 v8::TryCatch block; 5385 v8::TryCatch block;
5386 V8RethrowTryCatchScope rethrow(block);
5365 TONATIVE_VOID_INTERNAL(attrArg, V8Attr::toNativeWithTypeCheck(info.GetIs olate(), info[0])); 5387 TONATIVE_VOID_INTERNAL(attrArg, V8Attr::toNativeWithTypeCheck(info.GetIs olate(), info[0]));
5366 } 5388 }
5367 impl->voidMethodAttrArg(attrArg); 5389 impl->voidMethodAttrArg(attrArg);
5368 } 5390 }
5369 5391
5370 static void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 5392 static void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
5371 { 5393 {
5372 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5394 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5373 TestObjectV8Internal::voidMethodAttrArgMethod(info); 5395 TestObjectV8Internal::voidMethodAttrArgMethod(info);
5374 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5396 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5375 } 5397 }
5376 5398
5377 static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 5399 static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
5378 { 5400 {
5379 if (UNLIKELY(info.Length() < 1)) { 5401 if (UNLIKELY(info.Length() < 1)) {
5380 throwMinimumArityTypeErrorForMethod("voidMethodDocumentArg", "TestObject ", 1, info.Length(), info.GetIsolate()); 5402 throwMinimumArityTypeErrorForMethod("voidMethodDocumentArg", "TestObject ", 1, info.Length(), info.GetIsolate());
5381 return; 5403 return;
5382 } 5404 }
5383 TestObject* impl = V8TestObject::toNative(info.Holder()); 5405 TestObject* impl = V8TestObject::toNative(info.Holder());
5384 Document* documentArg; 5406 Document* documentArg;
5385 { 5407 {
5386 v8::TryCatch block; 5408 v8::TryCatch block;
5409 V8RethrowTryCatchScope rethrow(block);
5387 TONATIVE_VOID_INTERNAL(documentArg, V8Document::toNativeWithTypeCheck(in fo.GetIsolate(), info[0])); 5410 TONATIVE_VOID_INTERNAL(documentArg, V8Document::toNativeWithTypeCheck(in fo.GetIsolate(), info[0]));
5388 } 5411 }
5389 impl->voidMethodDocumentArg(documentArg); 5412 impl->voidMethodDocumentArg(documentArg);
5390 } 5413 }
5391 5414
5392 static void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 5415 static void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
5393 { 5416 {
5394 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5417 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5395 TestObjectV8Internal::voidMethodDocumentArgMethod(info); 5418 TestObjectV8Internal::voidMethodDocumentArgMethod(info);
5396 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5419 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5397 } 5420 }
5398 5421
5399 static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 5422 static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
5400 { 5423 {
5401 if (UNLIKELY(info.Length() < 1)) { 5424 if (UNLIKELY(info.Length() < 1)) {
5402 throwMinimumArityTypeErrorForMethod("voidMethodDocumentTypeArg", "TestOb ject", 1, info.Length(), info.GetIsolate()); 5425 throwMinimumArityTypeErrorForMethod("voidMethodDocumentTypeArg", "TestOb ject", 1, info.Length(), info.GetIsolate());
5403 return; 5426 return;
5404 } 5427 }
5405 TestObject* impl = V8TestObject::toNative(info.Holder()); 5428 TestObject* impl = V8TestObject::toNative(info.Holder());
5406 DocumentType* documentTypeArg; 5429 DocumentType* documentTypeArg;
5407 { 5430 {
5408 v8::TryCatch block; 5431 v8::TryCatch block;
5432 V8RethrowTryCatchScope rethrow(block);
5409 TONATIVE_VOID_INTERNAL(documentTypeArg, V8DocumentType::toNativeWithType Check(info.GetIsolate(), info[0])); 5433 TONATIVE_VOID_INTERNAL(documentTypeArg, V8DocumentType::toNativeWithType Check(info.GetIsolate(), info[0]));
5410 } 5434 }
5411 impl->voidMethodDocumentTypeArg(documentTypeArg); 5435 impl->voidMethodDocumentTypeArg(documentTypeArg);
5412 } 5436 }
5413 5437
5414 static void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 5438 static void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
5415 { 5439 {
5416 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5440 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5417 TestObjectV8Internal::voidMethodDocumentTypeArgMethod(info); 5441 TestObjectV8Internal::voidMethodDocumentTypeArgMethod(info);
5418 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5442 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5419 } 5443 }
5420 5444
5421 static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 5445 static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
5422 { 5446 {
5423 if (UNLIKELY(info.Length() < 1)) { 5447 if (UNLIKELY(info.Length() < 1)) {
5424 throwMinimumArityTypeErrorForMethod("voidMethodElementArg", "TestObject" , 1, info.Length(), info.GetIsolate()); 5448 throwMinimumArityTypeErrorForMethod("voidMethodElementArg", "TestObject" , 1, info.Length(), info.GetIsolate());
5425 return; 5449 return;
5426 } 5450 }
5427 TestObject* impl = V8TestObject::toNative(info.Holder()); 5451 TestObject* impl = V8TestObject::toNative(info.Holder());
5428 Element* elementArg; 5452 Element* elementArg;
5429 { 5453 {
5430 v8::TryCatch block; 5454 v8::TryCatch block;
5455 V8RethrowTryCatchScope rethrow(block);
5431 TONATIVE_VOID_INTERNAL(elementArg, V8Element::toNativeWithTypeCheck(info .GetIsolate(), info[0])); 5456 TONATIVE_VOID_INTERNAL(elementArg, V8Element::toNativeWithTypeCheck(info .GetIsolate(), info[0]));
5432 } 5457 }
5433 impl->voidMethodElementArg(elementArg); 5458 impl->voidMethodElementArg(elementArg);
5434 } 5459 }
5435 5460
5436 static void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 5461 static void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
5437 { 5462 {
5438 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5463 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5439 TestObjectV8Internal::voidMethodElementArgMethod(info); 5464 TestObjectV8Internal::voidMethodElementArgMethod(info);
5440 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5465 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5441 } 5466 }
5442 5467
5443 static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 5468 static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
5444 { 5469 {
5445 if (UNLIKELY(info.Length() < 1)) { 5470 if (UNLIKELY(info.Length() < 1)) {
5446 throwMinimumArityTypeErrorForMethod("voidMethodNodeArg", "TestObject", 1 , info.Length(), info.GetIsolate()); 5471 throwMinimumArityTypeErrorForMethod("voidMethodNodeArg", "TestObject", 1 , info.Length(), info.GetIsolate());
5447 return; 5472 return;
5448 } 5473 }
5449 TestObject* impl = V8TestObject::toNative(info.Holder()); 5474 TestObject* impl = V8TestObject::toNative(info.Holder());
5450 Node* nodeArg; 5475 Node* nodeArg;
5451 { 5476 {
5452 v8::TryCatch block; 5477 v8::TryCatch block;
5478 V8RethrowTryCatchScope rethrow(block);
5453 TONATIVE_VOID_INTERNAL(nodeArg, V8Node::toNativeWithTypeCheck(info.GetIs olate(), info[0])); 5479 TONATIVE_VOID_INTERNAL(nodeArg, V8Node::toNativeWithTypeCheck(info.GetIs olate(), info[0]));
5454 } 5480 }
5455 impl->voidMethodNodeArg(nodeArg); 5481 impl->voidMethodNodeArg(nodeArg);
5456 } 5482 }
5457 5483
5458 static void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 5484 static void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
5459 { 5485 {
5460 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5486 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5461 TestObjectV8Internal::voidMethodNodeArgMethod(info); 5487 TestObjectV8Internal::voidMethodNodeArgMethod(info);
5462 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5488 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
5530 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 5556 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
5531 { 5557 {
5532 if (UNLIKELY(info.Length() < 1)) { 5558 if (UNLIKELY(info.Length() < 1)) {
5533 throwMinimumArityTypeErrorForMethod("voidMethodArrayBufferArg", "TestObj ect", 1, info.Length(), info.GetIsolate()); 5559 throwMinimumArityTypeErrorForMethod("voidMethodArrayBufferArg", "TestObj ect", 1, info.Length(), info.GetIsolate());
5534 return; 5560 return;
5535 } 5561 }
5536 TestObject* impl = V8TestObject::toNative(info.Holder()); 5562 TestObject* impl = V8TestObject::toNative(info.Holder());
5537 ArrayBuffer* arrayBufferArg; 5563 ArrayBuffer* arrayBufferArg;
5538 { 5564 {
5539 v8::TryCatch block; 5565 v8::TryCatch block;
5566 V8RethrowTryCatchScope rethrow(block);
5540 TONATIVE_VOID_INTERNAL(arrayBufferArg, info[0]->IsArrayBuffer() ? V8Arra yBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0); 5567 TONATIVE_VOID_INTERNAL(arrayBufferArg, info[0]->IsArrayBuffer() ? V8Arra yBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0);
5541 } 5568 }
5542 impl->voidMethodArrayBufferArg(arrayBufferArg); 5569 impl->voidMethodArrayBufferArg(arrayBufferArg);
5543 } 5570 }
5544 5571
5545 static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 5572 static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
5546 { 5573 {
5547 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5574 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5548 TestObjectV8Internal::voidMethodArrayBufferArgMethod(info); 5575 TestObjectV8Internal::voidMethodArrayBufferArgMethod(info);
5549 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5576 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5550 } 5577 }
5551 5578
5552 static void voidMethodArrayBufferOrNullArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info) 5579 static void voidMethodArrayBufferOrNullArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info)
5553 { 5580 {
5554 if (UNLIKELY(info.Length() < 1)) { 5581 if (UNLIKELY(info.Length() < 1)) {
5555 throwMinimumArityTypeErrorForMethod("voidMethodArrayBufferOrNullArg", "T estObject", 1, info.Length(), info.GetIsolate()); 5582 throwMinimumArityTypeErrorForMethod("voidMethodArrayBufferOrNullArg", "T estObject", 1, info.Length(), info.GetIsolate());
5556 return; 5583 return;
5557 } 5584 }
5558 TestObject* impl = V8TestObject::toNative(info.Holder()); 5585 TestObject* impl = V8TestObject::toNative(info.Holder());
5559 ArrayBuffer* arrayBufferArg; 5586 ArrayBuffer* arrayBufferArg;
5560 { 5587 {
5561 v8::TryCatch block; 5588 v8::TryCatch block;
5589 V8RethrowTryCatchScope rethrow(block);
5562 TONATIVE_VOID_INTERNAL(arrayBufferArg, info[0]->IsArrayBuffer() ? V8Arra yBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0); 5590 TONATIVE_VOID_INTERNAL(arrayBufferArg, info[0]->IsArrayBuffer() ? V8Arra yBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0);
5563 } 5591 }
5564 impl->voidMethodArrayBufferOrNullArg(arrayBufferArg); 5592 impl->voidMethodArrayBufferOrNullArg(arrayBufferArg);
5565 } 5593 }
5566 5594
5567 static void voidMethodArrayBufferOrNullArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 5595 static void voidMethodArrayBufferOrNullArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
5568 { 5596 {
5569 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5597 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5570 TestObjectV8Internal::voidMethodArrayBufferOrNullArgMethod(info); 5598 TestObjectV8Internal::voidMethodArrayBufferOrNullArgMethod(info);
5571 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5599 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5572 } 5600 }
5573 5601
5574 static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) 5602 static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info)
5575 { 5603 {
5576 if (UNLIKELY(info.Length() < 1)) { 5604 if (UNLIKELY(info.Length() < 1)) {
5577 throwMinimumArityTypeErrorForMethod("voidMethodArrayBufferViewArg", "Tes tObject", 1, info.Length(), info.GetIsolate()); 5605 throwMinimumArityTypeErrorForMethod("voidMethodArrayBufferViewArg", "Tes tObject", 1, info.Length(), info.GetIsolate());
5578 return; 5606 return;
5579 } 5607 }
5580 TestObject* impl = V8TestObject::toNative(info.Holder()); 5608 TestObject* impl = V8TestObject::toNative(info.Holder());
5581 ArrayBufferView* arrayBufferViewArg; 5609 ArrayBufferView* arrayBufferViewArg;
5582 { 5610 {
5583 v8::TryCatch block; 5611 v8::TryCatch block;
5612 V8RethrowTryCatchScope rethrow(block);
5584 TONATIVE_VOID_INTERNAL(arrayBufferViewArg, info[0]->IsArrayBufferView() ? V8ArrayBufferView::toNative(v8::Handle<v8::ArrayBufferView>::Cast(info[0])) : 0); 5613 TONATIVE_VOID_INTERNAL(arrayBufferViewArg, info[0]->IsArrayBufferView() ? V8ArrayBufferView::toNative(v8::Handle<v8::ArrayBufferView>::Cast(info[0])) : 0);
5585 } 5614 }
5586 impl->voidMethodArrayBufferViewArg(arrayBufferViewArg); 5615 impl->voidMethodArrayBufferViewArg(arrayBufferViewArg);
5587 } 5616 }
5588 5617
5589 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 5618 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
5590 { 5619 {
5591 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5620 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5592 TestObjectV8Internal::voidMethodArrayBufferViewArgMethod(info); 5621 TestObjectV8Internal::voidMethodArrayBufferViewArgMethod(info);
5593 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5622 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5594 } 5623 }
5595 5624
5596 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 5625 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
5597 { 5626 {
5598 if (UNLIKELY(info.Length() < 1)) { 5627 if (UNLIKELY(info.Length() < 1)) {
5599 throwMinimumArityTypeErrorForMethod("voidMethodFloat32ArrayArg", "TestOb ject", 1, info.Length(), info.GetIsolate()); 5628 throwMinimumArityTypeErrorForMethod("voidMethodFloat32ArrayArg", "TestOb ject", 1, info.Length(), info.GetIsolate());
5600 return; 5629 return;
5601 } 5630 }
5602 TestObject* impl = V8TestObject::toNative(info.Holder()); 5631 TestObject* impl = V8TestObject::toNative(info.Holder());
5603 Float32Array* float32ArrayArg; 5632 Float32Array* float32ArrayArg;
5604 { 5633 {
5605 v8::TryCatch block; 5634 v8::TryCatch block;
5635 V8RethrowTryCatchScope rethrow(block);
5606 TONATIVE_VOID_INTERNAL(float32ArrayArg, info[0]->IsFloat32Array() ? V8Fl oat32Array::toNative(v8::Handle<v8::Float32Array>::Cast(info[0])) : 0); 5636 TONATIVE_VOID_INTERNAL(float32ArrayArg, info[0]->IsFloat32Array() ? V8Fl oat32Array::toNative(v8::Handle<v8::Float32Array>::Cast(info[0])) : 0);
5607 } 5637 }
5608 impl->voidMethodFloat32ArrayArg(float32ArrayArg); 5638 impl->voidMethodFloat32ArrayArg(float32ArrayArg);
5609 } 5639 }
5610 5640
5611 static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 5641 static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
5612 { 5642 {
5613 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5643 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5614 TestObjectV8Internal::voidMethodFloat32ArrayArgMethod(info); 5644 TestObjectV8Internal::voidMethodFloat32ArrayArgMethod(info);
5615 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5645 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5616 } 5646 }
5617 5647
5618 static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 5648 static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
5619 { 5649 {
5620 if (UNLIKELY(info.Length() < 1)) { 5650 if (UNLIKELY(info.Length() < 1)) {
5621 throwMinimumArityTypeErrorForMethod("voidMethodInt32ArrayArg", "TestObje ct", 1, info.Length(), info.GetIsolate()); 5651 throwMinimumArityTypeErrorForMethod("voidMethodInt32ArrayArg", "TestObje ct", 1, info.Length(), info.GetIsolate());
5622 return; 5652 return;
5623 } 5653 }
5624 TestObject* impl = V8TestObject::toNative(info.Holder()); 5654 TestObject* impl = V8TestObject::toNative(info.Holder());
5625 Int32Array* int32ArrayArg; 5655 Int32Array* int32ArrayArg;
5626 { 5656 {
5627 v8::TryCatch block; 5657 v8::TryCatch block;
5658 V8RethrowTryCatchScope rethrow(block);
5628 TONATIVE_VOID_INTERNAL(int32ArrayArg, info[0]->IsInt32Array() ? V8Int32A rray::toNative(v8::Handle<v8::Int32Array>::Cast(info[0])) : 0); 5659 TONATIVE_VOID_INTERNAL(int32ArrayArg, info[0]->IsInt32Array() ? V8Int32A rray::toNative(v8::Handle<v8::Int32Array>::Cast(info[0])) : 0);
5629 } 5660 }
5630 impl->voidMethodInt32ArrayArg(int32ArrayArg); 5661 impl->voidMethodInt32ArrayArg(int32ArrayArg);
5631 } 5662 }
5632 5663
5633 static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 5664 static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
5634 { 5665 {
5635 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5666 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5636 TestObjectV8Internal::voidMethodInt32ArrayArgMethod(info); 5667 TestObjectV8Internal::voidMethodInt32ArrayArgMethod(info);
5637 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5668 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5638 } 5669 }
5639 5670
5640 static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 5671 static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
5641 { 5672 {
5642 if (UNLIKELY(info.Length() < 1)) { 5673 if (UNLIKELY(info.Length() < 1)) {
5643 throwMinimumArityTypeErrorForMethod("voidMethodUint8ArrayArg", "TestObje ct", 1, info.Length(), info.GetIsolate()); 5674 throwMinimumArityTypeErrorForMethod("voidMethodUint8ArrayArg", "TestObje ct", 1, info.Length(), info.GetIsolate());
5644 return; 5675 return;
5645 } 5676 }
5646 TestObject* impl = V8TestObject::toNative(info.Holder()); 5677 TestObject* impl = V8TestObject::toNative(info.Holder());
5647 Uint8Array* uint8ArrayArg; 5678 Uint8Array* uint8ArrayArg;
5648 { 5679 {
5649 v8::TryCatch block; 5680 v8::TryCatch block;
5681 V8RethrowTryCatchScope rethrow(block);
5650 TONATIVE_VOID_INTERNAL(uint8ArrayArg, info[0]->IsUint8Array() ? V8Uint8A rray::toNative(v8::Handle<v8::Uint8Array>::Cast(info[0])) : 0); 5682 TONATIVE_VOID_INTERNAL(uint8ArrayArg, info[0]->IsUint8Array() ? V8Uint8A rray::toNative(v8::Handle<v8::Uint8Array>::Cast(info[0])) : 0);
5651 } 5683 }
5652 impl->voidMethodUint8ArrayArg(uint8ArrayArg); 5684 impl->voidMethodUint8ArrayArg(uint8ArrayArg);
5653 } 5685 }
5654 5686
5655 static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 5687 static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
5656 { 5688 {
5657 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5689 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5658 TestObjectV8Internal::voidMethodUint8ArrayArgMethod(info); 5690 TestObjectV8Internal::voidMethodUint8ArrayArgMethod(info);
5659 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5691 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
5701 static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info) 5733 static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info)
5702 { 5734 {
5703 if (UNLIKELY(info.Length() < 1)) { 5735 if (UNLIKELY(info.Length() < 1)) {
5704 throwMinimumArityTypeErrorForMethod("voidMethodArrayLongArg", "TestObjec t", 1, info.Length(), info.GetIsolate()); 5736 throwMinimumArityTypeErrorForMethod("voidMethodArrayLongArg", "TestObjec t", 1, info.Length(), info.GetIsolate());
5705 return; 5737 return;
5706 } 5738 }
5707 TestObject* impl = V8TestObject::toNative(info.Holder()); 5739 TestObject* impl = V8TestObject::toNative(info.Holder());
5708 Vector<int> arrayLongArg; 5740 Vector<int> arrayLongArg;
5709 { 5741 {
5710 v8::TryCatch block; 5742 v8::TryCatch block;
5743 V8RethrowTryCatchScope rethrow(block);
5711 TONATIVE_VOID_INTERNAL(arrayLongArg, toNativeArray<int>(info[0], 1, info .GetIsolate())); 5744 TONATIVE_VOID_INTERNAL(arrayLongArg, toNativeArray<int>(info[0], 1, info .GetIsolate()));
5712 } 5745 }
5713 impl->voidMethodArrayLongArg(arrayLongArg); 5746 impl->voidMethodArrayLongArg(arrayLongArg);
5714 } 5747 }
5715 5748
5716 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info) 5749 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo< v8::Value>& info)
5717 { 5750 {
5718 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5751 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5719 TestObjectV8Internal::voidMethodArrayLongArgMethod(info); 5752 TestObjectV8Internal::voidMethodArrayLongArgMethod(info);
5720 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5753 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5721 } 5754 }
5722 5755
5723 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 5756 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
5724 { 5757 {
5725 if (UNLIKELY(info.Length() < 1)) { 5758 if (UNLIKELY(info.Length() < 1)) {
5726 throwMinimumArityTypeErrorForMethod("voidMethodArrayStringArg", "TestObj ect", 1, info.Length(), info.GetIsolate()); 5759 throwMinimumArityTypeErrorForMethod("voidMethodArrayStringArg", "TestObj ect", 1, info.Length(), info.GetIsolate());
5727 return; 5760 return;
5728 } 5761 }
5729 TestObject* impl = V8TestObject::toNative(info.Holder()); 5762 TestObject* impl = V8TestObject::toNative(info.Holder());
5730 Vector<String> arrayStringArg; 5763 Vector<String> arrayStringArg;
5731 { 5764 {
5732 v8::TryCatch block; 5765 v8::TryCatch block;
5766 V8RethrowTryCatchScope rethrow(block);
5733 TONATIVE_VOID_INTERNAL(arrayStringArg, toNativeArray<String>(info[0], 1, info.GetIsolate())); 5767 TONATIVE_VOID_INTERNAL(arrayStringArg, toNativeArray<String>(info[0], 1, info.GetIsolate()));
5734 } 5768 }
5735 impl->voidMethodArrayStringArg(arrayStringArg); 5769 impl->voidMethodArrayStringArg(arrayStringArg);
5736 } 5770 }
5737 5771
5738 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 5772 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
5739 { 5773 {
5740 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5774 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5741 TestObjectV8Internal::voidMethodArrayStringArgMethod(info); 5775 TestObjectV8Internal::voidMethodArrayStringArgMethod(info);
5742 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5776 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5743 } 5777 }
5744 5778
5745 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) 5779 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info)
5746 { 5780 {
5747 if (UNLIKELY(info.Length() < 1)) { 5781 if (UNLIKELY(info.Length() < 1)) {
5748 throwMinimumArityTypeErrorForMethod("voidMethodArrayTestInterfaceEmptyAr g", "TestObject", 1, info.Length(), info.GetIsolate()); 5782 throwMinimumArityTypeErrorForMethod("voidMethodArrayTestInterfaceEmptyAr g", "TestObject", 1, info.Length(), info.GetIsolate());
5749 return; 5783 return;
5750 } 5784 }
5751 TestObject* impl = V8TestObject::toNative(info.Holder()); 5785 TestObject* impl = V8TestObject::toNative(info.Holder());
5752 Vector<RefPtr<TestInterfaceEmpty> > arrayTestInterfaceEmptyArg; 5786 Vector<RefPtr<TestInterfaceEmpty> > arrayTestInterfaceEmptyArg;
5753 { 5787 {
5754 v8::TryCatch block; 5788 v8::TryCatch block;
5789 V8RethrowTryCatchScope rethrow(block);
5755 TONATIVE_VOID_INTERNAL(arrayTestInterfaceEmptyArg, (toRefPtrNativeArray< TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate()))); 5790 TONATIVE_VOID_INTERNAL(arrayTestInterfaceEmptyArg, (toRefPtrNativeArray< TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate())));
5756 } 5791 }
5757 impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg); 5792 impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg);
5758 } 5793 }
5759 5794
5760 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 5795 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
5761 { 5796 {
5762 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5797 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5763 TestObjectV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info); 5798 TestObjectV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info);
5764 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5799 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
5806 static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 5841 static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
5807 { 5842 {
5808 if (UNLIKELY(info.Length() < 1)) { 5843 if (UNLIKELY(info.Length() < 1)) {
5809 throwMinimumArityTypeErrorForMethod("voidMethodSequenceLongArg", "TestOb ject", 1, info.Length(), info.GetIsolate()); 5844 throwMinimumArityTypeErrorForMethod("voidMethodSequenceLongArg", "TestOb ject", 1, info.Length(), info.GetIsolate());
5810 return; 5845 return;
5811 } 5846 }
5812 TestObject* impl = V8TestObject::toNative(info.Holder()); 5847 TestObject* impl = V8TestObject::toNative(info.Holder());
5813 Vector<int> longSequenceArg; 5848 Vector<int> longSequenceArg;
5814 { 5849 {
5815 v8::TryCatch block; 5850 v8::TryCatch block;
5851 V8RethrowTryCatchScope rethrow(block);
5816 TONATIVE_VOID_INTERNAL(longSequenceArg, toNativeArray<int>(info[0], 1, i nfo.GetIsolate())); 5852 TONATIVE_VOID_INTERNAL(longSequenceArg, toNativeArray<int>(info[0], 1, i nfo.GetIsolate()));
5817 } 5853 }
5818 impl->voidMethodSequenceLongArg(longSequenceArg); 5854 impl->voidMethodSequenceLongArg(longSequenceArg);
5819 } 5855 }
5820 5856
5821 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 5857 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
5822 { 5858 {
5823 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5859 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5824 TestObjectV8Internal::voidMethodSequenceLongArgMethod(info); 5860 TestObjectV8Internal::voidMethodSequenceLongArgMethod(info);
5825 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5861 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5826 } 5862 }
5827 5863
5828 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 5864 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
5829 { 5865 {
5830 if (UNLIKELY(info.Length() < 1)) { 5866 if (UNLIKELY(info.Length() < 1)) {
5831 throwMinimumArityTypeErrorForMethod("voidMethodSequenceStringArg", "Test Object", 1, info.Length(), info.GetIsolate()); 5867 throwMinimumArityTypeErrorForMethod("voidMethodSequenceStringArg", "Test Object", 1, info.Length(), info.GetIsolate());
5832 return; 5868 return;
5833 } 5869 }
5834 TestObject* impl = V8TestObject::toNative(info.Holder()); 5870 TestObject* impl = V8TestObject::toNative(info.Holder());
5835 Vector<String> stringSequenceArg; 5871 Vector<String> stringSequenceArg;
5836 { 5872 {
5837 v8::TryCatch block; 5873 v8::TryCatch block;
5874 V8RethrowTryCatchScope rethrow(block);
5838 TONATIVE_VOID_INTERNAL(stringSequenceArg, toNativeArray<String>(info[0], 1, info.GetIsolate())); 5875 TONATIVE_VOID_INTERNAL(stringSequenceArg, toNativeArray<String>(info[0], 1, info.GetIsolate()));
5839 } 5876 }
5840 impl->voidMethodSequenceStringArg(stringSequenceArg); 5877 impl->voidMethodSequenceStringArg(stringSequenceArg);
5841 } 5878 }
5842 5879
5843 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 5880 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
5844 { 5881 {
5845 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5882 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5846 TestObjectV8Internal::voidMethodSequenceStringArgMethod(info); 5883 TestObjectV8Internal::voidMethodSequenceStringArgMethod(info);
5847 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5884 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5848 } 5885 }
5849 5886
5850 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) 5887 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info)
5851 { 5888 {
5852 if (UNLIKELY(info.Length() < 1)) { 5889 if (UNLIKELY(info.Length() < 1)) {
5853 throwMinimumArityTypeErrorForMethod("voidMethodSequenceTestInterfaceEmpt yArg", "TestObject", 1, info.Length(), info.GetIsolate()); 5890 throwMinimumArityTypeErrorForMethod("voidMethodSequenceTestInterfaceEmpt yArg", "TestObject", 1, info.Length(), info.GetIsolate());
5854 return; 5891 return;
5855 } 5892 }
5856 TestObject* impl = V8TestObject::toNative(info.Holder()); 5893 TestObject* impl = V8TestObject::toNative(info.Holder());
5857 Vector<RefPtr<TestInterfaceEmpty> > testInterfaceEmptySequenceArg; 5894 Vector<RefPtr<TestInterfaceEmpty> > testInterfaceEmptySequenceArg;
5858 { 5895 {
5859 v8::TryCatch block; 5896 v8::TryCatch block;
5897 V8RethrowTryCatchScope rethrow(block);
5860 TONATIVE_VOID_INTERNAL(testInterfaceEmptySequenceArg, (toRefPtrNativeArr ay<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate()))); 5898 TONATIVE_VOID_INTERNAL(testInterfaceEmptySequenceArg, (toRefPtrNativeArr ay<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate())));
5861 } 5899 }
5862 impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg) ; 5900 impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg) ;
5863 } 5901 }
5864 5902
5865 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 5903 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
5866 { 5904 {
5867 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5905 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5868 TestObjectV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(info); 5906 TestObjectV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(info);
5869 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5907 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
5870 } 5908 }
5871 5909
5872 static void voidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallba ckInfo<v8::Value>& info) 5910 static void voidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallba ckInfo<v8::Value>& info)
5873 { 5911 {
5874 if (UNLIKELY(info.Length() < 1)) { 5912 if (UNLIKELY(info.Length() < 1)) {
5875 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceEmptyOrNullA rg", "TestObject", 1, info.Length(), info.GetIsolate()); 5913 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceEmptyOrNullA rg", "TestObject", 1, info.Length(), info.GetIsolate());
5876 return; 5914 return;
5877 } 5915 }
5878 TestObject* impl = V8TestObject::toNative(info.Holder()); 5916 TestObject* impl = V8TestObject::toNative(info.Holder());
5879 TestInterfaceEmpty* nullableTestInterfaceEmptyArg; 5917 TestInterfaceEmpty* nullableTestInterfaceEmptyArg;
5880 { 5918 {
5881 v8::TryCatch block; 5919 v8::TryCatch block;
5920 V8RethrowTryCatchScope rethrow(block);
5882 TONATIVE_VOID_INTERNAL(nullableTestInterfaceEmptyArg, V8TestInterfaceEmp ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 5921 TONATIVE_VOID_INTERNAL(nullableTestInterfaceEmptyArg, V8TestInterfaceEmp ty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
5883 } 5922 }
5884 impl->voidMethodTestInterfaceEmptyOrNullArg(nullableTestInterfaceEmptyArg); 5923 impl->voidMethodTestInterfaceEmptyOrNullArg(nullableTestInterfaceEmptyArg);
5885 } 5924 }
5886 5925
5887 static void voidMethodTestInterfaceEmptyOrNullArgMethodCallback(const v8::Functi onCallbackInfo<v8::Value>& info) 5926 static void voidMethodTestInterfaceEmptyOrNullArgMethodCallback(const v8::Functi onCallbackInfo<v8::Value>& info)
5888 { 5927 {
5889 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 5928 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
5890 TestObjectV8Internal::voidMethodTestInterfaceEmptyOrNullArgMethod(info); 5929 TestObjectV8Internal::voidMethodTestInterfaceEmptyOrNullArgMethod(info);
5891 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 5930 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
5980 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 6019 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
5981 { 6020 {
5982 if (UNLIKELY(info.Length() < 1)) { 6021 if (UNLIKELY(info.Length() < 1)) {
5983 throwMinimumArityTypeErrorForMethod("voidMethodTestEnumArg", "TestObject ", 1, info.Length(), info.GetIsolate()); 6022 throwMinimumArityTypeErrorForMethod("voidMethodTestEnumArg", "TestObject ", 1, info.Length(), info.GetIsolate());
5984 return; 6023 return;
5985 } 6024 }
5986 TestObject* impl = V8TestObject::toNative(info.Holder()); 6025 TestObject* impl = V8TestObject::toNative(info.Holder());
5987 V8StringResource<> testEnumTypeArg; 6026 V8StringResource<> testEnumTypeArg;
5988 { 6027 {
5989 v8::TryCatch block; 6028 v8::TryCatch block;
6029 V8RethrowTryCatchScope rethrow(block);
5990 TOSTRING_VOID_INTERNAL(testEnumTypeArg, info[0]); 6030 TOSTRING_VOID_INTERNAL(testEnumTypeArg, info[0]);
5991 String string = testEnumTypeArg; 6031 String string = testEnumTypeArg;
5992 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" | | string == "EnumValue3")) { 6032 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()); 6033 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnu mArg", "TestObject", "parameter 1 ('" + string + "') is not a valid enum value." ), info.GetIsolate());
5994 block.ReThrow();
5995 return; 6034 return;
5996 } 6035 }
5997 } 6036 }
5998 impl->voidMethodTestEnumArg(testEnumTypeArg); 6037 impl->voidMethodTestEnumArg(testEnumTypeArg);
5999 } 6038 }
6000 6039
6001 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 6040 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
6002 { 6041 {
6003 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6042 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6004 TestObjectV8Internal::voidMethodTestEnumArgMethod(info); 6043 TestObjectV8Internal::voidMethodTestEnumArgMethod(info);
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
6073 static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 6112 static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
6074 { 6113 {
6075 if (UNLIKELY(info.Length() < 1)) { 6114 if (UNLIKELY(info.Length() < 1)) {
6076 throwMinimumArityTypeErrorForMethod("voidMethodDictionaryArg", "TestObje ct", 1, info.Length(), info.GetIsolate()); 6115 throwMinimumArityTypeErrorForMethod("voidMethodDictionaryArg", "TestObje ct", 1, info.Length(), info.GetIsolate());
6077 return; 6116 return;
6078 } 6117 }
6079 TestObject* impl = V8TestObject::toNative(info.Holder()); 6118 TestObject* impl = V8TestObject::toNative(info.Holder());
6080 Dictionary dictionaryArg; 6119 Dictionary dictionaryArg;
6081 { 6120 {
6082 v8::TryCatch block; 6121 v8::TryCatch block;
6122 V8RethrowTryCatchScope rethrow(block);
6083 TONATIVE_VOID_INTERNAL(dictionaryArg, Dictionary(info[0], info.GetIsolat e())); 6123 TONATIVE_VOID_INTERNAL(dictionaryArg, Dictionary(info[0], info.GetIsolat e()));
6084 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) { 6124 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) {
6085 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDiction aryArg", "TestObject", "parameter 1 ('dictionaryArg') is not an object."), info. GetIsolate()); 6125 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDiction aryArg", "TestObject", "parameter 1 ('dictionaryArg') is not an object."), info. GetIsolate());
6086 block.ReThrow();
6087 return; 6126 return;
6088 } 6127 }
6089 } 6128 }
6090 impl->voidMethodDictionaryArg(dictionaryArg); 6129 impl->voidMethodDictionaryArg(dictionaryArg);
6091 } 6130 }
6092 6131
6093 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 6132 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
6094 { 6133 {
6095 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6134 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6096 TestObjectV8Internal::voidMethodDictionaryArgMethod(info); 6135 TestObjectV8Internal::voidMethodDictionaryArgMethod(info);
(...skipping 27 matching lines...) Expand all
6124 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 6163 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
6125 { 6164 {
6126 if (UNLIKELY(info.Length() < 1)) { 6165 if (UNLIKELY(info.Length() < 1)) {
6127 throwMinimumArityTypeErrorForMethod("voidMethodNodeFilterArg", "TestObje ct", 1, info.Length(), info.GetIsolate()); 6166 throwMinimumArityTypeErrorForMethod("voidMethodNodeFilterArg", "TestObje ct", 1, info.Length(), info.GetIsolate());
6128 return; 6167 return;
6129 } 6168 }
6130 TestObject* impl = V8TestObject::toNative(info.Holder()); 6169 TestObject* impl = V8TestObject::toNative(info.Holder());
6131 RefPtrWillBeRawPtr<NodeFilter> nodeFilterArg; 6170 RefPtrWillBeRawPtr<NodeFilter> nodeFilterArg;
6132 { 6171 {
6133 v8::TryCatch block; 6172 v8::TryCatch block;
6173 V8RethrowTryCatchScope rethrow(block);
6134 TONATIVE_VOID_INTERNAL(nodeFilterArg, toNodeFilter(info[0], info.Holder( ), ScriptState::current(info.GetIsolate()))); 6174 TONATIVE_VOID_INTERNAL(nodeFilterArg, toNodeFilter(info[0], info.Holder( ), ScriptState::current(info.GetIsolate())));
6135 } 6175 }
6136 impl->voidMethodNodeFilterArg(nodeFilterArg.release()); 6176 impl->voidMethodNodeFilterArg(nodeFilterArg.release());
6137 } 6177 }
6138 6178
6139 static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 6179 static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
6140 { 6180 {
6141 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6181 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6142 TestObjectV8Internal::voidMethodNodeFilterArgMethod(info); 6182 TestObjectV8Internal::voidMethodNodeFilterArgMethod(info);
6143 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6183 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6144 } 6184 }
6145 6185
6146 static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 6186 static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
6147 { 6187 {
6148 if (UNLIKELY(info.Length() < 1)) { 6188 if (UNLIKELY(info.Length() < 1)) {
6149 throwMinimumArityTypeErrorForMethod("voidMethodPromiseArg", "TestObject" , 1, info.Length(), info.GetIsolate()); 6189 throwMinimumArityTypeErrorForMethod("voidMethodPromiseArg", "TestObject" , 1, info.Length(), info.GetIsolate());
6150 return; 6190 return;
6151 } 6191 }
6152 TestObject* impl = V8TestObject::toNative(info.Holder()); 6192 TestObject* impl = V8TestObject::toNative(info.Holder());
6153 ScriptPromise promiseArg; 6193 ScriptPromise promiseArg;
6154 { 6194 {
6155 v8::TryCatch block; 6195 v8::TryCatch block;
6196 V8RethrowTryCatchScope rethrow(block);
6156 TONATIVE_VOID_INTERNAL(promiseArg, ScriptPromise::cast(ScriptState::curr ent(info.GetIsolate()), info[0])); 6197 TONATIVE_VOID_INTERNAL(promiseArg, ScriptPromise::cast(ScriptState::curr ent(info.GetIsolate()), info[0]));
6157 if (!promiseArg.isUndefinedOrNull() && !promiseArg.isObject()) { 6198 if (!promiseArg.isUndefinedOrNull() && !promiseArg.isObject()) {
6158 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromise Arg", "TestObject", "parameter 1 ('promiseArg') is not an object."), info.GetIso late()); 6199 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromise Arg", "TestObject", "parameter 1 ('promiseArg') is not an object."), info.GetIso late());
6159 block.ReThrow();
6160 return; 6200 return;
6161 } 6201 }
6162 } 6202 }
6163 impl->voidMethodPromiseArg(promiseArg); 6203 impl->voidMethodPromiseArg(promiseArg);
6164 } 6204 }
6165 6205
6166 static void voidMethodPromiseArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 6206 static void voidMethodPromiseArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
6167 { 6207 {
6168 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6208 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6169 TestObjectV8Internal::voidMethodPromiseArgMethod(info); 6209 TestObjectV8Internal::voidMethodPromiseArgMethod(info);
(...skipping 29 matching lines...) Expand all
6199 static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) 6239 static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info)
6200 { 6240 {
6201 if (UNLIKELY(info.Length() < 1)) { 6241 if (UNLIKELY(info.Length() < 1)) {
6202 throwMinimumArityTypeErrorForMethod("voidMethodXPathNSResolverArg", "Tes tObject", 1, info.Length(), info.GetIsolate()); 6242 throwMinimumArityTypeErrorForMethod("voidMethodXPathNSResolverArg", "Tes tObject", 1, info.Length(), info.GetIsolate());
6203 return; 6243 return;
6204 } 6244 }
6205 TestObject* impl = V8TestObject::toNative(info.Holder()); 6245 TestObject* impl = V8TestObject::toNative(info.Holder());
6206 RefPtrWillBeRawPtr<XPathNSResolver> xPathNSResolverArg; 6246 RefPtrWillBeRawPtr<XPathNSResolver> xPathNSResolverArg;
6207 { 6247 {
6208 v8::TryCatch block; 6248 v8::TryCatch block;
6249 V8RethrowTryCatchScope rethrow(block);
6209 TONATIVE_VOID_INTERNAL(xPathNSResolverArg, toXPathNSResolver(info[0], in fo.GetIsolate())); 6250 TONATIVE_VOID_INTERNAL(xPathNSResolverArg, toXPathNSResolver(info[0], in fo.GetIsolate()));
6210 } 6251 }
6211 impl->voidMethodXPathNSResolverArg(xPathNSResolverArg.release()); 6252 impl->voidMethodXPathNSResolverArg(xPathNSResolverArg.release());
6212 } 6253 }
6213 6254
6214 static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 6255 static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
6215 { 6256 {
6216 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6257 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6217 TestObjectV8Internal::voidMethodXPathNSResolverArgMethod(info); 6258 TestObjectV8Internal::voidMethodXPathNSResolverArgMethod(info);
6218 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6259 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6219 } 6260 }
6220 6261
6221 static void voidMethodDictionarySequenceArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 6262 static void voidMethodDictionarySequenceArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
6222 { 6263 {
6223 if (UNLIKELY(info.Length() < 1)) { 6264 if (UNLIKELY(info.Length() < 1)) {
6224 throwMinimumArityTypeErrorForMethod("voidMethodDictionarySequenceArg", " TestObject", 1, info.Length(), info.GetIsolate()); 6265 throwMinimumArityTypeErrorForMethod("voidMethodDictionarySequenceArg", " TestObject", 1, info.Length(), info.GetIsolate());
6225 return; 6266 return;
6226 } 6267 }
6227 TestObject* impl = V8TestObject::toNative(info.Holder()); 6268 TestObject* impl = V8TestObject::toNative(info.Holder());
6228 Vector<Dictionary> dictionarySequenceArg; 6269 Vector<Dictionary> dictionarySequenceArg;
6229 { 6270 {
6230 v8::TryCatch block; 6271 v8::TryCatch block;
6272 V8RethrowTryCatchScope rethrow(block);
6231 TONATIVE_VOID_INTERNAL(dictionarySequenceArg, toNativeArray<Dictionary>( info[0], 1, info.GetIsolate())); 6273 TONATIVE_VOID_INTERNAL(dictionarySequenceArg, toNativeArray<Dictionary>( info[0], 1, info.GetIsolate()));
6232 } 6274 }
6233 impl->voidMethodDictionarySequenceArg(dictionarySequenceArg); 6275 impl->voidMethodDictionarySequenceArg(dictionarySequenceArg);
6234 } 6276 }
6235 6277
6236 static void voidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 6278 static void voidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
6237 { 6279 {
6238 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6280 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6239 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info); 6281 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info);
6240 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6282 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6241 } 6283 }
6242 6284
6243 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 6285 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
6244 { 6286 {
6245 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS tringArgLongArg", "TestObject", info.Holder(), info.GetIsolate()); 6287 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS tringArgLongArg", "TestObject", info.Holder(), info.GetIsolate());
6246 if (UNLIKELY(info.Length() < 2)) { 6288 if (UNLIKELY(info.Length() < 2)) {
6247 throwMinimumArityTypeError(exceptionState, 2, info.Length()); 6289 throwMinimumArityTypeError(exceptionState, 2, info.Length());
6248 return; 6290 return;
6249 } 6291 }
6250 TestObject* impl = V8TestObject::toNative(info.Holder()); 6292 TestObject* impl = V8TestObject::toNative(info.Holder());
6251 V8StringResource<> stringArg; 6293 V8StringResource<> stringArg;
6252 int longArg; 6294 int longArg;
6253 { 6295 {
6254 v8::TryCatch block; 6296 v8::TryCatch block;
6297 V8RethrowTryCatchScope rethrow(block);
6255 TOSTRING_VOID_INTERNAL(stringArg, info[0]); 6298 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
6256 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio nState), exceptionState); 6299 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio nState), exceptionState);
6257 } 6300 }
6258 impl->voidMethodStringArgLongArg(stringArg, longArg); 6301 impl->voidMethodStringArgLongArg(stringArg, longArg);
6259 } 6302 }
6260 6303
6261 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 6304 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
6262 { 6305 {
6263 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6306 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6264 TestObjectV8Internal::voidMethodStringArgLongArgMethod(info); 6307 TestObjectV8Internal::voidMethodStringArgLongArgMethod(info);
6265 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6308 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6266 } 6309 }
6267 6310
6268 static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 6311 static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
6269 { 6312 {
6270 TestObject* impl = V8TestObject::toNative(info.Holder()); 6313 TestObject* impl = V8TestObject::toNative(info.Holder());
6271 V8StringResource<> optionalStringArg; 6314 V8StringResource<> optionalStringArg;
6272 { 6315 {
6273 if (UNLIKELY(info.Length() <= 0)) { 6316 if (UNLIKELY(info.Length() <= 0)) {
6274 impl->voidMethodOptionalStringArg(); 6317 impl->voidMethodOptionalStringArg();
6275 return; 6318 return;
6276 } 6319 }
6277 TOSTRING_VOID_INTERNAL_NOTRYCATCH(optionalStringArg, info[0]); 6320 TOSTRING_VOID_INTERNAL(optionalStringArg, info[0]);
6278 } 6321 }
6279 impl->voidMethodOptionalStringArg(optionalStringArg); 6322 impl->voidMethodOptionalStringArg(optionalStringArg);
6280 } 6323 }
6281 6324
6282 static void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 6325 static void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
6283 { 6326 {
6284 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6327 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6285 TestObjectV8Internal::voidMethodOptionalStringArgMethod(info); 6328 TestObjectV8Internal::voidMethodOptionalStringArgMethod(info);
6286 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6329 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6287 } 6330 }
6288 6331
6289 static void voidMethodOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) 6332 static void voidMethodOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCall backInfo<v8::Value>& info)
6290 { 6333 {
6291 TestObject* impl = V8TestObject::toNative(info.Holder()); 6334 TestObject* impl = V8TestObject::toNative(info.Holder());
6292 TestInterfaceEmpty* optionalTestInterfaceEmptyArg; 6335 TestInterfaceEmpty* optionalTestInterfaceEmptyArg;
6293 { 6336 {
6294 v8::TryCatch block; 6337 v8::TryCatch block;
6338 V8RethrowTryCatchScope rethrow(block);
6295 if (UNLIKELY(info.Length() <= 0)) { 6339 if (UNLIKELY(info.Length() <= 0)) {
6296 impl->voidMethodOptionalTestInterfaceEmptyArg(); 6340 impl->voidMethodOptionalTestInterfaceEmptyArg();
6297 return; 6341 return;
6298 } 6342 }
6299 TONATIVE_VOID_INTERNAL(optionalTestInterfaceEmptyArg, V8TestInterfaceEmp ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 6343 TONATIVE_VOID_INTERNAL(optionalTestInterfaceEmptyArg, V8TestInterfaceEmp ty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
6300 } 6344 }
6301 impl->voidMethodOptionalTestInterfaceEmptyArg(optionalTestInterfaceEmptyArg) ; 6345 impl->voidMethodOptionalTestInterfaceEmptyArg(optionalTestInterfaceEmptyArg) ;
6302 } 6346 }
6303 6347
6304 static void voidMethodOptionalTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 6348 static void voidMethodOptionalTestInterfaceEmptyArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
6305 { 6349 {
6306 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6350 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6307 TestObjectV8Internal::voidMethodOptionalTestInterfaceEmptyArgMethod(info); 6351 TestObjectV8Internal::voidMethodOptionalTestInterfaceEmptyArgMethod(info);
6308 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6352 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6309 } 6353 }
6310 6354
6311 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 6355 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
6312 { 6356 {
6313 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 6357 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
6314 TestObject* impl = V8TestObject::toNative(info.Holder()); 6358 TestObject* impl = V8TestObject::toNative(info.Holder());
6315 int optionalLongArg; 6359 int optionalLongArg;
6316 { 6360 {
6317 v8::TryCatch block; 6361 v8::TryCatch block;
6362 V8RethrowTryCatchScope rethrow(block);
6318 if (UNLIKELY(info.Length() <= 0)) { 6363 if (UNLIKELY(info.Length() <= 0)) {
6319 impl->voidMethodOptionalLongArg(); 6364 impl->voidMethodOptionalLongArg();
6320 return; 6365 return;
6321 } 6366 }
6322 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState); 6367 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState);
6323 } 6368 }
6324 impl->voidMethodOptionalLongArg(optionalLongArg); 6369 impl->voidMethodOptionalLongArg(optionalLongArg);
6325 } 6370 }
6326 6371
6327 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 6372 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
6328 { 6373 {
6329 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6374 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6330 TestObjectV8Internal::voidMethodOptionalLongArgMethod(info); 6375 TestObjectV8Internal::voidMethodOptionalLongArgMethod(info);
6331 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6376 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6332 } 6377 }
6333 6378
6334 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 6379 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
6335 { 6380 {
6336 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho dOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 6381 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho dOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
6337 TestObject* impl = V8TestObject::toNative(info.Holder()); 6382 TestObject* impl = V8TestObject::toNative(info.Holder());
6338 int optionalLongArg; 6383 int optionalLongArg;
6339 { 6384 {
6340 v8::TryCatch block; 6385 v8::TryCatch block;
6386 V8RethrowTryCatchScope rethrow(block);
6341 if (UNLIKELY(info.Length() <= 0)) { 6387 if (UNLIKELY(info.Length() <= 0)) {
6342 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(), in fo.GetIsolate()); 6388 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(), in fo.GetIsolate());
6343 return; 6389 return;
6344 } 6390 }
6345 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState); 6391 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState);
6346 } 6392 }
6347 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(optionalLongA rg), info.GetIsolate()); 6393 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(optionalLongA rg), info.GetIsolate());
6348 } 6394 }
6349 6395
6350 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 6396 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
6351 { 6397 {
6352 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6398 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6353 TestObjectV8Internal::stringMethodOptionalLongArgMethod(info); 6399 TestObjectV8Internal::stringMethodOptionalLongArgMethod(info);
6354 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6400 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6355 } 6401 }
6356 6402
6357 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) 6403 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall backInfo<v8::Value>& info)
6358 { 6404 {
6359 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa ceEmptyMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 6405 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa ceEmptyMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
6360 TestObject* impl = V8TestObject::toNative(info.Holder()); 6406 TestObject* impl = V8TestObject::toNative(info.Holder());
6361 int optionalLongArg; 6407 int optionalLongArg;
6362 { 6408 {
6363 v8::TryCatch block; 6409 v8::TryCatch block;
6410 V8RethrowTryCatchScope rethrow(block);
6364 if (UNLIKELY(info.Length() <= 0)) { 6411 if (UNLIKELY(info.Length() <= 0)) {
6365 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg ()); 6412 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg ());
6366 return; 6413 return;
6367 } 6414 }
6368 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState); 6415 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState);
6369 } 6416 }
6370 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg(optiona lLongArg)); 6417 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg(optiona lLongArg));
6371 } 6418 }
6372 6419
6373 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 6420 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
6374 { 6421 {
6375 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6422 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6376 TestObjectV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(info); 6423 TestObjectV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(info);
6377 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6424 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6378 } 6425 }
6379 6426
6380 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 6427 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
6381 { 6428 {
6382 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodO ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 6429 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodO ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
6383 TestObject* impl = V8TestObject::toNative(info.Holder()); 6430 TestObject* impl = V8TestObject::toNative(info.Holder());
6384 int optionalLongArg; 6431 int optionalLongArg;
6385 { 6432 {
6386 v8::TryCatch block; 6433 v8::TryCatch block;
6434 V8RethrowTryCatchScope rethrow(block);
6387 if (UNLIKELY(info.Length() <= 0)) { 6435 if (UNLIKELY(info.Length() <= 0)) {
6388 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg()); 6436 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg());
6389 return; 6437 return;
6390 } 6438 }
6391 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState); 6439 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState);
6392 } 6440 }
6393 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg(optionalLongArg)); 6441 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg(optionalLongArg));
6394 } 6442 }
6395 6443
6396 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 6444 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
6397 { 6445 {
6398 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6446 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6399 TestObjectV8Internal::longMethodOptionalLongArgMethod(info); 6447 TestObjectV8Internal::longMethodOptionalLongArgMethod(info);
6400 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6448 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6401 } 6449 }
6402 6450
6403 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf o<v8::Value>& info) 6451 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf o<v8::Value>& info)
6404 { 6452 {
6405 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 6453 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
6406 if (UNLIKELY(info.Length() < 1)) { 6454 if (UNLIKELY(info.Length() < 1)) {
6407 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 6455 throwMinimumArityTypeError(exceptionState, 1, info.Length());
6408 return; 6456 return;
6409 } 6457 }
6410 TestObject* impl = V8TestObject::toNative(info.Holder()); 6458 TestObject* impl = V8TestObject::toNative(info.Holder());
6411 int longArg; 6459 int longArg;
6412 int optionalLongArg; 6460 int optionalLongArg;
6413 { 6461 {
6414 v8::TryCatch block; 6462 v8::TryCatch block;
6463 V8RethrowTryCatchScope rethrow(block);
6415 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 6464 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
6416 if (UNLIKELY(info.Length() <= 1)) { 6465 if (UNLIKELY(info.Length() <= 1)) {
6417 impl->voidMethodLongArgOptionalLongArg(longArg); 6466 impl->voidMethodLongArgOptionalLongArg(longArg);
6418 return; 6467 return;
6419 } 6468 }
6420 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[1], exceptionState), exceptionState); 6469 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[1], exceptionState), exceptionState);
6421 } 6470 }
6422 impl->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg); 6471 impl->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg);
6423 } 6472 }
6424 6473
(...skipping 10 matching lines...) Expand all
6435 if (UNLIKELY(info.Length() < 1)) { 6484 if (UNLIKELY(info.Length() < 1)) {
6436 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 6485 throwMinimumArityTypeError(exceptionState, 1, info.Length());
6437 return; 6486 return;
6438 } 6487 }
6439 TestObject* impl = V8TestObject::toNative(info.Holder()); 6488 TestObject* impl = V8TestObject::toNative(info.Holder());
6440 int longArg; 6489 int longArg;
6441 int optionalLongArg1; 6490 int optionalLongArg1;
6442 int optionalLongArg2; 6491 int optionalLongArg2;
6443 { 6492 {
6444 v8::TryCatch block; 6493 v8::TryCatch block;
6494 V8RethrowTryCatchScope rethrow(block);
6445 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 6495 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
6446 if (UNLIKELY(info.Length() <= 1)) { 6496 if (UNLIKELY(info.Length() <= 1)) {
6447 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg); 6497 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg);
6448 return; 6498 return;
6449 } 6499 }
6450 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg1, toInt32(info[1], exceptionState), exceptionState); 6500 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg1, toInt32(info[1], exceptionState), exceptionState);
6451 if (UNLIKELY(info.Length() <= 2)) { 6501 if (UNLIKELY(info.Length() <= 2)) {
6452 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optio nalLongArg1); 6502 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optio nalLongArg1);
6453 return; 6503 return;
6454 } 6504 }
(...skipping 14 matching lines...) Expand all
6469 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsola te()); 6519 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsola te());
6470 if (UNLIKELY(info.Length() < 1)) { 6520 if (UNLIKELY(info.Length() < 1)) {
6471 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 6521 throwMinimumArityTypeError(exceptionState, 1, info.Length());
6472 return; 6522 return;
6473 } 6523 }
6474 TestObject* impl = V8TestObject::toNative(info.Holder()); 6524 TestObject* impl = V8TestObject::toNative(info.Holder());
6475 int longArg; 6525 int longArg;
6476 TestInterfaceEmpty* optionalTestInterfaceEmpty; 6526 TestInterfaceEmpty* optionalTestInterfaceEmpty;
6477 { 6527 {
6478 v8::TryCatch block; 6528 v8::TryCatch block;
6529 V8RethrowTryCatchScope rethrow(block);
6479 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 6530 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
6480 if (UNLIKELY(info.Length() <= 1)) { 6531 if (UNLIKELY(info.Length() <= 1)) {
6481 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg); 6532 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg);
6482 return; 6533 return;
6483 } 6534 }
6484 TONATIVE_VOID_INTERNAL(optionalTestInterfaceEmpty, V8TestInterfaceEmpty: :toNativeWithTypeCheck(info.GetIsolate(), info[1])); 6535 TONATIVE_VOID_INTERNAL(optionalTestInterfaceEmpty, V8TestInterfaceEmpty: :toNativeWithTypeCheck(info.GetIsolate(), info[1]));
6485 } 6536 }
6486 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestIn terfaceEmpty); 6537 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestIn terfaceEmpty);
6487 } 6538 }
6488 6539
6489 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info) 6540 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info)
6490 { 6541 {
6491 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6542 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6492 TestObjectV8Internal::voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(i nfo); 6543 TestObjectV8Internal::voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(i nfo);
6493 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6544 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6494 } 6545 }
6495 6546
6496 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::Funct ionCallbackInfo<v8::Value>& info) 6547 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::Funct ionCallbackInfo<v8::Value>& info)
6497 { 6548 {
6498 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT estInterfaceEmptyArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsola te()); 6549 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT estInterfaceEmptyArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsola te());
6499 if (UNLIKELY(info.Length() < 1)) { 6550 if (UNLIKELY(info.Length() < 1)) {
6500 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 6551 throwMinimumArityTypeError(exceptionState, 1, info.Length());
6501 return; 6552 return;
6502 } 6553 }
6503 TestObject* impl = V8TestObject::toNative(info.Holder()); 6554 TestObject* impl = V8TestObject::toNative(info.Holder());
6504 TestInterfaceEmpty* optionalTestInterfaceEmpty; 6555 TestInterfaceEmpty* optionalTestInterfaceEmpty;
6505 int longArg; 6556 int longArg;
6506 { 6557 {
6507 v8::TryCatch block; 6558 v8::TryCatch block;
6559 V8RethrowTryCatchScope rethrow(block);
6508 TONATIVE_VOID_INTERNAL(optionalTestInterfaceEmpty, V8TestInterfaceEmpty: :toNativeWithTypeCheck(info.GetIsolate(), info[0])); 6560 TONATIVE_VOID_INTERNAL(optionalTestInterfaceEmpty, V8TestInterfaceEmpty: :toNativeWithTypeCheck(info.GetIsolate(), info[0]));
6509 if (UNLIKELY(info.Length() <= 1)) { 6561 if (UNLIKELY(info.Length() <= 1)) {
6510 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInt erfaceEmpty); 6562 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInt erfaceEmpty);
6511 return; 6563 return;
6512 } 6564 }
6513 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio nState), exceptionState); 6565 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio nState), exceptionState);
6514 } 6566 }
6515 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEm pty, longArg); 6567 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEm pty, longArg);
6516 } 6568 }
6517 6569
6518 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info) 6570 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v 8::FunctionCallbackInfo<v8::Value>& info)
6519 { 6571 {
6520 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6572 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6521 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(i nfo); 6573 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(i nfo);
6522 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6574 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6523 } 6575 }
6524 6576
6525 static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 6577 static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
6526 { 6578 {
6527 TestObject* impl = V8TestObject::toNative(info.Holder()); 6579 TestObject* impl = V8TestObject::toNative(info.Holder());
6528 Dictionary optionalDictionaryArg; 6580 Dictionary optionalDictionaryArg;
6529 { 6581 {
6530 v8::TryCatch block; 6582 v8::TryCatch block;
6583 V8RethrowTryCatchScope rethrow(block);
6531 TONATIVE_VOID_INTERNAL(optionalDictionaryArg, Dictionary(info[0], info.G etIsolate())); 6584 TONATIVE_VOID_INTERNAL(optionalDictionaryArg, Dictionary(info[0], info.G etIsolate()));
6532 if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg .isObject()) { 6585 if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg .isObject()) {
6533 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOptiona lDictionaryArg", "TestObject", "parameter 1 ('optionalDictionaryArg') is not an object."), info.GetIsolate()); 6586 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOptiona lDictionaryArg", "TestObject", "parameter 1 ('optionalDictionaryArg') is not an object."), info.GetIsolate());
6534 block.ReThrow();
6535 return; 6587 return;
6536 } 6588 }
6537 } 6589 }
6538 impl->voidMethodOptionalDictionaryArg(optionalDictionaryArg); 6590 impl->voidMethodOptionalDictionaryArg(optionalDictionaryArg);
6539 } 6591 }
6540 6592
6541 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 6593 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
6542 { 6594 {
6543 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6595 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6544 TestObjectV8Internal::voidMethodOptionalDictionaryArgMethod(info); 6596 TestObjectV8Internal::voidMethodOptionalDictionaryArgMethod(info);
6545 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6597 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6546 } 6598 }
6547 6599
6548 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 6600 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
6549 { 6601 {
6550 TestObject* impl = V8TestObject::toNative(info.Holder()); 6602 TestObject* impl = V8TestObject::toNative(info.Holder());
6551 Vector<String> variadicStringArgs; 6603 Vector<String> variadicStringArgs;
6552 { 6604 {
6553 v8::TryCatch block; 6605 v8::TryCatch block;
6606 V8RethrowTryCatchScope rethrow(block);
6554 TONATIVE_VOID_INTERNAL(variadicStringArgs, toNativeArguments<String>(inf o, 0)); 6607 TONATIVE_VOID_INTERNAL(variadicStringArgs, toNativeArguments<String>(inf o, 0));
6555 } 6608 }
6556 impl->voidMethodVariadicStringArg(variadicStringArgs); 6609 impl->voidMethodVariadicStringArg(variadicStringArgs);
6557 } 6610 }
6558 6611
6559 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 6612 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
6560 { 6613 {
6561 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6614 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6562 TestObjectV8Internal::voidMethodVariadicStringArgMethod(info); 6615 TestObjectV8Internal::voidMethodVariadicStringArgMethod(info);
6563 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6616 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6564 } 6617 }
6565 6618
6566 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) 6619 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info)
6567 { 6620 {
6568 if (UNLIKELY(info.Length() < 1)) { 6621 if (UNLIKELY(info.Length() < 1)) {
6569 throwMinimumArityTypeErrorForMethod("voidMethodStringArgVariadicStringAr g", "TestObject", 1, info.Length(), info.GetIsolate()); 6622 throwMinimumArityTypeErrorForMethod("voidMethodStringArgVariadicStringAr g", "TestObject", 1, info.Length(), info.GetIsolate());
6570 return; 6623 return;
6571 } 6624 }
6572 TestObject* impl = V8TestObject::toNative(info.Holder()); 6625 TestObject* impl = V8TestObject::toNative(info.Holder());
6573 V8StringResource<> stringArg; 6626 V8StringResource<> stringArg;
6574 Vector<String> variadicStringArgs; 6627 Vector<String> variadicStringArgs;
6575 { 6628 {
6576 v8::TryCatch block; 6629 v8::TryCatch block;
6630 V8RethrowTryCatchScope rethrow(block);
6577 TOSTRING_VOID_INTERNAL(stringArg, info[0]); 6631 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
6578 TONATIVE_VOID_INTERNAL(variadicStringArgs, toNativeArguments<String>(inf o, 1)); 6632 TONATIVE_VOID_INTERNAL(variadicStringArgs, toNativeArguments<String>(inf o, 1));
6579 } 6633 }
6580 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); 6634 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs);
6581 } 6635 }
6582 6636
6583 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 6637 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
6584 { 6638 {
6585 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6639 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6586 TestObjectV8Internal::voidMethodStringArgVariadicStringArgMethod(info); 6640 TestObjectV8Internal::voidMethodStringArgVariadicStringArgMethod(info);
(...skipping 27 matching lines...) Expand all
6614 { 6668 {
6615 if (UNLIKELY(info.Length() < 1)) { 6669 if (UNLIKELY(info.Length() < 1)) {
6616 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceEmptyArgVari adicTestInterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate()); 6670 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceEmptyArgVari adicTestInterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate());
6617 return; 6671 return;
6618 } 6672 }
6619 TestObject* impl = V8TestObject::toNative(info.Holder()); 6673 TestObject* impl = V8TestObject::toNative(info.Holder());
6620 TestInterfaceEmpty* testInterfaceEmptyArg; 6674 TestInterfaceEmpty* testInterfaceEmptyArg;
6621 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; 6675 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs;
6622 { 6676 {
6623 v8::TryCatch block; 6677 v8::TryCatch block;
6678 V8RethrowTryCatchScope rethrow(block);
6624 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0])); 6679 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0]));
6625 for (int i = 1; i < info.Length(); ++i) { 6680 for (int i = 1; i < info.Length(); ++i) {
6626 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) { 6681 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) {
6627 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTes tInterfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObject", "parameter 2 is not of type 'TestInterfaceEmpty'."), info.GetIsolate()); 6682 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTes tInterfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObject", "parameter 2 is not of type 'TestInterfaceEmpty'."), info.GetIsolate());
6628 block.ReThrow();
6629 return; 6683 return;
6630 } 6684 }
6631 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative (v8::Handle<v8::Object>::Cast(info[i]))); 6685 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative (v8::Handle<v8::Object>::Cast(info[i])));
6632 } 6686 }
6633 } 6687 }
6634 impl->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInter faceEmptyArg, variadicTestInterfaceEmptyArgs); 6688 impl->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInter faceEmptyArg, variadicTestInterfaceEmptyArgs);
6635 } 6689 }
6636 6690
6637 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa llback(const v8::FunctionCallbackInfo<v8::Value>& info) 6691 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa llback(const v8::FunctionCallbackInfo<v8::Value>& info)
6638 { 6692 {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
6687 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6741 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6688 } 6742 }
6689 6743
6690 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6744 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6691 { 6745 {
6692 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate()); 6746 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate());
6693 TestObject* impl = V8TestObject::toNative(info.Holder()); 6747 TestObject* impl = V8TestObject::toNative(info.Holder());
6694 int longArg; 6748 int longArg;
6695 { 6749 {
6696 v8::TryCatch block; 6750 v8::TryCatch block;
6751 V8RethrowTryCatchScope rethrow(block);
6697 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 6752 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
6698 } 6753 }
6699 impl->overloadedMethodA(longArg); 6754 impl->overloadedMethodA(longArg);
6700 } 6755 }
6701 6756
6702 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6757 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6703 { 6758 {
6704 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate()); 6759 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate());
6705 TestObject* impl = V8TestObject::toNative(info.Holder()); 6760 TestObject* impl = V8TestObject::toNative(info.Holder());
6706 int longArg1; 6761 int longArg1;
6707 int longArg2; 6762 int longArg2;
6708 { 6763 {
6709 v8::TryCatch block; 6764 v8::TryCatch block;
6765 V8RethrowTryCatchScope rethrow(block);
6710 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg1, toInt32(info[0], excepti onState), exceptionState); 6766 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg1, toInt32(info[0], excepti onState), exceptionState);
6711 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg2, toInt32(info[1], excepti onState), exceptionState); 6767 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg2, toInt32(info[1], excepti onState), exceptionState);
6712 } 6768 }
6713 impl->overloadedMethodA(longArg1, longArg2); 6769 impl->overloadedMethodA(longArg1, longArg2);
6714 } 6770 }
6715 6771
6716 static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6772 static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6717 { 6773 {
6718 v8::Isolate* isolate = info.GetIsolate(); 6774 v8::Isolate* isolate = info.GetIsolate();
6719 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), isolate); 6775 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), isolate);
(...skipping 26 matching lines...) Expand all
6746 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6802 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6747 } 6803 }
6748 6804
6749 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6805 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6750 { 6806 {
6751 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate()); 6807 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate());
6752 TestObject* impl = V8TestObject::toNative(info.Holder()); 6808 TestObject* impl = V8TestObject::toNative(info.Holder());
6753 int longArg; 6809 int longArg;
6754 { 6810 {
6755 v8::TryCatch block; 6811 v8::TryCatch block;
6812 V8RethrowTryCatchScope rethrow(block);
6756 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 6813 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
6757 } 6814 }
6758 impl->overloadedMethodB(longArg); 6815 impl->overloadedMethodB(longArg);
6759 } 6816 }
6760 6817
6761 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6818 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6762 { 6819 {
6763 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate()); 6820 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate());
6764 TestObject* impl = V8TestObject::toNative(info.Holder()); 6821 TestObject* impl = V8TestObject::toNative(info.Holder());
6765 V8StringResource<> stringArg; 6822 V8StringResource<> stringArg;
6766 int longArg; 6823 int longArg;
6767 { 6824 {
6768 v8::TryCatch block; 6825 v8::TryCatch block;
6826 V8RethrowTryCatchScope rethrow(block);
6769 TOSTRING_VOID_INTERNAL(stringArg, info[0]); 6827 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
6770 if (UNLIKELY(info.Length() <= 1)) { 6828 if (UNLIKELY(info.Length() <= 1)) {
6771 impl->overloadedMethodB(stringArg); 6829 impl->overloadedMethodB(stringArg);
6772 return; 6830 return;
6773 } 6831 }
6774 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio nState), exceptionState); 6832 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio nState), exceptionState);
6775 } 6833 }
6776 impl->overloadedMethodB(stringArg, longArg); 6834 impl->overloadedMethodB(stringArg, longArg);
6777 } 6835 }
6778 6836
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
6813 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6871 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6814 } 6872 }
6815 6873
6816 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6874 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6817 { 6875 {
6818 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObject", info.Holder(), info.GetIsolate()); 6876 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObject", info.Holder(), info.GetIsolate());
6819 TestObject* impl = V8TestObject::toNative(info.Holder()); 6877 TestObject* impl = V8TestObject::toNative(info.Holder());
6820 int longArg; 6878 int longArg;
6821 { 6879 {
6822 v8::TryCatch block; 6880 v8::TryCatch block;
6881 V8RethrowTryCatchScope rethrow(block);
6823 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 6882 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
6824 } 6883 }
6825 impl->overloadedMethodC(longArg); 6884 impl->overloadedMethodC(longArg);
6826 } 6885 }
6827 6886
6828 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6887 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6829 { 6888 {
6830 TestObject* impl = V8TestObject::toNative(info.Holder()); 6889 TestObject* impl = V8TestObject::toNative(info.Holder());
6831 TestInterfaceEmpty* testInterfaceEmptyArg; 6890 TestInterfaceEmpty* testInterfaceEmptyArg;
6832 { 6891 {
6833 v8::TryCatch block; 6892 v8::TryCatch block;
6893 V8RethrowTryCatchScope rethrow(block);
6834 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0])); 6894 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0]));
6835 } 6895 }
6836 impl->overloadedMethodC(testInterfaceEmptyArg); 6896 impl->overloadedMethodC(testInterfaceEmptyArg);
6837 } 6897 }
6838 6898
6839 static void overloadedMethodCMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6899 static void overloadedMethodCMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6840 { 6900 {
6841 v8::Isolate* isolate = info.GetIsolate(); 6901 v8::Isolate* isolate = info.GetIsolate();
6842 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObject", info.Holder(), isolate); 6902 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObject", info.Holder(), isolate);
6843 switch (std::min(1, info.Length())) { 6903 switch (std::min(1, info.Length())) {
(...skipping 23 matching lines...) Expand all
6867 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6927 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6868 } 6928 }
6869 6929
6870 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6930 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6871 { 6931 {
6872 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObject", info.Holder(), info.GetIsolate()); 6932 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObject", info.Holder(), info.GetIsolate());
6873 TestObject* impl = V8TestObject::toNative(info.Holder()); 6933 TestObject* impl = V8TestObject::toNative(info.Holder());
6874 int longArg; 6934 int longArg;
6875 { 6935 {
6876 v8::TryCatch block; 6936 v8::TryCatch block;
6937 V8RethrowTryCatchScope rethrow(block);
6877 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 6938 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
6878 } 6939 }
6879 impl->overloadedMethodD(longArg); 6940 impl->overloadedMethodD(longArg);
6880 } 6941 }
6881 6942
6882 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6943 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6883 { 6944 {
6884 TestObject* impl = V8TestObject::toNative(info.Holder()); 6945 TestObject* impl = V8TestObject::toNative(info.Holder());
6885 Vector<int> longArrayArg; 6946 Vector<int> longArrayArg;
6886 { 6947 {
6887 v8::TryCatch block; 6948 v8::TryCatch block;
6949 V8RethrowTryCatchScope rethrow(block);
6888 TONATIVE_VOID_INTERNAL(longArrayArg, toNativeArray<int>(info[0], 1, info .GetIsolate())); 6950 TONATIVE_VOID_INTERNAL(longArrayArg, toNativeArray<int>(info[0], 1, info .GetIsolate()));
6889 } 6951 }
6890 impl->overloadedMethodD(longArrayArg); 6952 impl->overloadedMethodD(longArrayArg);
6891 } 6953 }
6892 6954
6893 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 6955 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6894 { 6956 {
6895 v8::Isolate* isolate = info.GetIsolate(); 6957 v8::Isolate* isolate = info.GetIsolate();
6896 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObject", info.Holder(), isolate); 6958 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObject", info.Holder(), isolate);
6897 switch (std::min(1, info.Length())) { 6959 switch (std::min(1, info.Length())) {
(...skipping 23 matching lines...) Expand all
6921 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6983 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6922 } 6984 }
6923 6985
6924 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6986 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6925 { 6987 {
6926 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodE", "TestObject", info.Holder(), info.GetIsolate()); 6988 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodE", "TestObject", info.Holder(), info.GetIsolate());
6927 TestObject* impl = V8TestObject::toNative(info.Holder()); 6989 TestObject* impl = V8TestObject::toNative(info.Holder());
6928 int longArg; 6990 int longArg;
6929 { 6991 {
6930 v8::TryCatch block; 6992 v8::TryCatch block;
6993 V8RethrowTryCatchScope rethrow(block);
6931 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 6994 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
6932 } 6995 }
6933 impl->overloadedMethodE(longArg); 6996 impl->overloadedMethodE(longArg);
6934 } 6997 }
6935 6998
6936 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 6999 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6937 { 7000 {
6938 TestObject* impl = V8TestObject::toNative(info.Holder()); 7001 TestObject* impl = V8TestObject::toNative(info.Holder());
6939 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; 7002 TestInterfaceEmpty* testInterfaceEmptyOrNullArg;
6940 { 7003 {
6941 v8::TryCatch block; 7004 v8::TryCatch block;
7005 V8RethrowTryCatchScope rethrow(block);
6942 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceEmpty ::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 7006 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceEmpty ::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
6943 } 7007 }
6944 impl->overloadedMethodE(testInterfaceEmptyOrNullArg); 7008 impl->overloadedMethodE(testInterfaceEmptyOrNullArg);
6945 } 7009 }
6946 7010
6947 static void overloadedMethodEMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 7011 static void overloadedMethodEMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6948 { 7012 {
6949 v8::Isolate* isolate = info.GetIsolate(); 7013 v8::Isolate* isolate = info.GetIsolate();
6950 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodE", "TestObject", info.Holder(), isolate); 7014 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodE", "TestObject", info.Holder(), isolate);
6951 switch (std::min(1, info.Length())) { 7015 switch (std::min(1, info.Length())) {
(...skipping 29 matching lines...) Expand all
6981 7045
6982 static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7046 static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6983 { 7047 {
6984 TestObject* impl = V8TestObject::toNative(info.Holder()); 7048 TestObject* impl = V8TestObject::toNative(info.Holder());
6985 V8StringResource<> stringArg; 7049 V8StringResource<> stringArg;
6986 { 7050 {
6987 if (UNLIKELY(info.Length() <= 0)) { 7051 if (UNLIKELY(info.Length() <= 0)) {
6988 impl->overloadedMethodF(); 7052 impl->overloadedMethodF();
6989 return; 7053 return;
6990 } 7054 }
6991 TOSTRING_VOID_INTERNAL_NOTRYCATCH(stringArg, info[0]); 7055 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
6992 } 7056 }
6993 impl->overloadedMethodF(stringArg); 7057 impl->overloadedMethodF(stringArg);
6994 } 7058 }
6995 7059
6996 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7060 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6997 { 7061 {
6998 TestObject* impl = V8TestObject::toNative(info.Holder()); 7062 TestObject* impl = V8TestObject::toNative(info.Holder());
6999 double doubleArg; 7063 double doubleArg;
7000 { 7064 {
7001 v8::TryCatch block; 7065 v8::TryCatch block;
7066 V8RethrowTryCatchScope rethrow(block);
7002 TONATIVE_VOID_INTERNAL(doubleArg, static_cast<double>(info[0]->NumberVal ue())); 7067 TONATIVE_VOID_INTERNAL(doubleArg, static_cast<double>(info[0]->NumberVal ue()));
7003 } 7068 }
7004 impl->overloadedMethodF(doubleArg); 7069 impl->overloadedMethodF(doubleArg);
7005 } 7070 }
7006 7071
7007 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 7072 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
7008 { 7073 {
7009 v8::Isolate* isolate = info.GetIsolate(); 7074 v8::Isolate* isolate = info.GetIsolate();
7010 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodF", "TestObject", info.Holder(), isolate); 7075 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodF", "TestObject", info.Holder(), isolate);
7011 switch (std::min(1, info.Length())) { 7076 switch (std::min(1, info.Length())) {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
7045 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7110 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7046 } 7111 }
7047 7112
7048 static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7113 static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
7049 { 7114 {
7050 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodG", "TestObject", info.Holder(), info.GetIsolate()); 7115 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodG", "TestObject", info.Holder(), info.GetIsolate());
7051 TestObject* impl = V8TestObject::toNative(info.Holder()); 7116 TestObject* impl = V8TestObject::toNative(info.Holder());
7052 int longArg; 7117 int longArg;
7053 { 7118 {
7054 v8::TryCatch block; 7119 v8::TryCatch block;
7120 V8RethrowTryCatchScope rethrow(block);
7055 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 7121 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
7056 } 7122 }
7057 impl->overloadedMethodG(longArg); 7123 impl->overloadedMethodG(longArg);
7058 } 7124 }
7059 7125
7060 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7126 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
7061 { 7127 {
7062 TestObject* impl = V8TestObject::toNative(info.Holder()); 7128 TestObject* impl = V8TestObject::toNative(info.Holder());
7063 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; 7129 TestInterfaceEmpty* testInterfaceEmptyOrNullArg;
7064 { 7130 {
7065 v8::TryCatch block; 7131 v8::TryCatch block;
7132 V8RethrowTryCatchScope rethrow(block);
7066 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceEmpty ::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 7133 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceEmpty ::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
7067 } 7134 }
7068 impl->overloadedMethodG(testInterfaceEmptyOrNullArg); 7135 impl->overloadedMethodG(testInterfaceEmptyOrNullArg);
7069 } 7136 }
7070 7137
7071 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 7138 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
7072 { 7139 {
7073 v8::Isolate* isolate = info.GetIsolate(); 7140 v8::Isolate* isolate = info.GetIsolate();
7074 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodG", "TestObject", info.Holder(), isolate); 7141 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodG", "TestObject", info.Holder(), isolate);
7075 switch (std::min(1, info.Length())) { 7142 switch (std::min(1, info.Length())) {
(...skipping 26 matching lines...) Expand all
7102 TestObjectV8Internal::overloadedMethodGMethod(info); 7169 TestObjectV8Internal::overloadedMethodGMethod(info);
7103 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7170 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7104 } 7171 }
7105 7172
7106 static void overloadedMethodH1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7173 static void overloadedMethodH1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
7107 { 7174 {
7108 TestObject* impl = V8TestObject::toNative(info.Holder()); 7175 TestObject* impl = V8TestObject::toNative(info.Holder());
7109 TestInterfaceImplementation* testInterfaceArg; 7176 TestInterfaceImplementation* testInterfaceArg;
7110 { 7177 {
7111 v8::TryCatch block; 7178 v8::TryCatch block;
7179 V8RethrowTryCatchScope rethrow(block);
7112 TONATIVE_VOID_INTERNAL(testInterfaceArg, V8TestInterface::toNativeWithTy peCheck(info.GetIsolate(), info[0])); 7180 TONATIVE_VOID_INTERNAL(testInterfaceArg, V8TestInterface::toNativeWithTy peCheck(info.GetIsolate(), info[0]));
7113 } 7181 }
7114 impl->overloadedMethodH(testInterfaceArg); 7182 impl->overloadedMethodH(testInterfaceArg);
7115 } 7183 }
7116 7184
7117 static void overloadedMethodH2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7185 static void overloadedMethodH2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
7118 { 7186 {
7119 TestObject* impl = V8TestObject::toNative(info.Holder()); 7187 TestObject* impl = V8TestObject::toNative(info.Holder());
7120 TestInterfaceEmpty* testInterfaceEmptyArg; 7188 TestInterfaceEmpty* testInterfaceEmptyArg;
7121 { 7189 {
7122 v8::TryCatch block; 7190 v8::TryCatch block;
7191 V8RethrowTryCatchScope rethrow(block);
7123 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0])); 7192 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0]));
7124 } 7193 }
7125 impl->overloadedMethodH(testInterfaceEmptyArg); 7194 impl->overloadedMethodH(testInterfaceEmptyArg);
7126 } 7195 }
7127 7196
7128 static void overloadedMethodHMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 7197 static void overloadedMethodHMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
7129 { 7198 {
7130 v8::Isolate* isolate = info.GetIsolate(); 7199 v8::Isolate* isolate = info.GetIsolate();
7131 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodH", "TestObject", info.Holder(), isolate); 7200 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodH", "TestObject", info.Holder(), isolate);
7132 switch (std::min(1, info.Length())) { 7201 switch (std::min(1, info.Length())) {
(...skipping 21 matching lines...) Expand all
7154 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7223 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7155 TestObjectV8Internal::overloadedMethodHMethod(info); 7224 TestObjectV8Internal::overloadedMethodHMethod(info);
7156 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7225 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7157 } 7226 }
7158 7227
7159 static void overloadedMethodI1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7228 static void overloadedMethodI1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
7160 { 7229 {
7161 TestObject* impl = V8TestObject::toNative(info.Holder()); 7230 TestObject* impl = V8TestObject::toNative(info.Holder());
7162 V8StringResource<> stringArg; 7231 V8StringResource<> stringArg;
7163 { 7232 {
7164 TOSTRING_VOID_INTERNAL_NOTRYCATCH(stringArg, info[0]); 7233 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
7165 } 7234 }
7166 impl->overloadedMethodI(stringArg); 7235 impl->overloadedMethodI(stringArg);
7167 } 7236 }
7168 7237
7169 static void overloadedMethodI2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7238 static void overloadedMethodI2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
7170 { 7239 {
7171 TestObject* impl = V8TestObject::toNative(info.Holder()); 7240 TestObject* impl = V8TestObject::toNative(info.Holder());
7172 double doubleArg; 7241 double doubleArg;
7173 { 7242 {
7174 v8::TryCatch block; 7243 v8::TryCatch block;
7244 V8RethrowTryCatchScope rethrow(block);
7175 TONATIVE_VOID_INTERNAL(doubleArg, static_cast<double>(info[0]->NumberVal ue())); 7245 TONATIVE_VOID_INTERNAL(doubleArg, static_cast<double>(info[0]->NumberVal ue()));
7176 } 7246 }
7177 impl->overloadedMethodI(doubleArg); 7247 impl->overloadedMethodI(doubleArg);
7178 } 7248 }
7179 7249
7180 static void overloadedMethodIMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 7250 static void overloadedMethodIMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
7181 { 7251 {
7182 v8::Isolate* isolate = info.GetIsolate(); 7252 v8::Isolate* isolate = info.GetIsolate();
7183 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodI", "TestObject", info.Holder(), isolate); 7253 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodI", "TestObject", info.Holder(), isolate);
7184 switch (std::min(1, info.Length())) { 7254 switch (std::min(1, info.Length())) {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
7220 impl->overloadedPerWorldBindingsMethod(); 7290 impl->overloadedPerWorldBindingsMethod();
7221 } 7291 }
7222 7292
7223 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn fo<v8::Value>& info) 7293 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn fo<v8::Value>& info)
7224 { 7294 {
7225 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); 7295 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate());
7226 TestObject* impl = V8TestObject::toNative(info.Holder()); 7296 TestObject* impl = V8TestObject::toNative(info.Holder());
7227 int longArg; 7297 int longArg;
7228 { 7298 {
7229 v8::TryCatch block; 7299 v8::TryCatch block;
7300 V8RethrowTryCatchScope rethrow(block);
7230 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 7301 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
7231 } 7302 }
7232 impl->overloadedPerWorldBindingsMethod(longArg); 7303 impl->overloadedPerWorldBindingsMethod(longArg);
7233 } 7304 }
7234 7305
7235 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info) 7306 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info)
7236 { 7307 {
7237 v8::Isolate* isolate = info.GetIsolate(); 7308 v8::Isolate* isolate = info.GetIsolate();
7238 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), isolate); 7309 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), isolate);
7239 switch (std::min(1, info.Length())) { 7310 switch (std::min(1, info.Length())) {
(...skipping 25 matching lines...) Expand all
7265 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7336 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7266 } 7337 }
7267 7338
7268 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi onCallbackInfo<v8::Value>& info) 7339 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi onCallbackInfo<v8::Value>& info)
7269 { 7340 {
7270 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); 7341 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate());
7271 TestObject* impl = V8TestObject::toNative(info.Holder()); 7342 TestObject* impl = V8TestObject::toNative(info.Holder());
7272 int longArg; 7343 int longArg;
7273 { 7344 {
7274 v8::TryCatch block; 7345 v8::TryCatch block;
7346 V8RethrowTryCatchScope rethrow(block);
7275 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 7347 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
7276 } 7348 }
7277 impl->overloadedPerWorldBindingsMethod(longArg); 7349 impl->overloadedPerWorldBindingsMethod(longArg);
7278 } 7350 }
7279 7351
7280 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio nCallbackInfo<v8::Value>& info) 7352 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio nCallbackInfo<v8::Value>& info)
7281 { 7353 {
7282 v8::Isolate* isolate = info.GetIsolate(); 7354 v8::Isolate* isolate = info.GetIsolate();
7283 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), isolate); 7355 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), isolate);
7284 switch (std::min(1, info.Length())) { 7356 switch (std::min(1, info.Length())) {
(...skipping 24 matching lines...) Expand all
7309 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethodForMainWorld(inf o); 7381 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethodForMainWorld(inf o);
7310 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7382 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7311 } 7383 }
7312 7384
7313 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val ue>& info) 7385 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val ue>& info)
7314 { 7386 {
7315 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate()); 7387 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate());
7316 int longArg; 7388 int longArg;
7317 { 7389 {
7318 v8::TryCatch block; 7390 v8::TryCatch block;
7391 V8RethrowTryCatchScope rethrow(block);
7319 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 7392 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
7320 } 7393 }
7321 TestObject::overloadedStaticMethod(longArg); 7394 TestObject::overloadedStaticMethod(longArg);
7322 } 7395 }
7323 7396
7324 static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val ue>& info) 7397 static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val ue>& info)
7325 { 7398 {
7326 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate()); 7399 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate());
7327 int longArg1; 7400 int longArg1;
7328 int longArg2; 7401 int longArg2;
7329 { 7402 {
7330 v8::TryCatch block; 7403 v8::TryCatch block;
7404 V8RethrowTryCatchScope rethrow(block);
7331 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg1, toInt32(info[0], excepti onState), exceptionState); 7405 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg1, toInt32(info[0], excepti onState), exceptionState);
7332 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg2, toInt32(info[1], excepti onState), exceptionState); 7406 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg2, toInt32(info[1], excepti onState), exceptionState);
7333 } 7407 }
7334 TestObject::overloadedStaticMethod(longArg1, longArg2); 7408 TestObject::overloadedStaticMethod(longArg1, longArg2);
7335 } 7409 }
7336 7410
7337 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info) 7411 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info)
7338 { 7412 {
7339 v8::Isolate* isolate = info.GetIsolate(); 7413 v8::Isolate* isolate = info.GetIsolate();
7340 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), isolate); 7414 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), isolate);
(...skipping 30 matching lines...) Expand all
7371 { 7445 {
7372 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC lampUnsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); 7446 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC lampUnsignedShortArg", "TestObject", info.Holder(), info.GetIsolate());
7373 if (UNLIKELY(info.Length() < 1)) { 7447 if (UNLIKELY(info.Length() < 1)) {
7374 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 7448 throwMinimumArityTypeError(exceptionState, 1, info.Length());
7375 return; 7449 return;
7376 } 7450 }
7377 TestObject* impl = V8TestObject::toNative(info.Holder()); 7451 TestObject* impl = V8TestObject::toNative(info.Holder());
7378 unsigned clampUnsignedShortArg = 0; 7452 unsigned clampUnsignedShortArg = 0;
7379 { 7453 {
7380 v8::TryCatch block; 7454 v8::TryCatch block;
7455 V8RethrowTryCatchScope rethrow(block);
7381 double clampUnsignedShortArgNativeValue; 7456 double clampUnsignedShortArgNativeValue;
7382 TONATIVE_VOID_INTERNAL(clampUnsignedShortArgNativeValue, info[0]->Number Value()); 7457 TONATIVE_VOID_INTERNAL(clampUnsignedShortArgNativeValue, info[0]->Number Value());
7383 if (!std::isnan(clampUnsignedShortArgNativeValue)) 7458 if (!std::isnan(clampUnsignedShortArgNativeValue))
7384 clampUnsignedShortArg = clampTo<unsigned short>(clampUnsignedShortAr gNativeValue); 7459 clampUnsignedShortArg = clampTo<unsigned short>(clampUnsignedShortAr gNativeValue);
7385 } 7460 }
7386 impl->voidMethodClampUnsignedShortArg(clampUnsignedShortArg); 7461 impl->voidMethodClampUnsignedShortArg(clampUnsignedShortArg);
7387 } 7462 }
7388 7463
7389 static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 7464 static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
7390 { 7465 {
7391 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7466 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7392 TestObjectV8Internal::voidMethodClampUnsignedShortArgMethod(info); 7467 TestObjectV8Internal::voidMethodClampUnsignedShortArgMethod(info);
7393 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7468 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7394 } 7469 }
7395 7470
7396 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info) 7471 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info)
7397 { 7472 {
7398 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC lampUnsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); 7473 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC lampUnsignedLongArg", "TestObject", info.Holder(), info.GetIsolate());
7399 if (UNLIKELY(info.Length() < 1)) { 7474 if (UNLIKELY(info.Length() < 1)) {
7400 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 7475 throwMinimumArityTypeError(exceptionState, 1, info.Length());
7401 return; 7476 return;
7402 } 7477 }
7403 TestObject* impl = V8TestObject::toNative(info.Holder()); 7478 TestObject* impl = V8TestObject::toNative(info.Holder());
7404 unsigned clampUnsignedLongArg = 0; 7479 unsigned clampUnsignedLongArg = 0;
7405 { 7480 {
7406 v8::TryCatch block; 7481 v8::TryCatch block;
7482 V8RethrowTryCatchScope rethrow(block);
7407 double clampUnsignedLongArgNativeValue; 7483 double clampUnsignedLongArgNativeValue;
7408 TONATIVE_VOID_INTERNAL(clampUnsignedLongArgNativeValue, info[0]->NumberV alue()); 7484 TONATIVE_VOID_INTERNAL(clampUnsignedLongArgNativeValue, info[0]->NumberV alue());
7409 if (!std::isnan(clampUnsignedLongArgNativeValue)) 7485 if (!std::isnan(clampUnsignedLongArgNativeValue))
7410 clampUnsignedLongArg = clampTo<unsigned long>(clampUnsignedLongArgNa tiveValue); 7486 clampUnsignedLongArg = clampTo<unsigned long>(clampUnsignedLongArgNa tiveValue);
7411 } 7487 }
7412 impl->voidMethodClampUnsignedLongArg(clampUnsignedLongArg); 7488 impl->voidMethodClampUnsignedLongArg(clampUnsignedLongArg);
7413 } 7489 }
7414 7490
7415 static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 7491 static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
7416 { 7492 {
7417 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7493 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7418 TestObjectV8Internal::voidMethodClampUnsignedLongArgMethod(info); 7494 TestObjectV8Internal::voidMethodClampUnsignedLongArgMethod(info);
7419 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7495 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7420 } 7496 }
7421 7497
7422 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) 7498 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info)
7423 { 7499 {
7424 TestObject* impl = V8TestObject::toNative(info.Holder()); 7500 TestObject* impl = V8TestObject::toNative(info.Holder());
7425 TestInterfaceEmpty* defaultUndefinedTestInterfaceEmptyArg; 7501 TestInterfaceEmpty* defaultUndefinedTestInterfaceEmptyArg;
7426 { 7502 {
7427 v8::TryCatch block; 7503 v8::TryCatch block;
7504 V8RethrowTryCatchScope rethrow(block);
7428 TONATIVE_VOID_INTERNAL(defaultUndefinedTestInterfaceEmptyArg, V8TestInte rfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 7505 TONATIVE_VOID_INTERNAL(defaultUndefinedTestInterfaceEmptyArg, V8TestInte rfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
7429 } 7506 }
7430 impl->voidMethodDefaultUndefinedTestInterfaceEmptyArg(defaultUndefinedTestIn terfaceEmptyArg); 7507 impl->voidMethodDefaultUndefinedTestInterfaceEmptyArg(defaultUndefinedTestIn terfaceEmptyArg);
7431 } 7508 }
7432 7509
7433 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 7510 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
7434 { 7511 {
7435 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7512 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7436 TestObjectV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod( info); 7513 TestObjectV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod( info);
7437 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7514 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7438 } 7515 }
7439 7516
7440 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info) 7517 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info)
7441 { 7518 {
7442 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultUndefinedLongArg", "TestObject", info.Holder(), info.GetIsolate()); 7519 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultUndefinedLongArg", "TestObject", info.Holder(), info.GetIsolate());
7443 TestObject* impl = V8TestObject::toNative(info.Holder()); 7520 TestObject* impl = V8TestObject::toNative(info.Holder());
7444 int defaultUndefinedLongArg; 7521 int defaultUndefinedLongArg;
7445 { 7522 {
7446 v8::TryCatch block; 7523 v8::TryCatch block;
7524 V8RethrowTryCatchScope rethrow(block);
7447 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultUndefinedLongArg, toInt32(i nfo[0], exceptionState), exceptionState); 7525 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultUndefinedLongArg, toInt32(i nfo[0], exceptionState), exceptionState);
7448 } 7526 }
7449 impl->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg); 7527 impl->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg);
7450 } 7528 }
7451 7529
7452 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info) 7530 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info)
7453 { 7531 {
7454 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7532 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7455 TestObjectV8Internal::voidMethodDefaultUndefinedLongArgMethod(info); 7533 TestObjectV8Internal::voidMethodDefaultUndefinedLongArgMethod(info);
7456 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7534 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7457 } 7535 }
7458 7536
7459 static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback Info<v8::Value>& info) 7537 static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback Info<v8::Value>& info)
7460 { 7538 {
7461 TestObject* impl = V8TestObject::toNative(info.Holder()); 7539 TestObject* impl = V8TestObject::toNative(info.Holder());
7462 V8StringResource<> defaultUndefinedStringArg; 7540 V8StringResource<> defaultUndefinedStringArg;
7463 { 7541 {
7464 TOSTRING_VOID_INTERNAL_NOTRYCATCH(defaultUndefinedStringArg, info[0]); 7542 TOSTRING_VOID_INTERNAL(defaultUndefinedStringArg, info[0]);
7465 } 7543 }
7466 impl->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg); 7544 impl->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg);
7467 } 7545 }
7468 7546
7469 static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function CallbackInfo<v8::Value>& info) 7547 static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function CallbackInfo<v8::Value>& info)
7470 { 7548 {
7471 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7549 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7472 TestObjectV8Internal::voidMethodDefaultUndefinedStringArgMethod(info); 7550 TestObjectV8Internal::voidMethodDefaultUndefinedStringArgMethod(info);
7473 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7551 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7474 } 7552 }
7475 7553
7476 static void voidMethodDefaultNullStringStringArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) 7554 static void voidMethodDefaultNullStringStringArgMethod(const v8::FunctionCallbac kInfo<v8::Value>& info)
7477 { 7555 {
7478 TestObject* impl = V8TestObject::toNative(info.Holder()); 7556 TestObject* impl = V8TestObject::toNative(info.Holder());
7479 V8StringResource<> defaultNullStringStringArg; 7557 V8StringResource<> defaultNullStringStringArg;
7480 { 7558 {
7481 TOSTRING_VOID_INTERNAL_NOTRYCATCH(defaultNullStringStringArg, argumentOr Null(info, 0)); 7559 TOSTRING_VOID_INTERNAL(defaultNullStringStringArg, argumentOrNull(info, 0));
7482 } 7560 }
7483 impl->voidMethodDefaultNullStringStringArg(defaultNullStringStringArg); 7561 impl->voidMethodDefaultNullStringStringArg(defaultNullStringStringArg);
7484 } 7562 }
7485 7563
7486 static void voidMethodDefaultNullStringStringArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 7564 static void voidMethodDefaultNullStringStringArgMethodCallback(const v8::Functio nCallbackInfo<v8::Value>& info)
7487 { 7565 {
7488 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7566 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7489 TestObjectV8Internal::voidMethodDefaultNullStringStringArgMethod(info); 7567 TestObjectV8Internal::voidMethodDefaultNullStringStringArgMethod(info);
7490 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7568 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7491 } 7569 }
7492 7570
7493 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) 7571 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info)
7494 { 7572 {
7495 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE nforceRangeLongArg", "TestObject", info.Holder(), info.GetIsolate()); 7573 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE nforceRangeLongArg", "TestObject", info.Holder(), info.GetIsolate());
7496 if (UNLIKELY(info.Length() < 1)) { 7574 if (UNLIKELY(info.Length() < 1)) {
7497 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 7575 throwMinimumArityTypeError(exceptionState, 1, info.Length());
7498 return; 7576 return;
7499 } 7577 }
7500 TestObject* impl = V8TestObject::toNative(info.Holder()); 7578 TestObject* impl = V8TestObject::toNative(info.Holder());
7501 int enforceRangeLongArg; 7579 int enforceRangeLongArg;
7502 { 7580 {
7503 v8::TryCatch block; 7581 v8::TryCatch block;
7582 V8RethrowTryCatchScope rethrow(block);
7504 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(enforceRangeLongArg, toInt32(info[ 0], EnforceRange, exceptionState), exceptionState); 7583 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(enforceRangeLongArg, toInt32(info[ 0], EnforceRange, exceptionState), exceptionState);
7505 } 7584 }
7506 impl->voidMethodEnforceRangeLongArg(enforceRangeLongArg); 7585 impl->voidMethodEnforceRangeLongArg(enforceRangeLongArg);
7507 } 7586 }
7508 7587
7509 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 7588 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
7510 { 7589 {
7511 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7590 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7512 TestObjectV8Internal::voidMethodEnforceRangeLongArgMethod(info); 7591 TestObjectV8Internal::voidMethodEnforceRangeLongArgMethod(info);
7513 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7592 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7514 } 7593 }
7515 7594
7516 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) 7595 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info)
7517 { 7596 {
7518 if (UNLIKELY(info.Length() < 1)) { 7597 if (UNLIKELY(info.Length() < 1)) {
7519 throwMinimumArityTypeErrorForMethod("voidMethodTreatNullAsNullStringStri ngArg", "TestObject", 1, info.Length(), info.GetIsolate()); 7598 throwMinimumArityTypeErrorForMethod("voidMethodTreatNullAsNullStringStri ngArg", "TestObject", 1, info.Length(), info.GetIsolate());
7520 return; 7599 return;
7521 } 7600 }
7522 TestObject* impl = V8TestObject::toNative(info.Holder()); 7601 TestObject* impl = V8TestObject::toNative(info.Holder());
7523 V8StringResource<WithNullCheck> treatNullAsNullStringStringArg; 7602 V8StringResource<WithNullCheck> treatNullAsNullStringStringArg;
7524 { 7603 {
7525 TOSTRING_VOID_INTERNAL_NOTRYCATCH(treatNullAsNullStringStringArg, info[0 ]); 7604 TOSTRING_VOID_INTERNAL(treatNullAsNullStringStringArg, info[0]);
7526 } 7605 }
7527 impl->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringAr g); 7606 impl->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringAr g);
7528 } 7607 }
7529 7608
7530 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 7609 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
7531 { 7610 {
7532 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7611 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7533 TestObjectV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(info); 7612 TestObjectV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(info);
7534 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7613 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7535 } 7614 }
7536 7615
7537 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe thod(const v8::FunctionCallbackInfo<v8::Value>& info) 7616 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe thod(const v8::FunctionCallbackInfo<v8::Value>& info)
7538 { 7617 {
7539 if (UNLIKELY(info.Length() < 1)) { 7618 if (UNLIKELY(info.Length() < 1)) {
7540 throwMinimumArityTypeErrorForMethod("voidMethodTreatNullAsNullStringTrea tUndefinedAsNullStringStringArg", "TestObject", 1, info.Length(), info.GetIsolat e()); 7619 throwMinimumArityTypeErrorForMethod("voidMethodTreatNullAsNullStringTrea tUndefinedAsNullStringStringArg", "TestObject", 1, info.Length(), info.GetIsolat e());
7541 return; 7620 return;
7542 } 7621 }
7543 TestObject* impl = V8TestObject::toNative(info.Holder()); 7622 TestObject* impl = V8TestObject::toNative(info.Holder());
7544 V8StringResource<WithUndefinedOrNullCheck> treatNullAsNullStringStringArg; 7623 V8StringResource<WithUndefinedOrNullCheck> treatNullAsNullStringStringArg;
7545 { 7624 {
7546 TOSTRING_VOID_INTERNAL_NOTRYCATCH(treatNullAsNullStringStringArg, info[0 ]); 7625 TOSTRING_VOID_INTERNAL(treatNullAsNullStringStringArg, info[0]);
7547 } 7626 }
7548 impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(tre atNullAsNullStringStringArg); 7627 impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(tre atNullAsNullStringStringArg);
7549 } 7628 }
7550 7629
7551 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 7630 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
7552 { 7631 {
7553 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 7632 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
7554 TestObjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStr ingStringArgMethod(info); 7633 TestObjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStr ingStringArgMethod(info);
7555 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7634 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7556 } 7635 }
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
7645 TestObjectV8Internal::callWithScriptStateScriptArgumentsVoidMethodMethod(inf o); 7724 TestObjectV8Internal::callWithScriptStateScriptArgumentsVoidMethodMethod(inf o);
7646 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 7725 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
7647 } 7726 }
7648 7727
7649 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod (const v8::FunctionCallbackInfo<v8::Value>& info) 7728 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod (const v8::FunctionCallbackInfo<v8::Value>& info)
7650 { 7729 {
7651 TestObject* impl = V8TestObject::toNative(info.Holder()); 7730 TestObject* impl = V8TestObject::toNative(info.Holder());
7652 bool optionalBooleanArg; 7731 bool optionalBooleanArg;
7653 { 7732 {
7654 v8::TryCatch block; 7733 v8::TryCatch block;
7734 V8RethrowTryCatchScope rethrow(block);
7655 if (UNLIKELY(info.Length() <= 0)) { 7735 if (UNLIKELY(info.Length() <= 0)) {
7656 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); 7736 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
7657 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1)); 7737 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1));
7658 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg (scriptState, scriptArguments.release()); 7738 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg (scriptState, scriptArguments.release());
7659 return; 7739 return;
7660 } 7740 }
7661 TONATIVE_VOID_INTERNAL(optionalBooleanArg, info[0]->BooleanValue()); 7741 TONATIVE_VOID_INTERNAL(optionalBooleanArg, info[0]->BooleanValue());
7662 } 7742 }
7663 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); 7743 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
7664 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1)); 7744 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1));
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
7856 impl->DeprecateAsOverloadedMethod(); 7936 impl->DeprecateAsOverloadedMethod();
7857 } 7937 }
7858 7938
7859 static void DeprecateAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8 ::Value>& info) 7939 static void DeprecateAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8 ::Value>& info)
7860 { 7940 {
7861 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 7941 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
7862 TestObject* impl = V8TestObject::toNative(info.Holder()); 7942 TestObject* impl = V8TestObject::toNative(info.Holder());
7863 int arg; 7943 int arg;
7864 { 7944 {
7865 v8::TryCatch block; 7945 v8::TryCatch block;
7946 V8RethrowTryCatchScope rethrow(block);
7866 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 7947 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
7867 } 7948 }
7868 impl->DeprecateAsOverloadedMethod(arg); 7949 impl->DeprecateAsOverloadedMethod(arg);
7869 } 7950 }
7870 7951
7871 static void DeprecateAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 7952 static void DeprecateAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
7872 { 7953 {
7873 v8::Isolate* isolate = info.GetIsolate(); 7954 v8::Isolate* isolate = info.GetIsolate();
7874 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs OverloadedMethod", "TestObject", info.Holder(), isolate); 7955 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs OverloadedMethod", "TestObject", info.Holder(), isolate);
7875 switch (std::min(1, info.Length())) { 7956 switch (std::min(1, info.Length())) {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
7909 impl->DeprecateAsSameValueOverloadedMethod(); 7990 impl->DeprecateAsSameValueOverloadedMethod();
7910 } 7991 }
7911 7992
7912 static void DeprecateAsSameValueOverloadedMethod2Method(const v8::FunctionCallba ckInfo<v8::Value>& info) 7993 static void DeprecateAsSameValueOverloadedMethod2Method(const v8::FunctionCallba ckInfo<v8::Value>& info)
7913 { 7994 {
7914 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 7995 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
7915 TestObject* impl = V8TestObject::toNative(info.Holder()); 7996 TestObject* impl = V8TestObject::toNative(info.Holder());
7916 int arg; 7997 int arg;
7917 { 7998 {
7918 v8::TryCatch block; 7999 v8::TryCatch block;
8000 V8RethrowTryCatchScope rethrow(block);
7919 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 8001 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
7920 } 8002 }
7921 impl->DeprecateAsSameValueOverloadedMethod(arg); 8003 impl->DeprecateAsSameValueOverloadedMethod(arg);
7922 } 8004 }
7923 8005
7924 static void DeprecateAsSameValueOverloadedMethodMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) 8006 static void DeprecateAsSameValueOverloadedMethodMethod(const v8::FunctionCallbac kInfo<v8::Value>& info)
7925 { 8007 {
7926 v8::Isolate* isolate = info.GetIsolate(); 8008 v8::Isolate* isolate = info.GetIsolate();
7927 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs SameValueOverloadedMethod", "TestObject", info.Holder(), isolate); 8009 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs SameValueOverloadedMethod", "TestObject", info.Holder(), isolate);
7928 UseCounter::countDeprecation(callingExecutionContext(isolate), UseCounter::T estFeature); 8010 UseCounter::countDeprecation(callingExecutionContext(isolate), UseCounter::T estFeature);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
7961 impl->measureAsOverloadedMethod(); 8043 impl->measureAsOverloadedMethod();
7962 } 8044 }
7963 8045
7964 static void measureAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8:: Value>& info) 8046 static void measureAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8:: Value>& info)
7965 { 8047 {
7966 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv erloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 8048 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv erloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
7967 TestObject* impl = V8TestObject::toNative(info.Holder()); 8049 TestObject* impl = V8TestObject::toNative(info.Holder());
7968 int arg; 8050 int arg;
7969 { 8051 {
7970 v8::TryCatch block; 8052 v8::TryCatch block;
8053 V8RethrowTryCatchScope rethrow(block);
7971 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 8054 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
7972 } 8055 }
7973 impl->measureAsOverloadedMethod(arg); 8056 impl->measureAsOverloadedMethod(arg);
7974 } 8057 }
7975 8058
7976 static void measureAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 8059 static void measureAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
7977 { 8060 {
7978 v8::Isolate* isolate = info.GetIsolate(); 8061 v8::Isolate* isolate = info.GetIsolate();
7979 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv erloadedMethod", "TestObject", info.Holder(), isolate); 8062 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv erloadedMethod", "TestObject", info.Holder(), isolate);
7980 switch (std::min(1, info.Length())) { 8063 switch (std::min(1, info.Length())) {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
8014 impl->measureAsSameValueOverloadedMethod(); 8097 impl->measureAsSameValueOverloadedMethod();
8015 } 8098 }
8016 8099
8017 static void measureAsSameValueOverloadedMethod2Method(const v8::FunctionCallback Info<v8::Value>& info) 8100 static void measureAsSameValueOverloadedMethod2Method(const v8::FunctionCallback Info<v8::Value>& info)
8018 { 8101 {
8019 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 8102 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
8020 TestObject* impl = V8TestObject::toNative(info.Holder()); 8103 TestObject* impl = V8TestObject::toNative(info.Holder());
8021 int arg; 8104 int arg;
8022 { 8105 {
8023 v8::TryCatch block; 8106 v8::TryCatch block;
8107 V8RethrowTryCatchScope rethrow(block);
8024 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 8108 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
8025 } 8109 }
8026 impl->measureAsSameValueOverloadedMethod(arg); 8110 impl->measureAsSameValueOverloadedMethod(arg);
8027 } 8111 }
8028 8112
8029 static void measureAsSameValueOverloadedMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 8113 static void measureAsSameValueOverloadedMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
8030 { 8114 {
8031 v8::Isolate* isolate = info.GetIsolate(); 8115 v8::Isolate* isolate = info.GetIsolate();
8032 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa meValueOverloadedMethod", "TestObject", info.Holder(), isolate); 8116 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa meValueOverloadedMethod", "TestObject", info.Holder(), isolate);
8033 UseCounter::count(callingExecutionContext(isolate), UseCounter::TestFeature) ; 8117 UseCounter::count(callingExecutionContext(isolate), UseCounter::TestFeature) ;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
8066 impl->deprecateAsMeasureAsSameValueOverloadedMethod(); 8150 impl->deprecateAsMeasureAsSameValueOverloadedMethod();
8067 } 8151 }
8068 8152
8069 static void deprecateAsMeasureAsSameValueOverloadedMethod2Method(const v8::Funct ionCallbackInfo<v8::Value>& info) 8153 static void deprecateAsMeasureAsSameValueOverloadedMethod2Method(const v8::Funct ionCallbackInfo<v8::Value>& info)
8070 { 8154 {
8071 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e()); 8155 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e());
8072 TestObject* impl = V8TestObject::toNative(info.Holder()); 8156 TestObject* impl = V8TestObject::toNative(info.Holder());
8073 int arg; 8157 int arg;
8074 { 8158 {
8075 v8::TryCatch block; 8159 v8::TryCatch block;
8160 V8RethrowTryCatchScope rethrow(block);
8076 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 8161 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
8077 } 8162 }
8078 impl->deprecateAsMeasureAsSameValueOverloadedMethod(arg); 8163 impl->deprecateAsMeasureAsSameValueOverloadedMethod(arg);
8079 } 8164 }
8080 8165
8081 static void deprecateAsMeasureAsSameValueOverloadedMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info) 8166 static void deprecateAsMeasureAsSameValueOverloadedMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info)
8082 { 8167 {
8083 v8::Isolate* isolate = info.GetIsolate(); 8168 v8::Isolate* isolate = info.GetIsolate();
8084 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), isolate); 8169 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), isolate);
8085 UseCounter::count(callingExecutionContext(isolate), UseCounter::TestFeature) ; 8170 UseCounter::count(callingExecutionContext(isolate), UseCounter::TestFeature) ;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
8120 impl->deprecateAsSameValueMeasureAsOverloadedMethod(); 8205 impl->deprecateAsSameValueMeasureAsOverloadedMethod();
8121 } 8206 }
8122 8207
8123 static void deprecateAsSameValueMeasureAsOverloadedMethod2Method(const v8::Funct ionCallbackInfo<v8::Value>& info) 8208 static void deprecateAsSameValueMeasureAsOverloadedMethod2Method(const v8::Funct ionCallbackInfo<v8::Value>& info)
8124 { 8209 {
8125 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e()); 8210 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e());
8126 TestObject* impl = V8TestObject::toNative(info.Holder()); 8211 TestObject* impl = V8TestObject::toNative(info.Holder());
8127 int arg; 8212 int arg;
8128 { 8213 {
8129 v8::TryCatch block; 8214 v8::TryCatch block;
8215 V8RethrowTryCatchScope rethrow(block);
8130 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 8216 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
8131 } 8217 }
8132 impl->deprecateAsSameValueMeasureAsOverloadedMethod(arg); 8218 impl->deprecateAsSameValueMeasureAsOverloadedMethod(arg);
8133 } 8219 }
8134 8220
8135 static void deprecateAsSameValueMeasureAsOverloadedMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info) 8221 static void deprecateAsSameValueMeasureAsOverloadedMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info)
8136 { 8222 {
8137 v8::Isolate* isolate = info.GetIsolate(); 8223 v8::Isolate* isolate = info.GetIsolate();
8138 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), isolate); 8224 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), isolate);
8139 UseCounter::countDeprecation(callingExecutionContext(isolate), UseCounter::T estFeature); 8225 UseCounter::countDeprecation(callingExecutionContext(isolate), UseCounter::T estFeature);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
8174 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(); 8260 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod();
8175 } 8261 }
8176 8262
8177 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 8263 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
8178 { 8264 {
8179 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info. GetIsolate()); 8265 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info. GetIsolate());
8180 TestObject* impl = V8TestObject::toNative(info.Holder()); 8266 TestObject* impl = V8TestObject::toNative(info.Holder());
8181 int arg; 8267 int arg;
8182 { 8268 {
8183 v8::TryCatch block; 8269 v8::TryCatch block;
8270 V8RethrowTryCatchScope rethrow(block);
8184 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 8271 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
8185 } 8272 }
8186 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(arg); 8273 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(arg);
8187 } 8274 }
8188 8275
8189 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethod(const v 8::FunctionCallbackInfo<v8::Value>& info) 8276 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethod(const v 8::FunctionCallbackInfo<v8::Value>& info)
8190 { 8277 {
8191 v8::Isolate* isolate = info.GetIsolate(); 8278 v8::Isolate* isolate = info.GetIsolate();
8192 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), isola te); 8279 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), isola te);
8193 UseCounter::count(callingExecutionContext(isolate), UseCounter::TestFeatureB ); 8280 UseCounter::count(callingExecutionContext(isolate), UseCounter::TestFeatureB );
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
8276 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) 8363 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info)
8277 { 8364 {
8278 if (UNLIKELY(info.Length() < 1)) { 8365 if (UNLIKELY(info.Length() < 1)) {
8279 throwMinimumArityTypeErrorForMethod("perWorldBindingsVoidMethodTestInter faceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate()); 8366 throwMinimumArityTypeErrorForMethod("perWorldBindingsVoidMethodTestInter faceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate());
8280 return; 8367 return;
8281 } 8368 }
8282 TestObject* impl = V8TestObject::toNative(info.Holder()); 8369 TestObject* impl = V8TestObject::toNative(info.Holder());
8283 TestInterfaceEmpty* testInterfaceEmptyArg; 8370 TestInterfaceEmpty* testInterfaceEmptyArg;
8284 { 8371 {
8285 v8::TryCatch block; 8372 v8::TryCatch block;
8373 V8RethrowTryCatchScope rethrow(block);
8286 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0])); 8374 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0]));
8287 } 8375 }
8288 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg) ; 8376 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg) ;
8289 } 8377 }
8290 8378
8291 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 8379 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
8292 { 8380 {
8293 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8381 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8294 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod( info); 8382 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod( info);
8295 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8383 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
8296 } 8384 }
8297 8385
8298 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(co nst v8::FunctionCallbackInfo<v8::Value>& info) 8386 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(co nst v8::FunctionCallbackInfo<v8::Value>& info)
8299 { 8387 {
8300 if (UNLIKELY(info.Length() < 1)) { 8388 if (UNLIKELY(info.Length() < 1)) {
8301 throwMinimumArityTypeErrorForMethod("perWorldBindingsVoidMethodTestInter faceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate()); 8389 throwMinimumArityTypeErrorForMethod("perWorldBindingsVoidMethodTestInter faceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate());
8302 return; 8390 return;
8303 } 8391 }
8304 TestObject* impl = V8TestObject::toNative(info.Holder()); 8392 TestObject* impl = V8TestObject::toNative(info.Holder());
8305 TestInterfaceEmpty* testInterfaceEmptyArg; 8393 TestInterfaceEmpty* testInterfaceEmptyArg;
8306 { 8394 {
8307 v8::TryCatch block; 8395 v8::TryCatch block;
8396 V8RethrowTryCatchScope rethrow(block);
8308 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0])); 8397 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0]));
8309 } 8398 }
8310 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg) ; 8399 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg) ;
8311 } 8400 }
8312 8401
8313 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMain World(const v8::FunctionCallbackInfo<v8::Value>& info) 8402 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMain World(const v8::FunctionCallbackInfo<v8::Value>& info)
8314 { 8403 {
8315 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8404 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8316 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodF orMainWorld(info); 8405 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodF orMainWorld(info);
8317 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8406 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
8421 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8510 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
8422 } 8511 }
8423 8512
8424 static void raisesExceptionVoidMethodOptionalLongArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) 8513 static void raisesExceptionVoidMethodOptionalLongArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info)
8425 { 8514 {
8426 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep tionVoidMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 8515 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep tionVoidMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
8427 TestObject* impl = V8TestObject::toNative(info.Holder()); 8516 TestObject* impl = V8TestObject::toNative(info.Holder());
8428 int optionalLongArg; 8517 int optionalLongArg;
8429 { 8518 {
8430 v8::TryCatch block; 8519 v8::TryCatch block;
8520 V8RethrowTryCatchScope rethrow(block);
8431 if (UNLIKELY(info.Length() <= 0)) { 8521 if (UNLIKELY(info.Length() <= 0)) {
8432 impl->raisesExceptionVoidMethodOptionalLongArg(exceptionState); 8522 impl->raisesExceptionVoidMethodOptionalLongArg(exceptionState);
8433 if (exceptionState.hadException()) { 8523 if (exceptionState.hadException()) {
8434 exceptionState.throwIfNeeded(); 8524 exceptionState.throwIfNeeded();
8435 block.ReThrow();
8436 return; 8525 return;
8437 } 8526 }
8438 return; 8527 return;
8439 } 8528 }
8440 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState); 8529 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState);
8441 } 8530 }
8442 impl->raisesExceptionVoidMethodOptionalLongArg(optionalLongArg, exceptionSta te); 8531 impl->raisesExceptionVoidMethodOptionalLongArg(optionalLongArg, exceptionSta te);
8443 if (exceptionState.hadException()) { 8532 if (exceptionState.hadException()) {
8444 exceptionState.throwIfNeeded(); 8533 exceptionState.throwIfNeeded();
8445 return; 8534 return;
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
8536 { 8625 {
8537 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe cutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), inf o.GetIsolate()); 8626 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe cutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), inf o.GetIsolate());
8538 if (UNLIKELY(info.Length() < 1)) { 8627 if (UNLIKELY(info.Length() < 1)) {
8539 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 8628 throwMinimumArityTypeError(exceptionState, 1, info.Length());
8540 return; 8629 return;
8541 } 8630 }
8542 TestObject* impl = V8TestObject::toNative(info.Holder()); 8631 TestObject* impl = V8TestObject::toNative(info.Holder());
8543 int longArg; 8632 int longArg;
8544 { 8633 {
8545 v8::TryCatch block; 8634 v8::TryCatch block;
8635 V8RethrowTryCatchScope rethrow(block);
8546 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 8636 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
8547 } 8637 }
8548 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ; 8638 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ;
8549 impl->callWithExecutionContextRaisesExceptionVoidMethodLongArg(scriptContext , longArg, exceptionState); 8639 impl->callWithExecutionContextRaisesExceptionVoidMethodLongArg(scriptContext , longArg, exceptionState);
8550 if (exceptionState.hadException()) { 8640 if (exceptionState.hadException()) {
8551 exceptionState.throwIfNeeded(); 8641 exceptionState.throwIfNeeded();
8552 return; 8642 return;
8553 } 8643 }
8554 } 8644 }
8555 8645
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
8654 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethod(const v8: :FunctionCallbackInfo<v8::Value>& info) 8744 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethod(const v8: :FunctionCallbackInfo<v8::Value>& info)
8655 { 8745 {
8656 if (UNLIKELY(info.Length() < 1)) { 8746 if (UNLIKELY(info.Length() < 1)) {
8657 throwMinimumArityTypeErrorForMethod("typeCheckingInterfaceVoidMethodTest InterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate()); 8747 throwMinimumArityTypeErrorForMethod("typeCheckingInterfaceVoidMethodTest InterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate());
8658 return; 8748 return;
8659 } 8749 }
8660 TestObject* impl = V8TestObject::toNative(info.Holder()); 8750 TestObject* impl = V8TestObject::toNative(info.Holder());
8661 TestInterfaceEmpty* testInterfaceEmptyArg; 8751 TestInterfaceEmpty* testInterfaceEmptyArg;
8662 { 8752 {
8663 v8::TryCatch block; 8753 v8::TryCatch block;
8754 V8RethrowTryCatchScope rethrow(block);
8664 if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], inf o.GetIsolate())) { 8755 if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], inf o.GetIsolate())) {
8665 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingInter faceVoidMethodTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestInterfaceEmpty'."), info.GetIsolate()); 8756 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingInter faceVoidMethodTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestInterfaceEmpty'."), info.GetIsolate());
8666 block.ReThrow();
8667 return; 8757 return;
8668 } 8758 }
8669 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0])); 8759 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0]));
8670 } 8760 }
8671 impl->typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg(testInterfaceEmpt yArg); 8761 impl->typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg(testInterfaceEmpt yArg);
8672 } 8762 }
8673 8763
8674 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info) 8764 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info)
8675 { 8765 {
8676 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8766 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8677 TestObjectV8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMe thod(info); 8767 TestObjectV8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMe thod(info);
8678 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8768 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
8679 } 8769 }
8680 8770
8681 static void typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethod(cons t v8::FunctionCallbackInfo<v8::Value>& info) 8771 static void typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethod(cons t v8::FunctionCallbackInfo<v8::Value>& info)
8682 { 8772 {
8683 if (UNLIKELY(info.Length() < 1)) { 8773 if (UNLIKELY(info.Length() < 1)) {
8684 throwMinimumArityTypeErrorForMethod("typeCheckingNullableVoidMethodTestI nterfaceEmptyOrNullArg", "TestObject", 1, info.Length(), info.GetIsolate()); 8774 throwMinimumArityTypeErrorForMethod("typeCheckingNullableVoidMethodTestI nterfaceEmptyOrNullArg", "TestObject", 1, info.Length(), info.GetIsolate());
8685 return; 8775 return;
8686 } 8776 }
8687 TestObject* impl = V8TestObject::toNative(info.Holder()); 8777 TestObject* impl = V8TestObject::toNative(info.Holder());
8688 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; 8778 TestInterfaceEmpty* testInterfaceEmptyOrNullArg;
8689 { 8779 {
8690 v8::TryCatch block; 8780 v8::TryCatch block;
8781 V8RethrowTryCatchScope rethrow(block);
8691 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceEmpty ::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 8782 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceEmpty ::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
8692 } 8783 }
8693 impl->typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArg(testInterfac eEmptyOrNullArg); 8784 impl->typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArg(testInterfac eEmptyOrNullArg);
8694 } 8785 }
8695 8786
8696 static void typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethodCallb ack(const v8::FunctionCallbackInfo<v8::Value>& info) 8787 static void typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethodCallb ack(const v8::FunctionCallbackInfo<v8::Value>& info)
8697 { 8788 {
8698 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8789 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8699 TestObjectV8Internal::typeCheckingNullableVoidMethodTestInterfaceEmptyOrNull ArgMethod(info); 8790 TestObjectV8Internal::typeCheckingNullableVoidMethodTestInterfaceEmptyOrNull ArgMethod(info);
8700 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8791 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
8701 } 8792 }
8702 8793
8703 static void typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArgMe thod(const v8::FunctionCallbackInfo<v8::Value>& info) 8794 static void typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArgMe thod(const v8::FunctionCallbackInfo<v8::Value>& info)
8704 { 8795 {
8705 if (UNLIKELY(info.Length() < 1)) { 8796 if (UNLIKELY(info.Length() < 1)) {
8706 throwMinimumArityTypeErrorForMethod("typeCheckingInterfaceNullableVoidMe thodTestInterfaceEmptyOrNullArg", "TestObject", 1, info.Length(), info.GetIsolat e()); 8797 throwMinimumArityTypeErrorForMethod("typeCheckingInterfaceNullableVoidMe thodTestInterfaceEmptyOrNullArg", "TestObject", 1, info.Length(), info.GetIsolat e());
8707 return; 8798 return;
8708 } 8799 }
8709 TestObject* impl = V8TestObject::toNative(info.Holder()); 8800 TestObject* impl = V8TestObject::toNative(info.Holder());
8710 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; 8801 TestInterfaceEmpty* testInterfaceEmptyOrNullArg;
8711 { 8802 {
8712 v8::TryCatch block; 8803 v8::TryCatch block;
8804 V8RethrowTryCatchScope rethrow(block);
8713 if (info.Length() > 0 && !isUndefinedOrNull(info[0]) && !V8TestInterface Empty::hasInstance(info[0], info.GetIsolate())) { 8805 if (info.Length() > 0 && !isUndefinedOrNull(info[0]) && !V8TestInterface Empty::hasInstance(info[0], info.GetIsolate())) {
8714 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingInter faceNullableVoidMethodTestInterfaceEmptyOrNullArg", "TestObject", "parameter 1 i s not of type 'TestInterfaceEmpty'."), info.GetIsolate()); 8806 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingInter faceNullableVoidMethodTestInterfaceEmptyOrNullArg", "TestObject", "parameter 1 i s not of type 'TestInterfaceEmpty'."), info.GetIsolate());
8715 block.ReThrow();
8716 return; 8807 return;
8717 } 8808 }
8718 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceEmpty ::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 8809 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceEmpty ::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
8719 } 8810 }
8720 impl->typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArg(tes tInterfaceEmptyOrNullArg); 8811 impl->typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArg(tes tInterfaceEmptyOrNullArg);
8721 } 8812 }
8722 8813
8723 static void typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArgMe thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 8814 static void typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArgMe thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
8724 { 8815 {
8725 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8816 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8726 TestObjectV8Internal::typeCheckingInterfaceNullableVoidMethodTestInterfaceEm ptyOrNullArgMethod(info); 8817 TestObjectV8Internal::typeCheckingInterfaceNullableVoidMethodTestInterfaceEm ptyOrNullArgMethod(info);
8727 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8818 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
8728 } 8819 }
8729 8820
8730 static void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethod(const v8:: FunctionCallbackInfo<v8::Value>& info) 8821 static void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethod(const v8:: FunctionCallbackInfo<v8::Value>& info)
8731 { 8822 {
8732 if (UNLIKELY(info.Length() < 2)) { 8823 if (UNLIKELY(info.Length() < 2)) {
8733 throwMinimumArityTypeErrorForMethod("typeCheckingUnrestrictedVoidMethodF loatArgDoubleArg", "TestObject", 2, info.Length(), info.GetIsolate()); 8824 throwMinimumArityTypeErrorForMethod("typeCheckingUnrestrictedVoidMethodF loatArgDoubleArg", "TestObject", 2, info.Length(), info.GetIsolate());
8734 return; 8825 return;
8735 } 8826 }
8736 TestObject* impl = V8TestObject::toNative(info.Holder()); 8827 TestObject* impl = V8TestObject::toNative(info.Holder());
8737 float floatArg; 8828 float floatArg;
8738 double doubleArg; 8829 double doubleArg;
8739 { 8830 {
8740 v8::TryCatch block; 8831 v8::TryCatch block;
8832 V8RethrowTryCatchScope rethrow(block);
8741 TONATIVE_VOID_INTERNAL(floatArg, static_cast<float>(info[0]->NumberValue ())); 8833 TONATIVE_VOID_INTERNAL(floatArg, static_cast<float>(info[0]->NumberValue ()));
8742 if (!std::isfinite(floatArg)) { 8834 if (!std::isfinite(floatArg)) {
8743 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingUnres trictedVoidMethodFloatArgDoubleArg", "TestObject", "float parameter 1 is non-fin ite."), info.GetIsolate()); 8835 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingUnres trictedVoidMethodFloatArgDoubleArg", "TestObject", "float parameter 1 is non-fin ite."), info.GetIsolate());
8744 block.ReThrow();
8745 return; 8836 return;
8746 } 8837 }
8747 TONATIVE_VOID_INTERNAL(doubleArg, static_cast<double>(info[1]->NumberVal ue())); 8838 TONATIVE_VOID_INTERNAL(doubleArg, static_cast<double>(info[1]->NumberVal ue()));
8748 if (!std::isfinite(doubleArg)) { 8839 if (!std::isfinite(doubleArg)) {
8749 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingUnres trictedVoidMethodFloatArgDoubleArg", "TestObject", "double parameter 2 is non-fi nite."), info.GetIsolate()); 8840 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingUnres trictedVoidMethodFloatArgDoubleArg", "TestObject", "double parameter 2 is non-fi nite."), info.GetIsolate());
8750 block.ReThrow();
8751 return; 8841 return;
8752 } 8842 }
8753 } 8843 }
8754 impl->typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg(floatArg, doubleAr g); 8844 impl->typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg(floatArg, doubleAr g);
8755 } 8845 }
8756 8846
8757 static void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethodCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info) 8847 static void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethodCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info)
8758 { 8848 {
8759 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8849 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8760 TestObjectV8Internal::typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMet hod(info); 8850 TestObjectV8Internal::typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMet hod(info);
(...skipping 16 matching lines...) Expand all
8777 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethod(const v8::F unctionCallbackInfo<v8::Value>& info) 8867 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethod(const v8::F unctionCallbackInfo<v8::Value>& info)
8778 { 8868 {
8779 if (UNLIKELY(info.Length() < 1)) { 8869 if (UNLIKELY(info.Length() < 1)) {
8780 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceGarbageColle ctedSequenceArg", "TestObject", 1, info.Length(), info.GetIsolate()); 8870 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceGarbageColle ctedSequenceArg", "TestObject", 1, info.Length(), info.GetIsolate());
8781 return; 8871 return;
8782 } 8872 }
8783 TestObject* impl = V8TestObject::toNative(info.Holder()); 8873 TestObject* impl = V8TestObject::toNative(info.Holder());
8784 HeapVector<Member<TestInterfaceGarbageCollected> > testInterfaceGarbageColle ctedSequenceArg; 8874 HeapVector<Member<TestInterfaceGarbageCollected> > testInterfaceGarbageColle ctedSequenceArg;
8785 { 8875 {
8786 v8::TryCatch block; 8876 v8::TryCatch block;
8877 V8RethrowTryCatchScope rethrow(block);
8787 TONATIVE_VOID_INTERNAL(testInterfaceGarbageCollectedSequenceArg, (toMemb erNativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageCollected>(in fo[0], 1, info.GetIsolate()))); 8878 TONATIVE_VOID_INTERNAL(testInterfaceGarbageCollectedSequenceArg, (toMemb erNativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageCollected>(in fo[0], 1, info.GetIsolate())));
8788 } 8879 }
8789 impl->voidMethodTestInterfaceGarbageCollectedSequenceArg(testInterfaceGarbag eCollectedSequenceArg); 8880 impl->voidMethodTestInterfaceGarbageCollectedSequenceArg(testInterfaceGarbag eCollectedSequenceArg);
8790 } 8881 }
8791 8882
8792 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback(con st v8::FunctionCallbackInfo<v8::Value>& info) 8883 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback(con st v8::FunctionCallbackInfo<v8::Value>& info)
8793 { 8884 {
8794 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8885 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8795 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedSequenceArgMeth od(info); 8886 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedSequenceArgMeth od(info);
8796 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8887 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
8797 } 8888 }
8798 8889
8799 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) 8890 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info)
8800 { 8891 {
8801 if (UNLIKELY(info.Length() < 1)) { 8892 if (UNLIKELY(info.Length() < 1)) {
8802 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceGarbageColle ctedArrayArg", "TestObject", 1, info.Length(), info.GetIsolate()); 8893 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceGarbageColle ctedArrayArg", "TestObject", 1, info.Length(), info.GetIsolate());
8803 return; 8894 return;
8804 } 8895 }
8805 TestObject* impl = V8TestObject::toNative(info.Holder()); 8896 TestObject* impl = V8TestObject::toNative(info.Holder());
8806 HeapVector<Member<TestInterfaceGarbageCollected> > testInterfaceGarbageColle ctedArrayArg; 8897 HeapVector<Member<TestInterfaceGarbageCollected> > testInterfaceGarbageColle ctedArrayArg;
8807 { 8898 {
8808 v8::TryCatch block; 8899 v8::TryCatch block;
8900 V8RethrowTryCatchScope rethrow(block);
8809 TONATIVE_VOID_INTERNAL(testInterfaceGarbageCollectedArrayArg, (toMemberN ativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageCollected>(info[ 0], 1, info.GetIsolate()))); 8901 TONATIVE_VOID_INTERNAL(testInterfaceGarbageCollectedArrayArg, (toMemberN ativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageCollected>(info[ 0], 1, info.GetIsolate())));
8810 } 8902 }
8811 impl->voidMethodTestInterfaceGarbageCollectedArrayArg(testInterfaceGarbageCo llectedArrayArg); 8903 impl->voidMethodTestInterfaceGarbageCollectedArrayArg(testInterfaceGarbageCo llectedArrayArg);
8812 } 8904 }
8813 8905
8814 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 8906 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
8815 { 8907 {
8816 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8908 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8817 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedArrayArgMethod( info); 8909 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedArrayArgMethod( info);
8818 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8910 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
8819 } 8911 }
8820 8912
8821 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 8913 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
8822 { 8914 {
8823 if (UNLIKELY(info.Length() < 1)) { 8915 if (UNLIKELY(info.Length() < 1)) {
8824 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceWillBeGarbag eCollectedSequenceArg", "TestObject", 1, info.Length(), info.GetIsolate()); 8916 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceWillBeGarbag eCollectedSequenceArg", "TestObject", 1, info.Length(), info.GetIsolate());
8825 return; 8917 return;
8826 } 8918 }
8827 TestObject* impl = V8TestObject::toNative(info.Holder()); 8919 TestObject* impl = V8TestObject::toNative(info.Holder());
8828 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > t estInterfaceWillBeGarbageCollectedSequenceArg; 8920 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > t estInterfaceWillBeGarbageCollectedSequenceArg;
8829 { 8921 {
8830 v8::TryCatch block; 8922 v8::TryCatch block;
8923 V8RethrowTryCatchScope rethrow(block);
8831 TONATIVE_VOID_INTERNAL(testInterfaceWillBeGarbageCollectedSequenceArg, ( toRefPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollected, V8TestInter faceWillBeGarbageCollected>(info[0], 1, info.GetIsolate()))); 8924 TONATIVE_VOID_INTERNAL(testInterfaceWillBeGarbageCollectedSequenceArg, ( toRefPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollected, V8TestInter faceWillBeGarbageCollected>(info[0], 1, info.GetIsolate())));
8832 } 8925 }
8833 impl->voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(testInterface WillBeGarbageCollectedSequenceArg); 8926 impl->voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(testInterface WillBeGarbageCollectedSequenceArg);
8834 } 8927 }
8835 8928
8836 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info) 8929 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info)
8837 { 8930 {
8838 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8931 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8839 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceA rgMethod(info); 8932 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceA rgMethod(info);
8840 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8933 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
8841 } 8934 }
8842 8935
8843 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info) 8936 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info)
8844 { 8937 {
8845 if (UNLIKELY(info.Length() < 1)) { 8938 if (UNLIKELY(info.Length() < 1)) {
8846 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceWillBeGarbag eCollectedArrayArg", "TestObject", 1, info.Length(), info.GetIsolate()); 8939 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceWillBeGarbag eCollectedArrayArg", "TestObject", 1, info.Length(), info.GetIsolate());
8847 return; 8940 return;
8848 } 8941 }
8849 TestObject* impl = V8TestObject::toNative(info.Holder()); 8942 TestObject* impl = V8TestObject::toNative(info.Holder());
8850 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > t estInterfaceWillBeGarbageCollectedArrayArg; 8943 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > t estInterfaceWillBeGarbageCollectedArrayArg;
8851 { 8944 {
8852 v8::TryCatch block; 8945 v8::TryCatch block;
8946 V8RethrowTryCatchScope rethrow(block);
8853 TONATIVE_VOID_INTERNAL(testInterfaceWillBeGarbageCollectedArrayArg, (toR efPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollected, V8TestInterfac eWillBeGarbageCollected>(info[0], 1, info.GetIsolate()))); 8947 TONATIVE_VOID_INTERNAL(testInterfaceWillBeGarbageCollectedArrayArg, (toR efPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollected, V8TestInterfac eWillBeGarbageCollected>(info[0], 1, info.GetIsolate())));
8854 } 8948 }
8855 impl->voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(testInterfaceWil lBeGarbageCollectedArrayArg); 8949 impl->voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(testInterfaceWil lBeGarbageCollectedArrayArg);
8856 } 8950 }
8857 8951
8858 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info) 8952 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback( const v8::FunctionCallbackInfo<v8::Value>& info)
8859 { 8953 {
8860 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8954 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8861 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgM ethod(info); 8955 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgM ethod(info);
8862 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8956 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
9369 fromInternalPointer(object)->deref(); 9463 fromInternalPointer(object)->deref();
9370 } 9464 }
9371 9465
9372 template<> 9466 template<>
9373 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) 9467 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate)
9374 { 9468 {
9375 return toV8(impl, creationContext, isolate); 9469 return toV8(impl, creationContext, isolate);
9376 } 9470 }
9377 9471
9378 } // namespace WebCore 9472 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698