OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
6 | 6 |
7 #include "config.h" | 7 #include "config.h" |
8 #include "V8TestObject.h" | 8 #include "V8TestObject.h" |
9 | 9 |
10 #include "HTMLNames.h" | 10 #include "HTMLNames.h" |
(...skipping 4780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4791 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4791 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4792 } | 4792 } |
4793 | 4793 |
4794 static void voidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 4794 static void voidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
4795 { | 4795 { |
4796 if (UNLIKELY(info.Length() < 1)) { | 4796 if (UNLIKELY(info.Length() < 1)) { |
4797 throwMinimumArityTypeErrorForMethod("voidMethodDateArg", "TestObject", 1
, info.Length(), info.GetIsolate()); | 4797 throwMinimumArityTypeErrorForMethod("voidMethodDateArg", "TestObject", 1
, info.Length(), info.GetIsolate()); |
4798 return; | 4798 return; |
4799 } | 4799 } |
4800 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4800 TestObject* impl = V8TestObject::toNative(info.Holder()); |
4801 TONATIVE_VOID(double, dateArg, toCoreDate(info[0])); | 4801 double dateArg; |
| 4802 { |
| 4803 v8::TryCatch block; |
| 4804 TONATIVE_VOID_INTERNAL(dateArg, toCoreDate(info[0])); |
| 4805 } |
4802 impl->voidMethodDateArg(dateArg); | 4806 impl->voidMethodDateArg(dateArg); |
4803 } | 4807 } |
4804 | 4808 |
4805 static void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4809 static void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
4806 { | 4810 { |
4807 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4811 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4808 TestObjectV8Internal::voidMethodDateArgMethod(info); | 4812 TestObjectV8Internal::voidMethodDateArgMethod(info); |
4809 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4813 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4810 } | 4814 } |
4811 | 4815 |
4812 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4816 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4813 { | 4817 { |
4814 if (UNLIKELY(info.Length() < 1)) { | 4818 if (UNLIKELY(info.Length() < 1)) { |
4815 throwMinimumArityTypeErrorForMethod("voidMethodStringArg", "TestObject",
1, info.Length(), info.GetIsolate()); | 4819 throwMinimumArityTypeErrorForMethod("voidMethodStringArg", "TestObject",
1, info.Length(), info.GetIsolate()); |
4816 return; | 4820 return; |
4817 } | 4821 } |
4818 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4822 TestObject* impl = V8TestObject::toNative(info.Holder()); |
4819 TOSTRING_VOID(V8StringResource<>, stringArg, info[0]); | 4823 V8StringResource<> stringArg; |
| 4824 { |
| 4825 TOSTRING_VOID_INTERNAL(stringArg, info[0]); |
| 4826 } |
4820 impl->voidMethodStringArg(stringArg); | 4827 impl->voidMethodStringArg(stringArg); |
4821 } | 4828 } |
4822 | 4829 |
4823 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 4830 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
4824 { | 4831 { |
4825 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4832 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4826 TestObjectV8Internal::voidMethodStringArgMethod(info); | 4833 TestObjectV8Internal::voidMethodStringArgMethod(info); |
4827 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4834 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4828 } | 4835 } |
4829 | 4836 |
4830 static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4837 static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
4831 { | 4838 { |
4832 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
OMTimeStampArg", "TestObject", info.Holder(), info.GetIsolate()); | 4839 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
OMTimeStampArg", "TestObject", info.Holder(), info.GetIsolate()); |
4833 if (UNLIKELY(info.Length() < 1)) { | 4840 if (UNLIKELY(info.Length() < 1)) { |
4834 throwMinimumArityTypeError(exceptionState, 1, info.Length()); | 4841 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
4835 return; | 4842 return; |
4836 } | 4843 } |
4837 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4844 TestObject* impl = V8TestObject::toNative(info.Holder()); |
4838 TONATIVE_VOID_EXCEPTIONSTATE(unsigned long long, domTimeStampArg, toUInt64(i
nfo[0], exceptionState), exceptionState); | 4845 unsigned long long domTimeStampArg; |
| 4846 { |
| 4847 v8::TryCatch block; |
| 4848 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(domTimeStampArg, toUInt64(info[0],
exceptionState), exceptionState); |
| 4849 } |
4839 impl->voidMethodDOMTimeStampArg(domTimeStampArg); | 4850 impl->voidMethodDOMTimeStampArg(domTimeStampArg); |
4840 } | 4851 } |
4841 | 4852 |
4842 static void voidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 4853 static void voidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
4843 { | 4854 { |
4844 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4855 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4845 TestObjectV8Internal::voidMethodDOMTimeStampArgMethod(info); | 4856 TestObjectV8Internal::voidMethodDOMTimeStampArgMethod(info); |
4846 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4857 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4847 } | 4858 } |
4848 | 4859 |
4849 static void voidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) | 4860 static void voidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
4850 { | 4861 { |
4851 if (UNLIKELY(info.Length() < 1)) { | 4862 if (UNLIKELY(info.Length() < 1)) { |
4852 throwMinimumArityTypeErrorForMethod("voidMethodBooleanArg", "TestObject"
, 1, info.Length(), info.GetIsolate()); | 4863 throwMinimumArityTypeErrorForMethod("voidMethodBooleanArg", "TestObject"
, 1, info.Length(), info.GetIsolate()); |
4853 return; | 4864 return; |
4854 } | 4865 } |
4855 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4866 TestObject* impl = V8TestObject::toNative(info.Holder()); |
4856 TONATIVE_VOID(bool, booleanArg, info[0]->BooleanValue()); | 4867 bool booleanArg; |
| 4868 { |
| 4869 v8::TryCatch block; |
| 4870 TONATIVE_VOID_INTERNAL(booleanArg, info[0]->BooleanValue()); |
| 4871 } |
4857 impl->voidMethodBooleanArg(booleanArg); | 4872 impl->voidMethodBooleanArg(booleanArg); |
4858 } | 4873 } |
4859 | 4874 |
4860 static void voidMethodBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) | 4875 static void voidMethodBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
4861 { | 4876 { |
4862 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4877 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4863 TestObjectV8Internal::voidMethodBooleanArgMethod(info); | 4878 TestObjectV8Internal::voidMethodBooleanArgMethod(info); |
4864 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4879 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4865 } | 4880 } |
4866 | 4881 |
4867 static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 4882 static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
4868 { | 4883 { |
4869 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB
yteArg", "TestObject", info.Holder(), info.GetIsolate()); | 4884 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB
yteArg", "TestObject", info.Holder(), info.GetIsolate()); |
4870 if (UNLIKELY(info.Length() < 1)) { | 4885 if (UNLIKELY(info.Length() < 1)) { |
4871 throwMinimumArityTypeError(exceptionState, 1, info.Length()); | 4886 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
4872 return; | 4887 return; |
4873 } | 4888 } |
4874 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4889 TestObject* impl = V8TestObject::toNative(info.Holder()); |
4875 TONATIVE_VOID_EXCEPTIONSTATE(int, byteArg, toInt8(info[0], exceptionState),
exceptionState); | 4890 int byteArg; |
| 4891 { |
| 4892 v8::TryCatch block; |
| 4893 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(byteArg, toInt8(info[0], exception
State), exceptionState); |
| 4894 } |
4876 impl->voidMethodByteArg(byteArg); | 4895 impl->voidMethodByteArg(byteArg); |
4877 } | 4896 } |
4878 | 4897 |
4879 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4898 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
4880 { | 4899 { |
4881 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4900 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4882 TestObjectV8Internal::voidMethodByteArgMethod(info); | 4901 TestObjectV8Internal::voidMethodByteArgMethod(info); |
4883 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4902 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4884 } | 4903 } |
4885 | 4904 |
4886 static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4905 static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4887 { | 4906 { |
4888 if (UNLIKELY(info.Length() < 1)) { | 4907 if (UNLIKELY(info.Length() < 1)) { |
4889 throwMinimumArityTypeErrorForMethod("voidMethodDoubleArg", "TestObject",
1, info.Length(), info.GetIsolate()); | 4908 throwMinimumArityTypeErrorForMethod("voidMethodDoubleArg", "TestObject",
1, info.Length(), info.GetIsolate()); |
4890 return; | 4909 return; |
4891 } | 4910 } |
4892 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4911 TestObject* impl = V8TestObject::toNative(info.Holder()); |
4893 TONATIVE_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue())
); | 4912 double doubleArg; |
| 4913 { |
| 4914 v8::TryCatch block; |
| 4915 TONATIVE_VOID_INTERNAL(doubleArg, static_cast<double>(info[0]->NumberVal
ue())); |
| 4916 } |
4894 impl->voidMethodDoubleArg(doubleArg); | 4917 impl->voidMethodDoubleArg(doubleArg); |
4895 } | 4918 } |
4896 | 4919 |
4897 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 4920 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
4898 { | 4921 { |
4899 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4922 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4900 TestObjectV8Internal::voidMethodDoubleArgMethod(info); | 4923 TestObjectV8Internal::voidMethodDoubleArgMethod(info); |
4901 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4924 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4902 } | 4925 } |
4903 | 4926 |
4904 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4927 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4905 { | 4928 { |
4906 if (UNLIKELY(info.Length() < 1)) { | 4929 if (UNLIKELY(info.Length() < 1)) { |
4907 throwMinimumArityTypeErrorForMethod("voidMethodFloatArg", "TestObject",
1, info.Length(), info.GetIsolate()); | 4930 throwMinimumArityTypeErrorForMethod("voidMethodFloatArg", "TestObject",
1, info.Length(), info.GetIsolate()); |
4908 return; | 4931 return; |
4909 } | 4932 } |
4910 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4933 TestObject* impl = V8TestObject::toNative(info.Holder()); |
4911 TONATIVE_VOID(float, floatArg, static_cast<float>(info[0]->NumberValue())); | 4934 float floatArg; |
| 4935 { |
| 4936 v8::TryCatch block; |
| 4937 TONATIVE_VOID_INTERNAL(floatArg, static_cast<float>(info[0]->NumberValue
())); |
| 4938 } |
4912 impl->voidMethodFloatArg(floatArg); | 4939 impl->voidMethodFloatArg(floatArg); |
4913 } | 4940 } |
4914 | 4941 |
4915 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 4942 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
4916 { | 4943 { |
4917 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4944 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4918 TestObjectV8Internal::voidMethodFloatArgMethod(info); | 4945 TestObjectV8Internal::voidMethodFloatArgMethod(info); |
4919 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4946 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4920 } | 4947 } |
4921 | 4948 |
4922 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 4949 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
4923 { | 4950 { |
4924 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArg", "TestObject", info.Holder(), info.GetIsolate()); | 4951 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArg", "TestObject", info.Holder(), info.GetIsolate()); |
4925 if (UNLIKELY(info.Length() < 1)) { | 4952 if (UNLIKELY(info.Length() < 1)) { |
4926 throwMinimumArityTypeError(exceptionState, 1, info.Length()); | 4953 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
4927 return; | 4954 return; |
4928 } | 4955 } |
4929 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4956 TestObject* impl = V8TestObject::toNative(info.Holder()); |
4930 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState),
exceptionState); | 4957 int longArg; |
| 4958 { |
| 4959 v8::TryCatch block; |
| 4960 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); |
| 4961 } |
4931 impl->voidMethodLongArg(longArg); | 4962 impl->voidMethodLongArg(longArg); |
4932 } | 4963 } |
4933 | 4964 |
4934 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4965 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
4935 { | 4966 { |
4936 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4967 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4937 TestObjectV8Internal::voidMethodLongArgMethod(info); | 4968 TestObjectV8Internal::voidMethodLongArgMethod(info); |
4938 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4969 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4939 } | 4970 } |
4940 | 4971 |
4941 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 4972 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
4942 { | 4973 { |
4943 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 4974 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
4944 if (UNLIKELY(info.Length() < 1)) { | 4975 if (UNLIKELY(info.Length() < 1)) { |
4945 throwMinimumArityTypeError(exceptionState, 1, info.Length()); | 4976 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
4946 return; | 4977 return; |
4947 } | 4978 } |
4948 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4979 TestObject* impl = V8TestObject::toNative(info.Holder()); |
4949 TONATIVE_VOID_EXCEPTIONSTATE(long long, longLongArg, toInt64(info[0], except
ionState), exceptionState); | 4980 long long longLongArg; |
| 4981 { |
| 4982 v8::TryCatch block; |
| 4983 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longLongArg, toInt64(info[0], exce
ptionState), exceptionState); |
| 4984 } |
4950 impl->voidMethodLongLongArg(longLongArg); | 4985 impl->voidMethodLongLongArg(longLongArg); |
4951 } | 4986 } |
4952 | 4987 |
4953 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 4988 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
4954 { | 4989 { |
4955 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4990 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4956 TestObjectV8Internal::voidMethodLongLongArgMethod(info); | 4991 TestObjectV8Internal::voidMethodLongLongArgMethod(info); |
4957 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4992 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4958 } | 4993 } |
4959 | 4994 |
4960 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4995 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4961 { | 4996 { |
4962 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ctetArg", "TestObject", info.Holder(), info.GetIsolate()); | 4997 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ctetArg", "TestObject", info.Holder(), info.GetIsolate()); |
4963 if (UNLIKELY(info.Length() < 1)) { | 4998 if (UNLIKELY(info.Length() < 1)) { |
4964 throwMinimumArityTypeError(exceptionState, 1, info.Length()); | 4999 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
4965 return; | 5000 return; |
4966 } | 5001 } |
4967 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5002 TestObject* impl = V8TestObject::toNative(info.Holder()); |
4968 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, octetArg, toUInt8(info[0], exceptionS
tate), exceptionState); | 5003 unsigned octetArg; |
| 5004 { |
| 5005 v8::TryCatch block; |
| 5006 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(octetArg, toUInt8(info[0], excepti
onState), exceptionState); |
| 5007 } |
4969 impl->voidMethodOctetArg(octetArg); | 5008 impl->voidMethodOctetArg(octetArg); |
4970 } | 5009 } |
4971 | 5010 |
4972 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 5011 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
4973 { | 5012 { |
4974 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5013 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4975 TestObjectV8Internal::voidMethodOctetArgMethod(info); | 5014 TestObjectV8Internal::voidMethodOctetArgMethod(info); |
4976 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5015 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4977 } | 5016 } |
4978 | 5017 |
4979 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5018 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4980 { | 5019 { |
4981 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
hortArg", "TestObject", info.Holder(), info.GetIsolate()); | 5020 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
hortArg", "TestObject", info.Holder(), info.GetIsolate()); |
4982 if (UNLIKELY(info.Length() < 1)) { | 5021 if (UNLIKELY(info.Length() < 1)) { |
4983 throwMinimumArityTypeError(exceptionState, 1, info.Length()); | 5022 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
4984 return; | 5023 return; |
4985 } | 5024 } |
4986 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5025 TestObject* impl = V8TestObject::toNative(info.Holder()); |
4987 TONATIVE_VOID_EXCEPTIONSTATE(int, shortArg, toInt16(info[0], exceptionState)
, exceptionState); | 5026 int shortArg; |
| 5027 { |
| 5028 v8::TryCatch block; |
| 5029 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(shortArg, toInt16(info[0], excepti
onState), exceptionState); |
| 5030 } |
4988 impl->voidMethodShortArg(shortArg); | 5031 impl->voidMethodShortArg(shortArg); |
4989 } | 5032 } |
4990 | 5033 |
4991 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 5034 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
4992 { | 5035 { |
4993 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5036 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4994 TestObjectV8Internal::voidMethodShortArgMethod(info); | 5037 TestObjectV8Internal::voidMethodShortArgMethod(info); |
4995 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5038 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4996 } | 5039 } |
4997 | 5040 |
4998 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5041 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
4999 { | 5042 { |
5000 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 5043 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
5001 if (UNLIKELY(info.Length() < 1)) { | 5044 if (UNLIKELY(info.Length() < 1)) { |
5002 throwMinimumArityTypeError(exceptionState, 1, info.Length()); | 5045 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
5003 return; | 5046 return; |
5004 } | 5047 } |
5005 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5048 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5006 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, unsignedLongArg, toUInt32(info[0], ex
ceptionState), exceptionState); | 5049 unsigned unsignedLongArg; |
| 5050 { |
| 5051 v8::TryCatch block; |
| 5052 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedLongArg, toUInt32(info[0],
exceptionState), exceptionState); |
| 5053 } |
5007 impl->voidMethodUnsignedLongArg(unsignedLongArg); | 5054 impl->voidMethodUnsignedLongArg(unsignedLongArg); |
5008 } | 5055 } |
5009 | 5056 |
5010 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 5057 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
5011 { | 5058 { |
5012 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5059 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5013 TestObjectV8Internal::voidMethodUnsignedLongArgMethod(info); | 5060 TestObjectV8Internal::voidMethodUnsignedLongArgMethod(info); |
5014 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5061 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5015 } | 5062 } |
5016 | 5063 |
5017 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) | 5064 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
5018 { | 5065 { |
5019 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 5066 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
5020 if (UNLIKELY(info.Length() < 1)) { | 5067 if (UNLIKELY(info.Length() < 1)) { |
5021 throwMinimumArityTypeError(exceptionState, 1, info.Length()); | 5068 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
5022 return; | 5069 return; |
5023 } | 5070 } |
5024 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5071 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5025 TONATIVE_VOID_EXCEPTIONSTATE(unsigned long long, unsignedLongLongArg, toUInt
64(info[0], exceptionState), exceptionState); | 5072 unsigned long long unsignedLongLongArg; |
| 5073 { |
| 5074 v8::TryCatch block; |
| 5075 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedLongLongArg, toUInt64(info
[0], exceptionState), exceptionState); |
| 5076 } |
5026 impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg); | 5077 impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg); |
5027 } | 5078 } |
5028 | 5079 |
5029 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 5080 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
5030 { | 5081 { |
5031 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5082 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5032 TestObjectV8Internal::voidMethodUnsignedLongLongArgMethod(info); | 5083 TestObjectV8Internal::voidMethodUnsignedLongLongArgMethod(info); |
5033 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5084 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5034 } | 5085 } |
5035 | 5086 |
5036 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 5087 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
5037 { | 5088 { |
5038 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); | 5089 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); |
5039 if (UNLIKELY(info.Length() < 1)) { | 5090 if (UNLIKELY(info.Length() < 1)) { |
5040 throwMinimumArityTypeError(exceptionState, 1, info.Length()); | 5091 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
5041 return; | 5092 return; |
5042 } | 5093 } |
5043 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5094 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5044 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, unsignedShortArg, toUInt16(info[0], e
xceptionState), exceptionState); | 5095 unsigned unsignedShortArg; |
| 5096 { |
| 5097 v8::TryCatch block; |
| 5098 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedShortArg, toUInt16(info[0]
, exceptionState), exceptionState); |
| 5099 } |
5045 impl->voidMethodUnsignedShortArg(unsignedShortArg); | 5100 impl->voidMethodUnsignedShortArg(unsignedShortArg); |
5046 } | 5101 } |
5047 | 5102 |
5048 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 5103 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
5049 { | 5104 { |
5050 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5105 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5051 TestObjectV8Internal::voidMethodUnsignedShortArgMethod(info); | 5106 TestObjectV8Internal::voidMethodUnsignedShortArgMethod(info); |
5052 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5107 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5053 } | 5108 } |
5054 | 5109 |
(...skipping 10 matching lines...) Expand all Loading... |
5065 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5120 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5066 } | 5121 } |
5067 | 5122 |
5068 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 5123 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
5069 { | 5124 { |
5070 if (UNLIKELY(info.Length() < 1)) { | 5125 if (UNLIKELY(info.Length() < 1)) { |
5071 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceEmptyArg", "
TestObject", 1, info.Length(), info.GetIsolate()); | 5126 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceEmptyArg", "
TestObject", 1, info.Length(), info.GetIsolate()); |
5072 return; | 5127 return; |
5073 } | 5128 } |
5074 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5129 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5075 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 5130 TestInterfaceEmpty* testInterfaceEmptyArg; |
| 5131 { |
| 5132 v8::TryCatch block; |
| 5133 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa
tiveWithTypeCheck(info.GetIsolate(), info[0])); |
| 5134 } |
5076 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); | 5135 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); |
5077 } | 5136 } |
5078 | 5137 |
5079 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 5138 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
5080 { | 5139 { |
5081 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5140 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5082 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgMethod(info); | 5141 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgMethod(info); |
5083 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5142 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5084 } | 5143 } |
5085 | 5144 |
5086 static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 5145 static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
5087 { | 5146 { |
5088 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); | 5147 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); |
5089 if (UNLIKELY(info.Length() < 2)) { | 5148 if (UNLIKELY(info.Length() < 2)) { |
5090 throwMinimumArityTypeError(exceptionState, 2, info.Length()); | 5149 throwMinimumArityTypeError(exceptionState, 2, info.Length()); |
5091 return; | 5150 return; |
5092 } | 5151 } |
5093 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5152 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5094 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState),
exceptionState); | 5153 int longArg; |
5095 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[1])); | 5154 TestInterfaceEmpty* testInterfaceEmptyArg; |
| 5155 { |
| 5156 v8::TryCatch block; |
| 5157 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); |
| 5158 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa
tiveWithTypeCheck(info.GetIsolate(), info[1])); |
| 5159 } |
5096 impl->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg)
; | 5160 impl->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg)
; |
5097 } | 5161 } |
5098 | 5162 |
5099 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 5163 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
5100 { | 5164 { |
5101 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5165 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5102 TestObjectV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(info); | 5166 TestObjectV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(info); |
5103 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5167 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5104 } | 5168 } |
5105 | 5169 |
(...skipping 23 matching lines...) Expand all Loading... |
5129 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5193 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5130 } | 5194 } |
5131 | 5195 |
5132 static void voidMethodVoidCallbackFunctionArgMethod(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 5196 static void voidMethodVoidCallbackFunctionArgMethod(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
5133 { | 5197 { |
5134 if (UNLIKELY(info.Length() < 1)) { | 5198 if (UNLIKELY(info.Length() < 1)) { |
5135 throwMinimumArityTypeErrorForMethod("voidMethodVoidCallbackFunctionArg",
"TestObject", 1, info.Length(), info.GetIsolate()); | 5199 throwMinimumArityTypeErrorForMethod("voidMethodVoidCallbackFunctionArg",
"TestObject", 1, info.Length(), info.GetIsolate()); |
5136 return; | 5200 return; |
5137 } | 5201 } |
5138 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5202 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5139 TONATIVE_VOID(ScriptValue, voidCallbackFunctionArg, ScriptValue(ScriptState:
:current(info.GetIsolate()), info[0])); | 5203 ScriptValue voidCallbackFunctionArg; |
| 5204 { |
| 5205 v8::TryCatch block; |
| 5206 TONATIVE_VOID_INTERNAL(voidCallbackFunctionArg, ScriptValue(ScriptState:
:current(info.GetIsolate()), info[0])); |
| 5207 } |
5140 impl->voidMethodVoidCallbackFunctionArg(voidCallbackFunctionArg); | 5208 impl->voidMethodVoidCallbackFunctionArg(voidCallbackFunctionArg); |
5141 } | 5209 } |
5142 | 5210 |
5143 static void voidMethodVoidCallbackFunctionArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) | 5211 static void voidMethodVoidCallbackFunctionArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
5144 { | 5212 { |
5145 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5213 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5146 TestObjectV8Internal::voidMethodVoidCallbackFunctionArgMethod(info); | 5214 TestObjectV8Internal::voidMethodVoidCallbackFunctionArgMethod(info); |
5147 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5215 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5148 } | 5216 } |
5149 | 5217 |
5150 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethod(const v8::Function
CallbackInfo<v8::Value>& info) | 5218 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethod(const v8::Function
CallbackInfo<v8::Value>& info) |
5151 { | 5219 { |
5152 if (UNLIKELY(info.Length() < 1)) { | 5220 if (UNLIKELY(info.Length() < 1)) { |
5153 throwMinimumArityTypeErrorForMethod("voidMethodAnyCallbackFunctionOption
alAnyArg", "TestObject", 1, info.Length(), info.GetIsolate()); | 5221 throwMinimumArityTypeErrorForMethod("voidMethodAnyCallbackFunctionOption
alAnyArg", "TestObject", 1, info.Length(), info.GetIsolate()); |
5154 return; | 5222 return; |
5155 } | 5223 } |
5156 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5224 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5157 TONATIVE_VOID(ScriptValue, anyCallbackFunctionOptionalAnyArgArg, ScriptValue
(ScriptState::current(info.GetIsolate()), info[0])); | 5225 ScriptValue anyCallbackFunctionOptionalAnyArgArg; |
| 5226 { |
| 5227 v8::TryCatch block; |
| 5228 TONATIVE_VOID_INTERNAL(anyCallbackFunctionOptionalAnyArgArg, ScriptValue
(ScriptState::current(info.GetIsolate()), info[0])); |
| 5229 } |
5158 impl->voidMethodAnyCallbackFunctionOptionalAnyArg(anyCallbackFunctionOptiona
lAnyArgArg); | 5230 impl->voidMethodAnyCallbackFunctionOptionalAnyArg(anyCallbackFunctionOptiona
lAnyArgArg); |
5159 } | 5231 } |
5160 | 5232 |
5161 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethodCallback(const v8::
FunctionCallbackInfo<v8::Value>& info) | 5233 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethodCallback(const v8::
FunctionCallbackInfo<v8::Value>& info) |
5162 { | 5234 { |
5163 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5235 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5164 TestObjectV8Internal::voidMethodAnyCallbackFunctionOptionalAnyArgMethod(info
); | 5236 TestObjectV8Internal::voidMethodAnyCallbackFunctionOptionalAnyArgMethod(info
); |
5165 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5237 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5166 } | 5238 } |
5167 | 5239 |
(...skipping 23 matching lines...) Expand all Loading... |
5191 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5263 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5192 } | 5264 } |
5193 | 5265 |
5194 static void voidMethodCompareHowArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 5266 static void voidMethodCompareHowArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
5195 { | 5267 { |
5196 if (UNLIKELY(info.Length() < 1)) { | 5268 if (UNLIKELY(info.Length() < 1)) { |
5197 throwMinimumArityTypeErrorForMethod("voidMethodCompareHowArg", "TestObje
ct", 1, info.Length(), info.GetIsolate()); | 5269 throwMinimumArityTypeErrorForMethod("voidMethodCompareHowArg", "TestObje
ct", 1, info.Length(), info.GetIsolate()); |
5198 return; | 5270 return; |
5199 } | 5271 } |
5200 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5272 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5201 TONATIVE_VOID(Range::CompareHow, compareHowArg, static_cast<Range::CompareHo
w>(info[0]->Int32Value())); | 5273 Range::CompareHow compareHowArg; |
| 5274 { |
| 5275 v8::TryCatch block; |
| 5276 TONATIVE_VOID_INTERNAL(compareHowArg, static_cast<Range::CompareHow>(inf
o[0]->Int32Value())); |
| 5277 } |
5202 impl->voidMethodCompareHowArg(compareHowArg); | 5278 impl->voidMethodCompareHowArg(compareHowArg); |
5203 } | 5279 } |
5204 | 5280 |
5205 static void voidMethodCompareHowArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 5281 static void voidMethodCompareHowArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
5206 { | 5282 { |
5207 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5283 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5208 TestObjectV8Internal::voidMethodCompareHowArgMethod(info); | 5284 TestObjectV8Internal::voidMethodCompareHowArgMethod(info); |
5209 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5285 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5210 } | 5286 } |
5211 | 5287 |
5212 static void voidMethodEventTargetArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 5288 static void voidMethodEventTargetArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
5213 { | 5289 { |
5214 if (UNLIKELY(info.Length() < 1)) { | 5290 if (UNLIKELY(info.Length() < 1)) { |
5215 throwMinimumArityTypeErrorForMethod("voidMethodEventTargetArg", "TestObj
ect", 1, info.Length(), info.GetIsolate()); | 5291 throwMinimumArityTypeErrorForMethod("voidMethodEventTargetArg", "TestObj
ect", 1, info.Length(), info.GetIsolate()); |
5216 return; | 5292 return; |
5217 } | 5293 } |
5218 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5294 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5219 TONATIVE_VOID(EventTarget*, eventTargetArg, V8DOMWrapper::isDOMWrapper(info[
0]) ? toWrapperTypeInfo(v8::Handle<v8::Object>::Cast(info[0]))->toEventTarget(v8
::Handle<v8::Object>::Cast(info[0])) : 0); | 5295 EventTarget* eventTargetArg; |
| 5296 { |
| 5297 v8::TryCatch block; |
| 5298 TONATIVE_VOID_INTERNAL(eventTargetArg, V8DOMWrapper::isDOMWrapper(info[0
]) ? toWrapperTypeInfo(v8::Handle<v8::Object>::Cast(info[0]))->toEventTarget(v8:
:Handle<v8::Object>::Cast(info[0])) : 0); |
| 5299 } |
5220 impl->voidMethodEventTargetArg(eventTargetArg); | 5300 impl->voidMethodEventTargetArg(eventTargetArg); |
5221 } | 5301 } |
5222 | 5302 |
5223 static void voidMethodEventTargetArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 5303 static void voidMethodEventTargetArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
5224 { | 5304 { |
5225 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5305 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5226 TestObjectV8Internal::voidMethodEventTargetArgMethod(info); | 5306 TestObjectV8Internal::voidMethodEventTargetArgMethod(info); |
5227 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5307 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5228 } | 5308 } |
5229 | 5309 |
5230 static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallback
Info<v8::Value>& info) | 5310 static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallback
Info<v8::Value>& info) |
5231 { | 5311 { |
5232 if (UNLIKELY(info.Length() < 1)) { | 5312 if (UNLIKELY(info.Length() < 1)) { |
5233 throwMinimumArityTypeErrorForMethod("voidMethodMediaQueryListListenerArg
", "TestObject", 1, info.Length(), info.GetIsolate()); | 5313 throwMinimumArityTypeErrorForMethod("voidMethodMediaQueryListListenerArg
", "TestObject", 1, info.Length(), info.GetIsolate()); |
5234 return; | 5314 return; |
5235 } | 5315 } |
5236 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5316 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5237 TONATIVE_VOID(RefPtrWillBeRawPtr<MediaQueryListListener>, mediaQueryListList
enerArg, MediaQueryListListener::create(ScriptValue(ScriptState::current(info.Ge
tIsolate()), info[0]))); | 5317 RefPtrWillBeRawPtr<MediaQueryListListener> mediaQueryListListenerArg; |
| 5318 { |
| 5319 v8::TryCatch block; |
| 5320 TONATIVE_VOID_INTERNAL(mediaQueryListListenerArg, MediaQueryListListener
::create(ScriptValue(ScriptState::current(info.GetIsolate()), info[0]))); |
| 5321 } |
5238 impl->voidMethodMediaQueryListListenerArg(mediaQueryListListenerArg); | 5322 impl->voidMethodMediaQueryListListenerArg(mediaQueryListListenerArg); |
5239 } | 5323 } |
5240 | 5324 |
5241 static void voidMethodMediaQueryListListenerArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) | 5325 static void voidMethodMediaQueryListListenerArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
5242 { | 5326 { |
5243 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5327 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5244 TestObjectV8Internal::voidMethodMediaQueryListListenerArgMethod(info); | 5328 TestObjectV8Internal::voidMethodMediaQueryListListenerArgMethod(info); |
5245 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5329 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5246 } | 5330 } |
5247 | 5331 |
5248 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 5332 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
5249 { | 5333 { |
5250 if (UNLIKELY(info.Length() < 1)) { | 5334 if (UNLIKELY(info.Length() < 1)) { |
5251 throwMinimumArityTypeErrorForMethod("voidMethodAnyArg", "TestObject", 1,
info.Length(), info.GetIsolate()); | 5335 throwMinimumArityTypeErrorForMethod("voidMethodAnyArg", "TestObject", 1,
info.Length(), info.GetIsolate()); |
5252 return; | 5336 return; |
5253 } | 5337 } |
5254 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5338 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5255 TONATIVE_VOID(ScriptValue, anyArg, ScriptValue(ScriptState::current(info.Get
Isolate()), info[0])); | 5339 ScriptValue anyArg; |
| 5340 { |
| 5341 v8::TryCatch block; |
| 5342 TONATIVE_VOID_INTERNAL(anyArg, ScriptValue(ScriptState::current(info.Get
Isolate()), info[0])); |
| 5343 } |
5256 impl->voidMethodAnyArg(anyArg); | 5344 impl->voidMethodAnyArg(anyArg); |
5257 } | 5345 } |
5258 | 5346 |
5259 static void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 5347 static void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
5260 { | 5348 { |
5261 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5349 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5262 TestObjectV8Internal::voidMethodAnyArgMethod(info); | 5350 TestObjectV8Internal::voidMethodAnyArgMethod(info); |
5263 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5351 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5264 } | 5352 } |
5265 | 5353 |
5266 static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 5354 static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
5267 { | 5355 { |
5268 if (UNLIKELY(info.Length() < 1)) { | 5356 if (UNLIKELY(info.Length() < 1)) { |
5269 throwMinimumArityTypeErrorForMethod("voidMethodAttrArg", "TestObject", 1
, info.Length(), info.GetIsolate()); | 5357 throwMinimumArityTypeErrorForMethod("voidMethodAttrArg", "TestObject", 1
, info.Length(), info.GetIsolate()); |
5270 return; | 5358 return; |
5271 } | 5359 } |
5272 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5360 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5273 TONATIVE_VOID(Attr*, attrArg, V8Attr::toNativeWithTypeCheck(info.GetIsolate(
), info[0])); | 5361 Attr* attrArg; |
| 5362 { |
| 5363 v8::TryCatch block; |
| 5364 TONATIVE_VOID_INTERNAL(attrArg, V8Attr::toNativeWithTypeCheck(info.GetIs
olate(), info[0])); |
| 5365 } |
5274 impl->voidMethodAttrArg(attrArg); | 5366 impl->voidMethodAttrArg(attrArg); |
5275 } | 5367 } |
5276 | 5368 |
5277 static void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5369 static void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
5278 { | 5370 { |
5279 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5371 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5280 TestObjectV8Internal::voidMethodAttrArgMethod(info); | 5372 TestObjectV8Internal::voidMethodAttrArgMethod(info); |
5281 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5373 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5282 } | 5374 } |
5283 | 5375 |
5284 static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 5376 static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
5285 { | 5377 { |
5286 if (UNLIKELY(info.Length() < 1)) { | 5378 if (UNLIKELY(info.Length() < 1)) { |
5287 throwMinimumArityTypeErrorForMethod("voidMethodDocumentArg", "TestObject
", 1, info.Length(), info.GetIsolate()); | 5379 throwMinimumArityTypeErrorForMethod("voidMethodDocumentArg", "TestObject
", 1, info.Length(), info.GetIsolate()); |
5288 return; | 5380 return; |
5289 } | 5381 } |
5290 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5382 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5291 TONATIVE_VOID(Document*, documentArg, V8Document::toNativeWithTypeCheck(info
.GetIsolate(), info[0])); | 5383 Document* documentArg; |
| 5384 { |
| 5385 v8::TryCatch block; |
| 5386 TONATIVE_VOID_INTERNAL(documentArg, V8Document::toNativeWithTypeCheck(in
fo.GetIsolate(), info[0])); |
| 5387 } |
5292 impl->voidMethodDocumentArg(documentArg); | 5388 impl->voidMethodDocumentArg(documentArg); |
5293 } | 5389 } |
5294 | 5390 |
5295 static void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 5391 static void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
5296 { | 5392 { |
5297 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5393 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5298 TestObjectV8Internal::voidMethodDocumentArgMethod(info); | 5394 TestObjectV8Internal::voidMethodDocumentArgMethod(info); |
5299 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5395 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5300 } | 5396 } |
5301 | 5397 |
5302 static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5398 static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
5303 { | 5399 { |
5304 if (UNLIKELY(info.Length() < 1)) { | 5400 if (UNLIKELY(info.Length() < 1)) { |
5305 throwMinimumArityTypeErrorForMethod("voidMethodDocumentTypeArg", "TestOb
ject", 1, info.Length(), info.GetIsolate()); | 5401 throwMinimumArityTypeErrorForMethod("voidMethodDocumentTypeArg", "TestOb
ject", 1, info.Length(), info.GetIsolate()); |
5306 return; | 5402 return; |
5307 } | 5403 } |
5308 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5404 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5309 TONATIVE_VOID(DocumentType*, documentTypeArg, V8DocumentType::toNativeWithTy
peCheck(info.GetIsolate(), info[0])); | 5405 DocumentType* documentTypeArg; |
| 5406 { |
| 5407 v8::TryCatch block; |
| 5408 TONATIVE_VOID_INTERNAL(documentTypeArg, V8DocumentType::toNativeWithType
Check(info.GetIsolate(), info[0])); |
| 5409 } |
5310 impl->voidMethodDocumentTypeArg(documentTypeArg); | 5410 impl->voidMethodDocumentTypeArg(documentTypeArg); |
5311 } | 5411 } |
5312 | 5412 |
5313 static void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 5413 static void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
5314 { | 5414 { |
5315 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5415 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5316 TestObjectV8Internal::voidMethodDocumentTypeArgMethod(info); | 5416 TestObjectV8Internal::voidMethodDocumentTypeArgMethod(info); |
5317 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5417 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5318 } | 5418 } |
5319 | 5419 |
5320 static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) | 5420 static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
5321 { | 5421 { |
5322 if (UNLIKELY(info.Length() < 1)) { | 5422 if (UNLIKELY(info.Length() < 1)) { |
5323 throwMinimumArityTypeErrorForMethod("voidMethodElementArg", "TestObject"
, 1, info.Length(), info.GetIsolate()); | 5423 throwMinimumArityTypeErrorForMethod("voidMethodElementArg", "TestObject"
, 1, info.Length(), info.GetIsolate()); |
5324 return; | 5424 return; |
5325 } | 5425 } |
5326 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5426 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5327 TONATIVE_VOID(Element*, elementArg, V8Element::toNativeWithTypeCheck(info.Ge
tIsolate(), info[0])); | 5427 Element* elementArg; |
| 5428 { |
| 5429 v8::TryCatch block; |
| 5430 TONATIVE_VOID_INTERNAL(elementArg, V8Element::toNativeWithTypeCheck(info
.GetIsolate(), info[0])); |
| 5431 } |
5328 impl->voidMethodElementArg(elementArg); | 5432 impl->voidMethodElementArg(elementArg); |
5329 } | 5433 } |
5330 | 5434 |
5331 static void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) | 5435 static void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
5332 { | 5436 { |
5333 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5437 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5334 TestObjectV8Internal::voidMethodElementArgMethod(info); | 5438 TestObjectV8Internal::voidMethodElementArgMethod(info); |
5335 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5439 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5336 } | 5440 } |
5337 | 5441 |
5338 static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 5442 static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
5339 { | 5443 { |
5340 if (UNLIKELY(info.Length() < 1)) { | 5444 if (UNLIKELY(info.Length() < 1)) { |
5341 throwMinimumArityTypeErrorForMethod("voidMethodNodeArg", "TestObject", 1
, info.Length(), info.GetIsolate()); | 5445 throwMinimumArityTypeErrorForMethod("voidMethodNodeArg", "TestObject", 1
, info.Length(), info.GetIsolate()); |
5342 return; | 5446 return; |
5343 } | 5447 } |
5344 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5448 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5345 TONATIVE_VOID(Node*, nodeArg, V8Node::toNativeWithTypeCheck(info.GetIsolate(
), info[0])); | 5449 Node* nodeArg; |
| 5450 { |
| 5451 v8::TryCatch block; |
| 5452 TONATIVE_VOID_INTERNAL(nodeArg, V8Node::toNativeWithTypeCheck(info.GetIs
olate(), info[0])); |
| 5453 } |
5346 impl->voidMethodNodeArg(nodeArg); | 5454 impl->voidMethodNodeArg(nodeArg); |
5347 } | 5455 } |
5348 | 5456 |
5349 static void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5457 static void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
5350 { | 5458 { |
5351 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5459 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5352 TestObjectV8Internal::voidMethodNodeArgMethod(info); | 5460 TestObjectV8Internal::voidMethodNodeArgMethod(info); |
5353 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5461 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5354 } | 5462 } |
5355 | 5463 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5418 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5526 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5419 } | 5527 } |
5420 | 5528 |
5421 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 5529 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
5422 { | 5530 { |
5423 if (UNLIKELY(info.Length() < 1)) { | 5531 if (UNLIKELY(info.Length() < 1)) { |
5424 throwMinimumArityTypeErrorForMethod("voidMethodArrayBufferArg", "TestObj
ect", 1, info.Length(), info.GetIsolate()); | 5532 throwMinimumArityTypeErrorForMethod("voidMethodArrayBufferArg", "TestObj
ect", 1, info.Length(), info.GetIsolate()); |
5425 return; | 5533 return; |
5426 } | 5534 } |
5427 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5535 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5428 TONATIVE_VOID(ArrayBuffer*, arrayBufferArg, info[0]->IsArrayBuffer() ? V8Arr
ayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0); | 5536 ArrayBuffer* arrayBufferArg; |
| 5537 { |
| 5538 v8::TryCatch block; |
| 5539 TONATIVE_VOID_INTERNAL(arrayBufferArg, info[0]->IsArrayBuffer() ? V8Arra
yBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0); |
| 5540 } |
5429 impl->voidMethodArrayBufferArg(arrayBufferArg); | 5541 impl->voidMethodArrayBufferArg(arrayBufferArg); |
5430 } | 5542 } |
5431 | 5543 |
5432 static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 5544 static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
5433 { | 5545 { |
5434 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5546 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5435 TestObjectV8Internal::voidMethodArrayBufferArgMethod(info); | 5547 TestObjectV8Internal::voidMethodArrayBufferArgMethod(info); |
5436 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5548 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5437 } | 5549 } |
5438 | 5550 |
5439 static void voidMethodArrayBufferOrNullArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) | 5551 static void voidMethodArrayBufferOrNullArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) |
5440 { | 5552 { |
5441 if (UNLIKELY(info.Length() < 1)) { | 5553 if (UNLIKELY(info.Length() < 1)) { |
5442 throwMinimumArityTypeErrorForMethod("voidMethodArrayBufferOrNullArg", "T
estObject", 1, info.Length(), info.GetIsolate()); | 5554 throwMinimumArityTypeErrorForMethod("voidMethodArrayBufferOrNullArg", "T
estObject", 1, info.Length(), info.GetIsolate()); |
5443 return; | 5555 return; |
5444 } | 5556 } |
5445 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5557 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5446 TONATIVE_VOID(ArrayBuffer*, arrayBufferArg, info[0]->IsArrayBuffer() ? V8Arr
ayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0); | 5558 ArrayBuffer* arrayBufferArg; |
| 5559 { |
| 5560 v8::TryCatch block; |
| 5561 TONATIVE_VOID_INTERNAL(arrayBufferArg, info[0]->IsArrayBuffer() ? V8Arra
yBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0); |
| 5562 } |
5447 impl->voidMethodArrayBufferOrNullArg(arrayBufferArg); | 5563 impl->voidMethodArrayBufferOrNullArg(arrayBufferArg); |
5448 } | 5564 } |
5449 | 5565 |
5450 static void voidMethodArrayBufferOrNullArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 5566 static void voidMethodArrayBufferOrNullArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
5451 { | 5567 { |
5452 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5568 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5453 TestObjectV8Internal::voidMethodArrayBufferOrNullArgMethod(info); | 5569 TestObjectV8Internal::voidMethodArrayBufferOrNullArgMethod(info); |
5454 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5570 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5455 } | 5571 } |
5456 | 5572 |
5457 static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) | 5573 static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) |
5458 { | 5574 { |
5459 if (UNLIKELY(info.Length() < 1)) { | 5575 if (UNLIKELY(info.Length() < 1)) { |
5460 throwMinimumArityTypeErrorForMethod("voidMethodArrayBufferViewArg", "Tes
tObject", 1, info.Length(), info.GetIsolate()); | 5576 throwMinimumArityTypeErrorForMethod("voidMethodArrayBufferViewArg", "Tes
tObject", 1, info.Length(), info.GetIsolate()); |
5461 return; | 5577 return; |
5462 } | 5578 } |
5463 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5579 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5464 TONATIVE_VOID(ArrayBufferView*, arrayBufferViewArg, info[0]->IsArrayBufferVi
ew() ? V8ArrayBufferView::toNative(v8::Handle<v8::ArrayBufferView>::Cast(info[0]
)) : 0); | 5580 ArrayBufferView* arrayBufferViewArg; |
| 5581 { |
| 5582 v8::TryCatch block; |
| 5583 TONATIVE_VOID_INTERNAL(arrayBufferViewArg, info[0]->IsArrayBufferView()
? V8ArrayBufferView::toNative(v8::Handle<v8::ArrayBufferView>::Cast(info[0])) :
0); |
| 5584 } |
5465 impl->voidMethodArrayBufferViewArg(arrayBufferViewArg); | 5585 impl->voidMethodArrayBufferViewArg(arrayBufferViewArg); |
5466 } | 5586 } |
5467 | 5587 |
5468 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 5588 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
5469 { | 5589 { |
5470 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5590 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5471 TestObjectV8Internal::voidMethodArrayBufferViewArgMethod(info); | 5591 TestObjectV8Internal::voidMethodArrayBufferViewArgMethod(info); |
5472 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5592 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5473 } | 5593 } |
5474 | 5594 |
5475 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5595 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
5476 { | 5596 { |
5477 if (UNLIKELY(info.Length() < 1)) { | 5597 if (UNLIKELY(info.Length() < 1)) { |
5478 throwMinimumArityTypeErrorForMethod("voidMethodFloat32ArrayArg", "TestOb
ject", 1, info.Length(), info.GetIsolate()); | 5598 throwMinimumArityTypeErrorForMethod("voidMethodFloat32ArrayArg", "TestOb
ject", 1, info.Length(), info.GetIsolate()); |
5479 return; | 5599 return; |
5480 } | 5600 } |
5481 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5601 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5482 TONATIVE_VOID(Float32Array*, float32ArrayArg, info[0]->IsFloat32Array() ? V8
Float32Array::toNative(v8::Handle<v8::Float32Array>::Cast(info[0])) : 0); | 5602 Float32Array* float32ArrayArg; |
| 5603 { |
| 5604 v8::TryCatch block; |
| 5605 TONATIVE_VOID_INTERNAL(float32ArrayArg, info[0]->IsFloat32Array() ? V8Fl
oat32Array::toNative(v8::Handle<v8::Float32Array>::Cast(info[0])) : 0); |
| 5606 } |
5483 impl->voidMethodFloat32ArrayArg(float32ArrayArg); | 5607 impl->voidMethodFloat32ArrayArg(float32ArrayArg); |
5484 } | 5608 } |
5485 | 5609 |
5486 static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 5610 static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
5487 { | 5611 { |
5488 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5612 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5489 TestObjectV8Internal::voidMethodFloat32ArrayArgMethod(info); | 5613 TestObjectV8Internal::voidMethodFloat32ArrayArgMethod(info); |
5490 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5614 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5491 } | 5615 } |
5492 | 5616 |
5493 static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 5617 static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
5494 { | 5618 { |
5495 if (UNLIKELY(info.Length() < 1)) { | 5619 if (UNLIKELY(info.Length() < 1)) { |
5496 throwMinimumArityTypeErrorForMethod("voidMethodInt32ArrayArg", "TestObje
ct", 1, info.Length(), info.GetIsolate()); | 5620 throwMinimumArityTypeErrorForMethod("voidMethodInt32ArrayArg", "TestObje
ct", 1, info.Length(), info.GetIsolate()); |
5497 return; | 5621 return; |
5498 } | 5622 } |
5499 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5623 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5500 TONATIVE_VOID(Int32Array*, int32ArrayArg, info[0]->IsInt32Array() ? V8Int32A
rray::toNative(v8::Handle<v8::Int32Array>::Cast(info[0])) : 0); | 5624 Int32Array* int32ArrayArg; |
| 5625 { |
| 5626 v8::TryCatch block; |
| 5627 TONATIVE_VOID_INTERNAL(int32ArrayArg, info[0]->IsInt32Array() ? V8Int32A
rray::toNative(v8::Handle<v8::Int32Array>::Cast(info[0])) : 0); |
| 5628 } |
5501 impl->voidMethodInt32ArrayArg(int32ArrayArg); | 5629 impl->voidMethodInt32ArrayArg(int32ArrayArg); |
5502 } | 5630 } |
5503 | 5631 |
5504 static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 5632 static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
5505 { | 5633 { |
5506 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5634 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5507 TestObjectV8Internal::voidMethodInt32ArrayArgMethod(info); | 5635 TestObjectV8Internal::voidMethodInt32ArrayArgMethod(info); |
5508 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5636 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5509 } | 5637 } |
5510 | 5638 |
5511 static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 5639 static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
5512 { | 5640 { |
5513 if (UNLIKELY(info.Length() < 1)) { | 5641 if (UNLIKELY(info.Length() < 1)) { |
5514 throwMinimumArityTypeErrorForMethod("voidMethodUint8ArrayArg", "TestObje
ct", 1, info.Length(), info.GetIsolate()); | 5642 throwMinimumArityTypeErrorForMethod("voidMethodUint8ArrayArg", "TestObje
ct", 1, info.Length(), info.GetIsolate()); |
5515 return; | 5643 return; |
5516 } | 5644 } |
5517 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5645 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5518 TONATIVE_VOID(Uint8Array*, uint8ArrayArg, info[0]->IsUint8Array() ? V8Uint8A
rray::toNative(v8::Handle<v8::Uint8Array>::Cast(info[0])) : 0); | 5646 Uint8Array* uint8ArrayArg; |
| 5647 { |
| 5648 v8::TryCatch block; |
| 5649 TONATIVE_VOID_INTERNAL(uint8ArrayArg, info[0]->IsUint8Array() ? V8Uint8A
rray::toNative(v8::Handle<v8::Uint8Array>::Cast(info[0])) : 0); |
| 5650 } |
5519 impl->voidMethodUint8ArrayArg(uint8ArrayArg); | 5651 impl->voidMethodUint8ArrayArg(uint8ArrayArg); |
5520 } | 5652 } |
5521 | 5653 |
5522 static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 5654 static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
5523 { | 5655 { |
5524 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5656 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5525 TestObjectV8Internal::voidMethodUint8ArrayArgMethod(info); | 5657 TestObjectV8Internal::voidMethodUint8ArrayArgMethod(info); |
5526 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5658 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5527 } | 5659 } |
5528 | 5660 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5565 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5697 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5566 } | 5698 } |
5567 | 5699 |
5568 static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 5700 static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
5569 { | 5701 { |
5570 if (UNLIKELY(info.Length() < 1)) { | 5702 if (UNLIKELY(info.Length() < 1)) { |
5571 throwMinimumArityTypeErrorForMethod("voidMethodArrayLongArg", "TestObjec
t", 1, info.Length(), info.GetIsolate()); | 5703 throwMinimumArityTypeErrorForMethod("voidMethodArrayLongArg", "TestObjec
t", 1, info.Length(), info.GetIsolate()); |
5572 return; | 5704 return; |
5573 } | 5705 } |
5574 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5706 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5575 TONATIVE_VOID(Vector<int>, arrayLongArg, toNativeArray<int>(info[0], 1, info
.GetIsolate())); | 5707 Vector<int> arrayLongArg; |
| 5708 { |
| 5709 v8::TryCatch block; |
| 5710 TONATIVE_VOID_INTERNAL(arrayLongArg, toNativeArray<int>(info[0], 1, info
.GetIsolate())); |
| 5711 } |
5576 impl->voidMethodArrayLongArg(arrayLongArg); | 5712 impl->voidMethodArrayLongArg(arrayLongArg); |
5577 } | 5713 } |
5578 | 5714 |
5579 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) | 5715 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
5580 { | 5716 { |
5581 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5717 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5582 TestObjectV8Internal::voidMethodArrayLongArgMethod(info); | 5718 TestObjectV8Internal::voidMethodArrayLongArgMethod(info); |
5583 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5719 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5584 } | 5720 } |
5585 | 5721 |
5586 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 5722 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
5587 { | 5723 { |
5588 if (UNLIKELY(info.Length() < 1)) { | 5724 if (UNLIKELY(info.Length() < 1)) { |
5589 throwMinimumArityTypeErrorForMethod("voidMethodArrayStringArg", "TestObj
ect", 1, info.Length(), info.GetIsolate()); | 5725 throwMinimumArityTypeErrorForMethod("voidMethodArrayStringArg", "TestObj
ect", 1, info.Length(), info.GetIsolate()); |
5590 return; | 5726 return; |
5591 } | 5727 } |
5592 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5728 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5593 TONATIVE_VOID(Vector<String>, arrayStringArg, toNativeArray<String>(info[0],
1, info.GetIsolate())); | 5729 Vector<String> arrayStringArg; |
| 5730 { |
| 5731 v8::TryCatch block; |
| 5732 TONATIVE_VOID_INTERNAL(arrayStringArg, toNativeArray<String>(info[0], 1,
info.GetIsolate())); |
| 5733 } |
5594 impl->voidMethodArrayStringArg(arrayStringArg); | 5734 impl->voidMethodArrayStringArg(arrayStringArg); |
5595 } | 5735 } |
5596 | 5736 |
5597 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 5737 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
5598 { | 5738 { |
5599 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5739 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5600 TestObjectV8Internal::voidMethodArrayStringArgMethod(info); | 5740 TestObjectV8Internal::voidMethodArrayStringArgMethod(info); |
5601 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5741 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5602 } | 5742 } |
5603 | 5743 |
5604 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 5744 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
5605 { | 5745 { |
5606 if (UNLIKELY(info.Length() < 1)) { | 5746 if (UNLIKELY(info.Length() < 1)) { |
5607 throwMinimumArityTypeErrorForMethod("voidMethodArrayTestInterfaceEmptyAr
g", "TestObject", 1, info.Length(), info.GetIsolate()); | 5747 throwMinimumArityTypeErrorForMethod("voidMethodArrayTestInterfaceEmptyAr
g", "TestObject", 1, info.Length(), info.GetIsolate()); |
5608 return; | 5748 return; |
5609 } | 5749 } |
5610 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5750 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5611 TONATIVE_VOID(Vector<RefPtr<TestInterfaceEmpty> >, arrayTestInterfaceEmptyAr
g, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, in
fo.GetIsolate()))); | 5751 Vector<RefPtr<TestInterfaceEmpty> > arrayTestInterfaceEmptyArg; |
| 5752 { |
| 5753 v8::TryCatch block; |
| 5754 TONATIVE_VOID_INTERNAL(arrayTestInterfaceEmptyArg, (toRefPtrNativeArray<
TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate()))); |
| 5755 } |
5612 impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg); | 5756 impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg); |
5613 } | 5757 } |
5614 | 5758 |
5615 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 5759 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
5616 { | 5760 { |
5617 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5761 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5618 TestObjectV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info); | 5762 TestObjectV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info); |
5619 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5763 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5620 } | 5764 } |
5621 | 5765 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5658 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5802 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5659 } | 5803 } |
5660 | 5804 |
5661 static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5805 static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
5662 { | 5806 { |
5663 if (UNLIKELY(info.Length() < 1)) { | 5807 if (UNLIKELY(info.Length() < 1)) { |
5664 throwMinimumArityTypeErrorForMethod("voidMethodSequenceLongArg", "TestOb
ject", 1, info.Length(), info.GetIsolate()); | 5808 throwMinimumArityTypeErrorForMethod("voidMethodSequenceLongArg", "TestOb
ject", 1, info.Length(), info.GetIsolate()); |
5665 return; | 5809 return; |
5666 } | 5810 } |
5667 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5811 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5668 TONATIVE_VOID(Vector<int>, longSequenceArg, toNativeArray<int>(info[0], 1, i
nfo.GetIsolate())); | 5812 Vector<int> longSequenceArg; |
| 5813 { |
| 5814 v8::TryCatch block; |
| 5815 TONATIVE_VOID_INTERNAL(longSequenceArg, toNativeArray<int>(info[0], 1, i
nfo.GetIsolate())); |
| 5816 } |
5669 impl->voidMethodSequenceLongArg(longSequenceArg); | 5817 impl->voidMethodSequenceLongArg(longSequenceArg); |
5670 } | 5818 } |
5671 | 5819 |
5672 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 5820 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
5673 { | 5821 { |
5674 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5822 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5675 TestObjectV8Internal::voidMethodSequenceLongArgMethod(info); | 5823 TestObjectV8Internal::voidMethodSequenceLongArgMethod(info); |
5676 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5824 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5677 } | 5825 } |
5678 | 5826 |
5679 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 5827 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
5680 { | 5828 { |
5681 if (UNLIKELY(info.Length() < 1)) { | 5829 if (UNLIKELY(info.Length() < 1)) { |
5682 throwMinimumArityTypeErrorForMethod("voidMethodSequenceStringArg", "Test
Object", 1, info.Length(), info.GetIsolate()); | 5830 throwMinimumArityTypeErrorForMethod("voidMethodSequenceStringArg", "Test
Object", 1, info.Length(), info.GetIsolate()); |
5683 return; | 5831 return; |
5684 } | 5832 } |
5685 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5833 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5686 TONATIVE_VOID(Vector<String>, stringSequenceArg, toNativeArray<String>(info[
0], 1, info.GetIsolate())); | 5834 Vector<String> stringSequenceArg; |
| 5835 { |
| 5836 v8::TryCatch block; |
| 5837 TONATIVE_VOID_INTERNAL(stringSequenceArg, toNativeArray<String>(info[0],
1, info.GetIsolate())); |
| 5838 } |
5687 impl->voidMethodSequenceStringArg(stringSequenceArg); | 5839 impl->voidMethodSequenceStringArg(stringSequenceArg); |
5688 } | 5840 } |
5689 | 5841 |
5690 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 5842 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
5691 { | 5843 { |
5692 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5844 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5693 TestObjectV8Internal::voidMethodSequenceStringArgMethod(info); | 5845 TestObjectV8Internal::voidMethodSequenceStringArgMethod(info); |
5694 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5846 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5695 } | 5847 } |
5696 | 5848 |
5697 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 5849 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
5698 { | 5850 { |
5699 if (UNLIKELY(info.Length() < 1)) { | 5851 if (UNLIKELY(info.Length() < 1)) { |
5700 throwMinimumArityTypeErrorForMethod("voidMethodSequenceTestInterfaceEmpt
yArg", "TestObject", 1, info.Length(), info.GetIsolate()); | 5852 throwMinimumArityTypeErrorForMethod("voidMethodSequenceTestInterfaceEmpt
yArg", "TestObject", 1, info.Length(), info.GetIsolate()); |
5701 return; | 5853 return; |
5702 } | 5854 } |
5703 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5855 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5704 TONATIVE_VOID(Vector<RefPtr<TestInterfaceEmpty> >, testInterfaceEmptySequenc
eArg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1,
info.GetIsolate()))); | 5856 Vector<RefPtr<TestInterfaceEmpty> > testInterfaceEmptySequenceArg; |
| 5857 { |
| 5858 v8::TryCatch block; |
| 5859 TONATIVE_VOID_INTERNAL(testInterfaceEmptySequenceArg, (toRefPtrNativeArr
ay<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate()))); |
| 5860 } |
5705 impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg)
; | 5861 impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg)
; |
5706 } | 5862 } |
5707 | 5863 |
5708 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 5864 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
5709 { | 5865 { |
5710 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5866 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5711 TestObjectV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(info); | 5867 TestObjectV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(info); |
5712 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5868 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5713 } | 5869 } |
5714 | 5870 |
5715 static void voidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 5871 static void voidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
5716 { | 5872 { |
5717 if (UNLIKELY(info.Length() < 1)) { | 5873 if (UNLIKELY(info.Length() < 1)) { |
5718 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceEmptyOrNullA
rg", "TestObject", 1, info.Length(), info.GetIsolate()); | 5874 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceEmptyOrNullA
rg", "TestObject", 1, info.Length(), info.GetIsolate()); |
5719 return; | 5875 return; |
5720 } | 5876 } |
5721 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5877 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5722 TONATIVE_VOID(TestInterfaceEmpty*, nullableTestInterfaceEmptyArg, V8TestInte
rfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 5878 TestInterfaceEmpty* nullableTestInterfaceEmptyArg; |
| 5879 { |
| 5880 v8::TryCatch block; |
| 5881 TONATIVE_VOID_INTERNAL(nullableTestInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
| 5882 } |
5723 impl->voidMethodTestInterfaceEmptyOrNullArg(nullableTestInterfaceEmptyArg); | 5883 impl->voidMethodTestInterfaceEmptyOrNullArg(nullableTestInterfaceEmptyArg); |
5724 } | 5884 } |
5725 | 5885 |
5726 static void voidMethodTestInterfaceEmptyOrNullArgMethodCallback(const v8::Functi
onCallbackInfo<v8::Value>& info) | 5886 static void voidMethodTestInterfaceEmptyOrNullArgMethodCallback(const v8::Functi
onCallbackInfo<v8::Value>& info) |
5727 { | 5887 { |
5728 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5888 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5729 TestObjectV8Internal::voidMethodTestInterfaceEmptyOrNullArgMethod(info); | 5889 TestObjectV8Internal::voidMethodTestInterfaceEmptyOrNullArgMethod(info); |
5730 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5890 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5731 } | 5891 } |
5732 | 5892 |
5733 static void voidMethodTestCallbackInterfaceArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 5893 static void voidMethodTestCallbackInterfaceArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
5734 { | 5894 { |
5735 if (UNLIKELY(info.Length() < 1)) { | 5895 if (UNLIKELY(info.Length() < 1)) { |
5736 throwMinimumArityTypeErrorForMethod("voidMethodTestCallbackInterfaceArg"
, "TestObject", 1, info.Length(), info.GetIsolate()); | 5896 throwMinimumArityTypeErrorForMethod("voidMethodTestCallbackInterfaceArg"
, "TestObject", 1, info.Length(), info.GetIsolate()); |
5737 return; | 5897 return; |
5738 } | 5898 } |
5739 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5899 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5740 if (info.Length() <= 0 || !info[0]->IsFunction()) { | 5900 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg; |
5741 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCallbac
kInterfaceArg", "TestObject", "The callback provided as parameter 1 is not a fun
ction."), info.GetIsolate()); | 5901 { |
5742 return; | 5902 if (info.Length() <= 0 || !info[0]->IsFunction()) { |
| 5903 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCal
lbackInterfaceArg", "TestObject", "The callback provided as parameter 1 is not a
function."), info.GetIsolate()); |
| 5904 return; |
| 5905 } |
| 5906 testCallbackInterfaceArg = V8TestCallbackInterface::create(v8::Handle<v8
::Function>::Cast(info[0]), ScriptState::current(info.GetIsolate())); |
5743 } | 5907 } |
5744 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = V8TestCallbackInter
face::create(v8::Handle<v8::Function>::Cast(info[0]), ScriptState::current(info.
GetIsolate())); | |
5745 impl->voidMethodTestCallbackInterfaceArg(testCallbackInterfaceArg.release())
; | 5908 impl->voidMethodTestCallbackInterfaceArg(testCallbackInterfaceArg.release())
; |
5746 } | 5909 } |
5747 | 5910 |
5748 static void voidMethodTestCallbackInterfaceArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 5911 static void voidMethodTestCallbackInterfaceArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
5749 { | 5912 { |
5750 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5913 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5751 TestObjectV8Internal::voidMethodTestCallbackInterfaceArgMethod(info); | 5914 TestObjectV8Internal::voidMethodTestCallbackInterfaceArgMethod(info); |
5752 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5915 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5753 } | 5916 } |
5754 | 5917 |
5755 static void voidMethodOptionalTestCallbackInterfaceArgMethod(const v8::FunctionC
allbackInfo<v8::Value>& info) | 5918 static void voidMethodOptionalTestCallbackInterfaceArgMethod(const v8::FunctionC
allbackInfo<v8::Value>& info) |
5756 { | 5919 { |
5757 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5920 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5758 OwnPtr<TestCallbackInterface> optionalTestCallbackInterfaceArg; | 5921 OwnPtr<TestCallbackInterface> optionalTestCallbackInterfaceArg; |
5759 if (info.Length() > 0 && !isUndefinedOrNull(info[0])) { | 5922 { |
5760 if (!info[0]->IsFunction()) { | 5923 if (info.Length() > 0 && !isUndefinedOrNull(info[0])) { |
5761 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOptiona
lTestCallbackInterfaceArg", "TestObject", "The callback provided as parameter 1
is not a function."), info.GetIsolate()); | 5924 if (!info[0]->IsFunction()) { |
5762 return; | 5925 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOpt
ionalTestCallbackInterfaceArg", "TestObject", "The callback provided as paramete
r 1 is not a function."), info.GetIsolate()); |
| 5926 return; |
| 5927 } |
| 5928 optionalTestCallbackInterfaceArg = V8TestCallbackInterface::create(v
8::Handle<v8::Function>::Cast(info[0]), ScriptState::current(info.GetIsolate()))
; |
5763 } | 5929 } |
5764 optionalTestCallbackInterfaceArg = V8TestCallbackInterface::create(v8::H
andle<v8::Function>::Cast(info[0]), ScriptState::current(info.GetIsolate())); | |
5765 } | 5930 } |
5766 impl->voidMethodOptionalTestCallbackInterfaceArg(optionalTestCallbackInterfa
ceArg.release()); | 5931 impl->voidMethodOptionalTestCallbackInterfaceArg(optionalTestCallbackInterfa
ceArg.release()); |
5767 } | 5932 } |
5768 | 5933 |
5769 static void voidMethodOptionalTestCallbackInterfaceArgMethodCallback(const v8::F
unctionCallbackInfo<v8::Value>& info) | 5934 static void voidMethodOptionalTestCallbackInterfaceArgMethodCallback(const v8::F
unctionCallbackInfo<v8::Value>& info) |
5770 { | 5935 { |
5771 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5936 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5772 TestObjectV8Internal::voidMethodOptionalTestCallbackInterfaceArgMethod(info)
; | 5937 TestObjectV8Internal::voidMethodOptionalTestCallbackInterfaceArgMethod(info)
; |
5773 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5938 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5774 } | 5939 } |
5775 | 5940 |
5776 static void voidMethodTestCallbackInterfaceOrNullArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 5941 static void voidMethodTestCallbackInterfaceOrNullArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
5777 { | 5942 { |
5778 if (UNLIKELY(info.Length() < 1)) { | 5943 if (UNLIKELY(info.Length() < 1)) { |
5779 throwMinimumArityTypeErrorForMethod("voidMethodTestCallbackInterfaceOrNu
llArg", "TestObject", 1, info.Length(), info.GetIsolate()); | 5944 throwMinimumArityTypeErrorForMethod("voidMethodTestCallbackInterfaceOrNu
llArg", "TestObject", 1, info.Length(), info.GetIsolate()); |
5780 return; | 5945 return; |
5781 } | 5946 } |
5782 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5947 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5783 if (info.Length() <= 0 || !(info[0]->IsFunction() || info[0]->IsNull())) { | 5948 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg; |
5784 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCallbac
kInterfaceOrNullArg", "TestObject", "The callback provided as parameter 1 is not
a function."), info.GetIsolate()); | 5949 { |
5785 return; | 5950 if (info.Length() <= 0 || !(info[0]->IsFunction() || info[0]->IsNull()))
{ |
| 5951 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCal
lbackInterfaceOrNullArg", "TestObject", "The callback provided as parameter 1 is
not a function."), info.GetIsolate()); |
| 5952 return; |
| 5953 } |
| 5954 testCallbackInterfaceArg = info[0]->IsNull() ? nullptr : V8TestCallbackI
nterface::create(v8::Handle<v8::Function>::Cast(info[0]), ScriptState::current(i
nfo.GetIsolate())); |
5786 } | 5955 } |
5787 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = info[0]->IsNull() ?
nullptr : V8TestCallbackInterface::create(v8::Handle<v8::Function>::Cast(info[0
]), ScriptState::current(info.GetIsolate())); | |
5788 impl->voidMethodTestCallbackInterfaceOrNullArg(testCallbackInterfaceArg.rele
ase()); | 5956 impl->voidMethodTestCallbackInterfaceOrNullArg(testCallbackInterfaceArg.rele
ase()); |
5789 } | 5957 } |
5790 | 5958 |
5791 static void voidMethodTestCallbackInterfaceOrNullArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) | 5959 static void voidMethodTestCallbackInterfaceOrNullArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
5792 { | 5960 { |
5793 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5961 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5794 TestObjectV8Internal::voidMethodTestCallbackInterfaceOrNullArgMethod(info); | 5962 TestObjectV8Internal::voidMethodTestCallbackInterfaceOrNullArgMethod(info); |
5795 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5963 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5796 } | 5964 } |
5797 | 5965 |
(...skipping 10 matching lines...) Expand all Loading... |
5808 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5976 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5809 } | 5977 } |
5810 | 5978 |
5811 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 5979 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
5812 { | 5980 { |
5813 if (UNLIKELY(info.Length() < 1)) { | 5981 if (UNLIKELY(info.Length() < 1)) { |
5814 throwMinimumArityTypeErrorForMethod("voidMethodTestEnumArg", "TestObject
", 1, info.Length(), info.GetIsolate()); | 5982 throwMinimumArityTypeErrorForMethod("voidMethodTestEnumArg", "TestObject
", 1, info.Length(), info.GetIsolate()); |
5815 return; | 5983 return; |
5816 } | 5984 } |
5817 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5985 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5818 TOSTRING_VOID(V8StringResource<>, testEnumTypeArg, info[0]); | 5986 V8StringResource<> testEnumTypeArg; |
5819 String string = testEnumTypeArg; | 5987 { |
5820 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) { | 5988 v8::TryCatch block; |
5821 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg
", "TestObject", "parameter 1 ('" + string + "') is not a valid enum value."), i
nfo.GetIsolate()); | 5989 TOSTRING_VOID_INTERNAL_RETHROW(testEnumTypeArg, info[0], block); |
5822 return; | 5990 String string = testEnumTypeArg; |
| 5991 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" |
| string == "EnumValue3")) { |
| 5992 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnu
mArg", "TestObject", "parameter 1 ('" + string + "') is not a valid enum value."
), info.GetIsolate()); |
| 5993 block.ReThrow(); |
| 5994 return; |
| 5995 } |
5823 } | 5996 } |
5824 impl->voidMethodTestEnumArg(testEnumTypeArg); | 5997 impl->voidMethodTestEnumArg(testEnumTypeArg); |
5825 } | 5998 } |
5826 | 5999 |
5827 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 6000 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
5828 { | 6001 { |
5829 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6002 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5830 TestObjectV8Internal::voidMethodTestEnumArgMethod(info); | 6003 TestObjectV8Internal::voidMethodTestEnumArgMethod(info); |
5831 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6004 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5832 } | 6005 } |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5896 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6069 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5897 } | 6070 } |
5898 | 6071 |
5899 static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 6072 static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
5900 { | 6073 { |
5901 if (UNLIKELY(info.Length() < 1)) { | 6074 if (UNLIKELY(info.Length() < 1)) { |
5902 throwMinimumArityTypeErrorForMethod("voidMethodDictionaryArg", "TestObje
ct", 1, info.Length(), info.GetIsolate()); | 6075 throwMinimumArityTypeErrorForMethod("voidMethodDictionaryArg", "TestObje
ct", 1, info.Length(), info.GetIsolate()); |
5903 return; | 6076 return; |
5904 } | 6077 } |
5905 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6078 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5906 TONATIVE_VOID(Dictionary, dictionaryArg, Dictionary(info[0], info.GetIsolate
())); | 6079 Dictionary dictionaryArg; |
5907 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) { | 6080 { |
5908 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryA
rg", "TestObject", "parameter 1 ('dictionaryArg') is not an object."), info.GetI
solate()); | 6081 v8::TryCatch block; |
5909 return; | 6082 TONATIVE_VOID_INTERNAL(dictionaryArg, Dictionary(info[0], info.GetIsolat
e())); |
| 6083 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) { |
| 6084 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDiction
aryArg", "TestObject", "parameter 1 ('dictionaryArg') is not an object."), info.
GetIsolate()); |
| 6085 block.ReThrow(); |
| 6086 return; |
| 6087 } |
5910 } | 6088 } |
5911 impl->voidMethodDictionaryArg(dictionaryArg); | 6089 impl->voidMethodDictionaryArg(dictionaryArg); |
5912 } | 6090 } |
5913 | 6091 |
5914 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 6092 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
5915 { | 6093 { |
5916 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6094 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5917 TestObjectV8Internal::voidMethodDictionaryArgMethod(info); | 6095 TestObjectV8Internal::voidMethodDictionaryArgMethod(info); |
5918 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6096 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5919 } | 6097 } |
5920 | 6098 |
5921 static void voidMethodEventListenerArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 6099 static void voidMethodEventListenerArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
5922 { | 6100 { |
5923 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE
ventListenerArg", "TestObject", info.Holder(), info.GetIsolate()); | 6101 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE
ventListenerArg", "TestObject", info.Holder(), info.GetIsolate()); |
5924 if (UNLIKELY(info.Length() < 1)) { | 6102 if (UNLIKELY(info.Length() < 1)) { |
5925 throwMinimumArityTypeError(exceptionState, 1, info.Length()); | 6103 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
5926 return; | 6104 return; |
5927 } | 6105 } |
5928 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6106 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5929 RefPtr<EventListener> eventListenerArg = V8EventListenerList::getEventListen
er(ScriptState::current(info.GetIsolate()), info[1], false, ListenerFindOrCreate
); | 6107 RefPtr<EventListener> eventListenerArg; |
| 6108 { |
| 6109 eventListenerArg = V8EventListenerList::getEventListener(ScriptState::cu
rrent(info.GetIsolate()), info[1], false, ListenerFindOrCreate); |
| 6110 } |
5930 impl->voidMethodEventListenerArg(eventListenerArg); | 6111 impl->voidMethodEventListenerArg(eventListenerArg); |
5931 if (listener && !impl->toNode()) | 6112 if (listener && !impl->toNode()) |
5932 removeHiddenValueFromArray(info.Holder(), info[1], V8TestObject::eventLi
stenerCacheIndex, info.GetIsolate()); | 6113 removeHiddenValueFromArray(info.Holder(), info[1], V8TestObject::eventLi
stenerCacheIndex, info.GetIsolate()); |
5933 } | 6114 } |
5934 | 6115 |
5935 static void voidMethodEventListenerArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 6116 static void voidMethodEventListenerArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
5936 { | 6117 { |
5937 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6118 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5938 TestObjectV8Internal::voidMethodEventListenerArgMethod(info); | 6119 TestObjectV8Internal::voidMethodEventListenerArgMethod(info); |
5939 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6120 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5940 } | 6121 } |
5941 | 6122 |
5942 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 6123 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
5943 { | 6124 { |
5944 if (UNLIKELY(info.Length() < 1)) { | 6125 if (UNLIKELY(info.Length() < 1)) { |
5945 throwMinimumArityTypeErrorForMethod("voidMethodNodeFilterArg", "TestObje
ct", 1, info.Length(), info.GetIsolate()); | 6126 throwMinimumArityTypeErrorForMethod("voidMethodNodeFilterArg", "TestObje
ct", 1, info.Length(), info.GetIsolate()); |
5946 return; | 6127 return; |
5947 } | 6128 } |
5948 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6129 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5949 TONATIVE_VOID(RefPtrWillBeRawPtr<NodeFilter>, nodeFilterArg, toNodeFilter(in
fo[0], info.Holder(), info.GetIsolate())); | 6130 RefPtrWillBeRawPtr<NodeFilter> nodeFilterArg; |
| 6131 { |
| 6132 v8::TryCatch block; |
| 6133 TONATIVE_VOID_INTERNAL(nodeFilterArg, toNodeFilter(info[0], info.Holder(
), info.GetIsolate())); |
| 6134 } |
5950 impl->voidMethodNodeFilterArg(nodeFilterArg.release()); | 6135 impl->voidMethodNodeFilterArg(nodeFilterArg.release()); |
5951 } | 6136 } |
5952 | 6137 |
5953 static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 6138 static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
5954 { | 6139 { |
5955 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6140 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5956 TestObjectV8Internal::voidMethodNodeFilterArgMethod(info); | 6141 TestObjectV8Internal::voidMethodNodeFilterArgMethod(info); |
5957 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6142 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5958 } | 6143 } |
5959 | 6144 |
5960 static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) | 6145 static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
5961 { | 6146 { |
5962 if (UNLIKELY(info.Length() < 1)) { | 6147 if (UNLIKELY(info.Length() < 1)) { |
5963 throwMinimumArityTypeErrorForMethod("voidMethodPromiseArg", "TestObject"
, 1, info.Length(), info.GetIsolate()); | 6148 throwMinimumArityTypeErrorForMethod("voidMethodPromiseArg", "TestObject"
, 1, info.Length(), info.GetIsolate()); |
5964 return; | 6149 return; |
5965 } | 6150 } |
5966 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6151 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5967 TONATIVE_VOID(ScriptPromise, promiseArg, ScriptPromise(ScriptState::current(
info.GetIsolate()), info[0])); | 6152 ScriptPromise promiseArg; |
5968 if (!promiseArg.isUndefinedOrNull() && !promiseArg.isObject()) { | 6153 { |
5969 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg"
, "TestObject", "parameter 1 ('promiseArg') is not an object."), info.GetIsolate
()); | 6154 v8::TryCatch block; |
5970 return; | 6155 TONATIVE_VOID_INTERNAL(promiseArg, ScriptPromise(ScriptState::current(in
fo.GetIsolate()), info[0])); |
| 6156 if (!promiseArg.isUndefinedOrNull() && !promiseArg.isObject()) { |
| 6157 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromise
Arg", "TestObject", "parameter 1 ('promiseArg') is not an object."), info.GetIso
late()); |
| 6158 block.ReThrow(); |
| 6159 return; |
| 6160 } |
5971 } | 6161 } |
5972 impl->voidMethodPromiseArg(promiseArg); | 6162 impl->voidMethodPromiseArg(promiseArg); |
5973 } | 6163 } |
5974 | 6164 |
5975 static void voidMethodPromiseArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) | 6165 static void voidMethodPromiseArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
5976 { | 6166 { |
5977 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6167 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5978 TestObjectV8Internal::voidMethodPromiseArgMethod(info); | 6168 TestObjectV8Internal::voidMethodPromiseArgMethod(info); |
5979 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6169 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5980 } | 6170 } |
5981 | 6171 |
5982 static void voidMethodSerializedScriptValueArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 6172 static void voidMethodSerializedScriptValueArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
5983 { | 6173 { |
5984 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
erializedScriptValueArg", "TestObject", info.Holder(), info.GetIsolate()); | 6174 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
erializedScriptValueArg", "TestObject", info.Holder(), info.GetIsolate()); |
5985 if (UNLIKELY(info.Length() < 1)) { | 6175 if (UNLIKELY(info.Length() < 1)) { |
5986 throwMinimumArityTypeError(exceptionState, 1, info.Length()); | 6176 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
5987 return; | 6177 return; |
5988 } | 6178 } |
5989 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6179 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5990 RefPtr<SerializedScriptValue> serializedScriptValueArg = SerializedScriptVal
ue::create(info[0], 0, 0, exceptionState, info.GetIsolate()); | 6180 RefPtr<SerializedScriptValue> serializedScriptValueArg; |
5991 if (exceptionState.throwIfNeeded()) | 6181 { |
5992 return; | 6182 serializedScriptValueArg = SerializedScriptValue::create(info[0], 0, 0,
exceptionState, info.GetIsolate()); |
| 6183 if (exceptionState.throwIfNeeded()) |
| 6184 return; |
| 6185 } |
5993 impl->voidMethodSerializedScriptValueArg(serializedScriptValueArg); | 6186 impl->voidMethodSerializedScriptValueArg(serializedScriptValueArg); |
5994 } | 6187 } |
5995 | 6188 |
5996 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 6189 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
5997 { | 6190 { |
5998 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6191 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5999 TestObjectV8Internal::voidMethodSerializedScriptValueArgMethod(info); | 6192 TestObjectV8Internal::voidMethodSerializedScriptValueArgMethod(info); |
6000 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6193 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6001 } | 6194 } |
6002 | 6195 |
6003 static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) | 6196 static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) |
6004 { | 6197 { |
6005 if (UNLIKELY(info.Length() < 1)) { | 6198 if (UNLIKELY(info.Length() < 1)) { |
6006 throwMinimumArityTypeErrorForMethod("voidMethodXPathNSResolverArg", "Tes
tObject", 1, info.Length(), info.GetIsolate()); | 6199 throwMinimumArityTypeErrorForMethod("voidMethodXPathNSResolverArg", "Tes
tObject", 1, info.Length(), info.GetIsolate()); |
6007 return; | 6200 return; |
6008 } | 6201 } |
6009 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6202 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6010 TONATIVE_VOID(RefPtrWillBeRawPtr<XPathNSResolver>, xPathNSResolverArg, toXPa
thNSResolver(info[0], info.GetIsolate())); | 6203 RefPtrWillBeRawPtr<XPathNSResolver> xPathNSResolverArg; |
| 6204 { |
| 6205 v8::TryCatch block; |
| 6206 TONATIVE_VOID_INTERNAL(xPathNSResolverArg, toXPathNSResolver(info[0], in
fo.GetIsolate())); |
| 6207 } |
6011 impl->voidMethodXPathNSResolverArg(xPathNSResolverArg.release()); | 6208 impl->voidMethodXPathNSResolverArg(xPathNSResolverArg.release()); |
6012 } | 6209 } |
6013 | 6210 |
6014 static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 6211 static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
6015 { | 6212 { |
6016 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6213 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6017 TestObjectV8Internal::voidMethodXPathNSResolverArgMethod(info); | 6214 TestObjectV8Internal::voidMethodXPathNSResolverArgMethod(info); |
6018 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6215 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6019 } | 6216 } |
6020 | 6217 |
6021 static void voidMethodDictionarySequenceArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 6218 static void voidMethodDictionarySequenceArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
6022 { | 6219 { |
6023 if (UNLIKELY(info.Length() < 1)) { | 6220 if (UNLIKELY(info.Length() < 1)) { |
6024 throwMinimumArityTypeErrorForMethod("voidMethodDictionarySequenceArg", "
TestObject", 1, info.Length(), info.GetIsolate()); | 6221 throwMinimumArityTypeErrorForMethod("voidMethodDictionarySequenceArg", "
TestObject", 1, info.Length(), info.GetIsolate()); |
6025 return; | 6222 return; |
6026 } | 6223 } |
6027 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6224 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6028 TONATIVE_VOID(Vector<Dictionary>, dictionarySequenceArg, toNativeArray<Dicti
onary>(info[0], 1, info.GetIsolate())); | 6225 Vector<Dictionary> dictionarySequenceArg; |
| 6226 { |
| 6227 v8::TryCatch block; |
| 6228 TONATIVE_VOID_INTERNAL(dictionarySequenceArg, toNativeArray<Dictionary>(
info[0], 1, info.GetIsolate())); |
| 6229 } |
6029 impl->voidMethodDictionarySequenceArg(dictionarySequenceArg); | 6230 impl->voidMethodDictionarySequenceArg(dictionarySequenceArg); |
6030 } | 6231 } |
6031 | 6232 |
6032 static void voidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 6233 static void voidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
6033 { | 6234 { |
6034 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6235 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6035 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info); | 6236 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info); |
6036 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6237 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6037 } | 6238 } |
6038 | 6239 |
6039 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 6240 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
6040 { | 6241 { |
6041 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
tringArgLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 6242 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
tringArgLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
6042 if (UNLIKELY(info.Length() < 2)) { | 6243 if (UNLIKELY(info.Length() < 2)) { |
6043 throwMinimumArityTypeError(exceptionState, 2, info.Length()); | 6244 throwMinimumArityTypeError(exceptionState, 2, info.Length()); |
6044 return; | 6245 return; |
6045 } | 6246 } |
6046 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6247 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6047 TOSTRING_VOID(V8StringResource<>, stringArg, info[0]); | 6248 V8StringResource<> stringArg; |
6048 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[1], exceptionState),
exceptionState); | 6249 int longArg; |
| 6250 { |
| 6251 v8::TryCatch block; |
| 6252 TOSTRING_VOID_INTERNAL_RETHROW(stringArg, info[0], block); |
| 6253 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio
nState), exceptionState); |
| 6254 } |
6049 impl->voidMethodStringArgLongArg(stringArg, longArg); | 6255 impl->voidMethodStringArgLongArg(stringArg, longArg); |
6050 } | 6256 } |
6051 | 6257 |
6052 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 6258 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
6053 { | 6259 { |
6054 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6260 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6055 TestObjectV8Internal::voidMethodStringArgLongArgMethod(info); | 6261 TestObjectV8Internal::voidMethodStringArgLongArgMethod(info); |
6056 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6262 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6057 } | 6263 } |
6058 | 6264 |
6059 static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 6265 static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
6060 { | 6266 { |
6061 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6267 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6062 if (UNLIKELY(info.Length() <= 0)) { | 6268 V8StringResource<> optionalStringArg; |
6063 impl->voidMethodOptionalStringArg(); | 6269 { |
6064 return; | 6270 if (UNLIKELY(info.Length() <= 0)) { |
| 6271 impl->voidMethodOptionalStringArg(); |
| 6272 return; |
| 6273 } |
| 6274 TOSTRING_VOID_INTERNAL(optionalStringArg, info[0]); |
6065 } | 6275 } |
6066 TOSTRING_VOID(V8StringResource<>, optionalStringArg, info[0]); | |
6067 impl->voidMethodOptionalStringArg(optionalStringArg); | 6276 impl->voidMethodOptionalStringArg(optionalStringArg); |
6068 } | 6277 } |
6069 | 6278 |
6070 static void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 6279 static void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
6071 { | 6280 { |
6072 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6281 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6073 TestObjectV8Internal::voidMethodOptionalStringArgMethod(info); | 6282 TestObjectV8Internal::voidMethodOptionalStringArgMethod(info); |
6074 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6283 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6075 } | 6284 } |
6076 | 6285 |
6077 static void voidMethodOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 6286 static void voidMethodOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
6078 { | 6287 { |
6079 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6288 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6080 if (UNLIKELY(info.Length() <= 0)) { | 6289 TestInterfaceEmpty* optionalTestInterfaceEmptyArg; |
6081 impl->voidMethodOptionalTestInterfaceEmptyArg(); | 6290 { |
6082 return; | 6291 v8::TryCatch block; |
| 6292 if (UNLIKELY(info.Length() <= 0)) { |
| 6293 impl->voidMethodOptionalTestInterfaceEmptyArg(); |
| 6294 return; |
| 6295 } |
| 6296 TONATIVE_VOID_INTERNAL(optionalTestInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
6083 } | 6297 } |
6084 TONATIVE_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmptyArg, V8TestInte
rfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | |
6085 impl->voidMethodOptionalTestInterfaceEmptyArg(optionalTestInterfaceEmptyArg)
; | 6298 impl->voidMethodOptionalTestInterfaceEmptyArg(optionalTestInterfaceEmptyArg)
; |
6086 } | 6299 } |
6087 | 6300 |
6088 static void voidMethodOptionalTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 6301 static void voidMethodOptionalTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
6089 { | 6302 { |
6090 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6303 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6091 TestObjectV8Internal::voidMethodOptionalTestInterfaceEmptyArgMethod(info); | 6304 TestObjectV8Internal::voidMethodOptionalTestInterfaceEmptyArgMethod(info); |
6092 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6305 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6093 } | 6306 } |
6094 | 6307 |
6095 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 6308 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
6096 { | 6309 { |
6097 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 6310 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
6098 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6311 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6099 if (UNLIKELY(info.Length() <= 0)) { | 6312 int optionalLongArg; |
6100 impl->voidMethodOptionalLongArg(); | 6313 { |
6101 return; | 6314 v8::TryCatch block; |
| 6315 if (UNLIKELY(info.Length() <= 0)) { |
| 6316 impl->voidMethodOptionalLongArg(); |
| 6317 return; |
| 6318 } |
| 6319 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0],
exceptionState), exceptionState); |
6102 } | 6320 } |
6103 TONATIVE_VOID_EXCEPTIONSTATE(int, optionalLongArg, toInt32(info[0], exceptio
nState), exceptionState); | |
6104 impl->voidMethodOptionalLongArg(optionalLongArg); | 6321 impl->voidMethodOptionalLongArg(optionalLongArg); |
6105 } | 6322 } |
6106 | 6323 |
6107 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 6324 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
6108 { | 6325 { |
6109 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6326 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6110 TestObjectV8Internal::voidMethodOptionalLongArgMethod(info); | 6327 TestObjectV8Internal::voidMethodOptionalLongArgMethod(info); |
6111 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6328 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6112 } | 6329 } |
6113 | 6330 |
6114 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 6331 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
6115 { | 6332 { |
6116 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho
dOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 6333 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho
dOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
6117 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6334 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6118 if (UNLIKELY(info.Length() <= 0)) { | 6335 int optionalLongArg; |
6119 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(), info.G
etIsolate()); | 6336 { |
6120 return; | 6337 v8::TryCatch block; |
| 6338 if (UNLIKELY(info.Length() <= 0)) { |
| 6339 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(), in
fo.GetIsolate()); |
| 6340 return; |
| 6341 } |
| 6342 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0],
exceptionState), exceptionState); |
6121 } | 6343 } |
6122 TONATIVE_VOID_EXCEPTIONSTATE(int, optionalLongArg, toInt32(info[0], exceptio
nState), exceptionState); | |
6123 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(optionalLongA
rg), info.GetIsolate()); | 6344 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(optionalLongA
rg), info.GetIsolate()); |
6124 } | 6345 } |
6125 | 6346 |
6126 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 6347 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
6127 { | 6348 { |
6128 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6349 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6129 TestObjectV8Internal::stringMethodOptionalLongArgMethod(info); | 6350 TestObjectV8Internal::stringMethodOptionalLongArgMethod(info); |
6130 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6351 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6131 } | 6352 } |
6132 | 6353 |
6133 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 6354 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
6134 { | 6355 { |
6135 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa
ceEmptyMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 6356 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa
ceEmptyMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
6136 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6357 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6137 if (UNLIKELY(info.Length() <= 0)) { | 6358 int optionalLongArg; |
6138 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg()); | 6359 { |
6139 return; | 6360 v8::TryCatch block; |
| 6361 if (UNLIKELY(info.Length() <= 0)) { |
| 6362 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg
()); |
| 6363 return; |
| 6364 } |
| 6365 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0],
exceptionState), exceptionState); |
6140 } | 6366 } |
6141 TONATIVE_VOID_EXCEPTIONSTATE(int, optionalLongArg, toInt32(info[0], exceptio
nState), exceptionState); | |
6142 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg(optiona
lLongArg)); | 6367 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg(optiona
lLongArg)); |
6143 } | 6368 } |
6144 | 6369 |
6145 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 6370 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
6146 { | 6371 { |
6147 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6372 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6148 TestObjectV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(info); | 6373 TestObjectV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(info); |
6149 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6374 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6150 } | 6375 } |
6151 | 6376 |
6152 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 6377 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
6153 { | 6378 { |
6154 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodO
ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 6379 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodO
ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
6155 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6380 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6156 if (UNLIKELY(info.Length() <= 0)) { | 6381 int optionalLongArg; |
6157 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg()); | 6382 { |
6158 return; | 6383 v8::TryCatch block; |
| 6384 if (UNLIKELY(info.Length() <= 0)) { |
| 6385 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg()); |
| 6386 return; |
| 6387 } |
| 6388 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0],
exceptionState), exceptionState); |
6159 } | 6389 } |
6160 TONATIVE_VOID_EXCEPTIONSTATE(int, optionalLongArg, toInt32(info[0], exceptio
nState), exceptionState); | |
6161 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg(optionalLongArg)); | 6390 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg(optionalLongArg)); |
6162 } | 6391 } |
6163 | 6392 |
6164 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 6393 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
6165 { | 6394 { |
6166 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6395 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6167 TestObjectV8Internal::longMethodOptionalLongArgMethod(info); | 6396 TestObjectV8Internal::longMethodOptionalLongArgMethod(info); |
6168 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6397 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6169 } | 6398 } |
6170 | 6399 |
6171 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) | 6400 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
6172 { | 6401 { |
6173 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 6402 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
6174 if (UNLIKELY(info.Length() < 1)) { | 6403 if (UNLIKELY(info.Length() < 1)) { |
6175 throwMinimumArityTypeError(exceptionState, 1, info.Length()); | 6404 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
6176 return; | 6405 return; |
6177 } | 6406 } |
6178 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6407 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6179 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState),
exceptionState); | 6408 int longArg; |
6180 if (UNLIKELY(info.Length() <= 1)) { | 6409 int optionalLongArg; |
6181 impl->voidMethodLongArgOptionalLongArg(longArg); | 6410 { |
6182 return; | 6411 v8::TryCatch block; |
| 6412 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); |
| 6413 if (UNLIKELY(info.Length() <= 1)) { |
| 6414 impl->voidMethodLongArgOptionalLongArg(longArg); |
| 6415 return; |
| 6416 } |
| 6417 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[1],
exceptionState), exceptionState); |
6183 } | 6418 } |
6184 TONATIVE_VOID_EXCEPTIONSTATE(int, optionalLongArg, toInt32(info[1], exceptio
nState), exceptionState); | |
6185 impl->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg); | 6419 impl->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg); |
6186 } | 6420 } |
6187 | 6421 |
6188 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 6422 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
6189 { | 6423 { |
6190 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6424 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6191 TestObjectV8Internal::voidMethodLongArgOptionalLongArgMethod(info); | 6425 TestObjectV8Internal::voidMethodLongArgOptionalLongArgMethod(info); |
6192 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6426 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6193 } | 6427 } |
6194 | 6428 |
6195 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) | 6429 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) |
6196 { | 6430 { |
6197 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsol
ate()); | 6431 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsol
ate()); |
6198 if (UNLIKELY(info.Length() < 1)) { | 6432 if (UNLIKELY(info.Length() < 1)) { |
6199 throwMinimumArityTypeError(exceptionState, 1, info.Length()); | 6433 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
6200 return; | 6434 return; |
6201 } | 6435 } |
6202 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6436 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6203 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState),
exceptionState); | 6437 int longArg; |
6204 if (UNLIKELY(info.Length() <= 1)) { | 6438 int optionalLongArg1; |
6205 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg); | 6439 int optionalLongArg2; |
6206 return; | 6440 { |
| 6441 v8::TryCatch block; |
| 6442 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); |
| 6443 if (UNLIKELY(info.Length() <= 1)) { |
| 6444 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg); |
| 6445 return; |
| 6446 } |
| 6447 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg1, toInt32(info[1],
exceptionState), exceptionState); |
| 6448 if (UNLIKELY(info.Length() <= 2)) { |
| 6449 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optio
nalLongArg1); |
| 6450 return; |
| 6451 } |
| 6452 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg2, toInt32(info[2],
exceptionState), exceptionState); |
6207 } | 6453 } |
6208 TONATIVE_VOID_EXCEPTIONSTATE(int, optionalLongArg1, toInt32(info[1], excepti
onState), exceptionState); | |
6209 if (UNLIKELY(info.Length() <= 2)) { | |
6210 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalL
ongArg1); | |
6211 return; | |
6212 } | |
6213 TONATIVE_VOID_EXCEPTIONSTATE(int, optionalLongArg2, toInt32(info[2], excepti
onState), exceptionState); | |
6214 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongA
rg1, optionalLongArg2); | 6454 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongA
rg1, optionalLongArg2); |
6215 } | 6455 } |
6216 | 6456 |
6217 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) | 6457 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
6218 { | 6458 { |
6219 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6459 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6220 TestObjectV8Internal::voidMethodLongArgOptionalLongArgOptionalLongArgMethod(
info); | 6460 TestObjectV8Internal::voidMethodLongArgOptionalLongArgOptionalLongArgMethod(
info); |
6221 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6461 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6222 } | 6462 } |
6223 | 6463 |
6224 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 6464 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
6225 { | 6465 { |
6226 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsola
te()); | 6466 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsola
te()); |
6227 if (UNLIKELY(info.Length() < 1)) { | 6467 if (UNLIKELY(info.Length() < 1)) { |
6228 throwMinimumArityTypeError(exceptionState, 1, info.Length()); | 6468 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
6229 return; | 6469 return; |
6230 } | 6470 } |
6231 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6471 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6232 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState),
exceptionState); | 6472 int longArg; |
6233 if (UNLIKELY(info.Length() <= 1)) { | 6473 TestInterfaceEmpty* optionalTestInterfaceEmpty; |
6234 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg); | 6474 { |
6235 return; | 6475 v8::TryCatch block; |
| 6476 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); |
| 6477 if (UNLIKELY(info.Length() <= 1)) { |
| 6478 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg); |
| 6479 return; |
| 6480 } |
| 6481 TONATIVE_VOID_INTERNAL(optionalTestInterfaceEmpty, V8TestInterfaceEmpty:
:toNativeWithTypeCheck(info.GetIsolate(), info[1])); |
6236 } | 6482 } |
6237 TONATIVE_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInterfa
ceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[1])); | |
6238 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestIn
terfaceEmpty); | 6483 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestIn
terfaceEmpty); |
6239 } | 6484 } |
6240 | 6485 |
6241 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) | 6486 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) |
6242 { | 6487 { |
6243 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6488 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6244 TestObjectV8Internal::voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(i
nfo); | 6489 TestObjectV8Internal::voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(i
nfo); |
6245 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6490 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6246 } | 6491 } |
6247 | 6492 |
6248 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 6493 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
6249 { | 6494 { |
6250 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceEmptyArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsola
te()); | 6495 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceEmptyArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsola
te()); |
6251 if (UNLIKELY(info.Length() < 1)) { | 6496 if (UNLIKELY(info.Length() < 1)) { |
6252 throwMinimumArityTypeError(exceptionState, 1, info.Length()); | 6497 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
6253 return; | 6498 return; |
6254 } | 6499 } |
6255 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6500 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6256 TONATIVE_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInterfa
ceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 6501 TestInterfaceEmpty* optionalTestInterfaceEmpty; |
6257 if (UNLIKELY(info.Length() <= 1)) { | 6502 int longArg; |
6258 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfa
ceEmpty); | 6503 { |
6259 return; | 6504 v8::TryCatch block; |
| 6505 TONATIVE_VOID_INTERNAL(optionalTestInterfaceEmpty, V8TestInterfaceEmpty:
:toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
| 6506 if (UNLIKELY(info.Length() <= 1)) { |
| 6507 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInt
erfaceEmpty); |
| 6508 return; |
| 6509 } |
| 6510 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio
nState), exceptionState); |
6260 } | 6511 } |
6261 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[1], exceptionState),
exceptionState); | |
6262 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEm
pty, longArg); | 6512 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEm
pty, longArg); |
6263 } | 6513 } |
6264 | 6514 |
6265 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) | 6515 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) |
6266 { | 6516 { |
6267 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6517 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6268 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(i
nfo); | 6518 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(i
nfo); |
6269 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6519 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6270 } | 6520 } |
6271 | 6521 |
6272 static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 6522 static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
6273 { | 6523 { |
6274 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6524 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6275 TONATIVE_VOID(Dictionary, optionalDictionaryArg, Dictionary(info[0], info.Ge
tIsolate())); | 6525 Dictionary optionalDictionaryArg; |
6276 if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg.isO
bject()) { | 6526 { |
6277 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOptionalDic
tionaryArg", "TestObject", "parameter 1 ('optionalDictionaryArg') is not an obje
ct."), info.GetIsolate()); | 6527 v8::TryCatch block; |
6278 return; | 6528 TONATIVE_VOID_INTERNAL(optionalDictionaryArg, Dictionary(info[0], info.G
etIsolate())); |
| 6529 if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg
.isObject()) { |
| 6530 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOptiona
lDictionaryArg", "TestObject", "parameter 1 ('optionalDictionaryArg') is not an
object."), info.GetIsolate()); |
| 6531 block.ReThrow(); |
| 6532 return; |
| 6533 } |
6279 } | 6534 } |
6280 impl->voidMethodOptionalDictionaryArg(optionalDictionaryArg); | 6535 impl->voidMethodOptionalDictionaryArg(optionalDictionaryArg); |
6281 } | 6536 } |
6282 | 6537 |
6283 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 6538 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
6284 { | 6539 { |
6285 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6540 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6286 TestObjectV8Internal::voidMethodOptionalDictionaryArgMethod(info); | 6541 TestObjectV8Internal::voidMethodOptionalDictionaryArgMethod(info); |
6287 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6542 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6288 } | 6543 } |
6289 | 6544 |
6290 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 6545 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
6291 { | 6546 { |
6292 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6547 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6293 TONATIVE_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String>(
info, 0)); | 6548 Vector<String> variadicStringArgs; |
| 6549 { |
| 6550 v8::TryCatch block; |
| 6551 TONATIVE_VOID_INTERNAL(variadicStringArgs, toNativeArguments<String>(inf
o, 0)); |
| 6552 } |
6294 impl->voidMethodVariadicStringArg(variadicStringArgs); | 6553 impl->voidMethodVariadicStringArg(variadicStringArgs); |
6295 } | 6554 } |
6296 | 6555 |
6297 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 6556 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
6298 { | 6557 { |
6299 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6558 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6300 TestObjectV8Internal::voidMethodVariadicStringArgMethod(info); | 6559 TestObjectV8Internal::voidMethodVariadicStringArgMethod(info); |
6301 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6560 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6302 } | 6561 } |
6303 | 6562 |
6304 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 6563 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
6305 { | 6564 { |
6306 if (UNLIKELY(info.Length() < 1)) { | 6565 if (UNLIKELY(info.Length() < 1)) { |
6307 throwMinimumArityTypeErrorForMethod("voidMethodStringArgVariadicStringAr
g", "TestObject", 1, info.Length(), info.GetIsolate()); | 6566 throwMinimumArityTypeErrorForMethod("voidMethodStringArgVariadicStringAr
g", "TestObject", 1, info.Length(), info.GetIsolate()); |
6308 return; | 6567 return; |
6309 } | 6568 } |
6310 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6569 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6311 TOSTRING_VOID(V8StringResource<>, stringArg, info[0]); | 6570 V8StringResource<> stringArg; |
6312 TONATIVE_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String>(
info, 1)); | 6571 Vector<String> variadicStringArgs; |
| 6572 { |
| 6573 v8::TryCatch block; |
| 6574 TOSTRING_VOID_INTERNAL_RETHROW(stringArg, info[0], block); |
| 6575 TONATIVE_VOID_INTERNAL(variadicStringArgs, toNativeArguments<String>(inf
o, 1)); |
| 6576 } |
6313 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); | 6577 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); |
6314 } | 6578 } |
6315 | 6579 |
6316 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 6580 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
6317 { | 6581 { |
6318 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6582 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6319 TestObjectV8Internal::voidMethodStringArgVariadicStringArgMethod(info); | 6583 TestObjectV8Internal::voidMethodStringArgVariadicStringArgMethod(info); |
6320 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6584 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6321 } | 6585 } |
6322 | 6586 |
6323 static void voidMethodVariadicTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 6587 static void voidMethodVariadicTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
6324 { | 6588 { |
6325 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6589 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6326 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; | 6590 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; |
6327 for (int i = 0; i < info.Length(); ++i) { | 6591 { |
6328 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) { | 6592 for (int i = 0; i < info.Length(); ++i) { |
6329 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVariadi
cTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestInterfac
eEmpty'."), info.GetIsolate()); | 6593 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate()))
{ |
6330 return; | 6594 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVar
iadicTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestInte
rfaceEmpty'."), info.GetIsolate()); |
| 6595 return; |
| 6596 } |
| 6597 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative
(v8::Handle<v8::Object>::Cast(info[i]))); |
6331 } | 6598 } |
6332 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative(v8:
:Handle<v8::Object>::Cast(info[i]))); | |
6333 } | 6599 } |
6334 impl->voidMethodVariadicTestInterfaceEmptyArg(variadicTestInterfaceEmptyArgs
); | 6600 impl->voidMethodVariadicTestInterfaceEmptyArg(variadicTestInterfaceEmptyArgs
); |
6335 } | 6601 } |
6336 | 6602 |
6337 static void voidMethodVariadicTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 6603 static void voidMethodVariadicTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
6338 { | 6604 { |
6339 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6605 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6340 TestObjectV8Internal::voidMethodVariadicTestInterfaceEmptyArgMethod(info); | 6606 TestObjectV8Internal::voidMethodVariadicTestInterfaceEmptyArgMethod(info); |
6341 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6607 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6342 } | 6608 } |
6343 | 6609 |
6344 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(c
onst v8::FunctionCallbackInfo<v8::Value>& info) | 6610 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
6345 { | 6611 { |
6346 if (UNLIKELY(info.Length() < 1)) { | 6612 if (UNLIKELY(info.Length() < 1)) { |
6347 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceEmptyArgVari
adicTestInterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate()); | 6613 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceEmptyArgVari
adicTestInterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate()); |
6348 return; | 6614 return; |
6349 } | 6615 } |
6350 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6616 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6351 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 6617 TestInterfaceEmpty* testInterfaceEmptyArg; |
6352 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; | 6618 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; |
6353 for (int i = 1; i < info.Length(); ++i) { | 6619 { |
6354 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) { | 6620 v8::TryCatch block; |
6355 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInt
erfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObject", "parameter 2 is not
of type 'TestInterfaceEmpty'."), info.GetIsolate()); | 6621 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa
tiveWithTypeCheck(info.GetIsolate(), info[0])); |
6356 return; | 6622 for (int i = 1; i < info.Length(); ++i) { |
| 6623 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate()))
{ |
| 6624 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTes
tInterfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObject", "parameter 2 is
not of type 'TestInterfaceEmpty'."), info.GetIsolate()); |
| 6625 block.ReThrow(); |
| 6626 return; |
| 6627 } |
| 6628 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative
(v8::Handle<v8::Object>::Cast(info[i]))); |
6357 } | 6629 } |
6358 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative(v8:
:Handle<v8::Object>::Cast(info[i]))); | |
6359 } | 6630 } |
6360 impl->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInter
faceEmptyArg, variadicTestInterfaceEmptyArgs); | 6631 impl->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInter
faceEmptyArg, variadicTestInterfaceEmptyArgs); |
6361 } | 6632 } |
6362 | 6633 |
6363 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa
llback(const v8::FunctionCallbackInfo<v8::Value>& info) | 6634 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa
llback(const v8::FunctionCallbackInfo<v8::Value>& info) |
6364 { | 6635 { |
6365 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6636 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6366 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEm
ptyArgMethod(info); | 6637 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEm
ptyArgMethod(info); |
6367 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6638 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6368 } | 6639 } |
6369 | 6640 |
6370 static void voidMethodVariadicTestInterfaceGarbageCollectedArgMethod(const v8::F
unctionCallbackInfo<v8::Value>& info) | 6641 static void voidMethodVariadicTestInterfaceGarbageCollectedArgMethod(const v8::F
unctionCallbackInfo<v8::Value>& info) |
6371 { | 6642 { |
6372 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6643 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6373 HeapVector<Member<TestInterfaceGarbageCollected> > variadicTestInterfaceGarb
ageCollectedArg; | 6644 HeapVector<Member<TestInterfaceGarbageCollected> > variadicTestInterfaceGarb
ageCollectedArg; |
6374 for (int i = 0; i < info.Length(); ++i) { | 6645 { |
6375 if (!V8TestInterfaceGarbageCollected::hasInstance(info[i], info.GetIsola
te())) { | 6646 for (int i = 0; i < info.Length(); ++i) { |
6376 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVariadi
cTestInterfaceGarbageCollectedArg", "TestObject", "parameter 1 is not of type 'T
estInterfaceGarbageCollected'."), info.GetIsolate()); | 6647 if (!V8TestInterfaceGarbageCollected::hasInstance(info[i], info.GetI
solate())) { |
6377 return; | 6648 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVar
iadicTestInterfaceGarbageCollectedArg", "TestObject", "parameter 1 is not of typ
e 'TestInterfaceGarbageCollected'."), info.GetIsolate()); |
| 6649 return; |
| 6650 } |
| 6651 variadicTestInterfaceGarbageCollectedArg.append(V8TestInterfaceGarba
geCollected::toNative(v8::Handle<v8::Object>::Cast(info[i]))); |
6378 } | 6652 } |
6379 variadicTestInterfaceGarbageCollectedArg.append(V8TestInterfaceGarbageCo
llected::toNative(v8::Handle<v8::Object>::Cast(info[i]))); | |
6380 } | 6653 } |
6381 impl->voidMethodVariadicTestInterfaceGarbageCollectedArg(variadicTestInterfa
ceGarbageCollectedArg); | 6654 impl->voidMethodVariadicTestInterfaceGarbageCollectedArg(variadicTestInterfa
ceGarbageCollectedArg); |
6382 } | 6655 } |
6383 | 6656 |
6384 static void voidMethodVariadicTestInterfaceGarbageCollectedArgMethodCallback(con
st v8::FunctionCallbackInfo<v8::Value>& info) | 6657 static void voidMethodVariadicTestInterfaceGarbageCollectedArgMethodCallback(con
st v8::FunctionCallbackInfo<v8::Value>& info) |
6385 { | 6658 { |
6386 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6659 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6387 TestObjectV8Internal::voidMethodVariadicTestInterfaceGarbageCollectedArgMeth
od(info); | 6660 TestObjectV8Internal::voidMethodVariadicTestInterfaceGarbageCollectedArgMeth
od(info); |
6388 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6661 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6389 } | 6662 } |
6390 | 6663 |
6391 static void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) | 6664 static void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) |
6392 { | 6665 { |
6393 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6666 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6394 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > v
ariadicTestInterfaceWillBeGarbageCollectedArg; | 6667 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > v
ariadicTestInterfaceWillBeGarbageCollectedArg; |
6395 for (int i = 0; i < info.Length(); ++i) { | 6668 { |
6396 if (!V8TestInterfaceWillBeGarbageCollected::hasInstance(info[i], info.Ge
tIsolate())) { | 6669 for (int i = 0; i < info.Length(); ++i) { |
6397 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVariadi
cTestInterfaceWillBeGarbageCollectedArg", "TestObject", "parameter 1 is not of t
ype 'TestInterfaceWillBeGarbageCollected'."), info.GetIsolate()); | 6670 if (!V8TestInterfaceWillBeGarbageCollected::hasInstance(info[i], inf
o.GetIsolate())) { |
6398 return; | 6671 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVar
iadicTestInterfaceWillBeGarbageCollectedArg", "TestObject", "parameter 1 is not
of type 'TestInterfaceWillBeGarbageCollected'."), info.GetIsolate()); |
| 6672 return; |
| 6673 } |
| 6674 variadicTestInterfaceWillBeGarbageCollectedArg.append(V8TestInterfac
eWillBeGarbageCollected::toNative(v8::Handle<v8::Object>::Cast(info[i]))); |
6399 } | 6675 } |
6400 variadicTestInterfaceWillBeGarbageCollectedArg.append(V8TestInterfaceWil
lBeGarbageCollected::toNative(v8::Handle<v8::Object>::Cast(info[i]))); | |
6401 } | 6676 } |
6402 impl->voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg(variadicTestI
nterfaceWillBeGarbageCollectedArg); | 6677 impl->voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg(variadicTestI
nterfaceWillBeGarbageCollectedArg); |
6403 } | 6678 } |
6404 | 6679 |
6405 static void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) | 6680 static void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) |
6406 { | 6681 { |
6407 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6682 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6408 TestObjectV8Internal::voidMethodVariadicTestInterfaceWillBeGarbageCollectedA
rgMethod(info); | 6683 TestObjectV8Internal::voidMethodVariadicTestInterfaceWillBeGarbageCollectedA
rgMethod(info); |
6409 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6684 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6410 } | 6685 } |
6411 | 6686 |
6412 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6687 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6413 { | 6688 { |
6414 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), info.GetIsolate()); | 6689 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), info.GetIsolate()); |
6415 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6690 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6416 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState),
exceptionState); | 6691 int longArg; |
| 6692 { |
| 6693 v8::TryCatch block; |
| 6694 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); |
| 6695 } |
6417 impl->overloadedMethodA(longArg); | 6696 impl->overloadedMethodA(longArg); |
6418 } | 6697 } |
6419 | 6698 |
6420 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6699 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6421 { | 6700 { |
6422 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), info.GetIsolate()); | 6701 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), info.GetIsolate()); |
6423 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6702 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6424 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg1, toInt32(info[0], exceptionState)
, exceptionState); | 6703 int longArg1; |
6425 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg2, toInt32(info[1], exceptionState)
, exceptionState); | 6704 int longArg2; |
| 6705 { |
| 6706 v8::TryCatch block; |
| 6707 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg1, toInt32(info[0], excepti
onState), exceptionState); |
| 6708 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg2, toInt32(info[1], excepti
onState), exceptionState); |
| 6709 } |
6426 impl->overloadedMethodA(longArg1, longArg2); | 6710 impl->overloadedMethodA(longArg1, longArg2); |
6427 } | 6711 } |
6428 | 6712 |
6429 static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 6713 static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
6430 { | 6714 { |
6431 v8::Isolate* isolate = info.GetIsolate(); | 6715 v8::Isolate* isolate = info.GetIsolate(); |
6432 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), isolate); | 6716 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObject", info.Holder(), isolate); |
6433 switch (std::min(2, info.Length())) { | 6717 switch (std::min(2, info.Length())) { |
6434 case 1: | 6718 case 1: |
6435 if (true) { | 6719 if (true) { |
(...skipping 20 matching lines...) Expand all Loading... |
6456 { | 6740 { |
6457 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6741 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6458 TestObjectV8Internal::overloadedMethodAMethod(info); | 6742 TestObjectV8Internal::overloadedMethodAMethod(info); |
6459 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6743 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6460 } | 6744 } |
6461 | 6745 |
6462 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6746 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6463 { | 6747 { |
6464 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), info.GetIsolate()); | 6748 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), info.GetIsolate()); |
6465 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6749 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6466 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState),
exceptionState); | 6750 int longArg; |
| 6751 { |
| 6752 v8::TryCatch block; |
| 6753 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); |
| 6754 } |
6467 impl->overloadedMethodB(longArg); | 6755 impl->overloadedMethodB(longArg); |
6468 } | 6756 } |
6469 | 6757 |
6470 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6758 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6471 { | 6759 { |
6472 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), info.GetIsolate()); | 6760 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), info.GetIsolate()); |
6473 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6761 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6474 TOSTRING_VOID(V8StringResource<>, stringArg, info[0]); | 6762 V8StringResource<> stringArg; |
6475 if (UNLIKELY(info.Length() <= 1)) { | 6763 int longArg; |
6476 impl->overloadedMethodB(stringArg); | 6764 { |
6477 return; | 6765 v8::TryCatch block; |
| 6766 TOSTRING_VOID_INTERNAL_RETHROW(stringArg, info[0], block); |
| 6767 if (UNLIKELY(info.Length() <= 1)) { |
| 6768 impl->overloadedMethodB(stringArg); |
| 6769 return; |
| 6770 } |
| 6771 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio
nState), exceptionState); |
6478 } | 6772 } |
6479 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[1], exceptionState),
exceptionState); | |
6480 impl->overloadedMethodB(stringArg, longArg); | 6773 impl->overloadedMethodB(stringArg, longArg); |
6481 } | 6774 } |
6482 | 6775 |
6483 static void overloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 6776 static void overloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
6484 { | 6777 { |
6485 v8::Isolate* isolate = info.GetIsolate(); | 6778 v8::Isolate* isolate = info.GetIsolate(); |
6486 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), isolate); | 6779 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObject", info.Holder(), isolate); |
6487 switch (std::min(2, info.Length())) { | 6780 switch (std::min(2, info.Length())) { |
6488 case 1: | 6781 case 1: |
6489 if (info[0]->IsNumber()) { | 6782 if (info[0]->IsNumber()) { |
(...skipping 24 matching lines...) Expand all Loading... |
6514 { | 6807 { |
6515 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6808 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6516 TestObjectV8Internal::overloadedMethodBMethod(info); | 6809 TestObjectV8Internal::overloadedMethodBMethod(info); |
6517 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6810 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6518 } | 6811 } |
6519 | 6812 |
6520 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6813 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6521 { | 6814 { |
6522 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodC", "TestObject", info.Holder(), info.GetIsolate()); | 6815 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodC", "TestObject", info.Holder(), info.GetIsolate()); |
6523 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6816 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6524 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState),
exceptionState); | 6817 int longArg; |
| 6818 { |
| 6819 v8::TryCatch block; |
| 6820 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); |
| 6821 } |
6525 impl->overloadedMethodC(longArg); | 6822 impl->overloadedMethodC(longArg); |
6526 } | 6823 } |
6527 | 6824 |
6528 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6825 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6529 { | 6826 { |
6530 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6827 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6531 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 6828 TestInterfaceEmpty* testInterfaceEmptyArg; |
| 6829 { |
| 6830 v8::TryCatch block; |
| 6831 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa
tiveWithTypeCheck(info.GetIsolate(), info[0])); |
| 6832 } |
6532 impl->overloadedMethodC(testInterfaceEmptyArg); | 6833 impl->overloadedMethodC(testInterfaceEmptyArg); |
6533 } | 6834 } |
6534 | 6835 |
6535 static void overloadedMethodCMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 6836 static void overloadedMethodCMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
6536 { | 6837 { |
6537 v8::Isolate* isolate = info.GetIsolate(); | 6838 v8::Isolate* isolate = info.GetIsolate(); |
6538 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodC", "TestObject", info.Holder(), isolate); | 6839 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodC", "TestObject", info.Holder(), isolate); |
6539 switch (std::min(1, info.Length())) { | 6840 switch (std::min(1, info.Length())) { |
6540 case 1: | 6841 case 1: |
6541 if (V8TestInterfaceEmpty::hasInstance(info[0], isolate)) { | 6842 if (V8TestInterfaceEmpty::hasInstance(info[0], isolate)) { |
(...skipping 18 matching lines...) Expand all Loading... |
6560 { | 6861 { |
6561 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6862 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6562 TestObjectV8Internal::overloadedMethodCMethod(info); | 6863 TestObjectV8Internal::overloadedMethodCMethod(info); |
6563 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6864 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6564 } | 6865 } |
6565 | 6866 |
6566 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6867 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6567 { | 6868 { |
6568 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObject", info.Holder(), info.GetIsolate()); | 6869 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObject", info.Holder(), info.GetIsolate()); |
6569 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6870 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6570 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState),
exceptionState); | 6871 int longArg; |
| 6872 { |
| 6873 v8::TryCatch block; |
| 6874 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); |
| 6875 } |
6571 impl->overloadedMethodD(longArg); | 6876 impl->overloadedMethodD(longArg); |
6572 } | 6877 } |
6573 | 6878 |
6574 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6879 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6575 { | 6880 { |
6576 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6881 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6577 TONATIVE_VOID(Vector<int>, longArrayArg, toNativeArray<int>(info[0], 1, info
.GetIsolate())); | 6882 Vector<int> longArrayArg; |
| 6883 { |
| 6884 v8::TryCatch block; |
| 6885 TONATIVE_VOID_INTERNAL(longArrayArg, toNativeArray<int>(info[0], 1, info
.GetIsolate())); |
| 6886 } |
6578 impl->overloadedMethodD(longArrayArg); | 6887 impl->overloadedMethodD(longArrayArg); |
6579 } | 6888 } |
6580 | 6889 |
6581 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 6890 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
6582 { | 6891 { |
6583 v8::Isolate* isolate = info.GetIsolate(); | 6892 v8::Isolate* isolate = info.GetIsolate(); |
6584 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObject", info.Holder(), isolate); | 6893 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObject", info.Holder(), isolate); |
6585 switch (std::min(1, info.Length())) { | 6894 switch (std::min(1, info.Length())) { |
6586 case 1: | 6895 case 1: |
6587 if (info[0]->IsArray()) { | 6896 if (info[0]->IsArray()) { |
(...skipping 18 matching lines...) Expand all Loading... |
6606 { | 6915 { |
6607 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6916 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6608 TestObjectV8Internal::overloadedMethodDMethod(info); | 6917 TestObjectV8Internal::overloadedMethodDMethod(info); |
6609 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6918 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6610 } | 6919 } |
6611 | 6920 |
6612 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6921 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6613 { | 6922 { |
6614 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodE", "TestObject", info.Holder(), info.GetIsolate()); | 6923 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodE", "TestObject", info.Holder(), info.GetIsolate()); |
6615 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6924 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6616 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState),
exceptionState); | 6925 int longArg; |
| 6926 { |
| 6927 v8::TryCatch block; |
| 6928 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); |
| 6929 } |
6617 impl->overloadedMethodE(longArg); | 6930 impl->overloadedMethodE(longArg); |
6618 } | 6931 } |
6619 | 6932 |
6620 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6933 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6621 { | 6934 { |
6622 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6935 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6623 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyOrNullArg, V8TestInterf
aceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 6936 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; |
| 6937 { |
| 6938 v8::TryCatch block; |
| 6939 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceEmpty
::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
| 6940 } |
6624 impl->overloadedMethodE(testInterfaceEmptyOrNullArg); | 6941 impl->overloadedMethodE(testInterfaceEmptyOrNullArg); |
6625 } | 6942 } |
6626 | 6943 |
6627 static void overloadedMethodEMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 6944 static void overloadedMethodEMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
6628 { | 6945 { |
6629 v8::Isolate* isolate = info.GetIsolate(); | 6946 v8::Isolate* isolate = info.GetIsolate(); |
6630 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodE", "TestObject", info.Holder(), isolate); | 6947 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodE", "TestObject", info.Holder(), isolate); |
6631 switch (std::min(1, info.Length())) { | 6948 switch (std::min(1, info.Length())) { |
6632 case 1: | 6949 case 1: |
6633 if (isUndefinedOrNull(info[0])) { | 6950 if (isUndefinedOrNull(info[0])) { |
(...skipping 21 matching lines...) Expand all Loading... |
6655 static void overloadedMethodEMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 6972 static void overloadedMethodEMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
6656 { | 6973 { |
6657 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6974 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6658 TestObjectV8Internal::overloadedMethodEMethod(info); | 6975 TestObjectV8Internal::overloadedMethodEMethod(info); |
6659 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6976 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6660 } | 6977 } |
6661 | 6978 |
6662 static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6979 static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6663 { | 6980 { |
6664 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6981 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6665 if (UNLIKELY(info.Length() <= 0)) { | 6982 V8StringResource<> stringArg; |
6666 impl->overloadedMethodF(); | 6983 { |
6667 return; | 6984 if (UNLIKELY(info.Length() <= 0)) { |
| 6985 impl->overloadedMethodF(); |
| 6986 return; |
| 6987 } |
| 6988 TOSTRING_VOID_INTERNAL(stringArg, info[0]); |
6668 } | 6989 } |
6669 TOSTRING_VOID(V8StringResource<>, stringArg, info[0]); | |
6670 impl->overloadedMethodF(stringArg); | 6990 impl->overloadedMethodF(stringArg); |
6671 } | 6991 } |
6672 | 6992 |
6673 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6993 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6674 { | 6994 { |
6675 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6995 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6676 TONATIVE_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue())
); | 6996 double doubleArg; |
| 6997 { |
| 6998 v8::TryCatch block; |
| 6999 TONATIVE_VOID_INTERNAL(doubleArg, static_cast<double>(info[0]->NumberVal
ue())); |
| 7000 } |
6677 impl->overloadedMethodF(doubleArg); | 7001 impl->overloadedMethodF(doubleArg); |
6678 } | 7002 } |
6679 | 7003 |
6680 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 7004 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
6681 { | 7005 { |
6682 v8::Isolate* isolate = info.GetIsolate(); | 7006 v8::Isolate* isolate = info.GetIsolate(); |
6683 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodF", "TestObject", info.Holder(), isolate); | 7007 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodF", "TestObject", info.Holder(), isolate); |
6684 switch (std::min(1, info.Length())) { | 7008 switch (std::min(1, info.Length())) { |
6685 case 0: | 7009 case 0: |
6686 if (true) { | 7010 if (true) { |
(...skipping 28 matching lines...) Expand all Loading... |
6715 { | 7039 { |
6716 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7040 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6717 TestObjectV8Internal::overloadedMethodFMethod(info); | 7041 TestObjectV8Internal::overloadedMethodFMethod(info); |
6718 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7042 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6719 } | 7043 } |
6720 | 7044 |
6721 static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 7045 static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6722 { | 7046 { |
6723 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodG", "TestObject", info.Holder(), info.GetIsolate()); | 7047 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodG", "TestObject", info.Holder(), info.GetIsolate()); |
6724 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7048 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6725 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState),
exceptionState); | 7049 int longArg; |
| 7050 { |
| 7051 v8::TryCatch block; |
| 7052 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); |
| 7053 } |
6726 impl->overloadedMethodG(longArg); | 7054 impl->overloadedMethodG(longArg); |
6727 } | 7055 } |
6728 | 7056 |
6729 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 7057 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6730 { | 7058 { |
6731 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7059 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6732 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyOrNullArg, V8TestInterf
aceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 7060 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; |
| 7061 { |
| 7062 v8::TryCatch block; |
| 7063 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceEmpty
::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
| 7064 } |
6733 impl->overloadedMethodG(testInterfaceEmptyOrNullArg); | 7065 impl->overloadedMethodG(testInterfaceEmptyOrNullArg); |
6734 } | 7066 } |
6735 | 7067 |
6736 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 7068 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
6737 { | 7069 { |
6738 v8::Isolate* isolate = info.GetIsolate(); | 7070 v8::Isolate* isolate = info.GetIsolate(); |
6739 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodG", "TestObject", info.Holder(), isolate); | 7071 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodG", "TestObject", info.Holder(), isolate); |
6740 switch (std::min(1, info.Length())) { | 7072 switch (std::min(1, info.Length())) { |
6741 case 1: | 7073 case 1: |
6742 if (isUndefinedOrNull(info[0])) { | 7074 if (isUndefinedOrNull(info[0])) { |
(...skipping 21 matching lines...) Expand all Loading... |
6764 static void overloadedMethodGMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 7096 static void overloadedMethodGMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
6765 { | 7097 { |
6766 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7098 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6767 TestObjectV8Internal::overloadedMethodGMethod(info); | 7099 TestObjectV8Internal::overloadedMethodGMethod(info); |
6768 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7100 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6769 } | 7101 } |
6770 | 7102 |
6771 static void overloadedMethodH1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 7103 static void overloadedMethodH1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6772 { | 7104 { |
6773 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7105 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6774 TONATIVE_VOID(TestInterfaceImplementation*, testInterfaceArg, V8TestInterfac
e::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 7106 TestInterfaceImplementation* testInterfaceArg; |
| 7107 { |
| 7108 v8::TryCatch block; |
| 7109 TONATIVE_VOID_INTERNAL(testInterfaceArg, V8TestInterface::toNativeWithTy
peCheck(info.GetIsolate(), info[0])); |
| 7110 } |
6775 impl->overloadedMethodH(testInterfaceArg); | 7111 impl->overloadedMethodH(testInterfaceArg); |
6776 } | 7112 } |
6777 | 7113 |
6778 static void overloadedMethodH2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 7114 static void overloadedMethodH2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6779 { | 7115 { |
6780 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7116 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6781 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 7117 TestInterfaceEmpty* testInterfaceEmptyArg; |
| 7118 { |
| 7119 v8::TryCatch block; |
| 7120 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa
tiveWithTypeCheck(info.GetIsolate(), info[0])); |
| 7121 } |
6782 impl->overloadedMethodH(testInterfaceEmptyArg); | 7122 impl->overloadedMethodH(testInterfaceEmptyArg); |
6783 } | 7123 } |
6784 | 7124 |
6785 static void overloadedMethodHMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 7125 static void overloadedMethodHMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
6786 { | 7126 { |
6787 v8::Isolate* isolate = info.GetIsolate(); | 7127 v8::Isolate* isolate = info.GetIsolate(); |
6788 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodH", "TestObject", info.Holder(), isolate); | 7128 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodH", "TestObject", info.Holder(), isolate); |
6789 switch (std::min(1, info.Length())) { | 7129 switch (std::min(1, info.Length())) { |
6790 case 1: | 7130 case 1: |
6791 if (V8TestInterface::hasInstance(info[0], isolate)) { | 7131 if (V8TestInterface::hasInstance(info[0], isolate)) { |
(...skipping 17 matching lines...) Expand all Loading... |
6809 static void overloadedMethodHMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 7149 static void overloadedMethodHMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
6810 { | 7150 { |
6811 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7151 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6812 TestObjectV8Internal::overloadedMethodHMethod(info); | 7152 TestObjectV8Internal::overloadedMethodHMethod(info); |
6813 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7153 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6814 } | 7154 } |
6815 | 7155 |
6816 static void overloadedMethodI1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 7156 static void overloadedMethodI1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6817 { | 7157 { |
6818 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7158 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6819 TOSTRING_VOID(V8StringResource<>, stringArg, info[0]); | 7159 V8StringResource<> stringArg; |
| 7160 { |
| 7161 TOSTRING_VOID_INTERNAL(stringArg, info[0]); |
| 7162 } |
6820 impl->overloadedMethodI(stringArg); | 7163 impl->overloadedMethodI(stringArg); |
6821 } | 7164 } |
6822 | 7165 |
6823 static void overloadedMethodI2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 7166 static void overloadedMethodI2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6824 { | 7167 { |
6825 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7168 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6826 TONATIVE_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue())
); | 7169 double doubleArg; |
| 7170 { |
| 7171 v8::TryCatch block; |
| 7172 TONATIVE_VOID_INTERNAL(doubleArg, static_cast<double>(info[0]->NumberVal
ue())); |
| 7173 } |
6827 impl->overloadedMethodI(doubleArg); | 7174 impl->overloadedMethodI(doubleArg); |
6828 } | 7175 } |
6829 | 7176 |
6830 static void overloadedMethodIMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 7177 static void overloadedMethodIMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
6831 { | 7178 { |
6832 v8::Isolate* isolate = info.GetIsolate(); | 7179 v8::Isolate* isolate = info.GetIsolate(); |
6833 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodI", "TestObject", info.Holder(), isolate); | 7180 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodI", "TestObject", info.Holder(), isolate); |
6834 switch (std::min(1, info.Length())) { | 7181 switch (std::min(1, info.Length())) { |
6835 case 1: | 7182 case 1: |
6836 if (info[0]->IsNumber()) { | 7183 if (info[0]->IsNumber()) { |
(...skipping 30 matching lines...) Expand all Loading... |
6867 static void overloadedPerWorldBindingsMethod1MethodForMainWorld(const v8::Functi
onCallbackInfo<v8::Value>& info) | 7214 static void overloadedPerWorldBindingsMethod1MethodForMainWorld(const v8::Functi
onCallbackInfo<v8::Value>& info) |
6868 { | 7215 { |
6869 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7216 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6870 impl->overloadedPerWorldBindingsMethod(); | 7217 impl->overloadedPerWorldBindingsMethod(); |
6871 } | 7218 } |
6872 | 7219 |
6873 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 7220 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
6874 { | 7221 { |
6875 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); | 7222 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); |
6876 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7223 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6877 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState),
exceptionState); | 7224 int longArg; |
| 7225 { |
| 7226 v8::TryCatch block; |
| 7227 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); |
| 7228 } |
6878 impl->overloadedPerWorldBindingsMethod(longArg); | 7229 impl->overloadedPerWorldBindingsMethod(longArg); |
6879 } | 7230 } |
6880 | 7231 |
6881 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) | 7232 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
6882 { | 7233 { |
6883 v8::Isolate* isolate = info.GetIsolate(); | 7234 v8::Isolate* isolate = info.GetIsolate(); |
6884 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), isolate); | 7235 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), isolate); |
6885 switch (std::min(1, info.Length())) { | 7236 switch (std::min(1, info.Length())) { |
6886 case 0: | 7237 case 0: |
6887 if (true) { | 7238 if (true) { |
(...skipping 20 matching lines...) Expand all Loading... |
6908 { | 7259 { |
6909 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7260 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6910 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethod(info); | 7261 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethod(info); |
6911 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7262 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6912 } | 7263 } |
6913 | 7264 |
6914 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi
onCallbackInfo<v8::Value>& info) | 7265 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi
onCallbackInfo<v8::Value>& info) |
6915 { | 7266 { |
6916 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); | 7267 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); |
6917 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7268 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6918 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState),
exceptionState); | 7269 int longArg; |
| 7270 { |
| 7271 v8::TryCatch block; |
| 7272 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); |
| 7273 } |
6919 impl->overloadedPerWorldBindingsMethod(longArg); | 7274 impl->overloadedPerWorldBindingsMethod(longArg); |
6920 } | 7275 } |
6921 | 7276 |
6922 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio
nCallbackInfo<v8::Value>& info) | 7277 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio
nCallbackInfo<v8::Value>& info) |
6923 { | 7278 { |
6924 v8::Isolate* isolate = info.GetIsolate(); | 7279 v8::Isolate* isolate = info.GetIsolate(); |
6925 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), isolate); | 7280 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObject", info.Holder(), isolate); |
6926 switch (std::min(1, info.Length())) { | 7281 switch (std::min(1, info.Length())) { |
6927 case 0: | 7282 case 0: |
6928 if (true) { | 7283 if (true) { |
(...skipping 19 matching lines...) Expand all Loading... |
6948 static void overloadedPerWorldBindingsMethodMethodCallbackForMainWorld(const v8:
:FunctionCallbackInfo<v8::Value>& info) | 7303 static void overloadedPerWorldBindingsMethodMethodCallbackForMainWorld(const v8:
:FunctionCallbackInfo<v8::Value>& info) |
6949 { | 7304 { |
6950 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7305 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6951 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethodForMainWorld(inf
o); | 7306 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethodForMainWorld(inf
o); |
6952 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7307 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6953 } | 7308 } |
6954 | 7309 |
6955 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 7310 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
6956 { | 7311 { |
6957 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), info.GetIsolate()); | 7312 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), info.GetIsolate()); |
6958 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState),
exceptionState); | 7313 int longArg; |
| 7314 { |
| 7315 v8::TryCatch block; |
| 7316 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); |
| 7317 } |
6959 TestObject::overloadedStaticMethod(longArg); | 7318 TestObject::overloadedStaticMethod(longArg); |
6960 } | 7319 } |
6961 | 7320 |
6962 static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 7321 static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
6963 { | 7322 { |
6964 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), info.GetIsolate()); | 7323 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), info.GetIsolate()); |
6965 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg1, toInt32(info[0], exceptionState)
, exceptionState); | 7324 int longArg1; |
6966 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg2, toInt32(info[1], exceptionState)
, exceptionState); | 7325 int longArg2; |
| 7326 { |
| 7327 v8::TryCatch block; |
| 7328 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg1, toInt32(info[0], excepti
onState), exceptionState); |
| 7329 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg2, toInt32(info[1], excepti
onState), exceptionState); |
| 7330 } |
6967 TestObject::overloadedStaticMethod(longArg1, longArg2); | 7331 TestObject::overloadedStaticMethod(longArg1, longArg2); |
6968 } | 7332 } |
6969 | 7333 |
6970 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 7334 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
6971 { | 7335 { |
6972 v8::Isolate* isolate = info.GetIsolate(); | 7336 v8::Isolate* isolate = info.GetIsolate(); |
6973 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), isolate); | 7337 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS
taticMethod", "TestObject", info.Holder(), isolate); |
6974 switch (std::min(2, info.Length())) { | 7338 switch (std::min(2, info.Length())) { |
6975 case 1: | 7339 case 1: |
6976 if (true) { | 7340 if (true) { |
(...skipping 25 matching lines...) Expand all Loading... |
7002 | 7366 |
7003 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 7367 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
7004 { | 7368 { |
7005 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC
lampUnsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); | 7369 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC
lampUnsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); |
7006 if (UNLIKELY(info.Length() < 1)) { | 7370 if (UNLIKELY(info.Length() < 1)) { |
7007 throwMinimumArityTypeError(exceptionState, 1, info.Length()); | 7371 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
7008 return; | 7372 return; |
7009 } | 7373 } |
7010 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7374 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7011 unsigned clampUnsignedShortArg = 0; | 7375 unsigned clampUnsignedShortArg = 0; |
7012 TONATIVE_VOID(double, clampUnsignedShortArgNativeValue, info[0]->NumberValue
()); | 7376 { |
7013 if (!std::isnan(clampUnsignedShortArgNativeValue)) | 7377 v8::TryCatch block; |
7014 clampUnsignedShortArg = clampTo<unsigned short>(clampUnsignedShortArgNat
iveValue); | 7378 double clampUnsignedShortArgNativeValue; |
| 7379 TONATIVE_VOID_INTERNAL(clampUnsignedShortArgNativeValue, info[0]->Number
Value()); |
| 7380 if (!std::isnan(clampUnsignedShortArgNativeValue)) |
| 7381 clampUnsignedShortArg = clampTo<unsigned short>(clampUnsignedShortAr
gNativeValue); |
| 7382 } |
7015 impl->voidMethodClampUnsignedShortArg(clampUnsignedShortArg); | 7383 impl->voidMethodClampUnsignedShortArg(clampUnsignedShortArg); |
7016 } | 7384 } |
7017 | 7385 |
7018 static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 7386 static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
7019 { | 7387 { |
7020 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7388 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7021 TestObjectV8Internal::voidMethodClampUnsignedShortArgMethod(info); | 7389 TestObjectV8Internal::voidMethodClampUnsignedShortArgMethod(info); |
7022 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7390 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7023 } | 7391 } |
7024 | 7392 |
7025 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) | 7393 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) |
7026 { | 7394 { |
7027 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC
lampUnsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 7395 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC
lampUnsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
7028 if (UNLIKELY(info.Length() < 1)) { | 7396 if (UNLIKELY(info.Length() < 1)) { |
7029 throwMinimumArityTypeError(exceptionState, 1, info.Length()); | 7397 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
7030 return; | 7398 return; |
7031 } | 7399 } |
7032 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7400 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7033 unsigned clampUnsignedLongArg = 0; | 7401 unsigned clampUnsignedLongArg = 0; |
7034 TONATIVE_VOID(double, clampUnsignedLongArgNativeValue, info[0]->NumberValue(
)); | 7402 { |
7035 if (!std::isnan(clampUnsignedLongArgNativeValue)) | 7403 v8::TryCatch block; |
7036 clampUnsignedLongArg = clampTo<unsigned long>(clampUnsignedLongArgNative
Value); | 7404 double clampUnsignedLongArgNativeValue; |
| 7405 TONATIVE_VOID_INTERNAL(clampUnsignedLongArgNativeValue, info[0]->NumberV
alue()); |
| 7406 if (!std::isnan(clampUnsignedLongArgNativeValue)) |
| 7407 clampUnsignedLongArg = clampTo<unsigned long>(clampUnsignedLongArgNa
tiveValue); |
| 7408 } |
7037 impl->voidMethodClampUnsignedLongArg(clampUnsignedLongArg); | 7409 impl->voidMethodClampUnsignedLongArg(clampUnsignedLongArg); |
7038 } | 7410 } |
7039 | 7411 |
7040 static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 7412 static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
7041 { | 7413 { |
7042 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7414 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7043 TestObjectV8Internal::voidMethodClampUnsignedLongArgMethod(info); | 7415 TestObjectV8Internal::voidMethodClampUnsignedLongArgMethod(info); |
7044 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7416 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7045 } | 7417 } |
7046 | 7418 |
7047 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) | 7419 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) |
7048 { | 7420 { |
7049 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7421 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7050 TONATIVE_VOID(TestInterfaceEmpty*, defaultUndefinedTestInterfaceEmptyArg, V8
TestInterfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 7422 TestInterfaceEmpty* defaultUndefinedTestInterfaceEmptyArg; |
| 7423 { |
| 7424 v8::TryCatch block; |
| 7425 TONATIVE_VOID_INTERNAL(defaultUndefinedTestInterfaceEmptyArg, V8TestInte
rfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
| 7426 } |
7051 impl->voidMethodDefaultUndefinedTestInterfaceEmptyArg(defaultUndefinedTestIn
terfaceEmptyArg); | 7427 impl->voidMethodDefaultUndefinedTestInterfaceEmptyArg(defaultUndefinedTestIn
terfaceEmptyArg); |
7052 } | 7428 } |
7053 | 7429 |
7054 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) | 7430 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
7055 { | 7431 { |
7056 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7432 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7057 TestObjectV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(
info); | 7433 TestObjectV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(
info); |
7058 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7434 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7059 } | 7435 } |
7060 | 7436 |
7061 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 7437 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
7062 { | 7438 { |
7063 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultUndefinedLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 7439 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultUndefinedLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
7064 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7440 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7065 TONATIVE_VOID_EXCEPTIONSTATE(int, defaultUndefinedLongArg, toInt32(info[0],
exceptionState), exceptionState); | 7441 int defaultUndefinedLongArg; |
| 7442 { |
| 7443 v8::TryCatch block; |
| 7444 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultUndefinedLongArg, toInt32(i
nfo[0], exceptionState), exceptionState); |
| 7445 } |
7066 impl->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg); | 7446 impl->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg); |
7067 } | 7447 } |
7068 | 7448 |
7069 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) | 7449 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
7070 { | 7450 { |
7071 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7451 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7072 TestObjectV8Internal::voidMethodDefaultUndefinedLongArgMethod(info); | 7452 TestObjectV8Internal::voidMethodDefaultUndefinedLongArgMethod(info); |
7073 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7453 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7074 } | 7454 } |
7075 | 7455 |
7076 static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback
Info<v8::Value>& info) | 7456 static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback
Info<v8::Value>& info) |
7077 { | 7457 { |
7078 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7458 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7079 TOSTRING_VOID(V8StringResource<>, defaultUndefinedStringArg, info[0]); | 7459 V8StringResource<> defaultUndefinedStringArg; |
| 7460 { |
| 7461 TOSTRING_VOID_INTERNAL(defaultUndefinedStringArg, info[0]); |
| 7462 } |
7080 impl->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg); | 7463 impl->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg); |
7081 } | 7464 } |
7082 | 7465 |
7083 static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) | 7466 static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
7084 { | 7467 { |
7085 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7468 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7086 TestObjectV8Internal::voidMethodDefaultUndefinedStringArgMethod(info); | 7469 TestObjectV8Internal::voidMethodDefaultUndefinedStringArgMethod(info); |
7087 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7470 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7088 } | 7471 } |
7089 | 7472 |
7090 static void voidMethodDefaultNullStringStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 7473 static void voidMethodDefaultNullStringStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
7091 { | 7474 { |
7092 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7475 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7093 TOSTRING_VOID(V8StringResource<>, defaultNullStringStringArg, argumentOrNull
(info, 0)); | 7476 V8StringResource<> defaultNullStringStringArg; |
| 7477 { |
| 7478 TOSTRING_VOID_INTERNAL(defaultNullStringStringArg, argumentOrNull(info,
0)); |
| 7479 } |
7094 impl->voidMethodDefaultNullStringStringArg(defaultNullStringStringArg); | 7480 impl->voidMethodDefaultNullStringStringArg(defaultNullStringStringArg); |
7095 } | 7481 } |
7096 | 7482 |
7097 static void voidMethodDefaultNullStringStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 7483 static void voidMethodDefaultNullStringStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
7098 { | 7484 { |
7099 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7485 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7100 TestObjectV8Internal::voidMethodDefaultNullStringStringArgMethod(info); | 7486 TestObjectV8Internal::voidMethodDefaultNullStringStringArgMethod(info); |
7101 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7487 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7102 } | 7488 } |
7103 | 7489 |
7104 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) | 7490 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
7105 { | 7491 { |
7106 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE
nforceRangeLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 7492 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE
nforceRangeLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
7107 if (UNLIKELY(info.Length() < 1)) { | 7493 if (UNLIKELY(info.Length() < 1)) { |
7108 throwMinimumArityTypeError(exceptionState, 1, info.Length()); | 7494 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
7109 return; | 7495 return; |
7110 } | 7496 } |
7111 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7497 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7112 TONATIVE_VOID_EXCEPTIONSTATE(int, enforceRangeLongArg, toInt32(info[0], Enfo
rceRange, exceptionState), exceptionState); | 7498 int enforceRangeLongArg; |
| 7499 { |
| 7500 v8::TryCatch block; |
| 7501 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(enforceRangeLongArg, toInt32(info[
0], EnforceRange, exceptionState), exceptionState); |
| 7502 } |
7113 impl->voidMethodEnforceRangeLongArg(enforceRangeLongArg); | 7503 impl->voidMethodEnforceRangeLongArg(enforceRangeLongArg); |
7114 } | 7504 } |
7115 | 7505 |
7116 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 7506 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
7117 { | 7507 { |
7118 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7508 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7119 TestObjectV8Internal::voidMethodEnforceRangeLongArgMethod(info); | 7509 TestObjectV8Internal::voidMethodEnforceRangeLongArgMethod(info); |
7120 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7510 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7121 } | 7511 } |
7122 | 7512 |
7123 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 7513 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
7124 { | 7514 { |
7125 if (UNLIKELY(info.Length() < 1)) { | 7515 if (UNLIKELY(info.Length() < 1)) { |
7126 throwMinimumArityTypeErrorForMethod("voidMethodTreatNullAsNullStringStri
ngArg", "TestObject", 1, info.Length(), info.GetIsolate()); | 7516 throwMinimumArityTypeErrorForMethod("voidMethodTreatNullAsNullStringStri
ngArg", "TestObject", 1, info.Length(), info.GetIsolate()); |
7127 return; | 7517 return; |
7128 } | 7518 } |
7129 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7519 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7130 TOSTRING_VOID(V8StringResource<WithNullCheck>, treatNullAsNullStringStringAr
g, info[0]); | 7520 V8StringResource<WithNullCheck> treatNullAsNullStringStringArg; |
| 7521 { |
| 7522 TOSTRING_VOID_INTERNAL(treatNullAsNullStringStringArg, info[0]); |
| 7523 } |
7131 impl->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringAr
g); | 7524 impl->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringAr
g); |
7132 } | 7525 } |
7133 | 7526 |
7134 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) | 7527 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
7135 { | 7528 { |
7136 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7529 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7137 TestObjectV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(info); | 7530 TestObjectV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(info); |
7138 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7531 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7139 } | 7532 } |
7140 | 7533 |
7141 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thod(const v8::FunctionCallbackInfo<v8::Value>& info) | 7534 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thod(const v8::FunctionCallbackInfo<v8::Value>& info) |
7142 { | 7535 { |
7143 if (UNLIKELY(info.Length() < 1)) { | 7536 if (UNLIKELY(info.Length() < 1)) { |
7144 throwMinimumArityTypeErrorForMethod("voidMethodTreatNullAsNullStringTrea
tUndefinedAsNullStringStringArg", "TestObject", 1, info.Length(), info.GetIsolat
e()); | 7537 throwMinimumArityTypeErrorForMethod("voidMethodTreatNullAsNullStringTrea
tUndefinedAsNullStringStringArg", "TestObject", 1, info.Length(), info.GetIsolat
e()); |
7145 return; | 7538 return; |
7146 } | 7539 } |
7147 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7540 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7148 TOSTRING_VOID(V8StringResource<WithUndefinedOrNullCheck>, treatNullAsNullStr
ingStringArg, info[0]); | 7541 V8StringResource<WithUndefinedOrNullCheck> treatNullAsNullStringStringArg; |
| 7542 { |
| 7543 TOSTRING_VOID_INTERNAL(treatNullAsNullStringStringArg, info[0]); |
| 7544 } |
7149 impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(tre
atNullAsNullStringStringArg); | 7545 impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(tre
atNullAsNullStringStringArg); |
7150 } | 7546 } |
7151 | 7547 |
7152 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 7548 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
7153 { | 7549 { |
7154 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7550 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7155 TestObjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStr
ingStringArgMethod(info); | 7551 TestObjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStr
ingStringArgMethod(info); |
7156 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7552 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7157 } | 7553 } |
7158 | 7554 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7243 static void callWithScriptStateScriptArgumentsVoidMethodMethodCallback(const v8:
:FunctionCallbackInfo<v8::Value>& info) | 7639 static void callWithScriptStateScriptArgumentsVoidMethodMethodCallback(const v8:
:FunctionCallbackInfo<v8::Value>& info) |
7244 { | 7640 { |
7245 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7641 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7246 TestObjectV8Internal::callWithScriptStateScriptArgumentsVoidMethodMethod(inf
o); | 7642 TestObjectV8Internal::callWithScriptStateScriptArgumentsVoidMethodMethod(inf
o); |
7247 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7643 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7248 } | 7644 } |
7249 | 7645 |
7250 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod
(const v8::FunctionCallbackInfo<v8::Value>& info) | 7646 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod
(const v8::FunctionCallbackInfo<v8::Value>& info) |
7251 { | 7647 { |
7252 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7648 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7253 if (UNLIKELY(info.Length() <= 0)) { | 7649 bool optionalBooleanArg; |
7254 ScriptState* state = ScriptState::current(info.GetIsolate()); | 7650 { |
7255 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1)); | 7651 v8::TryCatch block; |
7256 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(sta
te, scriptArguments.release()); | 7652 if (UNLIKELY(info.Length() <= 0)) { |
7257 return; | 7653 ScriptState* state = ScriptState::current(info.GetIsolate()); |
| 7654 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info,
1)); |
| 7655 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg
(state, scriptArguments.release()); |
| 7656 return; |
| 7657 } |
| 7658 TONATIVE_VOID_INTERNAL(optionalBooleanArg, info[0]->BooleanValue()); |
7258 } | 7659 } |
7259 TONATIVE_VOID(bool, optionalBooleanArg, info[0]->BooleanValue()); | |
7260 ScriptState* state = ScriptState::current(info.GetIsolate()); | 7660 ScriptState* state = ScriptState::current(info.GetIsolate()); |
7261 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1)); | 7661 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1)); |
7262 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(state,
scriptArguments.release(), optionalBooleanArg); | 7662 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(state,
scriptArguments.release(), optionalBooleanArg); |
7263 } | 7663 } |
7264 | 7664 |
7265 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod
Callback(const v8::FunctionCallbackInfo<v8::Value>& info) | 7665 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod
Callback(const v8::FunctionCallbackInfo<v8::Value>& info) |
7266 { | 7666 { |
7267 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7667 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7268 TestObjectV8Internal::callWithScriptStateScriptArgumentsVoidMethodOptionalBo
oleanArgMethod(info); | 7668 TestObjectV8Internal::callWithScriptStateScriptArgumentsVoidMethodOptionalBo
oleanArgMethod(info); |
7269 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7669 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7450 static void DeprecateAsOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8
::Value>& info) | 7850 static void DeprecateAsOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8
::Value>& info) |
7451 { | 7851 { |
7452 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7852 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7453 impl->DeprecateAsOverloadedMethod(); | 7853 impl->DeprecateAsOverloadedMethod(); |
7454 } | 7854 } |
7455 | 7855 |
7456 static void DeprecateAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8
::Value>& info) | 7856 static void DeprecateAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8
::Value>& info) |
7457 { | 7857 { |
7458 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); | 7858 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
7459 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7859 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7460 TONATIVE_VOID_EXCEPTIONSTATE(int, arg, toInt32(info[0], exceptionState), exc
eptionState); | 7860 int arg; |
| 7861 { |
| 7862 v8::TryCatch block; |
| 7863 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta
te), exceptionState); |
| 7864 } |
7461 impl->DeprecateAsOverloadedMethod(arg); | 7865 impl->DeprecateAsOverloadedMethod(arg); |
7462 } | 7866 } |
7463 | 7867 |
7464 static void DeprecateAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 7868 static void DeprecateAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
7465 { | 7869 { |
7466 v8::Isolate* isolate = info.GetIsolate(); | 7870 v8::Isolate* isolate = info.GetIsolate(); |
7467 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
OverloadedMethod", "TestObject", info.Holder(), isolate); | 7871 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
OverloadedMethod", "TestObject", info.Holder(), isolate); |
7468 switch (std::min(1, info.Length())) { | 7872 switch (std::min(1, info.Length())) { |
7469 case 0: | 7873 case 0: |
7470 if (true) { | 7874 if (true) { |
(...skipping 28 matching lines...) Expand all Loading... |
7499 static void DeprecateAsSameValueOverloadedMethod1Method(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 7903 static void DeprecateAsSameValueOverloadedMethod1Method(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
7500 { | 7904 { |
7501 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7905 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7502 impl->DeprecateAsSameValueOverloadedMethod(); | 7906 impl->DeprecateAsSameValueOverloadedMethod(); |
7503 } | 7907 } |
7504 | 7908 |
7505 static void DeprecateAsSameValueOverloadedMethod2Method(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 7909 static void DeprecateAsSameValueOverloadedMethod2Method(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
7506 { | 7910 { |
7507 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); | 7911 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
7508 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7912 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7509 TONATIVE_VOID_EXCEPTIONSTATE(int, arg, toInt32(info[0], exceptionState), exc
eptionState); | 7913 int arg; |
| 7914 { |
| 7915 v8::TryCatch block; |
| 7916 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta
te), exceptionState); |
| 7917 } |
7510 impl->DeprecateAsSameValueOverloadedMethod(arg); | 7918 impl->DeprecateAsSameValueOverloadedMethod(arg); |
7511 } | 7919 } |
7512 | 7920 |
7513 static void DeprecateAsSameValueOverloadedMethodMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 7921 static void DeprecateAsSameValueOverloadedMethodMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
7514 { | 7922 { |
7515 v8::Isolate* isolate = info.GetIsolate(); | 7923 v8::Isolate* isolate = info.GetIsolate(); |
7516 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
SameValueOverloadedMethod", "TestObject", info.Holder(), isolate); | 7924 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs
SameValueOverloadedMethod", "TestObject", info.Holder(), isolate); |
7517 UseCounter::countDeprecation(callingExecutionContext(isolate), UseCounter::T
estFeature); | 7925 UseCounter::countDeprecation(callingExecutionContext(isolate), UseCounter::T
estFeature); |
7518 switch (std::min(1, info.Length())) { | 7926 switch (std::min(1, info.Length())) { |
7519 case 0: | 7927 case 0: |
(...skipping 27 matching lines...) Expand all Loading... |
7547 static void measureAsOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8::
Value>& info) | 7955 static void measureAsOverloadedMethod1Method(const v8::FunctionCallbackInfo<v8::
Value>& info) |
7548 { | 7956 { |
7549 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7957 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7550 impl->measureAsOverloadedMethod(); | 7958 impl->measureAsOverloadedMethod(); |
7551 } | 7959 } |
7552 | 7960 |
7553 static void measureAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::
Value>& info) | 7961 static void measureAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::
Value>& info) |
7554 { | 7962 { |
7555 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv
erloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); | 7963 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv
erloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
7556 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7964 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7557 TONATIVE_VOID_EXCEPTIONSTATE(int, arg, toInt32(info[0], exceptionState), exc
eptionState); | 7965 int arg; |
| 7966 { |
| 7967 v8::TryCatch block; |
| 7968 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta
te), exceptionState); |
| 7969 } |
7558 impl->measureAsOverloadedMethod(arg); | 7970 impl->measureAsOverloadedMethod(arg); |
7559 } | 7971 } |
7560 | 7972 |
7561 static void measureAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 7973 static void measureAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
7562 { | 7974 { |
7563 v8::Isolate* isolate = info.GetIsolate(); | 7975 v8::Isolate* isolate = info.GetIsolate(); |
7564 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv
erloadedMethod", "TestObject", info.Holder(), isolate); | 7976 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv
erloadedMethod", "TestObject", info.Holder(), isolate); |
7565 switch (std::min(1, info.Length())) { | 7977 switch (std::min(1, info.Length())) { |
7566 case 0: | 7978 case 0: |
7567 if (true) { | 7979 if (true) { |
(...skipping 28 matching lines...) Expand all Loading... |
7596 static void measureAsSameValueOverloadedMethod1Method(const v8::FunctionCallback
Info<v8::Value>& info) | 8008 static void measureAsSameValueOverloadedMethod1Method(const v8::FunctionCallback
Info<v8::Value>& info) |
7597 { | 8009 { |
7598 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8010 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7599 impl->measureAsSameValueOverloadedMethod(); | 8011 impl->measureAsSameValueOverloadedMethod(); |
7600 } | 8012 } |
7601 | 8013 |
7602 static void measureAsSameValueOverloadedMethod2Method(const v8::FunctionCallback
Info<v8::Value>& info) | 8014 static void measureAsSameValueOverloadedMethod2Method(const v8::FunctionCallback
Info<v8::Value>& info) |
7603 { | 8015 { |
7604 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa
meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); | 8016 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa
meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); |
7605 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8017 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7606 TONATIVE_VOID_EXCEPTIONSTATE(int, arg, toInt32(info[0], exceptionState), exc
eptionState); | 8018 int arg; |
| 8019 { |
| 8020 v8::TryCatch block; |
| 8021 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta
te), exceptionState); |
| 8022 } |
7607 impl->measureAsSameValueOverloadedMethod(arg); | 8023 impl->measureAsSameValueOverloadedMethod(arg); |
7608 } | 8024 } |
7609 | 8025 |
7610 static void measureAsSameValueOverloadedMethodMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 8026 static void measureAsSameValueOverloadedMethodMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
7611 { | 8027 { |
7612 v8::Isolate* isolate = info.GetIsolate(); | 8028 v8::Isolate* isolate = info.GetIsolate(); |
7613 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa
meValueOverloadedMethod", "TestObject", info.Holder(), isolate); | 8029 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa
meValueOverloadedMethod", "TestObject", info.Holder(), isolate); |
7614 UseCounter::count(callingExecutionContext(isolate), UseCounter::TestFeature)
; | 8030 UseCounter::count(callingExecutionContext(isolate), UseCounter::TestFeature)
; |
7615 switch (std::min(1, info.Length())) { | 8031 switch (std::min(1, info.Length())) { |
7616 case 0: | 8032 case 0: |
(...skipping 27 matching lines...) Expand all Loading... |
7644 static void deprecateAsMeasureAsSameValueOverloadedMethod1Method(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 8060 static void deprecateAsMeasureAsSameValueOverloadedMethod1Method(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
7645 { | 8061 { |
7646 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8062 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7647 impl->deprecateAsMeasureAsSameValueOverloadedMethod(); | 8063 impl->deprecateAsMeasureAsSameValueOverloadedMethod(); |
7648 } | 8064 } |
7649 | 8065 |
7650 static void deprecateAsMeasureAsSameValueOverloadedMethod2Method(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 8066 static void deprecateAsMeasureAsSameValueOverloadedMethod2Method(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
7651 { | 8067 { |
7652 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat
e()); | 8068 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat
e()); |
7653 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8069 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7654 TONATIVE_VOID_EXCEPTIONSTATE(int, arg, toInt32(info[0], exceptionState), exc
eptionState); | 8070 int arg; |
| 8071 { |
| 8072 v8::TryCatch block; |
| 8073 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta
te), exceptionState); |
| 8074 } |
7655 impl->deprecateAsMeasureAsSameValueOverloadedMethod(arg); | 8075 impl->deprecateAsMeasureAsSameValueOverloadedMethod(arg); |
7656 } | 8076 } |
7657 | 8077 |
7658 static void deprecateAsMeasureAsSameValueOverloadedMethodMethod(const v8::Functi
onCallbackInfo<v8::Value>& info) | 8078 static void deprecateAsMeasureAsSameValueOverloadedMethodMethod(const v8::Functi
onCallbackInfo<v8::Value>& info) |
7659 { | 8079 { |
7660 v8::Isolate* isolate = info.GetIsolate(); | 8080 v8::Isolate* isolate = info.GetIsolate(); |
7661 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), isolate); | 8081 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), isolate); |
7662 UseCounter::count(callingExecutionContext(isolate), UseCounter::TestFeature)
; | 8082 UseCounter::count(callingExecutionContext(isolate), UseCounter::TestFeature)
; |
7663 switch (std::min(1, info.Length())) { | 8083 switch (std::min(1, info.Length())) { |
7664 case 0: | 8084 case 0: |
(...skipping 29 matching lines...) Expand all Loading... |
7694 static void deprecateAsSameValueMeasureAsOverloadedMethod1Method(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 8114 static void deprecateAsSameValueMeasureAsOverloadedMethod1Method(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
7695 { | 8115 { |
7696 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8116 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7697 impl->deprecateAsSameValueMeasureAsOverloadedMethod(); | 8117 impl->deprecateAsSameValueMeasureAsOverloadedMethod(); |
7698 } | 8118 } |
7699 | 8119 |
7700 static void deprecateAsSameValueMeasureAsOverloadedMethod2Method(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 8120 static void deprecateAsSameValueMeasureAsOverloadedMethod2Method(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
7701 { | 8121 { |
7702 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat
e()); | 8122 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat
e()); |
7703 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8123 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7704 TONATIVE_VOID_EXCEPTIONSTATE(int, arg, toInt32(info[0], exceptionState), exc
eptionState); | 8124 int arg; |
| 8125 { |
| 8126 v8::TryCatch block; |
| 8127 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta
te), exceptionState); |
| 8128 } |
7705 impl->deprecateAsSameValueMeasureAsOverloadedMethod(arg); | 8129 impl->deprecateAsSameValueMeasureAsOverloadedMethod(arg); |
7706 } | 8130 } |
7707 | 8131 |
7708 static void deprecateAsSameValueMeasureAsOverloadedMethodMethod(const v8::Functi
onCallbackInfo<v8::Value>& info) | 8132 static void deprecateAsSameValueMeasureAsOverloadedMethodMethod(const v8::Functi
onCallbackInfo<v8::Value>& info) |
7709 { | 8133 { |
7710 v8::Isolate* isolate = info.GetIsolate(); | 8134 v8::Isolate* isolate = info.GetIsolate(); |
7711 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), isolate); | 8135 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), isolate); |
7712 UseCounter::countDeprecation(callingExecutionContext(isolate), UseCounter::T
estFeature); | 8136 UseCounter::countDeprecation(callingExecutionContext(isolate), UseCounter::T
estFeature); |
7713 switch (std::min(1, info.Length())) { | 8137 switch (std::min(1, info.Length())) { |
7714 case 0: | 8138 case 0: |
(...skipping 29 matching lines...) Expand all Loading... |
7744 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod1Method(const
v8::FunctionCallbackInfo<v8::Value>& info) | 8168 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod1Method(const
v8::FunctionCallbackInfo<v8::Value>& info) |
7745 { | 8169 { |
7746 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8170 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7747 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(); | 8171 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(); |
7748 } | 8172 } |
7749 | 8173 |
7750 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(const
v8::FunctionCallbackInfo<v8::Value>& info) | 8174 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(const
v8::FunctionCallbackInfo<v8::Value>& info) |
7751 { | 8175 { |
7752 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.
GetIsolate()); | 8176 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.
GetIsolate()); |
7753 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8177 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7754 TONATIVE_VOID_EXCEPTIONSTATE(int, arg, toInt32(info[0], exceptionState), exc
eptionState); | 8178 int arg; |
| 8179 { |
| 8180 v8::TryCatch block; |
| 8181 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta
te), exceptionState); |
| 8182 } |
7755 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(arg); | 8183 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(arg); |
7756 } | 8184 } |
7757 | 8185 |
7758 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethod(const v
8::FunctionCallbackInfo<v8::Value>& info) | 8186 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethod(const v
8::FunctionCallbackInfo<v8::Value>& info) |
7759 { | 8187 { |
7760 v8::Isolate* isolate = info.GetIsolate(); | 8188 v8::Isolate* isolate = info.GetIsolate(); |
7761 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), isola
te); | 8189 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs
SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), isola
te); |
7762 UseCounter::count(callingExecutionContext(isolate), UseCounter::TestFeatureB
); | 8190 UseCounter::count(callingExecutionContext(isolate), UseCounter::TestFeatureB
); |
7763 UseCounter::countDeprecation(callingExecutionContext(isolate), UseCounter::T
estFeatureA); | 8191 UseCounter::countDeprecation(callingExecutionContext(isolate), UseCounter::T
estFeatureA); |
7764 switch (std::min(1, info.Length())) { | 8192 switch (std::min(1, info.Length())) { |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7842 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 8270 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7843 } | 8271 } |
7844 | 8272 |
7845 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) | 8273 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) |
7846 { | 8274 { |
7847 if (UNLIKELY(info.Length() < 1)) { | 8275 if (UNLIKELY(info.Length() < 1)) { |
7848 throwMinimumArityTypeErrorForMethod("perWorldBindingsVoidMethodTestInter
faceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate()); | 8276 throwMinimumArityTypeErrorForMethod("perWorldBindingsVoidMethodTestInter
faceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate()); |
7849 return; | 8277 return; |
7850 } | 8278 } |
7851 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8279 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7852 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 8280 TestInterfaceEmpty* testInterfaceEmptyArg; |
| 8281 { |
| 8282 v8::TryCatch block; |
| 8283 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa
tiveWithTypeCheck(info.GetIsolate(), info[0])); |
| 8284 } |
7853 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg)
; | 8285 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg)
; |
7854 } | 8286 } |
7855 | 8287 |
7856 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) | 8288 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
7857 { | 8289 { |
7858 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8290 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7859 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(
info); | 8291 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(
info); |
7860 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 8292 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7861 } | 8293 } |
7862 | 8294 |
7863 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(co
nst v8::FunctionCallbackInfo<v8::Value>& info) | 8295 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
7864 { | 8296 { |
7865 if (UNLIKELY(info.Length() < 1)) { | 8297 if (UNLIKELY(info.Length() < 1)) { |
7866 throwMinimumArityTypeErrorForMethod("perWorldBindingsVoidMethodTestInter
faceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate()); | 8298 throwMinimumArityTypeErrorForMethod("perWorldBindingsVoidMethodTestInter
faceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate()); |
7867 return; | 8299 return; |
7868 } | 8300 } |
7869 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8301 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7870 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 8302 TestInterfaceEmpty* testInterfaceEmptyArg; |
| 8303 { |
| 8304 v8::TryCatch block; |
| 8305 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa
tiveWithTypeCheck(info.GetIsolate(), info[0])); |
| 8306 } |
7871 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg)
; | 8307 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg)
; |
7872 } | 8308 } |
7873 | 8309 |
7874 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMain
World(const v8::FunctionCallbackInfo<v8::Value>& info) | 8310 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMain
World(const v8::FunctionCallbackInfo<v8::Value>& info) |
7875 { | 8311 { |
7876 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8312 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7877 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodF
orMainWorld(info); | 8313 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodF
orMainWorld(info); |
7878 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 8314 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7879 } | 8315 } |
7880 | 8316 |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7975 { | 8411 { |
7976 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8412 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7977 TestObjectV8Internal::raisesExceptionStringMethodMethod(info); | 8413 TestObjectV8Internal::raisesExceptionStringMethodMethod(info); |
7978 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 8414 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7979 } | 8415 } |
7980 | 8416 |
7981 static void raisesExceptionVoidMethodOptionalLongArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 8417 static void raisesExceptionVoidMethodOptionalLongArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
7982 { | 8418 { |
7983 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionVoidMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 8419 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionVoidMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
7984 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8420 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7985 if (UNLIKELY(info.Length() <= 0)) { | 8421 int optionalLongArg; |
7986 impl->raisesExceptionVoidMethodOptionalLongArg(exceptionState); | 8422 { |
7987 if (exceptionState.throwIfNeeded()) | 8423 v8::TryCatch block; |
| 8424 if (UNLIKELY(info.Length() <= 0)) { |
| 8425 impl->raisesExceptionVoidMethodOptionalLongArg(exceptionState); |
| 8426 if (exceptionState.throwIfNeeded()) |
| 8427 return; |
7988 return; | 8428 return; |
7989 return; | 8429 } |
| 8430 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0],
exceptionState), exceptionState); |
7990 } | 8431 } |
7991 TONATIVE_VOID_EXCEPTIONSTATE(int, optionalLongArg, toInt32(info[0], exceptio
nState), exceptionState); | |
7992 impl->raisesExceptionVoidMethodOptionalLongArg(optionalLongArg, exceptionSta
te); | 8432 impl->raisesExceptionVoidMethodOptionalLongArg(optionalLongArg, exceptionSta
te); |
7993 if (exceptionState.throwIfNeeded()) | 8433 if (exceptionState.throwIfNeeded()) |
7994 return; | 8434 return; |
7995 } | 8435 } |
7996 | 8436 |
7997 static void raisesExceptionVoidMethodOptionalLongArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) | 8437 static void raisesExceptionVoidMethodOptionalLongArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
7998 { | 8438 { |
7999 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8439 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
8000 TestObjectV8Internal::raisesExceptionVoidMethodOptionalLongArgMethod(info); | 8440 TestObjectV8Internal::raisesExceptionVoidMethodOptionalLongArgMethod(info); |
8001 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 8441 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
8002 } | 8442 } |
8003 | 8443 |
8004 static void raisesExceptionVoidMethodTestCallbackInterfaceArgMethod(const v8::Fu
nctionCallbackInfo<v8::Value>& info) | 8444 static void raisesExceptionVoidMethodTestCallbackInterfaceArgMethod(const v8::Fu
nctionCallbackInfo<v8::Value>& info) |
8005 { | 8445 { |
8006 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionVoidMethodTestCallbackInterfaceArg", "TestObject", info.Holder(), info.GetIs
olate()); | 8446 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionVoidMethodTestCallbackInterfaceArg", "TestObject", info.Holder(), info.GetIs
olate()); |
8007 if (UNLIKELY(info.Length() < 1)) { | 8447 if (UNLIKELY(info.Length() < 1)) { |
8008 throwMinimumArityTypeError(exceptionState, 1, info.Length()); | 8448 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
8009 return; | 8449 return; |
8010 } | 8450 } |
8011 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8451 TestObject* impl = V8TestObject::toNative(info.Holder()); |
8012 if (info.Length() <= 0 || !info[0]->IsFunction()) { | 8452 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg; |
8013 exceptionState.throwTypeError("The callback provided as parameter 1 is n
ot a function."); | 8453 { |
8014 exceptionState.throwIfNeeded(); | 8454 if (info.Length() <= 0 || !info[0]->IsFunction()) { |
8015 return; | 8455 exceptionState.throwTypeError("The callback provided as parameter 1
is not a function."); |
| 8456 exceptionState.throwIfNeeded(); |
| 8457 return; |
| 8458 } |
| 8459 testCallbackInterfaceArg = V8TestCallbackInterface::create(v8::Handle<v8
::Function>::Cast(info[0]), ScriptState::current(info.GetIsolate())); |
8016 } | 8460 } |
8017 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = V8TestCallbackInter
face::create(v8::Handle<v8::Function>::Cast(info[0]), ScriptState::current(info.
GetIsolate())); | |
8018 impl->raisesExceptionVoidMethodTestCallbackInterfaceArg(testCallbackInterfac
eArg.release(), exceptionState); | 8461 impl->raisesExceptionVoidMethodTestCallbackInterfaceArg(testCallbackInterfac
eArg.release(), exceptionState); |
8019 if (exceptionState.throwIfNeeded()) | 8462 if (exceptionState.throwIfNeeded()) |
8020 return; | 8463 return; |
8021 } | 8464 } |
8022 | 8465 |
8023 static void raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback(cons
t v8::FunctionCallbackInfo<v8::Value>& info) | 8466 static void raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback(cons
t v8::FunctionCallbackInfo<v8::Value>& info) |
8024 { | 8467 { |
8025 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8468 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
8026 TestObjectV8Internal::raisesExceptionVoidMethodTestCallbackInterfaceArgMetho
d(info); | 8469 TestObjectV8Internal::raisesExceptionVoidMethodTestCallbackInterfaceArgMetho
d(info); |
8027 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 8470 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
8028 } | 8471 } |
8029 | 8472 |
8030 static void raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethod(cons
t v8::FunctionCallbackInfo<v8::Value>& info) | 8473 static void raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethod(cons
t v8::FunctionCallbackInfo<v8::Value>& info) |
8031 { | 8474 { |
8032 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionVoidMethodOptionalTestCallbackInterfaceArg", "TestObject", info.Holder(), in
fo.GetIsolate()); | 8475 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionVoidMethodOptionalTestCallbackInterfaceArg", "TestObject", info.Holder(), in
fo.GetIsolate()); |
8033 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8476 TestObject* impl = V8TestObject::toNative(info.Holder()); |
8034 OwnPtr<TestCallbackInterface> optionalTestCallbackInterfaceArg; | 8477 OwnPtr<TestCallbackInterface> optionalTestCallbackInterfaceArg; |
8035 if (info.Length() > 0 && !isUndefinedOrNull(info[0])) { | 8478 { |
8036 if (!info[0]->IsFunction()) { | 8479 if (info.Length() > 0 && !isUndefinedOrNull(info[0])) { |
8037 exceptionState.throwTypeError("The callback provided as parameter 1
is not a function."); | 8480 if (!info[0]->IsFunction()) { |
8038 exceptionState.throwIfNeeded(); | 8481 exceptionState.throwTypeError("The callback provided as paramete
r 1 is not a function."); |
8039 return; | 8482 exceptionState.throwIfNeeded(); |
| 8483 return; |
| 8484 } |
| 8485 optionalTestCallbackInterfaceArg = V8TestCallbackInterface::create(v
8::Handle<v8::Function>::Cast(info[0]), ScriptState::current(info.GetIsolate()))
; |
8040 } | 8486 } |
8041 optionalTestCallbackInterfaceArg = V8TestCallbackInterface::create(v8::H
andle<v8::Function>::Cast(info[0]), ScriptState::current(info.GetIsolate())); | |
8042 } | 8487 } |
8043 impl->raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg(optionalTest
CallbackInterfaceArg.release(), exceptionState); | 8488 impl->raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg(optionalTest
CallbackInterfaceArg.release(), exceptionState); |
8044 if (exceptionState.throwIfNeeded()) | 8489 if (exceptionState.throwIfNeeded()) |
8045 return; | 8490 return; |
8046 } | 8491 } |
8047 | 8492 |
8048 static void raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCallb
ack(const v8::FunctionCallbackInfo<v8::Value>& info) | 8493 static void raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCallb
ack(const v8::FunctionCallbackInfo<v8::Value>& info) |
8049 { | 8494 { |
8050 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8495 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
8051 TestObjectV8Internal::raisesExceptionVoidMethodOptionalTestCallbackInterface
ArgMethod(info); | 8496 TestObjectV8Internal::raisesExceptionVoidMethodOptionalTestCallbackInterface
ArgMethod(info); |
(...skipping 18 matching lines...) Expand all Loading... |
8070 } | 8515 } |
8071 | 8516 |
8072 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) | 8517 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) |
8073 { | 8518 { |
8074 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe
cutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), inf
o.GetIsolate()); | 8519 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe
cutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), inf
o.GetIsolate()); |
8075 if (UNLIKELY(info.Length() < 1)) { | 8520 if (UNLIKELY(info.Length() < 1)) { |
8076 throwMinimumArityTypeError(exceptionState, 1, info.Length()); | 8521 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
8077 return; | 8522 return; |
8078 } | 8523 } |
8079 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8524 TestObject* impl = V8TestObject::toNative(info.Holder()); |
8080 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState),
exceptionState); | 8525 int longArg; |
| 8526 { |
| 8527 v8::TryCatch block; |
| 8528 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio
nState), exceptionState); |
| 8529 } |
8081 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; | 8530 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; |
8082 impl->callWithExecutionContextRaisesExceptionVoidMethodLongArg(scriptContext
, longArg, exceptionState); | 8531 impl->callWithExecutionContextRaisesExceptionVoidMethodLongArg(scriptContext
, longArg, exceptionState); |
8083 if (exceptionState.throwIfNeeded()) | 8532 if (exceptionState.throwIfNeeded()) |
8084 return; | 8533 return; |
8085 } | 8534 } |
8086 | 8535 |
8087 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) | 8536 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) |
8088 { | 8537 { |
8089 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8538 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
8090 TestObjectV8Internal::callWithExecutionContextRaisesExceptionVoidMethodLongA
rgMethod(info); | 8539 TestObjectV8Internal::callWithExecutionContextRaisesExceptionVoidMethodLongA
rgMethod(info); |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8182 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 8631 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
8183 } | 8632 } |
8184 | 8633 |
8185 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethod(const v8:
:FunctionCallbackInfo<v8::Value>& info) | 8634 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethod(const v8:
:FunctionCallbackInfo<v8::Value>& info) |
8186 { | 8635 { |
8187 if (UNLIKELY(info.Length() < 1)) { | 8636 if (UNLIKELY(info.Length() < 1)) { |
8188 throwMinimumArityTypeErrorForMethod("typeCheckingInterfaceVoidMethodTest
InterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate()); | 8637 throwMinimumArityTypeErrorForMethod("typeCheckingInterfaceVoidMethodTest
InterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate()); |
8189 return; | 8638 return; |
8190 } | 8639 } |
8191 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8640 TestObject* impl = V8TestObject::toNative(info.Holder()); |
8192 if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], info.Ge
tIsolate())) { | 8641 TestInterfaceEmpty* testInterfaceEmptyArg; |
8193 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingInterface
VoidMethodTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'Tes
tInterfaceEmpty'."), info.GetIsolate()); | 8642 { |
8194 return; | 8643 v8::TryCatch block; |
| 8644 if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], inf
o.GetIsolate())) { |
| 8645 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingInter
faceVoidMethodTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type
'TestInterfaceEmpty'."), info.GetIsolate()); |
| 8646 block.ReThrow(); |
| 8647 return; |
| 8648 } |
| 8649 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa
tiveWithTypeCheck(info.GetIsolate(), info[0])); |
8195 } | 8650 } |
8196 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | |
8197 impl->typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg(testInterfaceEmpt
yArg); | 8651 impl->typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg(testInterfaceEmpt
yArg); |
8198 } | 8652 } |
8199 | 8653 |
8200 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback(c
onst v8::FunctionCallbackInfo<v8::Value>& info) | 8654 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback(c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
8201 { | 8655 { |
8202 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8656 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
8203 TestObjectV8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMe
thod(info); | 8657 TestObjectV8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMe
thod(info); |
8204 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 8658 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
8205 } | 8659 } |
8206 | 8660 |
8207 static void typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethod(cons
t v8::FunctionCallbackInfo<v8::Value>& info) | 8661 static void typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethod(cons
t v8::FunctionCallbackInfo<v8::Value>& info) |
8208 { | 8662 { |
8209 if (UNLIKELY(info.Length() < 1)) { | 8663 if (UNLIKELY(info.Length() < 1)) { |
8210 throwMinimumArityTypeErrorForMethod("typeCheckingNullableVoidMethodTestI
nterfaceEmptyOrNullArg", "TestObject", 1, info.Length(), info.GetIsolate()); | 8664 throwMinimumArityTypeErrorForMethod("typeCheckingNullableVoidMethodTestI
nterfaceEmptyOrNullArg", "TestObject", 1, info.Length(), info.GetIsolate()); |
8211 return; | 8665 return; |
8212 } | 8666 } |
8213 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8667 TestObject* impl = V8TestObject::toNative(info.Holder()); |
8214 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyOrNullArg, V8TestInterf
aceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 8668 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; |
| 8669 { |
| 8670 v8::TryCatch block; |
| 8671 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceEmpty
::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
| 8672 } |
8215 impl->typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArg(testInterfac
eEmptyOrNullArg); | 8673 impl->typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArg(testInterfac
eEmptyOrNullArg); |
8216 } | 8674 } |
8217 | 8675 |
8218 static void typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethodCallb
ack(const v8::FunctionCallbackInfo<v8::Value>& info) | 8676 static void typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethodCallb
ack(const v8::FunctionCallbackInfo<v8::Value>& info) |
8219 { | 8677 { |
8220 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8678 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
8221 TestObjectV8Internal::typeCheckingNullableVoidMethodTestInterfaceEmptyOrNull
ArgMethod(info); | 8679 TestObjectV8Internal::typeCheckingNullableVoidMethodTestInterfaceEmptyOrNull
ArgMethod(info); |
8222 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 8680 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
8223 } | 8681 } |
8224 | 8682 |
8225 static void typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArgMe
thod(const v8::FunctionCallbackInfo<v8::Value>& info) | 8683 static void typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArgMe
thod(const v8::FunctionCallbackInfo<v8::Value>& info) |
8226 { | 8684 { |
8227 if (UNLIKELY(info.Length() < 1)) { | 8685 if (UNLIKELY(info.Length() < 1)) { |
8228 throwMinimumArityTypeErrorForMethod("typeCheckingInterfaceNullableVoidMe
thodTestInterfaceEmptyOrNullArg", "TestObject", 1, info.Length(), info.GetIsolat
e()); | 8686 throwMinimumArityTypeErrorForMethod("typeCheckingInterfaceNullableVoidMe
thodTestInterfaceEmptyOrNullArg", "TestObject", 1, info.Length(), info.GetIsolat
e()); |
8229 return; | 8687 return; |
8230 } | 8688 } |
8231 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8689 TestObject* impl = V8TestObject::toNative(info.Holder()); |
8232 if (info.Length() > 0 && !isUndefinedOrNull(info[0]) && !V8TestInterfaceEmpt
y::hasInstance(info[0], info.GetIsolate())) { | 8690 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; |
8233 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingInterface
NullableVoidMethodTestInterfaceEmptyOrNullArg", "TestObject", "parameter 1 is no
t of type 'TestInterfaceEmpty'."), info.GetIsolate()); | 8691 { |
8234 return; | 8692 v8::TryCatch block; |
| 8693 if (info.Length() > 0 && !isUndefinedOrNull(info[0]) && !V8TestInterface
Empty::hasInstance(info[0], info.GetIsolate())) { |
| 8694 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingInter
faceNullableVoidMethodTestInterfaceEmptyOrNullArg", "TestObject", "parameter 1 i
s not of type 'TestInterfaceEmpty'."), info.GetIsolate()); |
| 8695 block.ReThrow(); |
| 8696 return; |
| 8697 } |
| 8698 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceEmpty
::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
8235 } | 8699 } |
8236 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyOrNullArg, V8TestInterf
aceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | |
8237 impl->typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArg(tes
tInterfaceEmptyOrNullArg); | 8700 impl->typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArg(tes
tInterfaceEmptyOrNullArg); |
8238 } | 8701 } |
8239 | 8702 |
8240 static void typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArgMe
thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 8703 static void typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArgMe
thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
8241 { | 8704 { |
8242 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8705 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
8243 TestObjectV8Internal::typeCheckingInterfaceNullableVoidMethodTestInterfaceEm
ptyOrNullArgMethod(info); | 8706 TestObjectV8Internal::typeCheckingInterfaceNullableVoidMethodTestInterfaceEm
ptyOrNullArgMethod(info); |
8244 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 8707 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
8245 } | 8708 } |
8246 | 8709 |
8247 static void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethod(const v8::
FunctionCallbackInfo<v8::Value>& info) | 8710 static void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethod(const v8::
FunctionCallbackInfo<v8::Value>& info) |
8248 { | 8711 { |
8249 if (UNLIKELY(info.Length() < 2)) { | 8712 if (UNLIKELY(info.Length() < 2)) { |
8250 throwMinimumArityTypeErrorForMethod("typeCheckingUnrestrictedVoidMethodF
loatArgDoubleArg", "TestObject", 2, info.Length(), info.GetIsolate()); | 8713 throwMinimumArityTypeErrorForMethod("typeCheckingUnrestrictedVoidMethodF
loatArgDoubleArg", "TestObject", 2, info.Length(), info.GetIsolate()); |
8251 return; | 8714 return; |
8252 } | 8715 } |
8253 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8716 TestObject* impl = V8TestObject::toNative(info.Holder()); |
8254 TONATIVE_VOID(float, floatArg, static_cast<float>(info[0]->NumberValue())); | 8717 float floatArg; |
8255 if (!std::isfinite(floatArg)) { | 8718 double doubleArg; |
8256 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingUnrestric
tedVoidMethodFloatArgDoubleArg", "TestObject", "float parameter 1 is non-finite.
"), info.GetIsolate()); | 8719 { |
8257 return; | 8720 v8::TryCatch block; |
8258 } | 8721 TONATIVE_VOID_INTERNAL(floatArg, static_cast<float>(info[0]->NumberValue
())); |
8259 TONATIVE_VOID(double, doubleArg, static_cast<double>(info[1]->NumberValue())
); | 8722 if (!std::isfinite(floatArg)) { |
8260 if (!std::isfinite(doubleArg)) { | 8723 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingUnres
trictedVoidMethodFloatArgDoubleArg", "TestObject", "float parameter 1 is non-fin
ite."), info.GetIsolate()); |
8261 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingUnrestric
tedVoidMethodFloatArgDoubleArg", "TestObject", "double parameter 2 is non-finite
."), info.GetIsolate()); | 8724 block.ReThrow(); |
8262 return; | 8725 return; |
| 8726 } |
| 8727 TONATIVE_VOID_INTERNAL(doubleArg, static_cast<double>(info[1]->NumberVal
ue())); |
| 8728 if (!std::isfinite(doubleArg)) { |
| 8729 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingUnres
trictedVoidMethodFloatArgDoubleArg", "TestObject", "double parameter 2 is non-fi
nite."), info.GetIsolate()); |
| 8730 block.ReThrow(); |
| 8731 return; |
| 8732 } |
8263 } | 8733 } |
8264 impl->typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg(floatArg, doubleAr
g); | 8734 impl->typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg(floatArg, doubleAr
g); |
8265 } | 8735 } |
8266 | 8736 |
8267 static void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethodCallback(co
nst v8::FunctionCallbackInfo<v8::Value>& info) | 8737 static void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethodCallback(co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
8268 { | 8738 { |
8269 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8739 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
8270 TestObjectV8Internal::typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMet
hod(info); | 8740 TestObjectV8Internal::typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMet
hod(info); |
8271 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 8741 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
8272 } | 8742 } |
(...skipping 11 matching lines...) Expand all Loading... |
8284 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 8754 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
8285 } | 8755 } |
8286 | 8756 |
8287 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethod(const v8::F
unctionCallbackInfo<v8::Value>& info) | 8757 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethod(const v8::F
unctionCallbackInfo<v8::Value>& info) |
8288 { | 8758 { |
8289 if (UNLIKELY(info.Length() < 1)) { | 8759 if (UNLIKELY(info.Length() < 1)) { |
8290 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceGarbageColle
ctedSequenceArg", "TestObject", 1, info.Length(), info.GetIsolate()); | 8760 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceGarbageColle
ctedSequenceArg", "TestObject", 1, info.Length(), info.GetIsolate()); |
8291 return; | 8761 return; |
8292 } | 8762 } |
8293 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8763 TestObject* impl = V8TestObject::toNative(info.Holder()); |
8294 TONATIVE_VOID(HeapVector<Member<TestInterfaceGarbageCollected> >, testInterf
aceGarbageCollectedSequenceArg, (toMemberNativeArray<TestInterfaceGarbageCollect
ed, V8TestInterfaceGarbageCollected>(info[0], 1, info.GetIsolate()))); | 8764 HeapVector<Member<TestInterfaceGarbageCollected> > testInterfaceGarbageColle
ctedSequenceArg; |
| 8765 { |
| 8766 v8::TryCatch block; |
| 8767 TONATIVE_VOID_INTERNAL(testInterfaceGarbageCollectedSequenceArg, (toMemb
erNativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageCollected>(in
fo[0], 1, info.GetIsolate()))); |
| 8768 } |
8295 impl->voidMethodTestInterfaceGarbageCollectedSequenceArg(testInterfaceGarbag
eCollectedSequenceArg); | 8769 impl->voidMethodTestInterfaceGarbageCollectedSequenceArg(testInterfaceGarbag
eCollectedSequenceArg); |
8296 } | 8770 } |
8297 | 8771 |
8298 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback(con
st v8::FunctionCallbackInfo<v8::Value>& info) | 8772 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback(con
st v8::FunctionCallbackInfo<v8::Value>& info) |
8299 { | 8773 { |
8300 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8774 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
8301 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedSequenceArgMeth
od(info); | 8775 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedSequenceArgMeth
od(info); |
8302 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 8776 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
8303 } | 8777 } |
8304 | 8778 |
8305 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) | 8779 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) |
8306 { | 8780 { |
8307 if (UNLIKELY(info.Length() < 1)) { | 8781 if (UNLIKELY(info.Length() < 1)) { |
8308 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceGarbageColle
ctedArrayArg", "TestObject", 1, info.Length(), info.GetIsolate()); | 8782 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceGarbageColle
ctedArrayArg", "TestObject", 1, info.Length(), info.GetIsolate()); |
8309 return; | 8783 return; |
8310 } | 8784 } |
8311 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8785 TestObject* impl = V8TestObject::toNative(info.Holder()); |
8312 TONATIVE_VOID(HeapVector<Member<TestInterfaceGarbageCollected> >, testInterf
aceGarbageCollectedArrayArg, (toMemberNativeArray<TestInterfaceGarbageCollected,
V8TestInterfaceGarbageCollected>(info[0], 1, info.GetIsolate()))); | 8786 HeapVector<Member<TestInterfaceGarbageCollected> > testInterfaceGarbageColle
ctedArrayArg; |
| 8787 { |
| 8788 v8::TryCatch block; |
| 8789 TONATIVE_VOID_INTERNAL(testInterfaceGarbageCollectedArrayArg, (toMemberN
ativeArray<TestInterfaceGarbageCollected, V8TestInterfaceGarbageCollected>(info[
0], 1, info.GetIsolate()))); |
| 8790 } |
8313 impl->voidMethodTestInterfaceGarbageCollectedArrayArg(testInterfaceGarbageCo
llectedArrayArg); | 8791 impl->voidMethodTestInterfaceGarbageCollectedArrayArg(testInterfaceGarbageCo
llectedArrayArg); |
8314 } | 8792 } |
8315 | 8793 |
8316 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) | 8794 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
8317 { | 8795 { |
8318 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8796 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
8319 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedArrayArgMethod(
info); | 8797 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedArrayArgMethod(
info); |
8320 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 8798 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
8321 } | 8799 } |
8322 | 8800 |
8323 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) | 8801 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) |
8324 { | 8802 { |
8325 if (UNLIKELY(info.Length() < 1)) { | 8803 if (UNLIKELY(info.Length() < 1)) { |
8326 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceWillBeGarbag
eCollectedSequenceArg", "TestObject", 1, info.Length(), info.GetIsolate()); | 8804 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceWillBeGarbag
eCollectedSequenceArg", "TestObject", 1, info.Length(), info.GetIsolate()); |
8327 return; | 8805 return; |
8328 } | 8806 } |
8329 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8807 TestObject* impl = V8TestObject::toNative(info.Holder()); |
8330 TONATIVE_VOID(WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbage
Collected> >, testInterfaceWillBeGarbageCollectedSequenceArg, (toRefPtrWillBeMem
berNativeArray<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbage
Collected>(info[0], 1, info.GetIsolate()))); | 8808 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > t
estInterfaceWillBeGarbageCollectedSequenceArg; |
| 8809 { |
| 8810 v8::TryCatch block; |
| 8811 TONATIVE_VOID_INTERNAL(testInterfaceWillBeGarbageCollectedSequenceArg, (
toRefPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollected, V8TestInter
faceWillBeGarbageCollected>(info[0], 1, info.GetIsolate()))); |
| 8812 } |
8331 impl->voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(testInterface
WillBeGarbageCollectedSequenceArg); | 8813 impl->voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(testInterface
WillBeGarbageCollectedSequenceArg); |
8332 } | 8814 } |
8333 | 8815 |
8334 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) | 8816 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) |
8335 { | 8817 { |
8336 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8818 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
8337 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceA
rgMethod(info); | 8819 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceA
rgMethod(info); |
8338 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 8820 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
8339 } | 8821 } |
8340 | 8822 |
8341 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethod(const v8
::FunctionCallbackInfo<v8::Value>& info) | 8823 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethod(const v8
::FunctionCallbackInfo<v8::Value>& info) |
8342 { | 8824 { |
8343 if (UNLIKELY(info.Length() < 1)) { | 8825 if (UNLIKELY(info.Length() < 1)) { |
8344 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceWillBeGarbag
eCollectedArrayArg", "TestObject", 1, info.Length(), info.GetIsolate()); | 8826 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceWillBeGarbag
eCollectedArrayArg", "TestObject", 1, info.Length(), info.GetIsolate()); |
8345 return; | 8827 return; |
8346 } | 8828 } |
8347 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8829 TestObject* impl = V8TestObject::toNative(info.Holder()); |
8348 TONATIVE_VOID(WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbage
Collected> >, testInterfaceWillBeGarbageCollectedArrayArg, (toRefPtrWillBeMember
NativeArray<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageCol
lected>(info[0], 1, info.GetIsolate()))); | 8830 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > t
estInterfaceWillBeGarbageCollectedArrayArg; |
| 8831 { |
| 8832 v8::TryCatch block; |
| 8833 TONATIVE_VOID_INTERNAL(testInterfaceWillBeGarbageCollectedArrayArg, (toR
efPtrWillBeMemberNativeArray<TestInterfaceWillBeGarbageCollected, V8TestInterfac
eWillBeGarbageCollected>(info[0], 1, info.GetIsolate()))); |
| 8834 } |
8349 impl->voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(testInterfaceWil
lBeGarbageCollectedArrayArg); | 8835 impl->voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(testInterfaceWil
lBeGarbageCollectedArrayArg); |
8350 } | 8836 } |
8351 | 8837 |
8352 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) | 8838 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) |
8353 { | 8839 { |
8354 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8840 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
8355 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgM
ethod(info); | 8841 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgM
ethod(info); |
8356 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 8842 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
8357 } | 8843 } |
8358 | 8844 |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8863 fromInternalPointer(object)->deref(); | 9349 fromInternalPointer(object)->deref(); |
8864 } | 9350 } |
8865 | 9351 |
8866 template<> | 9352 template<> |
8867 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) | 9353 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) |
8868 { | 9354 { |
8869 return toV8(impl, creationContext, isolate); | 9355 return toV8(impl, creationContext, isolate); |
8870 } | 9356 } |
8871 | 9357 |
8872 } // namespace WebCore | 9358 } // namespace WebCore |
OLD | NEW |