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