| 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 4736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4747 static void unsignedShortMethodMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 4747 static void unsignedShortMethodMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 4748 { | 4748 { |
| 4749 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4749 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4750 TestObjectV8Internal::unsignedShortMethodMethod(info); | 4750 TestObjectV8Internal::unsignedShortMethodMethod(info); |
| 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 throwMinimumArityTypeErrorForMethod("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 TONATIVE_VOID(double, dateArg, toCoreDate(info[0])); |
| 4762 impl->voidMethodDateArg(dateArg); | 4762 impl->voidMethodDateArg(dateArg); |
| 4763 } | 4763 } |
| 4764 | 4764 |
| 4765 static void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4765 static void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 4766 { | 4766 { |
| 4767 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4767 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4768 TestObjectV8Internal::voidMethodDateArgMethod(info); | 4768 TestObjectV8Internal::voidMethodDateArgMethod(info); |
| 4769 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4769 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 4770 } | 4770 } |
| 4771 | 4771 |
| 4772 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4772 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 4773 { | 4773 { |
| 4774 if (UNLIKELY(info.Length() < 1)) { | 4774 if (UNLIKELY(info.Length() < 1)) { |
| 4775 throwArityTypeErrorForMethod("voidMethodStringArg", "TestObject", 1, inf
o.Length(), info.GetIsolate()); | 4775 throwMinimumArityTypeErrorForMethod("voidMethodStringArg", "TestObject",
1, info.Length(), info.GetIsolate()); |
| 4776 return; | 4776 return; |
| 4777 } | 4777 } |
| 4778 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4778 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 4779 TOSTRING_VOID(V8StringResource<>, stringArg, info[0]); | 4779 TOSTRING_VOID(V8StringResource<>, stringArg, info[0]); |
| 4780 impl->voidMethodStringArg(stringArg); | 4780 impl->voidMethodStringArg(stringArg); |
| 4781 } | 4781 } |
| 4782 | 4782 |
| 4783 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 4783 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 4784 { | 4784 { |
| 4785 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4785 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4786 TestObjectV8Internal::voidMethodStringArgMethod(info); | 4786 TestObjectV8Internal::voidMethodStringArgMethod(info); |
| 4787 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4787 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 4788 } | 4788 } |
| 4789 | 4789 |
| 4790 static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4790 static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 4791 { | 4791 { |
| 4792 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
OMTimeStampArg", "TestObject", info.Holder(), info.GetIsolate()); | 4792 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
OMTimeStampArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 4793 if (UNLIKELY(info.Length() < 1)) { | 4793 if (UNLIKELY(info.Length() < 1)) { |
| 4794 throwArityTypeError(exceptionState, 1, info.Length()); | 4794 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 4795 return; | 4795 return; |
| 4796 } | 4796 } |
| 4797 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4797 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 4798 TONATIVE_VOID_EXCEPTIONSTATE(unsigned long long, domTimeStampArg, toUInt64(i
nfo[0], exceptionState), exceptionState); | 4798 TONATIVE_VOID_EXCEPTIONSTATE(unsigned long long, domTimeStampArg, toUInt64(i
nfo[0], exceptionState), exceptionState); |
| 4799 impl->voidMethodDOMTimeStampArg(domTimeStampArg); | 4799 impl->voidMethodDOMTimeStampArg(domTimeStampArg); |
| 4800 } | 4800 } |
| 4801 | 4801 |
| 4802 static void voidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 4802 static void voidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 4803 { | 4803 { |
| 4804 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4804 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4805 TestObjectV8Internal::voidMethodDOMTimeStampArgMethod(info); | 4805 TestObjectV8Internal::voidMethodDOMTimeStampArgMethod(info); |
| 4806 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4806 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 4807 } | 4807 } |
| 4808 | 4808 |
| 4809 static void voidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) | 4809 static void voidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
| 4810 { | 4810 { |
| 4811 if (UNLIKELY(info.Length() < 1)) { | 4811 if (UNLIKELY(info.Length() < 1)) { |
| 4812 throwArityTypeErrorForMethod("voidMethodBooleanArg", "TestObject", 1, in
fo.Length(), info.GetIsolate()); | 4812 throwMinimumArityTypeErrorForMethod("voidMethodBooleanArg", "TestObject"
, 1, info.Length(), info.GetIsolate()); |
| 4813 return; | 4813 return; |
| 4814 } | 4814 } |
| 4815 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4815 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 4816 TONATIVE_VOID(bool, booleanArg, info[0]->BooleanValue()); | 4816 TONATIVE_VOID(bool, booleanArg, info[0]->BooleanValue()); |
| 4817 impl->voidMethodBooleanArg(booleanArg); | 4817 impl->voidMethodBooleanArg(booleanArg); |
| 4818 } | 4818 } |
| 4819 | 4819 |
| 4820 static void voidMethodBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) | 4820 static void voidMethodBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
| 4821 { | 4821 { |
| 4822 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4822 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4823 TestObjectV8Internal::voidMethodBooleanArgMethod(info); | 4823 TestObjectV8Internal::voidMethodBooleanArgMethod(info); |
| 4824 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4824 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 4825 } | 4825 } |
| 4826 | 4826 |
| 4827 static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 4827 static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 4828 { | 4828 { |
| 4829 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB
yteArg", "TestObject", info.Holder(), info.GetIsolate()); | 4829 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB
yteArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 4830 if (UNLIKELY(info.Length() < 1)) { | 4830 if (UNLIKELY(info.Length() < 1)) { |
| 4831 throwArityTypeError(exceptionState, 1, info.Length()); | 4831 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 4832 return; | 4832 return; |
| 4833 } | 4833 } |
| 4834 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4834 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 4835 TONATIVE_VOID_EXCEPTIONSTATE(int, byteArg, toInt8(info[0], exceptionState),
exceptionState); | 4835 TONATIVE_VOID_EXCEPTIONSTATE(int, byteArg, toInt8(info[0], exceptionState),
exceptionState); |
| 4836 impl->voidMethodByteArg(byteArg); | 4836 impl->voidMethodByteArg(byteArg); |
| 4837 } | 4837 } |
| 4838 | 4838 |
| 4839 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4839 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 4840 { | 4840 { |
| 4841 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4841 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4842 TestObjectV8Internal::voidMethodByteArgMethod(info); | 4842 TestObjectV8Internal::voidMethodByteArgMethod(info); |
| 4843 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4843 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 4844 } | 4844 } |
| 4845 | 4845 |
| 4846 static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4846 static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 4847 { | 4847 { |
| 4848 if (UNLIKELY(info.Length() < 1)) { | 4848 if (UNLIKELY(info.Length() < 1)) { |
| 4849 throwArityTypeErrorForMethod("voidMethodDoubleArg", "TestObject", 1, inf
o.Length(), info.GetIsolate()); | 4849 throwMinimumArityTypeErrorForMethod("voidMethodDoubleArg", "TestObject",
1, info.Length(), info.GetIsolate()); |
| 4850 return; | 4850 return; |
| 4851 } | 4851 } |
| 4852 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4852 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 4853 TONATIVE_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue())
); | 4853 TONATIVE_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue())
); |
| 4854 impl->voidMethodDoubleArg(doubleArg); | 4854 impl->voidMethodDoubleArg(doubleArg); |
| 4855 } | 4855 } |
| 4856 | 4856 |
| 4857 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 4857 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 4858 { | 4858 { |
| 4859 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4859 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4860 TestObjectV8Internal::voidMethodDoubleArgMethod(info); | 4860 TestObjectV8Internal::voidMethodDoubleArgMethod(info); |
| 4861 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4861 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 4862 } | 4862 } |
| 4863 | 4863 |
| 4864 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4864 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 4865 { | 4865 { |
| 4866 if (UNLIKELY(info.Length() < 1)) { | 4866 if (UNLIKELY(info.Length() < 1)) { |
| 4867 throwArityTypeErrorForMethod("voidMethodFloatArg", "TestObject", 1, info
.Length(), info.GetIsolate()); | 4867 throwMinimumArityTypeErrorForMethod("voidMethodFloatArg", "TestObject",
1, info.Length(), info.GetIsolate()); |
| 4868 return; | 4868 return; |
| 4869 } | 4869 } |
| 4870 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4870 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 4871 TONATIVE_VOID(float, floatArg, static_cast<float>(info[0]->NumberValue())); | 4871 TONATIVE_VOID(float, floatArg, static_cast<float>(info[0]->NumberValue())); |
| 4872 impl->voidMethodFloatArg(floatArg); | 4872 impl->voidMethodFloatArg(floatArg); |
| 4873 } | 4873 } |
| 4874 | 4874 |
| 4875 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 4875 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 4876 { | 4876 { |
| 4877 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4877 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4878 TestObjectV8Internal::voidMethodFloatArgMethod(info); | 4878 TestObjectV8Internal::voidMethodFloatArgMethod(info); |
| 4879 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4879 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 4880 } | 4880 } |
| 4881 | 4881 |
| 4882 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 4882 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 4883 { | 4883 { |
| 4884 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArg", "TestObject", info.Holder(), info.GetIsolate()); | 4884 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 4885 if (UNLIKELY(info.Length() < 1)) { | 4885 if (UNLIKELY(info.Length() < 1)) { |
| 4886 throwArityTypeError(exceptionState, 1, info.Length()); | 4886 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 4887 return; | 4887 return; |
| 4888 } | 4888 } |
| 4889 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4889 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 4890 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState),
exceptionState); | 4890 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState),
exceptionState); |
| 4891 impl->voidMethodLongArg(longArg); | 4891 impl->voidMethodLongArg(longArg); |
| 4892 } | 4892 } |
| 4893 | 4893 |
| 4894 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4894 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 4895 { | 4895 { |
| 4896 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4896 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4897 TestObjectV8Internal::voidMethodLongArgMethod(info); | 4897 TestObjectV8Internal::voidMethodLongArgMethod(info); |
| 4898 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4898 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 4899 } | 4899 } |
| 4900 | 4900 |
| 4901 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 4901 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
| 4902 { | 4902 { |
| 4903 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 4903 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 4904 if (UNLIKELY(info.Length() < 1)) { | 4904 if (UNLIKELY(info.Length() < 1)) { |
| 4905 throwArityTypeError(exceptionState, 1, info.Length()); | 4905 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 4906 return; | 4906 return; |
| 4907 } | 4907 } |
| 4908 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4908 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 4909 TONATIVE_VOID_EXCEPTIONSTATE(long long, longLongArg, toInt64(info[0], except
ionState), exceptionState); | 4909 TONATIVE_VOID_EXCEPTIONSTATE(long long, longLongArg, toInt64(info[0], except
ionState), exceptionState); |
| 4910 impl->voidMethodLongLongArg(longLongArg); | 4910 impl->voidMethodLongLongArg(longLongArg); |
| 4911 } | 4911 } |
| 4912 | 4912 |
| 4913 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 4913 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 4914 { | 4914 { |
| 4915 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4915 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4916 TestObjectV8Internal::voidMethodLongLongArgMethod(info); | 4916 TestObjectV8Internal::voidMethodLongLongArgMethod(info); |
| 4917 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4917 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 4918 } | 4918 } |
| 4919 | 4919 |
| 4920 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4920 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 4921 { | 4921 { |
| 4922 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ctetArg", "TestObject", info.Holder(), info.GetIsolate()); | 4922 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ctetArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 4923 if (UNLIKELY(info.Length() < 1)) { | 4923 if (UNLIKELY(info.Length() < 1)) { |
| 4924 throwArityTypeError(exceptionState, 1, info.Length()); | 4924 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 4925 return; | 4925 return; |
| 4926 } | 4926 } |
| 4927 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4927 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 4928 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, octetArg, toUInt8(info[0], exceptionS
tate), exceptionState); | 4928 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, octetArg, toUInt8(info[0], exceptionS
tate), exceptionState); |
| 4929 impl->voidMethodOctetArg(octetArg); | 4929 impl->voidMethodOctetArg(octetArg); |
| 4930 } | 4930 } |
| 4931 | 4931 |
| 4932 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 4932 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 4933 { | 4933 { |
| 4934 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4934 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4935 TestObjectV8Internal::voidMethodOctetArgMethod(info); | 4935 TestObjectV8Internal::voidMethodOctetArgMethod(info); |
| 4936 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4936 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 4937 } | 4937 } |
| 4938 | 4938 |
| 4939 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4939 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 4940 { | 4940 { |
| 4941 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
hortArg", "TestObject", info.Holder(), info.GetIsolate()); | 4941 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
hortArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 4942 if (UNLIKELY(info.Length() < 1)) { | 4942 if (UNLIKELY(info.Length() < 1)) { |
| 4943 throwArityTypeError(exceptionState, 1, info.Length()); | 4943 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 4944 return; | 4944 return; |
| 4945 } | 4945 } |
| 4946 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4946 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 4947 TONATIVE_VOID_EXCEPTIONSTATE(int, shortArg, toInt16(info[0], exceptionState)
, exceptionState); | 4947 TONATIVE_VOID_EXCEPTIONSTATE(int, shortArg, toInt16(info[0], exceptionState)
, exceptionState); |
| 4948 impl->voidMethodShortArg(shortArg); | 4948 impl->voidMethodShortArg(shortArg); |
| 4949 } | 4949 } |
| 4950 | 4950 |
| 4951 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 4951 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 4952 { | 4952 { |
| 4953 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4953 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4954 TestObjectV8Internal::voidMethodShortArgMethod(info); | 4954 TestObjectV8Internal::voidMethodShortArgMethod(info); |
| 4955 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4955 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 4956 } | 4956 } |
| 4957 | 4957 |
| 4958 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4958 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 4959 { | 4959 { |
| 4960 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 4960 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 4961 if (UNLIKELY(info.Length() < 1)) { | 4961 if (UNLIKELY(info.Length() < 1)) { |
| 4962 throwArityTypeError(exceptionState, 1, info.Length()); | 4962 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 4963 return; | 4963 return; |
| 4964 } | 4964 } |
| 4965 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4965 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 4966 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, unsignedLongArg, toUInt32(info[0], ex
ceptionState), exceptionState); | 4966 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, unsignedLongArg, toUInt32(info[0], ex
ceptionState), exceptionState); |
| 4967 impl->voidMethodUnsignedLongArg(unsignedLongArg); | 4967 impl->voidMethodUnsignedLongArg(unsignedLongArg); |
| 4968 } | 4968 } |
| 4969 | 4969 |
| 4970 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 4970 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 4971 { | 4971 { |
| 4972 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4972 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4973 TestObjectV8Internal::voidMethodUnsignedLongArgMethod(info); | 4973 TestObjectV8Internal::voidMethodUnsignedLongArgMethod(info); |
| 4974 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4974 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 4975 } | 4975 } |
| 4976 | 4976 |
| 4977 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) | 4977 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 4978 { | 4978 { |
| 4979 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 4979 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 4980 if (UNLIKELY(info.Length() < 1)) { | 4980 if (UNLIKELY(info.Length() < 1)) { |
| 4981 throwArityTypeError(exceptionState, 1, info.Length()); | 4981 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 4982 return; | 4982 return; |
| 4983 } | 4983 } |
| 4984 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4984 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 4985 TONATIVE_VOID_EXCEPTIONSTATE(unsigned long long, unsignedLongLongArg, toUInt
64(info[0], exceptionState), exceptionState); | 4985 TONATIVE_VOID_EXCEPTIONSTATE(unsigned long long, unsignedLongLongArg, toUInt
64(info[0], exceptionState), exceptionState); |
| 4986 impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg); | 4986 impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg); |
| 4987 } | 4987 } |
| 4988 | 4988 |
| 4989 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 4989 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
| 4990 { | 4990 { |
| 4991 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4991 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4992 TestObjectV8Internal::voidMethodUnsignedLongLongArgMethod(info); | 4992 TestObjectV8Internal::voidMethodUnsignedLongLongArgMethod(info); |
| 4993 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4993 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 4994 } | 4994 } |
| 4995 | 4995 |
| 4996 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 4996 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 4997 { | 4997 { |
| 4998 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); | 4998 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 4999 if (UNLIKELY(info.Length() < 1)) { | 4999 if (UNLIKELY(info.Length() < 1)) { |
| 5000 throwArityTypeError(exceptionState, 1, info.Length()); | 5000 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 5001 return; | 5001 return; |
| 5002 } | 5002 } |
| 5003 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5003 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5004 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, unsignedShortArg, toUInt16(info[0], e
xceptionState), exceptionState); | 5004 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, unsignedShortArg, toUInt16(info[0], e
xceptionState), exceptionState); |
| 5005 impl->voidMethodUnsignedShortArg(unsignedShortArg); | 5005 impl->voidMethodUnsignedShortArg(unsignedShortArg); |
| 5006 } | 5006 } |
| 5007 | 5007 |
| 5008 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 5008 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 5009 { | 5009 { |
| 5010 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5010 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 5021 static void testInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 5021 static void testInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 5022 { | 5022 { |
| 5023 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5023 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5024 TestObjectV8Internal::testInterfaceEmptyMethodMethod(info); | 5024 TestObjectV8Internal::testInterfaceEmptyMethodMethod(info); |
| 5025 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5025 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5026 } | 5026 } |
| 5027 | 5027 |
| 5028 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 5028 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 5029 { | 5029 { |
| 5030 if (UNLIKELY(info.Length() < 1)) { | 5030 if (UNLIKELY(info.Length() < 1)) { |
| 5031 throwArityTypeErrorForMethod("voidMethodTestInterfaceEmptyArg", "TestObj
ect", 1, info.Length(), info.GetIsolate()); | 5031 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceEmptyArg", "
TestObject", 1, info.Length(), info.GetIsolate()); |
| 5032 return; | 5032 return; |
| 5033 } | 5033 } |
| 5034 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5034 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5035 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 5035 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
| 5036 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); | 5036 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); |
| 5037 } | 5037 } |
| 5038 | 5038 |
| 5039 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 5039 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 5040 { | 5040 { |
| 5041 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5041 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5042 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgMethod(info); | 5042 TestObjectV8Internal::voidMethodTestInterfaceEmptyArgMethod(info); |
| 5043 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5043 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5044 } | 5044 } |
| 5045 | 5045 |
| 5046 static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 5046 static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
| 5047 { | 5047 { |
| 5048 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); | 5048 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 5049 if (UNLIKELY(info.Length() < 2)) { | 5049 if (UNLIKELY(info.Length() < 2)) { |
| 5050 throwArityTypeError(exceptionState, 2, info.Length()); | 5050 throwMinimumArityTypeError(exceptionState, 2, info.Length()); |
| 5051 return; | 5051 return; |
| 5052 } | 5052 } |
| 5053 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5053 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5054 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState),
exceptionState); | 5054 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState),
exceptionState); |
| 5055 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[1])); | 5055 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[1])); |
| 5056 impl->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg)
; | 5056 impl->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg)
; |
| 5057 } | 5057 } |
| 5058 | 5058 |
| 5059 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 5059 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
| 5060 { | 5060 { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 5085 static void anyCallbackFunctionOptionalAnyArgMethodMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 5085 static void anyCallbackFunctionOptionalAnyArgMethodMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
| 5086 { | 5086 { |
| 5087 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5087 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5088 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgMethodMethod(info); | 5088 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgMethodMethod(info); |
| 5089 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5089 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5090 } | 5090 } |
| 5091 | 5091 |
| 5092 static void voidMethodVoidCallbackFunctionArgMethod(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 5092 static void voidMethodVoidCallbackFunctionArgMethod(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 5093 { | 5093 { |
| 5094 if (UNLIKELY(info.Length() < 1)) { | 5094 if (UNLIKELY(info.Length() < 1)) { |
| 5095 throwArityTypeErrorForMethod("voidMethodVoidCallbackFunctionArg", "TestO
bject", 1, info.Length(), info.GetIsolate()); | 5095 throwMinimumArityTypeErrorForMethod("voidMethodVoidCallbackFunctionArg",
"TestObject", 1, info.Length(), info.GetIsolate()); |
| 5096 return; | 5096 return; |
| 5097 } | 5097 } |
| 5098 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5098 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5099 TONATIVE_VOID(ScriptValue, voidCallbackFunctionArg, ScriptValue(ScriptState:
:current(info.GetIsolate()), info[0])); | 5099 TONATIVE_VOID(ScriptValue, voidCallbackFunctionArg, ScriptValue(ScriptState:
:current(info.GetIsolate()), info[0])); |
| 5100 impl->voidMethodVoidCallbackFunctionArg(voidCallbackFunctionArg); | 5100 impl->voidMethodVoidCallbackFunctionArg(voidCallbackFunctionArg); |
| 5101 } | 5101 } |
| 5102 | 5102 |
| 5103 static void voidMethodVoidCallbackFunctionArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) | 5103 static void voidMethodVoidCallbackFunctionArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
| 5104 { | 5104 { |
| 5105 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5105 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5106 TestObjectV8Internal::voidMethodVoidCallbackFunctionArgMethod(info); | 5106 TestObjectV8Internal::voidMethodVoidCallbackFunctionArgMethod(info); |
| 5107 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5107 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5108 } | 5108 } |
| 5109 | 5109 |
| 5110 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethod(const v8::Function
CallbackInfo<v8::Value>& info) | 5110 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethod(const v8::Function
CallbackInfo<v8::Value>& info) |
| 5111 { | 5111 { |
| 5112 if (UNLIKELY(info.Length() < 1)) { | 5112 if (UNLIKELY(info.Length() < 1)) { |
| 5113 throwArityTypeErrorForMethod("voidMethodAnyCallbackFunctionOptionalAnyAr
g", "TestObject", 1, info.Length(), info.GetIsolate()); | 5113 throwMinimumArityTypeErrorForMethod("voidMethodAnyCallbackFunctionOption
alAnyArg", "TestObject", 1, info.Length(), info.GetIsolate()); |
| 5114 return; | 5114 return; |
| 5115 } | 5115 } |
| 5116 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5116 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5117 TONATIVE_VOID(ScriptValue, anyCallbackFunctionOptionalAnyArgArg, ScriptValue
(ScriptState::current(info.GetIsolate()), info[0])); | 5117 TONATIVE_VOID(ScriptValue, anyCallbackFunctionOptionalAnyArgArg, ScriptValue
(ScriptState::current(info.GetIsolate()), info[0])); |
| 5118 impl->voidMethodAnyCallbackFunctionOptionalAnyArg(anyCallbackFunctionOptiona
lAnyArgArg); | 5118 impl->voidMethodAnyCallbackFunctionOptionalAnyArg(anyCallbackFunctionOptiona
lAnyArgArg); |
| 5119 } | 5119 } |
| 5120 | 5120 |
| 5121 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethodCallback(const v8::
FunctionCallbackInfo<v8::Value>& info) | 5121 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethodCallback(const v8::
FunctionCallbackInfo<v8::Value>& info) |
| 5122 { | 5122 { |
| 5123 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5123 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 5147 static void anyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 5147 static void anyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 5148 { | 5148 { |
| 5149 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5149 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5150 TestObjectV8Internal::anyMethodMethod(info); | 5150 TestObjectV8Internal::anyMethodMethod(info); |
| 5151 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5151 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5152 } | 5152 } |
| 5153 | 5153 |
| 5154 static void voidMethodCompareHowArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 5154 static void voidMethodCompareHowArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
| 5155 { | 5155 { |
| 5156 if (UNLIKELY(info.Length() < 1)) { | 5156 if (UNLIKELY(info.Length() < 1)) { |
| 5157 throwArityTypeErrorForMethod("voidMethodCompareHowArg", "TestObject", 1,
info.Length(), info.GetIsolate()); | 5157 throwMinimumArityTypeErrorForMethod("voidMethodCompareHowArg", "TestObje
ct", 1, info.Length(), info.GetIsolate()); |
| 5158 return; | 5158 return; |
| 5159 } | 5159 } |
| 5160 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5160 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5161 TONATIVE_VOID(Range::CompareHow, compareHowArg, static_cast<Range::CompareHo
w>(info[0]->Int32Value())); | 5161 TONATIVE_VOID(Range::CompareHow, compareHowArg, static_cast<Range::CompareHo
w>(info[0]->Int32Value())); |
| 5162 impl->voidMethodCompareHowArg(compareHowArg); | 5162 impl->voidMethodCompareHowArg(compareHowArg); |
| 5163 } | 5163 } |
| 5164 | 5164 |
| 5165 static void voidMethodCompareHowArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 5165 static void voidMethodCompareHowArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 5166 { | 5166 { |
| 5167 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5167 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5168 TestObjectV8Internal::voidMethodCompareHowArgMethod(info); | 5168 TestObjectV8Internal::voidMethodCompareHowArgMethod(info); |
| 5169 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5169 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5170 } | 5170 } |
| 5171 | 5171 |
| 5172 static void voidMethodEventTargetArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 5172 static void voidMethodEventTargetArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 5173 { | 5173 { |
| 5174 if (UNLIKELY(info.Length() < 1)) { | 5174 if (UNLIKELY(info.Length() < 1)) { |
| 5175 throwArityTypeErrorForMethod("voidMethodEventTargetArg", "TestObject", 1
, info.Length(), info.GetIsolate()); | 5175 throwMinimumArityTypeErrorForMethod("voidMethodEventTargetArg", "TestObj
ect", 1, info.Length(), info.GetIsolate()); |
| 5176 return; | 5176 return; |
| 5177 } | 5177 } |
| 5178 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5178 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); | 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); |
| 5180 impl->voidMethodEventTargetArg(eventTargetArg); | 5180 impl->voidMethodEventTargetArg(eventTargetArg); |
| 5181 } | 5181 } |
| 5182 | 5182 |
| 5183 static void voidMethodEventTargetArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 5183 static void voidMethodEventTargetArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 5184 { | 5184 { |
| 5185 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5185 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5186 TestObjectV8Internal::voidMethodEventTargetArgMethod(info); | 5186 TestObjectV8Internal::voidMethodEventTargetArgMethod(info); |
| 5187 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5187 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5188 } | 5188 } |
| 5189 | 5189 |
| 5190 static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallback
Info<v8::Value>& info) | 5190 static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallback
Info<v8::Value>& info) |
| 5191 { | 5191 { |
| 5192 if (UNLIKELY(info.Length() < 1)) { | 5192 if (UNLIKELY(info.Length() < 1)) { |
| 5193 throwArityTypeErrorForMethod("voidMethodMediaQueryListListenerArg", "Tes
tObject", 1, info.Length(), info.GetIsolate()); | 5193 throwMinimumArityTypeErrorForMethod("voidMethodMediaQueryListListenerArg
", "TestObject", 1, info.Length(), info.GetIsolate()); |
| 5194 return; | 5194 return; |
| 5195 } | 5195 } |
| 5196 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5196 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5197 TONATIVE_VOID(RefPtrWillBeRawPtr<MediaQueryListListener>, mediaQueryListList
enerArg, MediaQueryListListener::create(ScriptValue(ScriptState::current(info.Ge
tIsolate()), info[0]))); | 5197 TONATIVE_VOID(RefPtrWillBeRawPtr<MediaQueryListListener>, mediaQueryListList
enerArg, MediaQueryListListener::create(ScriptValue(ScriptState::current(info.Ge
tIsolate()), info[0]))); |
| 5198 impl->voidMethodMediaQueryListListenerArg(mediaQueryListListenerArg); | 5198 impl->voidMethodMediaQueryListListenerArg(mediaQueryListListenerArg); |
| 5199 } | 5199 } |
| 5200 | 5200 |
| 5201 static void voidMethodMediaQueryListListenerArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) | 5201 static void voidMethodMediaQueryListListenerArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
| 5202 { | 5202 { |
| 5203 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5203 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5204 TestObjectV8Internal::voidMethodMediaQueryListListenerArgMethod(info); | 5204 TestObjectV8Internal::voidMethodMediaQueryListListenerArgMethod(info); |
| 5205 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5205 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5206 } | 5206 } |
| 5207 | 5207 |
| 5208 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 5208 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
| 5209 { | 5209 { |
| 5210 if (UNLIKELY(info.Length() < 1)) { | 5210 if (UNLIKELY(info.Length() < 1)) { |
| 5211 throwArityTypeErrorForMethod("voidMethodAnyArg", "TestObject", 1, info.L
ength(), info.GetIsolate()); | 5211 throwMinimumArityTypeErrorForMethod("voidMethodAnyArg", "TestObject", 1,
info.Length(), info.GetIsolate()); |
| 5212 return; | 5212 return; |
| 5213 } | 5213 } |
| 5214 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5214 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5215 TONATIVE_VOID(ScriptValue, anyArg, ScriptValue(ScriptState::current(info.Get
Isolate()), info[0])); | 5215 TONATIVE_VOID(ScriptValue, anyArg, ScriptValue(ScriptState::current(info.Get
Isolate()), info[0])); |
| 5216 impl->voidMethodAnyArg(anyArg); | 5216 impl->voidMethodAnyArg(anyArg); |
| 5217 } | 5217 } |
| 5218 | 5218 |
| 5219 static void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 5219 static void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 5220 { | 5220 { |
| 5221 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5221 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5222 TestObjectV8Internal::voidMethodAnyArgMethod(info); | 5222 TestObjectV8Internal::voidMethodAnyArgMethod(info); |
| 5223 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5223 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5224 } | 5224 } |
| 5225 | 5225 |
| 5226 static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 5226 static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 5227 { | 5227 { |
| 5228 if (UNLIKELY(info.Length() < 1)) { | 5228 if (UNLIKELY(info.Length() < 1)) { |
| 5229 throwArityTypeErrorForMethod("voidMethodAttrArg", "TestObject", 1, info.
Length(), info.GetIsolate()); | 5229 throwMinimumArityTypeErrorForMethod("voidMethodAttrArg", "TestObject", 1
, info.Length(), info.GetIsolate()); |
| 5230 return; | 5230 return; |
| 5231 } | 5231 } |
| 5232 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5232 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5233 TONATIVE_VOID(Attr*, attrArg, V8Attr::toNativeWithTypeCheck(info.GetIsolate(
), info[0])); | 5233 TONATIVE_VOID(Attr*, attrArg, V8Attr::toNativeWithTypeCheck(info.GetIsolate(
), info[0])); |
| 5234 impl->voidMethodAttrArg(attrArg); | 5234 impl->voidMethodAttrArg(attrArg); |
| 5235 } | 5235 } |
| 5236 | 5236 |
| 5237 static void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5237 static void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 5238 { | 5238 { |
| 5239 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5239 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5240 TestObjectV8Internal::voidMethodAttrArgMethod(info); | 5240 TestObjectV8Internal::voidMethodAttrArgMethod(info); |
| 5241 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5241 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5242 } | 5242 } |
| 5243 | 5243 |
| 5244 static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 5244 static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
| 5245 { | 5245 { |
| 5246 if (UNLIKELY(info.Length() < 1)) { | 5246 if (UNLIKELY(info.Length() < 1)) { |
| 5247 throwArityTypeErrorForMethod("voidMethodDocumentArg", "TestObject", 1, i
nfo.Length(), info.GetIsolate()); | 5247 throwMinimumArityTypeErrorForMethod("voidMethodDocumentArg", "TestObject
", 1, info.Length(), info.GetIsolate()); |
| 5248 return; | 5248 return; |
| 5249 } | 5249 } |
| 5250 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5250 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5251 TONATIVE_VOID(Document*, documentArg, V8Document::toNativeWithTypeCheck(info
.GetIsolate(), info[0])); | 5251 TONATIVE_VOID(Document*, documentArg, V8Document::toNativeWithTypeCheck(info
.GetIsolate(), info[0])); |
| 5252 impl->voidMethodDocumentArg(documentArg); | 5252 impl->voidMethodDocumentArg(documentArg); |
| 5253 } | 5253 } |
| 5254 | 5254 |
| 5255 static void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 5255 static void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 5256 { | 5256 { |
| 5257 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5257 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5258 TestObjectV8Internal::voidMethodDocumentArgMethod(info); | 5258 TestObjectV8Internal::voidMethodDocumentArgMethod(info); |
| 5259 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5259 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5260 } | 5260 } |
| 5261 | 5261 |
| 5262 static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5262 static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 5263 { | 5263 { |
| 5264 if (UNLIKELY(info.Length() < 1)) { | 5264 if (UNLIKELY(info.Length() < 1)) { |
| 5265 throwArityTypeErrorForMethod("voidMethodDocumentTypeArg", "TestObject",
1, info.Length(), info.GetIsolate()); | 5265 throwMinimumArityTypeErrorForMethod("voidMethodDocumentTypeArg", "TestOb
ject", 1, info.Length(), info.GetIsolate()); |
| 5266 return; | 5266 return; |
| 5267 } | 5267 } |
| 5268 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5268 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5269 TONATIVE_VOID(DocumentType*, documentTypeArg, V8DocumentType::toNativeWithTy
peCheck(info.GetIsolate(), info[0])); | 5269 TONATIVE_VOID(DocumentType*, documentTypeArg, V8DocumentType::toNativeWithTy
peCheck(info.GetIsolate(), info[0])); |
| 5270 impl->voidMethodDocumentTypeArg(documentTypeArg); | 5270 impl->voidMethodDocumentTypeArg(documentTypeArg); |
| 5271 } | 5271 } |
| 5272 | 5272 |
| 5273 static void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 5273 static void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 5274 { | 5274 { |
| 5275 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5275 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5276 TestObjectV8Internal::voidMethodDocumentTypeArgMethod(info); | 5276 TestObjectV8Internal::voidMethodDocumentTypeArgMethod(info); |
| 5277 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5277 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5278 } | 5278 } |
| 5279 | 5279 |
| 5280 static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) | 5280 static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
| 5281 { | 5281 { |
| 5282 if (UNLIKELY(info.Length() < 1)) { | 5282 if (UNLIKELY(info.Length() < 1)) { |
| 5283 throwArityTypeErrorForMethod("voidMethodElementArg", "TestObject", 1, in
fo.Length(), info.GetIsolate()); | 5283 throwMinimumArityTypeErrorForMethod("voidMethodElementArg", "TestObject"
, 1, info.Length(), info.GetIsolate()); |
| 5284 return; | 5284 return; |
| 5285 } | 5285 } |
| 5286 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5286 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5287 TONATIVE_VOID(Element*, elementArg, V8Element::toNativeWithTypeCheck(info.Ge
tIsolate(), info[0])); | 5287 TONATIVE_VOID(Element*, elementArg, V8Element::toNativeWithTypeCheck(info.Ge
tIsolate(), info[0])); |
| 5288 impl->voidMethodElementArg(elementArg); | 5288 impl->voidMethodElementArg(elementArg); |
| 5289 } | 5289 } |
| 5290 | 5290 |
| 5291 static void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) | 5291 static void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
| 5292 { | 5292 { |
| 5293 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5293 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5294 TestObjectV8Internal::voidMethodElementArgMethod(info); | 5294 TestObjectV8Internal::voidMethodElementArgMethod(info); |
| 5295 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5295 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5296 } | 5296 } |
| 5297 | 5297 |
| 5298 static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 5298 static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 5299 { | 5299 { |
| 5300 if (UNLIKELY(info.Length() < 1)) { | 5300 if (UNLIKELY(info.Length() < 1)) { |
| 5301 throwArityTypeErrorForMethod("voidMethodNodeArg", "TestObject", 1, info.
Length(), info.GetIsolate()); | 5301 throwMinimumArityTypeErrorForMethod("voidMethodNodeArg", "TestObject", 1
, info.Length(), info.GetIsolate()); |
| 5302 return; | 5302 return; |
| 5303 } | 5303 } |
| 5304 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5304 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5305 TONATIVE_VOID(Node*, nodeArg, V8Node::toNativeWithTypeCheck(info.GetIsolate(
), info[0])); | 5305 TONATIVE_VOID(Node*, nodeArg, V8Node::toNativeWithTypeCheck(info.GetIsolate(
), info[0])); |
| 5306 impl->voidMethodNodeArg(nodeArg); | 5306 impl->voidMethodNodeArg(nodeArg); |
| 5307 } | 5307 } |
| 5308 | 5308 |
| 5309 static void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5309 static void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 5310 { | 5310 { |
| 5311 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5311 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5374 static void uint8ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 5374 static void uint8ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 5375 { | 5375 { |
| 5376 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5376 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5377 TestObjectV8Internal::uint8ArrayMethodMethod(info); | 5377 TestObjectV8Internal::uint8ArrayMethodMethod(info); |
| 5378 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5378 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5379 } | 5379 } |
| 5380 | 5380 |
| 5381 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 5381 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 5382 { | 5382 { |
| 5383 if (UNLIKELY(info.Length() < 1)) { | 5383 if (UNLIKELY(info.Length() < 1)) { |
| 5384 throwArityTypeErrorForMethod("voidMethodArrayBufferArg", "TestObject", 1
, info.Length(), info.GetIsolate()); | 5384 throwMinimumArityTypeErrorForMethod("voidMethodArrayBufferArg", "TestObj
ect", 1, info.Length(), info.GetIsolate()); |
| 5385 return; | 5385 return; |
| 5386 } | 5386 } |
| 5387 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5387 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); | 5388 TONATIVE_VOID(ArrayBuffer*, arrayBufferArg, info[0]->IsArrayBuffer() ? V8Arr
ayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0); |
| 5389 impl->voidMethodArrayBufferArg(arrayBufferArg); | 5389 impl->voidMethodArrayBufferArg(arrayBufferArg); |
| 5390 } | 5390 } |
| 5391 | 5391 |
| 5392 static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 5392 static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 5393 { | 5393 { |
| 5394 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5394 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5395 TestObjectV8Internal::voidMethodArrayBufferArgMethod(info); | 5395 TestObjectV8Internal::voidMethodArrayBufferArgMethod(info); |
| 5396 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5396 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5397 } | 5397 } |
| 5398 | 5398 |
| 5399 static void voidMethodArrayBufferOrNullArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) | 5399 static void voidMethodArrayBufferOrNullArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) |
| 5400 { | 5400 { |
| 5401 if (UNLIKELY(info.Length() < 1)) { | 5401 if (UNLIKELY(info.Length() < 1)) { |
| 5402 throwArityTypeErrorForMethod("voidMethodArrayBufferOrNullArg", "TestObje
ct", 1, info.Length(), info.GetIsolate()); | 5402 throwMinimumArityTypeErrorForMethod("voidMethodArrayBufferOrNullArg", "T
estObject", 1, info.Length(), info.GetIsolate()); |
| 5403 return; | 5403 return; |
| 5404 } | 5404 } |
| 5405 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5405 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5406 TONATIVE_VOID(ArrayBuffer*, arrayBufferArg, info[0]->IsArrayBuffer() ? V8Arr
ayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0); | 5406 TONATIVE_VOID(ArrayBuffer*, arrayBufferArg, info[0]->IsArrayBuffer() ? V8Arr
ayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0); |
| 5407 impl->voidMethodArrayBufferOrNullArg(arrayBufferArg); | 5407 impl->voidMethodArrayBufferOrNullArg(arrayBufferArg); |
| 5408 } | 5408 } |
| 5409 | 5409 |
| 5410 static void voidMethodArrayBufferOrNullArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 5410 static void voidMethodArrayBufferOrNullArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
| 5411 { | 5411 { |
| 5412 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5412 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5413 TestObjectV8Internal::voidMethodArrayBufferOrNullArgMethod(info); | 5413 TestObjectV8Internal::voidMethodArrayBufferOrNullArgMethod(info); |
| 5414 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5414 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5415 } | 5415 } |
| 5416 | 5416 |
| 5417 static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) | 5417 static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) |
| 5418 { | 5418 { |
| 5419 if (UNLIKELY(info.Length() < 1)) { | 5419 if (UNLIKELY(info.Length() < 1)) { |
| 5420 throwArityTypeErrorForMethod("voidMethodArrayBufferViewArg", "TestObject
", 1, info.Length(), info.GetIsolate()); | 5420 throwMinimumArityTypeErrorForMethod("voidMethodArrayBufferViewArg", "Tes
tObject", 1, info.Length(), info.GetIsolate()); |
| 5421 return; | 5421 return; |
| 5422 } | 5422 } |
| 5423 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5423 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); | 5424 TONATIVE_VOID(ArrayBufferView*, arrayBufferViewArg, info[0]->IsArrayBufferVi
ew() ? V8ArrayBufferView::toNative(v8::Handle<v8::ArrayBufferView>::Cast(info[0]
)) : 0); |
| 5425 impl->voidMethodArrayBufferViewArg(arrayBufferViewArg); | 5425 impl->voidMethodArrayBufferViewArg(arrayBufferViewArg); |
| 5426 } | 5426 } |
| 5427 | 5427 |
| 5428 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 5428 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
| 5429 { | 5429 { |
| 5430 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5430 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5431 TestObjectV8Internal::voidMethodArrayBufferViewArgMethod(info); | 5431 TestObjectV8Internal::voidMethodArrayBufferViewArgMethod(info); |
| 5432 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5432 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5433 } | 5433 } |
| 5434 | 5434 |
| 5435 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5435 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 5436 { | 5436 { |
| 5437 if (UNLIKELY(info.Length() < 1)) { | 5437 if (UNLIKELY(info.Length() < 1)) { |
| 5438 throwArityTypeErrorForMethod("voidMethodFloat32ArrayArg", "TestObject",
1, info.Length(), info.GetIsolate()); | 5438 throwMinimumArityTypeErrorForMethod("voidMethodFloat32ArrayArg", "TestOb
ject", 1, info.Length(), info.GetIsolate()); |
| 5439 return; | 5439 return; |
| 5440 } | 5440 } |
| 5441 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5441 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); | 5442 TONATIVE_VOID(Float32Array*, float32ArrayArg, info[0]->IsFloat32Array() ? V8
Float32Array::toNative(v8::Handle<v8::Float32Array>::Cast(info[0])) : 0); |
| 5443 impl->voidMethodFloat32ArrayArg(float32ArrayArg); | 5443 impl->voidMethodFloat32ArrayArg(float32ArrayArg); |
| 5444 } | 5444 } |
| 5445 | 5445 |
| 5446 static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 5446 static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 5447 { | 5447 { |
| 5448 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5448 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5449 TestObjectV8Internal::voidMethodFloat32ArrayArgMethod(info); | 5449 TestObjectV8Internal::voidMethodFloat32ArrayArgMethod(info); |
| 5450 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5450 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5451 } | 5451 } |
| 5452 | 5452 |
| 5453 static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 5453 static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
| 5454 { | 5454 { |
| 5455 if (UNLIKELY(info.Length() < 1)) { | 5455 if (UNLIKELY(info.Length() < 1)) { |
| 5456 throwArityTypeErrorForMethod("voidMethodInt32ArrayArg", "TestObject", 1,
info.Length(), info.GetIsolate()); | 5456 throwMinimumArityTypeErrorForMethod("voidMethodInt32ArrayArg", "TestObje
ct", 1, info.Length(), info.GetIsolate()); |
| 5457 return; | 5457 return; |
| 5458 } | 5458 } |
| 5459 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5459 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); | 5460 TONATIVE_VOID(Int32Array*, int32ArrayArg, info[0]->IsInt32Array() ? V8Int32A
rray::toNative(v8::Handle<v8::Int32Array>::Cast(info[0])) : 0); |
| 5461 impl->voidMethodInt32ArrayArg(int32ArrayArg); | 5461 impl->voidMethodInt32ArrayArg(int32ArrayArg); |
| 5462 } | 5462 } |
| 5463 | 5463 |
| 5464 static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 5464 static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 5465 { | 5465 { |
| 5466 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5466 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5467 TestObjectV8Internal::voidMethodInt32ArrayArgMethod(info); | 5467 TestObjectV8Internal::voidMethodInt32ArrayArgMethod(info); |
| 5468 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5468 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5469 } | 5469 } |
| 5470 | 5470 |
| 5471 static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 5471 static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
| 5472 { | 5472 { |
| 5473 if (UNLIKELY(info.Length() < 1)) { | 5473 if (UNLIKELY(info.Length() < 1)) { |
| 5474 throwArityTypeErrorForMethod("voidMethodUint8ArrayArg", "TestObject", 1,
info.Length(), info.GetIsolate()); | 5474 throwMinimumArityTypeErrorForMethod("voidMethodUint8ArrayArg", "TestObje
ct", 1, info.Length(), info.GetIsolate()); |
| 5475 return; | 5475 return; |
| 5476 } | 5476 } |
| 5477 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5477 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); | 5478 TONATIVE_VOID(Uint8Array*, uint8ArrayArg, info[0]->IsUint8Array() ? V8Uint8A
rray::toNative(v8::Handle<v8::Uint8Array>::Cast(info[0])) : 0); |
| 5479 impl->voidMethodUint8ArrayArg(uint8ArrayArg); | 5479 impl->voidMethodUint8ArrayArg(uint8ArrayArg); |
| 5480 } | 5480 } |
| 5481 | 5481 |
| 5482 static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 5482 static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 5483 { | 5483 { |
| 5484 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5484 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5521 static void testInterfaceEmptyArrayMethodMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 5521 static void testInterfaceEmptyArrayMethodMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
| 5522 { | 5522 { |
| 5523 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5523 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5524 TestObjectV8Internal::testInterfaceEmptyArrayMethodMethod(info); | 5524 TestObjectV8Internal::testInterfaceEmptyArrayMethodMethod(info); |
| 5525 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5525 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5526 } | 5526 } |
| 5527 | 5527 |
| 5528 static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 5528 static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
| 5529 { | 5529 { |
| 5530 if (UNLIKELY(info.Length() < 1)) { | 5530 if (UNLIKELY(info.Length() < 1)) { |
| 5531 throwArityTypeErrorForMethod("voidMethodArrayLongArg", "TestObject", 1,
info.Length(), info.GetIsolate()); | 5531 throwMinimumArityTypeErrorForMethod("voidMethodArrayLongArg", "TestObjec
t", 1, info.Length(), info.GetIsolate()); |
| 5532 return; | 5532 return; |
| 5533 } | 5533 } |
| 5534 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5534 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5535 TONATIVE_VOID(Vector<int>, arrayLongArg, toNativeArray<int>(info[0], 1, info
.GetIsolate())); | 5535 TONATIVE_VOID(Vector<int>, arrayLongArg, toNativeArray<int>(info[0], 1, info
.GetIsolate())); |
| 5536 impl->voidMethodArrayLongArg(arrayLongArg); | 5536 impl->voidMethodArrayLongArg(arrayLongArg); |
| 5537 } | 5537 } |
| 5538 | 5538 |
| 5539 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) | 5539 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
| 5540 { | 5540 { |
| 5541 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5541 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5542 TestObjectV8Internal::voidMethodArrayLongArgMethod(info); | 5542 TestObjectV8Internal::voidMethodArrayLongArgMethod(info); |
| 5543 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5543 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5544 } | 5544 } |
| 5545 | 5545 |
| 5546 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 5546 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 5547 { | 5547 { |
| 5548 if (UNLIKELY(info.Length() < 1)) { | 5548 if (UNLIKELY(info.Length() < 1)) { |
| 5549 throwArityTypeErrorForMethod("voidMethodArrayStringArg", "TestObject", 1
, info.Length(), info.GetIsolate()); | 5549 throwMinimumArityTypeErrorForMethod("voidMethodArrayStringArg", "TestObj
ect", 1, info.Length(), info.GetIsolate()); |
| 5550 return; | 5550 return; |
| 5551 } | 5551 } |
| 5552 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5552 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5553 TONATIVE_VOID(Vector<String>, arrayStringArg, toNativeArray<String>(info[0],
1, info.GetIsolate())); | 5553 TONATIVE_VOID(Vector<String>, arrayStringArg, toNativeArray<String>(info[0],
1, info.GetIsolate())); |
| 5554 impl->voidMethodArrayStringArg(arrayStringArg); | 5554 impl->voidMethodArrayStringArg(arrayStringArg); |
| 5555 } | 5555 } |
| 5556 | 5556 |
| 5557 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 5557 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 5558 { | 5558 { |
| 5559 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5559 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5560 TestObjectV8Internal::voidMethodArrayStringArgMethod(info); | 5560 TestObjectV8Internal::voidMethodArrayStringArgMethod(info); |
| 5561 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5561 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5562 } | 5562 } |
| 5563 | 5563 |
| 5564 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 5564 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
| 5565 { | 5565 { |
| 5566 if (UNLIKELY(info.Length() < 1)) { | 5566 if (UNLIKELY(info.Length() < 1)) { |
| 5567 throwArityTypeErrorForMethod("voidMethodArrayTestInterfaceEmptyArg", "Te
stObject", 1, info.Length(), info.GetIsolate()); | 5567 throwMinimumArityTypeErrorForMethod("voidMethodArrayTestInterfaceEmptyAr
g", "TestObject", 1, info.Length(), info.GetIsolate()); |
| 5568 return; | 5568 return; |
| 5569 } | 5569 } |
| 5570 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5570 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5571 TONATIVE_VOID(Vector<RefPtr<TestInterfaceEmpty> >, arrayTestInterfaceEmptyAr
g, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, in
fo.GetIsolate()))); | 5571 TONATIVE_VOID(Vector<RefPtr<TestInterfaceEmpty> >, arrayTestInterfaceEmptyAr
g, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, in
fo.GetIsolate()))); |
| 5572 impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg); | 5572 impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg); |
| 5573 } | 5573 } |
| 5574 | 5574 |
| 5575 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 5575 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
| 5576 { | 5576 { |
| 5577 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5577 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5614 static void testInterfaceEmptySequenceMethodMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 5614 static void testInterfaceEmptySequenceMethodMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
| 5615 { | 5615 { |
| 5616 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5616 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5617 TestObjectV8Internal::testInterfaceEmptySequenceMethodMethod(info); | 5617 TestObjectV8Internal::testInterfaceEmptySequenceMethodMethod(info); |
| 5618 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5618 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5619 } | 5619 } |
| 5620 | 5620 |
| 5621 static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5621 static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 5622 { | 5622 { |
| 5623 if (UNLIKELY(info.Length() < 1)) { | 5623 if (UNLIKELY(info.Length() < 1)) { |
| 5624 throwArityTypeErrorForMethod("voidMethodSequenceLongArg", "TestObject",
1, info.Length(), info.GetIsolate()); | 5624 throwMinimumArityTypeErrorForMethod("voidMethodSequenceLongArg", "TestOb
ject", 1, info.Length(), info.GetIsolate()); |
| 5625 return; | 5625 return; |
| 5626 } | 5626 } |
| 5627 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5627 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5628 TONATIVE_VOID(Vector<int>, longSequenceArg, toNativeArray<int>(info[0], 1, i
nfo.GetIsolate())); | 5628 TONATIVE_VOID(Vector<int>, longSequenceArg, toNativeArray<int>(info[0], 1, i
nfo.GetIsolate())); |
| 5629 impl->voidMethodSequenceLongArg(longSequenceArg); | 5629 impl->voidMethodSequenceLongArg(longSequenceArg); |
| 5630 } | 5630 } |
| 5631 | 5631 |
| 5632 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 5632 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 5633 { | 5633 { |
| 5634 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5634 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5635 TestObjectV8Internal::voidMethodSequenceLongArgMethod(info); | 5635 TestObjectV8Internal::voidMethodSequenceLongArgMethod(info); |
| 5636 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5636 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5637 } | 5637 } |
| 5638 | 5638 |
| 5639 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 5639 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 5640 { | 5640 { |
| 5641 if (UNLIKELY(info.Length() < 1)) { | 5641 if (UNLIKELY(info.Length() < 1)) { |
| 5642 throwArityTypeErrorForMethod("voidMethodSequenceStringArg", "TestObject"
, 1, info.Length(), info.GetIsolate()); | 5642 throwMinimumArityTypeErrorForMethod("voidMethodSequenceStringArg", "Test
Object", 1, info.Length(), info.GetIsolate()); |
| 5643 return; | 5643 return; |
| 5644 } | 5644 } |
| 5645 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5645 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5646 TONATIVE_VOID(Vector<String>, stringSequenceArg, toNativeArray<String>(info[
0], 1, info.GetIsolate())); | 5646 TONATIVE_VOID(Vector<String>, stringSequenceArg, toNativeArray<String>(info[
0], 1, info.GetIsolate())); |
| 5647 impl->voidMethodSequenceStringArg(stringSequenceArg); | 5647 impl->voidMethodSequenceStringArg(stringSequenceArg); |
| 5648 } | 5648 } |
| 5649 | 5649 |
| 5650 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 5650 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 5651 { | 5651 { |
| 5652 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5652 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5653 TestObjectV8Internal::voidMethodSequenceStringArgMethod(info); | 5653 TestObjectV8Internal::voidMethodSequenceStringArgMethod(info); |
| 5654 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5654 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5655 } | 5655 } |
| 5656 | 5656 |
| 5657 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 5657 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 5658 { | 5658 { |
| 5659 if (UNLIKELY(info.Length() < 1)) { | 5659 if (UNLIKELY(info.Length() < 1)) { |
| 5660 throwArityTypeErrorForMethod("voidMethodSequenceTestInterfaceEmptyArg",
"TestObject", 1, info.Length(), info.GetIsolate()); | 5660 throwMinimumArityTypeErrorForMethod("voidMethodSequenceTestInterfaceEmpt
yArg", "TestObject", 1, info.Length(), info.GetIsolate()); |
| 5661 return; | 5661 return; |
| 5662 } | 5662 } |
| 5663 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5663 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5664 TONATIVE_VOID(Vector<RefPtr<TestInterfaceEmpty> >, testInterfaceEmptySequenc
eArg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1,
info.GetIsolate()))); | 5664 TONATIVE_VOID(Vector<RefPtr<TestInterfaceEmpty> >, testInterfaceEmptySequenc
eArg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1,
info.GetIsolate()))); |
| 5665 impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg)
; | 5665 impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg)
; |
| 5666 } | 5666 } |
| 5667 | 5667 |
| 5668 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 5668 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
| 5669 { | 5669 { |
| 5670 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5670 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5671 TestObjectV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(info); | 5671 TestObjectV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(info); |
| 5672 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5672 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5673 } | 5673 } |
| 5674 | 5674 |
| 5675 static void voidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 5675 static void voidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
| 5676 { | 5676 { |
| 5677 if (UNLIKELY(info.Length() < 1)) { | 5677 if (UNLIKELY(info.Length() < 1)) { |
| 5678 throwArityTypeErrorForMethod("voidMethodTestInterfaceEmptyOrNullArg", "T
estObject", 1, info.Length(), info.GetIsolate()); | 5678 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceEmptyOrNullA
rg", "TestObject", 1, info.Length(), info.GetIsolate()); |
| 5679 return; | 5679 return; |
| 5680 } | 5680 } |
| 5681 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5681 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5682 TONATIVE_VOID(TestInterfaceEmpty*, nullableTestInterfaceEmptyArg, V8TestInte
rfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 5682 TONATIVE_VOID(TestInterfaceEmpty*, nullableTestInterfaceEmptyArg, V8TestInte
rfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
| 5683 impl->voidMethodTestInterfaceEmptyOrNullArg(nullableTestInterfaceEmptyArg); | 5683 impl->voidMethodTestInterfaceEmptyOrNullArg(nullableTestInterfaceEmptyArg); |
| 5684 } | 5684 } |
| 5685 | 5685 |
| 5686 static void voidMethodTestInterfaceEmptyOrNullArgMethodCallback(const v8::Functi
onCallbackInfo<v8::Value>& info) | 5686 static void voidMethodTestInterfaceEmptyOrNullArgMethodCallback(const v8::Functi
onCallbackInfo<v8::Value>& info) |
| 5687 { | 5687 { |
| 5688 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5688 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5689 TestObjectV8Internal::voidMethodTestInterfaceEmptyOrNullArgMethod(info); | 5689 TestObjectV8Internal::voidMethodTestInterfaceEmptyOrNullArgMethod(info); |
| 5690 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5690 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5691 } | 5691 } |
| 5692 | 5692 |
| 5693 static void voidMethodTestCallbackInterfaceArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 5693 static void voidMethodTestCallbackInterfaceArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 5694 { | 5694 { |
| 5695 if (UNLIKELY(info.Length() < 1)) { | 5695 if (UNLIKELY(info.Length() < 1)) { |
| 5696 throwArityTypeErrorForMethod("voidMethodTestCallbackInterfaceArg", "Test
Object", 1, info.Length(), info.GetIsolate()); | 5696 throwMinimumArityTypeErrorForMethod("voidMethodTestCallbackInterfaceArg"
, "TestObject", 1, info.Length(), info.GetIsolate()); |
| 5697 return; | 5697 return; |
| 5698 } | 5698 } |
| 5699 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5699 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5700 if (info.Length() <= 0 || !info[0]->IsFunction()) { | 5700 if (info.Length() <= 0 || !info[0]->IsFunction()) { |
| 5701 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCallbac
kInterfaceArg", "TestObject", "The callback provided as parameter 1 is not a fun
ction."), info.GetIsolate()); | 5701 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCallbac
kInterfaceArg", "TestObject", "The callback provided as parameter 1 is not a fun
ction."), info.GetIsolate()); |
| 5702 return; | 5702 return; |
| 5703 } | 5703 } |
| 5704 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = V8TestCallbackInter
face::create(v8::Handle<v8::Function>::Cast(info[0]), currentExecutionContext(in
fo.GetIsolate())); | 5704 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = V8TestCallbackInter
face::create(v8::Handle<v8::Function>::Cast(info[0]), currentExecutionContext(in
fo.GetIsolate())); |
| 5705 impl->voidMethodTestCallbackInterfaceArg(testCallbackInterfaceArg.release())
; | 5705 impl->voidMethodTestCallbackInterfaceArg(testCallbackInterfaceArg.release())
; |
| 5706 } | 5706 } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 5729 static void voidMethodOptionalTestCallbackInterfaceArgMethodCallback(const v8::F
unctionCallbackInfo<v8::Value>& info) | 5729 static void voidMethodOptionalTestCallbackInterfaceArgMethodCallback(const v8::F
unctionCallbackInfo<v8::Value>& info) |
| 5730 { | 5730 { |
| 5731 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5731 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5732 TestObjectV8Internal::voidMethodOptionalTestCallbackInterfaceArgMethod(info)
; | 5732 TestObjectV8Internal::voidMethodOptionalTestCallbackInterfaceArgMethod(info)
; |
| 5733 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5733 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5734 } | 5734 } |
| 5735 | 5735 |
| 5736 static void voidMethodTestCallbackInterfaceOrNullArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 5736 static void voidMethodTestCallbackInterfaceOrNullArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
| 5737 { | 5737 { |
| 5738 if (UNLIKELY(info.Length() < 1)) { | 5738 if (UNLIKELY(info.Length() < 1)) { |
| 5739 throwArityTypeErrorForMethod("voidMethodTestCallbackInterfaceOrNullArg",
"TestObject", 1, info.Length(), info.GetIsolate()); | 5739 throwMinimumArityTypeErrorForMethod("voidMethodTestCallbackInterfaceOrNu
llArg", "TestObject", 1, info.Length(), info.GetIsolate()); |
| 5740 return; | 5740 return; |
| 5741 } | 5741 } |
| 5742 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5742 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5743 if (info.Length() <= 0 || !(info[0]->IsFunction() || info[0]->IsNull())) { | 5743 if (info.Length() <= 0 || !(info[0]->IsFunction() || info[0]->IsNull())) { |
| 5744 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCallbac
kInterfaceOrNullArg", "TestObject", "The callback provided as parameter 1 is not
a function."), info.GetIsolate()); | 5744 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCallbac
kInterfaceOrNullArg", "TestObject", "The callback provided as parameter 1 is not
a function."), info.GetIsolate()); |
| 5745 return; | 5745 return; |
| 5746 } | 5746 } |
| 5747 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = info[0]->IsNull() ?
nullptr : V8TestCallbackInterface::create(v8::Handle<v8::Function>::Cast(info[0
]), currentExecutionContext(info.GetIsolate())); | 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()); | 5748 impl->voidMethodTestCallbackInterfaceOrNullArg(testCallbackInterfaceArg.rele
ase()); |
| 5749 } | 5749 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 5764 static void testEnumMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 5764 static void testEnumMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
| 5765 { | 5765 { |
| 5766 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5766 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5767 TestObjectV8Internal::testEnumMethodMethod(info); | 5767 TestObjectV8Internal::testEnumMethodMethod(info); |
| 5768 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5768 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5769 } | 5769 } |
| 5770 | 5770 |
| 5771 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 5771 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
| 5772 { | 5772 { |
| 5773 if (UNLIKELY(info.Length() < 1)) { | 5773 if (UNLIKELY(info.Length() < 1)) { |
| 5774 throwArityTypeErrorForMethod("voidMethodTestEnumArg", "TestObject", 1, i
nfo.Length(), info.GetIsolate()); | 5774 throwMinimumArityTypeErrorForMethod("voidMethodTestEnumArg", "TestObject
", 1, info.Length(), info.GetIsolate()); |
| 5775 return; | 5775 return; |
| 5776 } | 5776 } |
| 5777 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5777 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5778 TOSTRING_VOID(V8StringResource<>, testEnumTypeArg, info[0]); | 5778 TOSTRING_VOID(V8StringResource<>, testEnumTypeArg, info[0]); |
| 5779 String string = testEnumTypeArg; | 5779 String string = testEnumTypeArg; |
| 5780 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) { | 5780 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) { |
| 5781 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg
", "TestObject", "parameter 1 ('" + string + "') is not a valid enum value."), i
nfo.GetIsolate()); | 5781 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg
", "TestObject", "parameter 1 ('" + string + "') is not a valid enum value."), i
nfo.GetIsolate()); |
| 5782 return; | 5782 return; |
| 5783 } | 5783 } |
| 5784 impl->voidMethodTestEnumArg(testEnumTypeArg); | 5784 impl->voidMethodTestEnumArg(testEnumTypeArg); |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5852 static void xPathNSResolverMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 5852 static void xPathNSResolverMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 5853 { | 5853 { |
| 5854 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5854 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5855 TestObjectV8Internal::xPathNSResolverMethodMethod(info); | 5855 TestObjectV8Internal::xPathNSResolverMethodMethod(info); |
| 5856 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5856 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5857 } | 5857 } |
| 5858 | 5858 |
| 5859 static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 5859 static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
| 5860 { | 5860 { |
| 5861 if (UNLIKELY(info.Length() < 1)) { | 5861 if (UNLIKELY(info.Length() < 1)) { |
| 5862 throwArityTypeErrorForMethod("voidMethodDictionaryArg", "TestObject", 1,
info.Length(), info.GetIsolate()); | 5862 throwMinimumArityTypeErrorForMethod("voidMethodDictionaryArg", "TestObje
ct", 1, info.Length(), info.GetIsolate()); |
| 5863 return; | 5863 return; |
| 5864 } | 5864 } |
| 5865 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5865 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5866 TONATIVE_VOID(Dictionary, dictionaryArg, Dictionary(info[0], info.GetIsolate
())); | 5866 TONATIVE_VOID(Dictionary, dictionaryArg, Dictionary(info[0], info.GetIsolate
())); |
| 5867 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) { | 5867 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) { |
| 5868 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryA
rg", "TestObject", "parameter 1 ('dictionaryArg') is not an object."), info.GetI
solate()); | 5868 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryA
rg", "TestObject", "parameter 1 ('dictionaryArg') is not an object."), info.GetI
solate()); |
| 5869 return; | 5869 return; |
| 5870 } | 5870 } |
| 5871 impl->voidMethodDictionaryArg(dictionaryArg); | 5871 impl->voidMethodDictionaryArg(dictionaryArg); |
| 5872 } | 5872 } |
| 5873 | 5873 |
| 5874 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 5874 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 5875 { | 5875 { |
| 5876 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5876 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5877 TestObjectV8Internal::voidMethodDictionaryArgMethod(info); | 5877 TestObjectV8Internal::voidMethodDictionaryArgMethod(info); |
| 5878 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5878 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5879 } | 5879 } |
| 5880 | 5880 |
| 5881 static void voidMethodEventListenerArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 5881 static void voidMethodEventListenerArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 5882 { | 5882 { |
| 5883 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE
ventListenerArg", "TestObject", info.Holder(), info.GetIsolate()); | 5883 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE
ventListenerArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 5884 if (UNLIKELY(info.Length() < 1)) { | 5884 if (UNLIKELY(info.Length() < 1)) { |
| 5885 throwArityTypeError(exceptionState, 1, info.Length()); | 5885 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 5886 return; | 5886 return; |
| 5887 } | 5887 } |
| 5888 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5888 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5889 RefPtr<EventListener> eventListenerArg = V8EventListenerList::getEventListen
er(info[1], false, ListenerFindOrCreate); | 5889 RefPtr<EventListener> eventListenerArg = V8EventListenerList::getEventListen
er(info[1], false, ListenerFindOrCreate); |
| 5890 impl->voidMethodEventListenerArg(eventListenerArg); | 5890 impl->voidMethodEventListenerArg(eventListenerArg); |
| 5891 if (listener && !impl->toNode()) | 5891 if (listener && !impl->toNode()) |
| 5892 removeHiddenValueFromArray(info.Holder(), info[1], V8TestObject::eventLi
stenerCacheIndex, info.GetIsolate()); | 5892 removeHiddenValueFromArray(info.Holder(), info[1], V8TestObject::eventLi
stenerCacheIndex, info.GetIsolate()); |
| 5893 } | 5893 } |
| 5894 | 5894 |
| 5895 static void voidMethodEventListenerArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 5895 static void voidMethodEventListenerArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 5896 { | 5896 { |
| 5897 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5897 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5898 TestObjectV8Internal::voidMethodEventListenerArgMethod(info); | 5898 TestObjectV8Internal::voidMethodEventListenerArgMethod(info); |
| 5899 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5899 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5900 } | 5900 } |
| 5901 | 5901 |
| 5902 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 5902 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
| 5903 { | 5903 { |
| 5904 if (UNLIKELY(info.Length() < 1)) { | 5904 if (UNLIKELY(info.Length() < 1)) { |
| 5905 throwArityTypeErrorForMethod("voidMethodNodeFilterArg", "TestObject", 1,
info.Length(), info.GetIsolate()); | 5905 throwMinimumArityTypeErrorForMethod("voidMethodNodeFilterArg", "TestObje
ct", 1, info.Length(), info.GetIsolate()); |
| 5906 return; | 5906 return; |
| 5907 } | 5907 } |
| 5908 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5908 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5909 TONATIVE_VOID(RefPtr<NodeFilter>, nodeFilterArg, toNodeFilter(info[0], info.
GetIsolate())); | 5909 TONATIVE_VOID(RefPtr<NodeFilter>, nodeFilterArg, toNodeFilter(info[0], info.
GetIsolate())); |
| 5910 impl->voidMethodNodeFilterArg(nodeFilterArg.release()); | 5910 impl->voidMethodNodeFilterArg(nodeFilterArg.release()); |
| 5911 } | 5911 } |
| 5912 | 5912 |
| 5913 static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 5913 static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 5914 { | 5914 { |
| 5915 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5915 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5916 TestObjectV8Internal::voidMethodNodeFilterArgMethod(info); | 5916 TestObjectV8Internal::voidMethodNodeFilterArgMethod(info); |
| 5917 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5917 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5918 } | 5918 } |
| 5919 | 5919 |
| 5920 static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) | 5920 static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
| 5921 { | 5921 { |
| 5922 if (UNLIKELY(info.Length() < 1)) { | 5922 if (UNLIKELY(info.Length() < 1)) { |
| 5923 throwArityTypeErrorForMethod("voidMethodPromiseArg", "TestObject", 1, in
fo.Length(), info.GetIsolate()); | 5923 throwMinimumArityTypeErrorForMethod("voidMethodPromiseArg", "TestObject"
, 1, info.Length(), info.GetIsolate()); |
| 5924 return; | 5924 return; |
| 5925 } | 5925 } |
| 5926 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5926 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5927 TONATIVE_VOID(ScriptPromise, promiseArg, ScriptPromise(ScriptState::current(
info.GetIsolate()), info[0])); | 5927 TONATIVE_VOID(ScriptPromise, promiseArg, ScriptPromise(ScriptState::current(
info.GetIsolate()), info[0])); |
| 5928 if (!promiseArg.isUndefinedOrNull() && !promiseArg.isObject()) { | 5928 if (!promiseArg.isUndefinedOrNull() && !promiseArg.isObject()) { |
| 5929 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg"
, "TestObject", "parameter 1 ('promiseArg') is not an object."), info.GetIsolate
()); | 5929 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg"
, "TestObject", "parameter 1 ('promiseArg') is not an object."), info.GetIsolate
()); |
| 5930 return; | 5930 return; |
| 5931 } | 5931 } |
| 5932 impl->voidMethodPromiseArg(promiseArg); | 5932 impl->voidMethodPromiseArg(promiseArg); |
| 5933 } | 5933 } |
| 5934 | 5934 |
| 5935 static void voidMethodPromiseArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) | 5935 static void voidMethodPromiseArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
| 5936 { | 5936 { |
| 5937 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5937 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5938 TestObjectV8Internal::voidMethodPromiseArgMethod(info); | 5938 TestObjectV8Internal::voidMethodPromiseArgMethod(info); |
| 5939 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5939 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5940 } | 5940 } |
| 5941 | 5941 |
| 5942 static void voidMethodSerializedScriptValueArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 5942 static void voidMethodSerializedScriptValueArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 5943 { | 5943 { |
| 5944 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
erializedScriptValueArg", "TestObject", info.Holder(), info.GetIsolate()); | 5944 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
erializedScriptValueArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 5945 if (UNLIKELY(info.Length() < 1)) { | 5945 if (UNLIKELY(info.Length() < 1)) { |
| 5946 throwArityTypeError(exceptionState, 1, info.Length()); | 5946 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 5947 return; | 5947 return; |
| 5948 } | 5948 } |
| 5949 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5949 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5950 RefPtr<SerializedScriptValue> serializedScriptValueArg = SerializedScriptVal
ue::create(info[0], 0, 0, exceptionState, info.GetIsolate()); | 5950 RefPtr<SerializedScriptValue> serializedScriptValueArg = SerializedScriptVal
ue::create(info[0], 0, 0, exceptionState, info.GetIsolate()); |
| 5951 if (exceptionState.throwIfNeeded()) | 5951 if (exceptionState.throwIfNeeded()) |
| 5952 return; | 5952 return; |
| 5953 impl->voidMethodSerializedScriptValueArg(serializedScriptValueArg); | 5953 impl->voidMethodSerializedScriptValueArg(serializedScriptValueArg); |
| 5954 } | 5954 } |
| 5955 | 5955 |
| 5956 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 5956 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
| 5957 { | 5957 { |
| 5958 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5958 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5959 TestObjectV8Internal::voidMethodSerializedScriptValueArgMethod(info); | 5959 TestObjectV8Internal::voidMethodSerializedScriptValueArgMethod(info); |
| 5960 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5960 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5961 } | 5961 } |
| 5962 | 5962 |
| 5963 static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) | 5963 static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) |
| 5964 { | 5964 { |
| 5965 if (UNLIKELY(info.Length() < 1)) { | 5965 if (UNLIKELY(info.Length() < 1)) { |
| 5966 throwArityTypeErrorForMethod("voidMethodXPathNSResolverArg", "TestObject
", 1, info.Length(), info.GetIsolate()); | 5966 throwMinimumArityTypeErrorForMethod("voidMethodXPathNSResolverArg", "Tes
tObject", 1, info.Length(), info.GetIsolate()); |
| 5967 return; | 5967 return; |
| 5968 } | 5968 } |
| 5969 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5969 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5970 TONATIVE_VOID(RefPtrWillBeRawPtr<XPathNSResolver>, xPathNSResolverArg, toXPa
thNSResolver(info[0], info.GetIsolate())); | 5970 TONATIVE_VOID(RefPtrWillBeRawPtr<XPathNSResolver>, xPathNSResolverArg, toXPa
thNSResolver(info[0], info.GetIsolate())); |
| 5971 impl->voidMethodXPathNSResolverArg(xPathNSResolverArg.release()); | 5971 impl->voidMethodXPathNSResolverArg(xPathNSResolverArg.release()); |
| 5972 } | 5972 } |
| 5973 | 5973 |
| 5974 static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 5974 static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
| 5975 { | 5975 { |
| 5976 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5976 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5977 TestObjectV8Internal::voidMethodXPathNSResolverArgMethod(info); | 5977 TestObjectV8Internal::voidMethodXPathNSResolverArgMethod(info); |
| 5978 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5978 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5979 } | 5979 } |
| 5980 | 5980 |
| 5981 static void voidMethodDictionarySequenceArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 5981 static void voidMethodDictionarySequenceArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 5982 { | 5982 { |
| 5983 if (UNLIKELY(info.Length() < 1)) { | 5983 if (UNLIKELY(info.Length() < 1)) { |
| 5984 throwArityTypeErrorForMethod("voidMethodDictionarySequenceArg", "TestObj
ect", 1, info.Length(), info.GetIsolate()); | 5984 throwMinimumArityTypeErrorForMethod("voidMethodDictionarySequenceArg", "
TestObject", 1, info.Length(), info.GetIsolate()); |
| 5985 return; | 5985 return; |
| 5986 } | 5986 } |
| 5987 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5987 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5988 TONATIVE_VOID(Vector<Dictionary>, dictionarySequenceArg, toNativeArray<Dicti
onary>(info[0], 1, info.GetIsolate())); | 5988 TONATIVE_VOID(Vector<Dictionary>, dictionarySequenceArg, toNativeArray<Dicti
onary>(info[0], 1, info.GetIsolate())); |
| 5989 impl->voidMethodDictionarySequenceArg(dictionarySequenceArg); | 5989 impl->voidMethodDictionarySequenceArg(dictionarySequenceArg); |
| 5990 } | 5990 } |
| 5991 | 5991 |
| 5992 static void voidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 5992 static void voidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 5993 { | 5993 { |
| 5994 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5994 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5995 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info); | 5995 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info); |
| 5996 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5996 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5997 } | 5997 } |
| 5998 | 5998 |
| 5999 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 5999 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 6000 { | 6000 { |
| 6001 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
tringArgLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 6001 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
tringArgLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 6002 if (UNLIKELY(info.Length() < 2)) { | 6002 if (UNLIKELY(info.Length() < 2)) { |
| 6003 throwArityTypeError(exceptionState, 2, info.Length()); | 6003 throwMinimumArityTypeError(exceptionState, 2, info.Length()); |
| 6004 return; | 6004 return; |
| 6005 } | 6005 } |
| 6006 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6006 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6007 TOSTRING_VOID(V8StringResource<>, stringArg, info[0]); | 6007 TOSTRING_VOID(V8StringResource<>, stringArg, info[0]); |
| 6008 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[1], exceptionState),
exceptionState); | 6008 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[1], exceptionState),
exceptionState); |
| 6009 impl->voidMethodStringArgLongArg(stringArg, longArg); | 6009 impl->voidMethodStringArgLongArg(stringArg, longArg); |
| 6010 } | 6010 } |
| 6011 | 6011 |
| 6012 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 6012 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 6013 { | 6013 { |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6125 { | 6125 { |
| 6126 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6126 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 6127 TestObjectV8Internal::longMethodOptionalLongArgMethod(info); | 6127 TestObjectV8Internal::longMethodOptionalLongArgMethod(info); |
| 6128 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6128 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 6129 } | 6129 } |
| 6130 | 6130 |
| 6131 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) | 6131 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 6132 { | 6132 { |
| 6133 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 6133 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 6134 if (UNLIKELY(info.Length() < 1)) { | 6134 if (UNLIKELY(info.Length() < 1)) { |
| 6135 throwArityTypeError(exceptionState, 1, info.Length()); | 6135 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 6136 return; | 6136 return; |
| 6137 } | 6137 } |
| 6138 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6138 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6139 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState),
exceptionState); | 6139 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState),
exceptionState); |
| 6140 if (UNLIKELY(info.Length() <= 1)) { | 6140 if (UNLIKELY(info.Length() <= 1)) { |
| 6141 impl->voidMethodLongArgOptionalLongArg(longArg); | 6141 impl->voidMethodLongArgOptionalLongArg(longArg); |
| 6142 return; | 6142 return; |
| 6143 } | 6143 } |
| 6144 TONATIVE_VOID_EXCEPTIONSTATE(int, optionalLongArg, toInt32(info[1], exceptio
nState), exceptionState); | 6144 TONATIVE_VOID_EXCEPTIONSTATE(int, optionalLongArg, toInt32(info[1], exceptio
nState), exceptionState); |
| 6145 impl->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg); | 6145 impl->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg); |
| 6146 } | 6146 } |
| 6147 | 6147 |
| 6148 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 6148 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
| 6149 { | 6149 { |
| 6150 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6150 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 6151 TestObjectV8Internal::voidMethodLongArgOptionalLongArgMethod(info); | 6151 TestObjectV8Internal::voidMethodLongArgOptionalLongArgMethod(info); |
| 6152 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6152 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 6153 } | 6153 } |
| 6154 | 6154 |
| 6155 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) | 6155 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) |
| 6156 { | 6156 { |
| 6157 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsol
ate()); | 6157 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsol
ate()); |
| 6158 if (UNLIKELY(info.Length() < 1)) { | 6158 if (UNLIKELY(info.Length() < 1)) { |
| 6159 throwArityTypeError(exceptionState, 1, info.Length()); | 6159 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 6160 return; | 6160 return; |
| 6161 } | 6161 } |
| 6162 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6162 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6163 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState),
exceptionState); | 6163 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState),
exceptionState); |
| 6164 if (UNLIKELY(info.Length() <= 1)) { | 6164 if (UNLIKELY(info.Length() <= 1)) { |
| 6165 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg); | 6165 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg); |
| 6166 return; | 6166 return; |
| 6167 } | 6167 } |
| 6168 TONATIVE_VOID_EXCEPTIONSTATE(int, optionalLongArg1, toInt32(info[1], excepti
onState), exceptionState); | 6168 TONATIVE_VOID_EXCEPTIONSTATE(int, optionalLongArg1, toInt32(info[1], excepti
onState), exceptionState); |
| 6169 if (UNLIKELY(info.Length() <= 2)) { | 6169 if (UNLIKELY(info.Length() <= 2)) { |
| 6170 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalL
ongArg1); | 6170 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalL
ongArg1); |
| 6171 return; | 6171 return; |
| 6172 } | 6172 } |
| 6173 TONATIVE_VOID_EXCEPTIONSTATE(int, optionalLongArg2, toInt32(info[2], excepti
onState), exceptionState); | 6173 TONATIVE_VOID_EXCEPTIONSTATE(int, optionalLongArg2, toInt32(info[2], excepti
onState), exceptionState); |
| 6174 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongA
rg1, optionalLongArg2); | 6174 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongA
rg1, optionalLongArg2); |
| 6175 } | 6175 } |
| 6176 | 6176 |
| 6177 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) | 6177 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
| 6178 { | 6178 { |
| 6179 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6179 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 6180 TestObjectV8Internal::voidMethodLongArgOptionalLongArgOptionalLongArgMethod(
info); | 6180 TestObjectV8Internal::voidMethodLongArgOptionalLongArgOptionalLongArgMethod(
info); |
| 6181 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6181 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 6182 } | 6182 } |
| 6183 | 6183 |
| 6184 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 6184 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
| 6185 { | 6185 { |
| 6186 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsola
te()); | 6186 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalTestInterfaceEmptyArg", "TestObject", info.Holder(), info.GetIsola
te()); |
| 6187 if (UNLIKELY(info.Length() < 1)) { | 6187 if (UNLIKELY(info.Length() < 1)) { |
| 6188 throwArityTypeError(exceptionState, 1, info.Length()); | 6188 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 6189 return; | 6189 return; |
| 6190 } | 6190 } |
| 6191 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6191 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6192 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState),
exceptionState); | 6192 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState),
exceptionState); |
| 6193 if (UNLIKELY(info.Length() <= 1)) { | 6193 if (UNLIKELY(info.Length() <= 1)) { |
| 6194 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg); | 6194 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg); |
| 6195 return; | 6195 return; |
| 6196 } | 6196 } |
| 6197 TONATIVE_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInterfa
ceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[1])); | 6197 TONATIVE_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInterfa
ceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[1])); |
| 6198 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestIn
terfaceEmpty); | 6198 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestIn
terfaceEmpty); |
| 6199 } | 6199 } |
| 6200 | 6200 |
| 6201 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) | 6201 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) |
| 6202 { | 6202 { |
| 6203 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6203 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 6204 TestObjectV8Internal::voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(i
nfo); | 6204 TestObjectV8Internal::voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(i
nfo); |
| 6205 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6205 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 6206 } | 6206 } |
| 6207 | 6207 |
| 6208 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 6208 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
| 6209 { | 6209 { |
| 6210 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceEmptyArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsola
te()); | 6210 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceEmptyArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsola
te()); |
| 6211 if (UNLIKELY(info.Length() < 1)) { | 6211 if (UNLIKELY(info.Length() < 1)) { |
| 6212 throwArityTypeError(exceptionState, 1, info.Length()); | 6212 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 6213 return; | 6213 return; |
| 6214 } | 6214 } |
| 6215 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6215 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6216 TONATIVE_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInterfa
ceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 6216 TONATIVE_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInterfa
ceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
| 6217 if (UNLIKELY(info.Length() <= 1)) { | 6217 if (UNLIKELY(info.Length() <= 1)) { |
| 6218 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfa
ceEmpty); | 6218 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfa
ceEmpty); |
| 6219 return; | 6219 return; |
| 6220 } | 6220 } |
| 6221 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[1], exceptionState),
exceptionState); | 6221 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[1], exceptionState),
exceptionState); |
| 6222 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEm
pty, longArg); | 6222 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEm
pty, longArg); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6257 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 6257 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 6258 { | 6258 { |
| 6259 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6259 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 6260 TestObjectV8Internal::voidMethodVariadicStringArgMethod(info); | 6260 TestObjectV8Internal::voidMethodVariadicStringArgMethod(info); |
| 6261 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6261 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 6262 } | 6262 } |
| 6263 | 6263 |
| 6264 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 6264 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
| 6265 { | 6265 { |
| 6266 if (UNLIKELY(info.Length() < 1)) { | 6266 if (UNLIKELY(info.Length() < 1)) { |
| 6267 throwArityTypeErrorForMethod("voidMethodStringArgVariadicStringArg", "Te
stObject", 1, info.Length(), info.GetIsolate()); | 6267 throwMinimumArityTypeErrorForMethod("voidMethodStringArgVariadicStringAr
g", "TestObject", 1, info.Length(), info.GetIsolate()); |
| 6268 return; | 6268 return; |
| 6269 } | 6269 } |
| 6270 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6270 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6271 TOSTRING_VOID(V8StringResource<>, stringArg, info[0]); | 6271 TOSTRING_VOID(V8StringResource<>, stringArg, info[0]); |
| 6272 TONATIVE_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String>(
info, 1)); | 6272 TONATIVE_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String>(
info, 1)); |
| 6273 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); | 6273 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); |
| 6274 } | 6274 } |
| 6275 | 6275 |
| 6276 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 6276 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
| 6277 { | 6277 { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 6297 static void voidMethodVariadicTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 6297 static void voidMethodVariadicTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
| 6298 { | 6298 { |
| 6299 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6299 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 6300 TestObjectV8Internal::voidMethodVariadicTestInterfaceEmptyArgMethod(info); | 6300 TestObjectV8Internal::voidMethodVariadicTestInterfaceEmptyArgMethod(info); |
| 6301 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6301 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 6302 } | 6302 } |
| 6303 | 6303 |
| 6304 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(c
onst v8::FunctionCallbackInfo<v8::Value>& info) | 6304 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
| 6305 { | 6305 { |
| 6306 if (UNLIKELY(info.Length() < 1)) { | 6306 if (UNLIKELY(info.Length() < 1)) { |
| 6307 throwArityTypeErrorForMethod("voidMethodTestInterfaceEmptyArgVariadicTes
tInterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate()); | 6307 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceEmptyArgVari
adicTestInterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate()); |
| 6308 return; | 6308 return; |
| 6309 } | 6309 } |
| 6310 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6310 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6311 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 6311 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
| 6312 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; | 6312 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; |
| 6313 for (int i = 1; i < info.Length(); ++i) { | 6313 for (int i = 1; i < info.Length(); ++i) { |
| 6314 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) { | 6314 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) { |
| 6315 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInt
erfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObject", "parameter 2 is not
of type 'TestInterfaceEmpty'."), info.GetIsolate()); | 6315 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInt
erfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObject", "parameter 2 is not
of type 'TestInterfaceEmpty'."), info.GetIsolate()); |
| 6316 return; | 6316 return; |
| 6317 } | 6317 } |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6396 overloadedMethodA1Method(info); | 6396 overloadedMethodA1Method(info); |
| 6397 return; | 6397 return; |
| 6398 } | 6398 } |
| 6399 break; | 6399 break; |
| 6400 case 2: | 6400 case 2: |
| 6401 if (true) { | 6401 if (true) { |
| 6402 overloadedMethodA2Method(info); | 6402 overloadedMethodA2Method(info); |
| 6403 return; | 6403 return; |
| 6404 } | 6404 } |
| 6405 break; | 6405 break; |
| 6406 } | 6406 default: |
| 6407 if (UNLIKELY(info.Length() < 1)) { | 6407 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
| 6408 throwArityTypeError(exceptionState, 1, info.Length()); | 6408 exceptionState.throwIfNeeded(); |
| 6409 return; | 6409 return; |
| 6410 } | 6410 } |
| 6411 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 6411 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 6412 exceptionState.throwIfNeeded(); | 6412 exceptionState.throwIfNeeded(); |
| 6413 } | 6413 } |
| 6414 | 6414 |
| 6415 static void overloadedMethodAMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 6415 static void overloadedMethodAMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 6416 { | 6416 { |
| 6417 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6417 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 6418 TestObjectV8Internal::overloadedMethodAMethod(info); | 6418 TestObjectV8Internal::overloadedMethodAMethod(info); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6454 overloadedMethodB2Method(info); | 6454 overloadedMethodB2Method(info); |
| 6455 return; | 6455 return; |
| 6456 } | 6456 } |
| 6457 break; | 6457 break; |
| 6458 case 2: | 6458 case 2: |
| 6459 if (true) { | 6459 if (true) { |
| 6460 overloadedMethodB2Method(info); | 6460 overloadedMethodB2Method(info); |
| 6461 return; | 6461 return; |
| 6462 } | 6462 } |
| 6463 break; | 6463 break; |
| 6464 } | 6464 default: |
| 6465 if (UNLIKELY(info.Length() < 1)) { | 6465 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
| 6466 throwArityTypeError(exceptionState, 1, info.Length()); | 6466 exceptionState.throwIfNeeded(); |
| 6467 return; | 6467 return; |
| 6468 } | 6468 } |
| 6469 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 6469 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 6470 exceptionState.throwIfNeeded(); | 6470 exceptionState.throwIfNeeded(); |
| 6471 } | 6471 } |
| 6472 | 6472 |
| 6473 static void overloadedMethodBMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 6473 static void overloadedMethodBMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 6474 { | 6474 { |
| 6475 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6475 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 6476 TestObjectV8Internal::overloadedMethodBMethod(info); | 6476 TestObjectV8Internal::overloadedMethodBMethod(info); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 6500 case 1: | 6500 case 1: |
| 6501 if (V8TestInterfaceEmpty::hasInstance(info[0], isolate)) { | 6501 if (V8TestInterfaceEmpty::hasInstance(info[0], isolate)) { |
| 6502 overloadedMethodC2Method(info); | 6502 overloadedMethodC2Method(info); |
| 6503 return; | 6503 return; |
| 6504 } | 6504 } |
| 6505 if (true) { | 6505 if (true) { |
| 6506 overloadedMethodC1Method(info); | 6506 overloadedMethodC1Method(info); |
| 6507 return; | 6507 return; |
| 6508 } | 6508 } |
| 6509 break; | 6509 break; |
| 6510 } | 6510 default: |
| 6511 if (UNLIKELY(info.Length() < 1)) { | 6511 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
| 6512 throwArityTypeError(exceptionState, 1, info.Length()); | 6512 exceptionState.throwIfNeeded(); |
| 6513 return; | 6513 return; |
| 6514 } | 6514 } |
| 6515 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 6515 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 6516 exceptionState.throwIfNeeded(); | 6516 exceptionState.throwIfNeeded(); |
| 6517 } | 6517 } |
| 6518 | 6518 |
| 6519 static void overloadedMethodCMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 6519 static void overloadedMethodCMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 6520 { | 6520 { |
| 6521 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6521 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 6522 TestObjectV8Internal::overloadedMethodCMethod(info); | 6522 TestObjectV8Internal::overloadedMethodCMethod(info); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 6546 case 1: | 6546 case 1: |
| 6547 if (info[0]->IsArray()) { | 6547 if (info[0]->IsArray()) { |
| 6548 overloadedMethodD2Method(info); | 6548 overloadedMethodD2Method(info); |
| 6549 return; | 6549 return; |
| 6550 } | 6550 } |
| 6551 if (true) { | 6551 if (true) { |
| 6552 overloadedMethodD1Method(info); | 6552 overloadedMethodD1Method(info); |
| 6553 return; | 6553 return; |
| 6554 } | 6554 } |
| 6555 break; | 6555 break; |
| 6556 } | 6556 default: |
| 6557 if (UNLIKELY(info.Length() < 1)) { | 6557 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
| 6558 throwArityTypeError(exceptionState, 1, info.Length()); | 6558 exceptionState.throwIfNeeded(); |
| 6559 return; | 6559 return; |
| 6560 } | 6560 } |
| 6561 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 6561 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 6562 exceptionState.throwIfNeeded(); | 6562 exceptionState.throwIfNeeded(); |
| 6563 } | 6563 } |
| 6564 | 6564 |
| 6565 static void overloadedMethodDMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 6565 static void overloadedMethodDMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 6566 { | 6566 { |
| 6567 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6567 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 6568 TestObjectV8Internal::overloadedMethodDMethod(info); | 6568 TestObjectV8Internal::overloadedMethodDMethod(info); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 6596 } | 6596 } |
| 6597 if (V8TestInterfaceEmpty::hasInstance(info[0], isolate)) { | 6597 if (V8TestInterfaceEmpty::hasInstance(info[0], isolate)) { |
| 6598 overloadedMethodE2Method(info); | 6598 overloadedMethodE2Method(info); |
| 6599 return; | 6599 return; |
| 6600 } | 6600 } |
| 6601 if (true) { | 6601 if (true) { |
| 6602 overloadedMethodE1Method(info); | 6602 overloadedMethodE1Method(info); |
| 6603 return; | 6603 return; |
| 6604 } | 6604 } |
| 6605 break; | 6605 break; |
| 6606 } | 6606 default: |
| 6607 if (UNLIKELY(info.Length() < 1)) { | 6607 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
| 6608 throwArityTypeError(exceptionState, 1, info.Length()); | 6608 exceptionState.throwIfNeeded(); |
| 6609 return; | 6609 return; |
| 6610 } | 6610 } |
| 6611 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 6611 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 6612 exceptionState.throwIfNeeded(); | 6612 exceptionState.throwIfNeeded(); |
| 6613 } | 6613 } |
| 6614 | 6614 |
| 6615 static void overloadedMethodEMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 6615 static void overloadedMethodEMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 6616 { | 6616 { |
| 6617 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6617 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 6618 TestObjectV8Internal::overloadedMethodEMethod(info); | 6618 TestObjectV8Internal::overloadedMethodEMethod(info); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6655 } | 6655 } |
| 6656 if (info[0]->IsNumber()) { | 6656 if (info[0]->IsNumber()) { |
| 6657 overloadedMethodF2Method(info); | 6657 overloadedMethodF2Method(info); |
| 6658 return; | 6658 return; |
| 6659 } | 6659 } |
| 6660 if (true) { | 6660 if (true) { |
| 6661 overloadedMethodF1Method(info); | 6661 overloadedMethodF1Method(info); |
| 6662 return; | 6662 return; |
| 6663 } | 6663 } |
| 6664 break; | 6664 break; |
| 6665 default: |
| 6666 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); |
| 6667 exceptionState.throwIfNeeded(); |
| 6668 return; |
| 6665 } | 6669 } |
| 6666 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 6670 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 6667 exceptionState.throwIfNeeded(); | 6671 exceptionState.throwIfNeeded(); |
| 6668 } | 6672 } |
| 6669 | 6673 |
| 6670 static void overloadedMethodFMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 6674 static void overloadedMethodFMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 6671 { | 6675 { |
| 6672 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6676 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 6673 TestObjectV8Internal::overloadedMethodFMethod(info); | 6677 TestObjectV8Internal::overloadedMethodFMethod(info); |
| 6674 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6678 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 6701 } | 6705 } |
| 6702 if (V8TestInterfaceEmpty::hasInstance(info[0], isolate)) { | 6706 if (V8TestInterfaceEmpty::hasInstance(info[0], isolate)) { |
| 6703 overloadedMethodG2Method(info); | 6707 overloadedMethodG2Method(info); |
| 6704 return; | 6708 return; |
| 6705 } | 6709 } |
| 6706 if (true) { | 6710 if (true) { |
| 6707 overloadedMethodG1Method(info); | 6711 overloadedMethodG1Method(info); |
| 6708 return; | 6712 return; |
| 6709 } | 6713 } |
| 6710 break; | 6714 break; |
| 6711 } | 6715 default: |
| 6712 if (UNLIKELY(info.Length() < 1)) { | 6716 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
| 6713 throwArityTypeError(exceptionState, 1, info.Length()); | 6717 exceptionState.throwIfNeeded(); |
| 6714 return; | 6718 return; |
| 6715 } | 6719 } |
| 6716 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 6720 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 6717 exceptionState.throwIfNeeded(); | 6721 exceptionState.throwIfNeeded(); |
| 6718 } | 6722 } |
| 6719 | 6723 |
| 6720 static void overloadedMethodGMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 6724 static void overloadedMethodGMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 6721 { | 6725 { |
| 6722 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6726 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 6723 TestObjectV8Internal::overloadedMethodGMethod(info); | 6727 TestObjectV8Internal::overloadedMethodGMethod(info); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 6746 case 1: | 6750 case 1: |
| 6747 if (V8TestInterface::hasInstance(info[0], isolate)) { | 6751 if (V8TestInterface::hasInstance(info[0], isolate)) { |
| 6748 overloadedMethodH1Method(info); | 6752 overloadedMethodH1Method(info); |
| 6749 return; | 6753 return; |
| 6750 } | 6754 } |
| 6751 if (V8TestInterfaceEmpty::hasInstance(info[0], isolate)) { | 6755 if (V8TestInterfaceEmpty::hasInstance(info[0], isolate)) { |
| 6752 overloadedMethodH2Method(info); | 6756 overloadedMethodH2Method(info); |
| 6753 return; | 6757 return; |
| 6754 } | 6758 } |
| 6755 break; | 6759 break; |
| 6756 } | 6760 default: |
| 6757 if (UNLIKELY(info.Length() < 1)) { | 6761 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
| 6758 throwArityTypeError(exceptionState, 1, info.Length()); | 6762 exceptionState.throwIfNeeded(); |
| 6759 return; | 6763 return; |
| 6760 } | 6764 } |
| 6761 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 6765 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 6762 exceptionState.throwIfNeeded(); | 6766 exceptionState.throwIfNeeded(); |
| 6763 } | 6767 } |
| 6764 | 6768 |
| 6765 static void overloadedMethodHMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 6769 static void overloadedMethodHMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 6766 { | 6770 { |
| 6767 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6771 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 6768 TestObjectV8Internal::overloadedMethodHMethod(info); | 6772 TestObjectV8Internal::overloadedMethodHMethod(info); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 6791 case 1: | 6795 case 1: |
| 6792 if (info[0]->IsNumber()) { | 6796 if (info[0]->IsNumber()) { |
| 6793 overloadedMethodI2Method(info); | 6797 overloadedMethodI2Method(info); |
| 6794 return; | 6798 return; |
| 6795 } | 6799 } |
| 6796 if (true) { | 6800 if (true) { |
| 6797 overloadedMethodI1Method(info); | 6801 overloadedMethodI1Method(info); |
| 6798 return; | 6802 return; |
| 6799 } | 6803 } |
| 6800 break; | 6804 break; |
| 6801 } | 6805 default: |
| 6802 if (UNLIKELY(info.Length() < 1)) { | 6806 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
| 6803 throwArityTypeError(exceptionState, 1, info.Length()); | 6807 exceptionState.throwIfNeeded(); |
| 6804 return; | 6808 return; |
| 6805 } | 6809 } |
| 6806 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 6810 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 6807 exceptionState.throwIfNeeded(); | 6811 exceptionState.throwIfNeeded(); |
| 6808 } | 6812 } |
| 6809 | 6813 |
| 6810 static void overloadedMethodIMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 6814 static void overloadedMethodIMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 6811 { | 6815 { |
| 6812 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6816 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 6813 TestObjectV8Internal::overloadedMethodIMethod(info); | 6817 TestObjectV8Internal::overloadedMethodIMethod(info); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 6844 overloadedPerWorldBindingsMethod1Method(info); | 6848 overloadedPerWorldBindingsMethod1Method(info); |
| 6845 return; | 6849 return; |
| 6846 } | 6850 } |
| 6847 break; | 6851 break; |
| 6848 case 1: | 6852 case 1: |
| 6849 if (true) { | 6853 if (true) { |
| 6850 overloadedPerWorldBindingsMethod2Method(info); | 6854 overloadedPerWorldBindingsMethod2Method(info); |
| 6851 return; | 6855 return; |
| 6852 } | 6856 } |
| 6853 break; | 6857 break; |
| 6858 default: |
| 6859 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); |
| 6860 exceptionState.throwIfNeeded(); |
| 6861 return; |
| 6854 } | 6862 } |
| 6855 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 6863 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 6856 exceptionState.throwIfNeeded(); | 6864 exceptionState.throwIfNeeded(); |
| 6857 } | 6865 } |
| 6858 | 6866 |
| 6859 static void overloadedPerWorldBindingsMethodMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 6867 static void overloadedPerWorldBindingsMethodMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
| 6860 { | 6868 { |
| 6861 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6869 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 6862 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethod(info); | 6870 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethod(info); |
| 6863 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6871 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 6881 overloadedPerWorldBindingsMethod1MethodForMainWorld(info); | 6889 overloadedPerWorldBindingsMethod1MethodForMainWorld(info); |
| 6882 return; | 6890 return; |
| 6883 } | 6891 } |
| 6884 break; | 6892 break; |
| 6885 case 1: | 6893 case 1: |
| 6886 if (true) { | 6894 if (true) { |
| 6887 overloadedPerWorldBindingsMethod2MethodForMainWorld(info); | 6895 overloadedPerWorldBindingsMethod2MethodForMainWorld(info); |
| 6888 return; | 6896 return; |
| 6889 } | 6897 } |
| 6890 break; | 6898 break; |
| 6899 default: |
| 6900 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); |
| 6901 exceptionState.throwIfNeeded(); |
| 6902 return; |
| 6891 } | 6903 } |
| 6892 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 6904 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 6893 exceptionState.throwIfNeeded(); | 6905 exceptionState.throwIfNeeded(); |
| 6894 } | 6906 } |
| 6895 | 6907 |
| 6896 static void overloadedPerWorldBindingsMethodMethodCallbackForMainWorld(const v8:
:FunctionCallbackInfo<v8::Value>& info) | 6908 static void overloadedPerWorldBindingsMethodMethodCallbackForMainWorld(const v8:
:FunctionCallbackInfo<v8::Value>& info) |
| 6897 { | 6909 { |
| 6898 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6910 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 6899 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethodForMainWorld(inf
o); | 6911 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethodForMainWorld(inf
o); |
| 6900 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6912 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 6925 overloadedStaticMethod1Method(info); | 6937 overloadedStaticMethod1Method(info); |
| 6926 return; | 6938 return; |
| 6927 } | 6939 } |
| 6928 break; | 6940 break; |
| 6929 case 2: | 6941 case 2: |
| 6930 if (true) { | 6942 if (true) { |
| 6931 overloadedStaticMethod2Method(info); | 6943 overloadedStaticMethod2Method(info); |
| 6932 return; | 6944 return; |
| 6933 } | 6945 } |
| 6934 break; | 6946 break; |
| 6935 } | 6947 default: |
| 6936 if (UNLIKELY(info.Length() < 1)) { | 6948 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
| 6937 throwArityTypeError(exceptionState, 1, info.Length()); | 6949 exceptionState.throwIfNeeded(); |
| 6938 return; | 6950 return; |
| 6939 } | 6951 } |
| 6940 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 6952 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 6941 exceptionState.throwIfNeeded(); | 6953 exceptionState.throwIfNeeded(); |
| 6942 } | 6954 } |
| 6943 | 6955 |
| 6944 static void overloadedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) | 6956 static void overloadedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
| 6945 { | 6957 { |
| 6946 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6958 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 6947 TestObjectV8Internal::overloadedStaticMethodMethod(info); | 6959 TestObjectV8Internal::overloadedStaticMethodMethod(info); |
| 6948 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6960 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 6949 } | 6961 } |
| 6950 | 6962 |
| 6951 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 6963 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 6952 { | 6964 { |
| 6953 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC
lampUnsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); | 6965 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC
lampUnsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 6954 if (UNLIKELY(info.Length() < 1)) { | 6966 if (UNLIKELY(info.Length() < 1)) { |
| 6955 throwArityTypeError(exceptionState, 1, info.Length()); | 6967 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 6956 return; | 6968 return; |
| 6957 } | 6969 } |
| 6958 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6970 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6959 unsigned clampUnsignedShortArg = 0; | 6971 unsigned clampUnsignedShortArg = 0; |
| 6960 TONATIVE_VOID(double, clampUnsignedShortArgNativeValue, info[0]->NumberValue
()); | 6972 TONATIVE_VOID(double, clampUnsignedShortArgNativeValue, info[0]->NumberValue
()); |
| 6961 if (!std::isnan(clampUnsignedShortArgNativeValue)) | 6973 if (!std::isnan(clampUnsignedShortArgNativeValue)) |
| 6962 clampUnsignedShortArg = clampTo<unsigned short>(clampUnsignedShortArgNat
iveValue); | 6974 clampUnsignedShortArg = clampTo<unsigned short>(clampUnsignedShortArgNat
iveValue); |
| 6963 impl->voidMethodClampUnsignedShortArg(clampUnsignedShortArg); | 6975 impl->voidMethodClampUnsignedShortArg(clampUnsignedShortArg); |
| 6964 } | 6976 } |
| 6965 | 6977 |
| 6966 static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 6978 static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 6967 { | 6979 { |
| 6968 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6980 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 6969 TestObjectV8Internal::voidMethodClampUnsignedShortArgMethod(info); | 6981 TestObjectV8Internal::voidMethodClampUnsignedShortArgMethod(info); |
| 6970 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6982 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 6971 } | 6983 } |
| 6972 | 6984 |
| 6973 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) | 6985 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) |
| 6974 { | 6986 { |
| 6975 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC
lampUnsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 6987 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC
lampUnsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 6976 if (UNLIKELY(info.Length() < 1)) { | 6988 if (UNLIKELY(info.Length() < 1)) { |
| 6977 throwArityTypeError(exceptionState, 1, info.Length()); | 6989 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 6978 return; | 6990 return; |
| 6979 } | 6991 } |
| 6980 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6992 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6981 unsigned clampUnsignedLongArg = 0; | 6993 unsigned clampUnsignedLongArg = 0; |
| 6982 TONATIVE_VOID(double, clampUnsignedLongArgNativeValue, info[0]->NumberValue(
)); | 6994 TONATIVE_VOID(double, clampUnsignedLongArgNativeValue, info[0]->NumberValue(
)); |
| 6983 if (!std::isnan(clampUnsignedLongArgNativeValue)) | 6995 if (!std::isnan(clampUnsignedLongArgNativeValue)) |
| 6984 clampUnsignedLongArg = clampTo<unsigned long>(clampUnsignedLongArgNative
Value); | 6996 clampUnsignedLongArg = clampTo<unsigned long>(clampUnsignedLongArgNative
Value); |
| 6985 impl->voidMethodClampUnsignedLongArg(clampUnsignedLongArg); | 6997 impl->voidMethodClampUnsignedLongArg(clampUnsignedLongArg); |
| 6986 } | 6998 } |
| 6987 | 6999 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7046 { | 7058 { |
| 7047 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7059 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 7048 TestObjectV8Internal::voidMethodDefaultNullStringStringArgMethod(info); | 7060 TestObjectV8Internal::voidMethodDefaultNullStringStringArgMethod(info); |
| 7049 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7061 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 7050 } | 7062 } |
| 7051 | 7063 |
| 7052 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) | 7064 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 7053 { | 7065 { |
| 7054 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE
nforceRangeLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 7066 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE
nforceRangeLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 7055 if (UNLIKELY(info.Length() < 1)) { | 7067 if (UNLIKELY(info.Length() < 1)) { |
| 7056 throwArityTypeError(exceptionState, 1, info.Length()); | 7068 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 7057 return; | 7069 return; |
| 7058 } | 7070 } |
| 7059 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7071 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 7060 TONATIVE_VOID_EXCEPTIONSTATE(int, enforceRangeLongArg, toInt32(info[0], Enfo
rceRange, exceptionState), exceptionState); | 7072 TONATIVE_VOID_EXCEPTIONSTATE(int, enforceRangeLongArg, toInt32(info[0], Enfo
rceRange, exceptionState), exceptionState); |
| 7061 impl->voidMethodEnforceRangeLongArg(enforceRangeLongArg); | 7073 impl->voidMethodEnforceRangeLongArg(enforceRangeLongArg); |
| 7062 } | 7074 } |
| 7063 | 7075 |
| 7064 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 7076 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
| 7065 { | 7077 { |
| 7066 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7078 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 7067 TestObjectV8Internal::voidMethodEnforceRangeLongArgMethod(info); | 7079 TestObjectV8Internal::voidMethodEnforceRangeLongArgMethod(info); |
| 7068 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7080 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 7069 } | 7081 } |
| 7070 | 7082 |
| 7071 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 7083 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
| 7072 { | 7084 { |
| 7073 if (UNLIKELY(info.Length() < 1)) { | 7085 if (UNLIKELY(info.Length() < 1)) { |
| 7074 throwArityTypeErrorForMethod("voidMethodTreatNullAsNullStringStringArg",
"TestObject", 1, info.Length(), info.GetIsolate()); | 7086 throwMinimumArityTypeErrorForMethod("voidMethodTreatNullAsNullStringStri
ngArg", "TestObject", 1, info.Length(), info.GetIsolate()); |
| 7075 return; | 7087 return; |
| 7076 } | 7088 } |
| 7077 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7089 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 7078 TOSTRING_VOID(V8StringResource<WithNullCheck>, treatNullAsNullStringStringAr
g, info[0]); | 7090 TOSTRING_VOID(V8StringResource<WithNullCheck>, treatNullAsNullStringStringAr
g, info[0]); |
| 7079 impl->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringAr
g); | 7091 impl->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringAr
g); |
| 7080 } | 7092 } |
| 7081 | 7093 |
| 7082 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) | 7094 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
| 7083 { | 7095 { |
| 7084 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7096 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 7085 TestObjectV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(info); | 7097 TestObjectV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(info); |
| 7086 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7098 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 7087 } | 7099 } |
| 7088 | 7100 |
| 7089 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thod(const v8::FunctionCallbackInfo<v8::Value>& info) | 7101 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 7090 { | 7102 { |
| 7091 if (UNLIKELY(info.Length() < 1)) { | 7103 if (UNLIKELY(info.Length() < 1)) { |
| 7092 throwArityTypeErrorForMethod("voidMethodTreatNullAsNullStringTreatUndefi
nedAsNullStringStringArg", "TestObject", 1, info.Length(), info.GetIsolate()); | 7104 throwMinimumArityTypeErrorForMethod("voidMethodTreatNullAsNullStringTrea
tUndefinedAsNullStringStringArg", "TestObject", 1, info.Length(), info.GetIsolat
e()); |
| 7093 return; | 7105 return; |
| 7094 } | 7106 } |
| 7095 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7107 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 7096 TOSTRING_VOID(V8StringResource<WithUndefinedOrNullCheck>, treatNullAsNullStr
ingStringArg, info[0]); | 7108 TOSTRING_VOID(V8StringResource<WithUndefinedOrNullCheck>, treatNullAsNullStr
ingStringArg, info[0]); |
| 7097 impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(tre
atNullAsNullStringStringArg); | 7109 impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(tre
atNullAsNullStringStringArg); |
| 7098 } | 7110 } |
| 7099 | 7111 |
| 7100 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 7112 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 7101 { | 7113 { |
| 7102 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7114 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7421 return; | 7433 return; |
| 7422 } | 7434 } |
| 7423 break; | 7435 break; |
| 7424 case 1: | 7436 case 1: |
| 7425 if (true) { | 7437 if (true) { |
| 7426 UseCounter::countDeprecation(callingExecutionContext(isolate), UseCo
unter::TestFeatureB); | 7438 UseCounter::countDeprecation(callingExecutionContext(isolate), UseCo
unter::TestFeatureB); |
| 7427 DeprecateAsOverloadedMethod2Method(info); | 7439 DeprecateAsOverloadedMethod2Method(info); |
| 7428 return; | 7440 return; |
| 7429 } | 7441 } |
| 7430 break; | 7442 break; |
| 7443 default: |
| 7444 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); |
| 7445 exceptionState.throwIfNeeded(); |
| 7446 return; |
| 7431 } | 7447 } |
| 7432 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 7448 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 7433 exceptionState.throwIfNeeded(); | 7449 exceptionState.throwIfNeeded(); |
| 7434 } | 7450 } |
| 7435 | 7451 |
| 7436 static void DeprecateAsOverloadedMethodMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 7452 static void DeprecateAsOverloadedMethodMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 7437 { | 7453 { |
| 7438 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7454 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 7439 TestObjectV8Internal::DeprecateAsOverloadedMethodMethod(info); | 7455 TestObjectV8Internal::DeprecateAsOverloadedMethodMethod(info); |
| 7440 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7456 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 7465 DeprecateAsSameValueOverloadedMethod1Method(info); | 7481 DeprecateAsSameValueOverloadedMethod1Method(info); |
| 7466 return; | 7482 return; |
| 7467 } | 7483 } |
| 7468 break; | 7484 break; |
| 7469 case 1: | 7485 case 1: |
| 7470 if (true) { | 7486 if (true) { |
| 7471 DeprecateAsSameValueOverloadedMethod2Method(info); | 7487 DeprecateAsSameValueOverloadedMethod2Method(info); |
| 7472 return; | 7488 return; |
| 7473 } | 7489 } |
| 7474 break; | 7490 break; |
| 7491 default: |
| 7492 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); |
| 7493 exceptionState.throwIfNeeded(); |
| 7494 return; |
| 7475 } | 7495 } |
| 7476 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 7496 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 7477 exceptionState.throwIfNeeded(); | 7497 exceptionState.throwIfNeeded(); |
| 7478 } | 7498 } |
| 7479 | 7499 |
| 7480 static void DeprecateAsSameValueOverloadedMethodMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 7500 static void DeprecateAsSameValueOverloadedMethodMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
| 7481 { | 7501 { |
| 7482 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7502 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 7483 TestObjectV8Internal::DeprecateAsSameValueOverloadedMethodMethod(info); | 7503 TestObjectV8Internal::DeprecateAsSameValueOverloadedMethodMethod(info); |
| 7484 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7504 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 7510 return; | 7530 return; |
| 7511 } | 7531 } |
| 7512 break; | 7532 break; |
| 7513 case 1: | 7533 case 1: |
| 7514 if (true) { | 7534 if (true) { |
| 7515 UseCounter::count(callingExecutionContext(isolate), UseCounter::Test
FeatureB); | 7535 UseCounter::count(callingExecutionContext(isolate), UseCounter::Test
FeatureB); |
| 7516 measureAsOverloadedMethod2Method(info); | 7536 measureAsOverloadedMethod2Method(info); |
| 7517 return; | 7537 return; |
| 7518 } | 7538 } |
| 7519 break; | 7539 break; |
| 7540 default: |
| 7541 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); |
| 7542 exceptionState.throwIfNeeded(); |
| 7543 return; |
| 7520 } | 7544 } |
| 7521 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 7545 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 7522 exceptionState.throwIfNeeded(); | 7546 exceptionState.throwIfNeeded(); |
| 7523 } | 7547 } |
| 7524 | 7548 |
| 7525 static void measureAsOverloadedMethodMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 7549 static void measureAsOverloadedMethodMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 7526 { | 7550 { |
| 7527 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7551 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 7528 TestObjectV8Internal::measureAsOverloadedMethodMethod(info); | 7552 TestObjectV8Internal::measureAsOverloadedMethodMethod(info); |
| 7529 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7553 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 7554 measureAsSameValueOverloadedMethod1Method(info); | 7578 measureAsSameValueOverloadedMethod1Method(info); |
| 7555 return; | 7579 return; |
| 7556 } | 7580 } |
| 7557 break; | 7581 break; |
| 7558 case 1: | 7582 case 1: |
| 7559 if (true) { | 7583 if (true) { |
| 7560 measureAsSameValueOverloadedMethod2Method(info); | 7584 measureAsSameValueOverloadedMethod2Method(info); |
| 7561 return; | 7585 return; |
| 7562 } | 7586 } |
| 7563 break; | 7587 break; |
| 7588 default: |
| 7589 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); |
| 7590 exceptionState.throwIfNeeded(); |
| 7591 return; |
| 7564 } | 7592 } |
| 7565 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 7593 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 7566 exceptionState.throwIfNeeded(); | 7594 exceptionState.throwIfNeeded(); |
| 7567 } | 7595 } |
| 7568 | 7596 |
| 7569 static void measureAsSameValueOverloadedMethodMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 7597 static void measureAsSameValueOverloadedMethodMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
| 7570 { | 7598 { |
| 7571 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7599 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 7572 TestObjectV8Internal::measureAsSameValueOverloadedMethodMethod(info); | 7600 TestObjectV8Internal::measureAsSameValueOverloadedMethodMethod(info); |
| 7573 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7601 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 7600 return; | 7628 return; |
| 7601 } | 7629 } |
| 7602 break; | 7630 break; |
| 7603 case 1: | 7631 case 1: |
| 7604 if (true) { | 7632 if (true) { |
| 7605 UseCounter::countDeprecation(callingExecutionContext(isolate), UseCo
unter::TestFeatureB); | 7633 UseCounter::countDeprecation(callingExecutionContext(isolate), UseCo
unter::TestFeatureB); |
| 7606 deprecateAsMeasureAsSameValueOverloadedMethod2Method(info); | 7634 deprecateAsMeasureAsSameValueOverloadedMethod2Method(info); |
| 7607 return; | 7635 return; |
| 7608 } | 7636 } |
| 7609 break; | 7637 break; |
| 7638 default: |
| 7639 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); |
| 7640 exceptionState.throwIfNeeded(); |
| 7641 return; |
| 7610 } | 7642 } |
| 7611 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 7643 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 7612 exceptionState.throwIfNeeded(); | 7644 exceptionState.throwIfNeeded(); |
| 7613 } | 7645 } |
| 7614 | 7646 |
| 7615 static void deprecateAsMeasureAsSameValueOverloadedMethodMethodCallback(const v8
::FunctionCallbackInfo<v8::Value>& info) | 7647 static void deprecateAsMeasureAsSameValueOverloadedMethodMethodCallback(const v8
::FunctionCallbackInfo<v8::Value>& info) |
| 7616 { | 7648 { |
| 7617 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7649 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 7618 TestObjectV8Internal::deprecateAsMeasureAsSameValueOverloadedMethodMethod(in
fo); | 7650 TestObjectV8Internal::deprecateAsMeasureAsSameValueOverloadedMethodMethod(in
fo); |
| 7619 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7651 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 7646 return; | 7678 return; |
| 7647 } | 7679 } |
| 7648 break; | 7680 break; |
| 7649 case 1: | 7681 case 1: |
| 7650 if (true) { | 7682 if (true) { |
| 7651 UseCounter::count(callingExecutionContext(isolate), UseCounter::Test
FeatureB); | 7683 UseCounter::count(callingExecutionContext(isolate), UseCounter::Test
FeatureB); |
| 7652 deprecateAsSameValueMeasureAsOverloadedMethod2Method(info); | 7684 deprecateAsSameValueMeasureAsOverloadedMethod2Method(info); |
| 7653 return; | 7685 return; |
| 7654 } | 7686 } |
| 7655 break; | 7687 break; |
| 7688 default: |
| 7689 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); |
| 7690 exceptionState.throwIfNeeded(); |
| 7691 return; |
| 7656 } | 7692 } |
| 7657 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 7693 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 7658 exceptionState.throwIfNeeded(); | 7694 exceptionState.throwIfNeeded(); |
| 7659 } | 7695 } |
| 7660 | 7696 |
| 7661 static void deprecateAsSameValueMeasureAsOverloadedMethodMethodCallback(const v8
::FunctionCallbackInfo<v8::Value>& info) | 7697 static void deprecateAsSameValueMeasureAsOverloadedMethodMethodCallback(const v8
::FunctionCallbackInfo<v8::Value>& info) |
| 7662 { | 7698 { |
| 7663 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7699 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 7664 TestObjectV8Internal::deprecateAsSameValueMeasureAsOverloadedMethodMethod(in
fo); | 7700 TestObjectV8Internal::deprecateAsSameValueMeasureAsOverloadedMethodMethod(in
fo); |
| 7665 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7701 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 7691 deprecateAsSameValueMeasureAsSameValueOverloadedMethod1Method(info); | 7727 deprecateAsSameValueMeasureAsSameValueOverloadedMethod1Method(info); |
| 7692 return; | 7728 return; |
| 7693 } | 7729 } |
| 7694 break; | 7730 break; |
| 7695 case 1: | 7731 case 1: |
| 7696 if (true) { | 7732 if (true) { |
| 7697 deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(info); | 7733 deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(info); |
| 7698 return; | 7734 return; |
| 7699 } | 7735 } |
| 7700 break; | 7736 break; |
| 7737 default: |
| 7738 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i
nfo.Length())); |
| 7739 exceptionState.throwIfNeeded(); |
| 7740 return; |
| 7701 } | 7741 } |
| 7702 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 7742 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 7703 exceptionState.throwIfNeeded(); | 7743 exceptionState.throwIfNeeded(); |
| 7704 } | 7744 } |
| 7705 | 7745 |
| 7706 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethodCallback
(const v8::FunctionCallbackInfo<v8::Value>& info) | 7746 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethodCallback
(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 7707 { | 7747 { |
| 7708 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7748 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 7709 TestObjectV8Internal::deprecateAsSameValueMeasureAsSameValueOverloadedMethod
Method(info); | 7749 TestObjectV8Internal::deprecateAsSameValueMeasureAsSameValueOverloadedMethod
Method(info); |
| 7710 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7750 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7758 static void perWorldBindingsVoidMethodMethodCallbackForMainWorld(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 7798 static void perWorldBindingsVoidMethodMethodCallbackForMainWorld(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
| 7759 { | 7799 { |
| 7760 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7800 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 7761 TestObjectV8Internal::perWorldBindingsVoidMethodMethodForMainWorld(info); | 7801 TestObjectV8Internal::perWorldBindingsVoidMethodMethodForMainWorld(info); |
| 7762 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7802 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 7763 } | 7803 } |
| 7764 | 7804 |
| 7765 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) | 7805 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) |
| 7766 { | 7806 { |
| 7767 if (UNLIKELY(info.Length() < 1)) { | 7807 if (UNLIKELY(info.Length() < 1)) { |
| 7768 throwArityTypeErrorForMethod("perWorldBindingsVoidMethodTestInterfaceEmp
tyArg", "TestObject", 1, info.Length(), info.GetIsolate()); | 7808 throwMinimumArityTypeErrorForMethod("perWorldBindingsVoidMethodTestInter
faceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate()); |
| 7769 return; | 7809 return; |
| 7770 } | 7810 } |
| 7771 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7811 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 7772 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 7812 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
| 7773 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg)
; | 7813 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg)
; |
| 7774 } | 7814 } |
| 7775 | 7815 |
| 7776 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) | 7816 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
| 7777 { | 7817 { |
| 7778 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7818 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 7779 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(
info); | 7819 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(
info); |
| 7780 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7820 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 7781 } | 7821 } |
| 7782 | 7822 |
| 7783 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(co
nst v8::FunctionCallbackInfo<v8::Value>& info) | 7823 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
| 7784 { | 7824 { |
| 7785 if (UNLIKELY(info.Length() < 1)) { | 7825 if (UNLIKELY(info.Length() < 1)) { |
| 7786 throwArityTypeErrorForMethod("perWorldBindingsVoidMethodTestInterfaceEmp
tyArg", "TestObject", 1, info.Length(), info.GetIsolate()); | 7826 throwMinimumArityTypeErrorForMethod("perWorldBindingsVoidMethodTestInter
faceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate()); |
| 7787 return; | 7827 return; |
| 7788 } | 7828 } |
| 7789 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7829 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 7790 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 7830 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
| 7791 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg)
; | 7831 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg)
; |
| 7792 } | 7832 } |
| 7793 | 7833 |
| 7794 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMain
World(const v8::FunctionCallbackInfo<v8::Value>& info) | 7834 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMain
World(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 7795 { | 7835 { |
| 7796 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7836 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7918 { | 7958 { |
| 7919 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7959 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 7920 TestObjectV8Internal::raisesExceptionVoidMethodOptionalLongArgMethod(info); | 7960 TestObjectV8Internal::raisesExceptionVoidMethodOptionalLongArgMethod(info); |
| 7921 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7961 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 7922 } | 7962 } |
| 7923 | 7963 |
| 7924 static void raisesExceptionVoidMethodTestCallbackInterfaceArgMethod(const v8::Fu
nctionCallbackInfo<v8::Value>& info) | 7964 static void raisesExceptionVoidMethodTestCallbackInterfaceArgMethod(const v8::Fu
nctionCallbackInfo<v8::Value>& info) |
| 7925 { | 7965 { |
| 7926 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionVoidMethodTestCallbackInterfaceArg", "TestObject", info.Holder(), info.GetIs
olate()); | 7966 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionVoidMethodTestCallbackInterfaceArg", "TestObject", info.Holder(), info.GetIs
olate()); |
| 7927 if (UNLIKELY(info.Length() < 1)) { | 7967 if (UNLIKELY(info.Length() < 1)) { |
| 7928 throwArityTypeError(exceptionState, 1, info.Length()); | 7968 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 7929 return; | 7969 return; |
| 7930 } | 7970 } |
| 7931 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7971 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 7932 if (info.Length() <= 0 || !info[0]->IsFunction()) { | 7972 if (info.Length() <= 0 || !info[0]->IsFunction()) { |
| 7933 exceptionState.throwTypeError("The callback provided as parameter 1 is n
ot a function."); | 7973 exceptionState.throwTypeError("The callback provided as parameter 1 is n
ot a function."); |
| 7934 exceptionState.throwIfNeeded(); | 7974 exceptionState.throwIfNeeded(); |
| 7935 return; | 7975 return; |
| 7936 } | 7976 } |
| 7937 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = V8TestCallbackInter
face::create(v8::Handle<v8::Function>::Cast(info[0]), currentExecutionContext(in
fo.GetIsolate())); | 7977 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = V8TestCallbackInter
face::create(v8::Handle<v8::Function>::Cast(info[0]), currentExecutionContext(in
fo.GetIsolate())); |
| 7938 impl->raisesExceptionVoidMethodTestCallbackInterfaceArg(testCallbackInterfac
eArg.release(), exceptionState); | 7978 impl->raisesExceptionVoidMethodTestCallbackInterfaceArg(testCallbackInterfac
eArg.release(), exceptionState); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7986 { | 8026 { |
| 7987 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8027 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 7988 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyVoidMethodMethod(info
); | 8028 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyVoidMethodMethod(info
); |
| 7989 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 8029 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 7990 } | 8030 } |
| 7991 | 8031 |
| 7992 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) | 8032 static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) |
| 7993 { | 8033 { |
| 7994 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe
cutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), inf
o.GetIsolate()); | 8034 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe
cutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), inf
o.GetIsolate()); |
| 7995 if (UNLIKELY(info.Length() < 1)) { | 8035 if (UNLIKELY(info.Length() < 1)) { |
| 7996 throwArityTypeError(exceptionState, 1, info.Length()); | 8036 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 7997 return; | 8037 return; |
| 7998 } | 8038 } |
| 7999 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8039 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 8000 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState),
exceptionState); | 8040 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState),
exceptionState); |
| 8001 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; | 8041 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; |
| 8002 impl->callWithExecutionContextRaisesExceptionVoidMethodLongArg(scriptContext
, longArg, exceptionState); | 8042 impl->callWithExecutionContextRaisesExceptionVoidMethodLongArg(scriptContext
, longArg, exceptionState); |
| 8003 if (exceptionState.throwIfNeeded()) | 8043 if (exceptionState.throwIfNeeded()) |
| 8004 return; | 8044 return; |
| 8005 } | 8045 } |
| 8006 | 8046 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8098 static void treatReturnedNullStringAsUndefinedStringMethodMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) | 8138 static void treatReturnedNullStringAsUndefinedStringMethodMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) |
| 8099 { | 8139 { |
| 8100 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8140 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 8101 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringMethodMethod(i
nfo); | 8141 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringMethodMethod(i
nfo); |
| 8102 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 8142 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 8103 } | 8143 } |
| 8104 | 8144 |
| 8105 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethod(const v8:
:FunctionCallbackInfo<v8::Value>& info) | 8145 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethod(const v8:
:FunctionCallbackInfo<v8::Value>& info) |
| 8106 { | 8146 { |
| 8107 if (UNLIKELY(info.Length() < 1)) { | 8147 if (UNLIKELY(info.Length() < 1)) { |
| 8108 throwArityTypeErrorForMethod("typeCheckingInterfaceVoidMethodTestInterfa
ceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate()); | 8148 throwMinimumArityTypeErrorForMethod("typeCheckingInterfaceVoidMethodTest
InterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate()); |
| 8109 return; | 8149 return; |
| 8110 } | 8150 } |
| 8111 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8151 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 8112 if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], info.Ge
tIsolate())) { | 8152 if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], info.Ge
tIsolate())) { |
| 8113 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingInterface
VoidMethodTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'Tes
tInterfaceEmpty'."), info.GetIsolate()); | 8153 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingInterface
VoidMethodTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'Tes
tInterfaceEmpty'."), info.GetIsolate()); |
| 8114 return; | 8154 return; |
| 8115 } | 8155 } |
| 8116 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 8156 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
| 8117 impl->typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg(testInterfaceEmpt
yArg); | 8157 impl->typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg(testInterfaceEmpt
yArg); |
| 8118 } | 8158 } |
| 8119 | 8159 |
| 8120 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback(c
onst v8::FunctionCallbackInfo<v8::Value>& info) | 8160 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback(c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
| 8121 { | 8161 { |
| 8122 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8162 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 8123 TestObjectV8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMe
thod(info); | 8163 TestObjectV8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMe
thod(info); |
| 8124 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 8164 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 8125 } | 8165 } |
| 8126 | 8166 |
| 8127 static void typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethod(cons
t v8::FunctionCallbackInfo<v8::Value>& info) | 8167 static void typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethod(cons
t v8::FunctionCallbackInfo<v8::Value>& info) |
| 8128 { | 8168 { |
| 8129 if (UNLIKELY(info.Length() < 1)) { | 8169 if (UNLIKELY(info.Length() < 1)) { |
| 8130 throwArityTypeErrorForMethod("typeCheckingNullableVoidMethodTestInterfac
eEmptyOrNullArg", "TestObject", 1, info.Length(), info.GetIsolate()); | 8170 throwMinimumArityTypeErrorForMethod("typeCheckingNullableVoidMethodTestI
nterfaceEmptyOrNullArg", "TestObject", 1, info.Length(), info.GetIsolate()); |
| 8131 return; | 8171 return; |
| 8132 } | 8172 } |
| 8133 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8173 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 8134 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyOrNullArg, V8TestInterf
aceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 8174 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyOrNullArg, V8TestInterf
aceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
| 8135 impl->typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArg(testInterfac
eEmptyOrNullArg); | 8175 impl->typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArg(testInterfac
eEmptyOrNullArg); |
| 8136 } | 8176 } |
| 8137 | 8177 |
| 8138 static void typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethodCallb
ack(const v8::FunctionCallbackInfo<v8::Value>& info) | 8178 static void typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethodCallb
ack(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 8139 { | 8179 { |
| 8140 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8180 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 8141 TestObjectV8Internal::typeCheckingNullableVoidMethodTestInterfaceEmptyOrNull
ArgMethod(info); | 8181 TestObjectV8Internal::typeCheckingNullableVoidMethodTestInterfaceEmptyOrNull
ArgMethod(info); |
| 8142 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 8182 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 8143 } | 8183 } |
| 8144 | 8184 |
| 8145 static void typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArgMe
thod(const v8::FunctionCallbackInfo<v8::Value>& info) | 8185 static void typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArgMe
thod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 8146 { | 8186 { |
| 8147 if (UNLIKELY(info.Length() < 1)) { | 8187 if (UNLIKELY(info.Length() < 1)) { |
| 8148 throwArityTypeErrorForMethod("typeCheckingInterfaceNullableVoidMethodTes
tInterfaceEmptyOrNullArg", "TestObject", 1, info.Length(), info.GetIsolate()); | 8188 throwMinimumArityTypeErrorForMethod("typeCheckingInterfaceNullableVoidMe
thodTestInterfaceEmptyOrNullArg", "TestObject", 1, info.Length(), info.GetIsolat
e()); |
| 8149 return; | 8189 return; |
| 8150 } | 8190 } |
| 8151 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8191 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 8152 if (info.Length() > 0 && !isUndefinedOrNull(info[0]) && !V8TestInterfaceEmpt
y::hasInstance(info[0], info.GetIsolate())) { | 8192 if (info.Length() > 0 && !isUndefinedOrNull(info[0]) && !V8TestInterfaceEmpt
y::hasInstance(info[0], info.GetIsolate())) { |
| 8153 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingInterface
NullableVoidMethodTestInterfaceEmptyOrNullArg", "TestObject", "parameter 1 is no
t of type 'TestInterfaceEmpty'."), info.GetIsolate()); | 8193 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingInterface
NullableVoidMethodTestInterfaceEmptyOrNullArg", "TestObject", "parameter 1 is no
t of type 'TestInterfaceEmpty'."), info.GetIsolate()); |
| 8154 return; | 8194 return; |
| 8155 } | 8195 } |
| 8156 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyOrNullArg, V8TestInterf
aceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 8196 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyOrNullArg, V8TestInterf
aceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
| 8157 impl->typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArg(tes
tInterfaceEmptyOrNullArg); | 8197 impl->typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArg(tes
tInterfaceEmptyOrNullArg); |
| 8158 } | 8198 } |
| 8159 | 8199 |
| 8160 static void typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArgMe
thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 8200 static void typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArgMe
thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 8161 { | 8201 { |
| 8162 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8202 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 8163 TestObjectV8Internal::typeCheckingInterfaceNullableVoidMethodTestInterfaceEm
ptyOrNullArgMethod(info); | 8203 TestObjectV8Internal::typeCheckingInterfaceNullableVoidMethodTestInterfaceEm
ptyOrNullArgMethod(info); |
| 8164 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 8204 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 8165 } | 8205 } |
| 8166 | 8206 |
| 8167 static void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethod(const v8::
FunctionCallbackInfo<v8::Value>& info) | 8207 static void typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethod(const v8::
FunctionCallbackInfo<v8::Value>& info) |
| 8168 { | 8208 { |
| 8169 if (UNLIKELY(info.Length() < 2)) { | 8209 if (UNLIKELY(info.Length() < 2)) { |
| 8170 throwArityTypeErrorForMethod("typeCheckingUnrestrictedVoidMethodFloatArg
DoubleArg", "TestObject", 2, info.Length(), info.GetIsolate()); | 8210 throwMinimumArityTypeErrorForMethod("typeCheckingUnrestrictedVoidMethodF
loatArgDoubleArg", "TestObject", 2, info.Length(), info.GetIsolate()); |
| 8171 return; | 8211 return; |
| 8172 } | 8212 } |
| 8173 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8213 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 8174 TONATIVE_VOID(float, floatArg, static_cast<float>(info[0]->NumberValue())); | 8214 TONATIVE_VOID(float, floatArg, static_cast<float>(info[0]->NumberValue())); |
| 8175 if (!std::isfinite(floatArg)) { | 8215 if (!std::isfinite(floatArg)) { |
| 8176 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingUnrestric
tedVoidMethodFloatArgDoubleArg", "TestObject", "float parameter 1 is non-finite.
"), info.GetIsolate()); | 8216 throwTypeError(ExceptionMessages::failedToExecute("typeCheckingUnrestric
tedVoidMethodFloatArgDoubleArg", "TestObject", "float parameter 1 is non-finite.
"), info.GetIsolate()); |
| 8177 return; | 8217 return; |
| 8178 } | 8218 } |
| 8179 TONATIVE_VOID(double, doubleArg, static_cast<double>(info[1]->NumberValue())
); | 8219 TONATIVE_VOID(double, doubleArg, static_cast<double>(info[1]->NumberValue())
); |
| 8180 if (!std::isfinite(doubleArg)) { | 8220 if (!std::isfinite(doubleArg)) { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 8200 static void unforgeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 8240 static void unforgeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 8201 { | 8241 { |
| 8202 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8242 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 8203 TestObjectV8Internal::unforgeableVoidMethodMethod(info); | 8243 TestObjectV8Internal::unforgeableVoidMethodMethod(info); |
| 8204 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 8244 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 8205 } | 8245 } |
| 8206 | 8246 |
| 8207 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethod(const v8::F
unctionCallbackInfo<v8::Value>& info) | 8247 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethod(const v8::F
unctionCallbackInfo<v8::Value>& info) |
| 8208 { | 8248 { |
| 8209 if (UNLIKELY(info.Length() < 1)) { | 8249 if (UNLIKELY(info.Length() < 1)) { |
| 8210 throwArityTypeErrorForMethod("voidMethodTestInterfaceGarbageCollectedSeq
uenceArg", "TestObject", 1, info.Length(), info.GetIsolate()); | 8250 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceGarbageColle
ctedSequenceArg", "TestObject", 1, info.Length(), info.GetIsolate()); |
| 8211 return; | 8251 return; |
| 8212 } | 8252 } |
| 8213 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8253 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 8214 TONATIVE_VOID(HeapVector<Member<TestInterfaceGarbageCollected> >, testInterf
aceGarbageCollectedSequenceArg, (toMemberNativeArray<TestInterfaceGarbageCollect
ed, V8TestInterfaceGarbageCollected>(info[0], 1, info.GetIsolate()))); | 8254 TONATIVE_VOID(HeapVector<Member<TestInterfaceGarbageCollected> >, testInterf
aceGarbageCollectedSequenceArg, (toMemberNativeArray<TestInterfaceGarbageCollect
ed, V8TestInterfaceGarbageCollected>(info[0], 1, info.GetIsolate()))); |
| 8215 impl->voidMethodTestInterfaceGarbageCollectedSequenceArg(testInterfaceGarbag
eCollectedSequenceArg); | 8255 impl->voidMethodTestInterfaceGarbageCollectedSequenceArg(testInterfaceGarbag
eCollectedSequenceArg); |
| 8216 } | 8256 } |
| 8217 | 8257 |
| 8218 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback(con
st v8::FunctionCallbackInfo<v8::Value>& info) | 8258 static void voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback(con
st v8::FunctionCallbackInfo<v8::Value>& info) |
| 8219 { | 8259 { |
| 8220 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8260 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 8221 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedSequenceArgMeth
od(info); | 8261 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedSequenceArgMeth
od(info); |
| 8222 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 8262 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 8223 } | 8263 } |
| 8224 | 8264 |
| 8225 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) | 8265 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) |
| 8226 { | 8266 { |
| 8227 if (UNLIKELY(info.Length() < 1)) { | 8267 if (UNLIKELY(info.Length() < 1)) { |
| 8228 throwArityTypeErrorForMethod("voidMethodTestInterfaceGarbageCollectedArr
ayArg", "TestObject", 1, info.Length(), info.GetIsolate()); | 8268 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceGarbageColle
ctedArrayArg", "TestObject", 1, info.Length(), info.GetIsolate()); |
| 8229 return; | 8269 return; |
| 8230 } | 8270 } |
| 8231 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8271 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 8232 TONATIVE_VOID(HeapVector<Member<TestInterfaceGarbageCollected> >, testInterf
aceGarbageCollectedArrayArg, (toMemberNativeArray<TestInterfaceGarbageCollected,
V8TestInterfaceGarbageCollected>(info[0], 1, info.GetIsolate()))); | 8272 TONATIVE_VOID(HeapVector<Member<TestInterfaceGarbageCollected> >, testInterf
aceGarbageCollectedArrayArg, (toMemberNativeArray<TestInterfaceGarbageCollected,
V8TestInterfaceGarbageCollected>(info[0], 1, info.GetIsolate()))); |
| 8233 impl->voidMethodTestInterfaceGarbageCollectedArrayArg(testInterfaceGarbageCo
llectedArrayArg); | 8273 impl->voidMethodTestInterfaceGarbageCollectedArrayArg(testInterfaceGarbageCo
llectedArrayArg); |
| 8234 } | 8274 } |
| 8235 | 8275 |
| 8236 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) | 8276 static void voidMethodTestInterfaceGarbageCollectedArrayArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
| 8237 { | 8277 { |
| 8238 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8278 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 8239 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedArrayArgMethod(
info); | 8279 TestObjectV8Internal::voidMethodTestInterfaceGarbageCollectedArrayArgMethod(
info); |
| 8240 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 8280 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 8241 } | 8281 } |
| 8242 | 8282 |
| 8243 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) | 8283 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) |
| 8244 { | 8284 { |
| 8245 if (UNLIKELY(info.Length() < 1)) { | 8285 if (UNLIKELY(info.Length() < 1)) { |
| 8246 throwArityTypeErrorForMethod("voidMethodTestInterfaceWillBeGarbageCollec
tedSequenceArg", "TestObject", 1, info.Length(), info.GetIsolate()); | 8286 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceWillBeGarbag
eCollectedSequenceArg", "TestObject", 1, info.Length(), info.GetIsolate()); |
| 8247 return; | 8287 return; |
| 8248 } | 8288 } |
| 8249 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8289 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 8250 TONATIVE_VOID(WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbage
Collected> >, testInterfaceWillBeGarbageCollectedSequenceArg, (toRefPtrWillBeMem
berNativeArray<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbage
Collected>(info[0], 1, info.GetIsolate()))); | 8290 TONATIVE_VOID(WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbage
Collected> >, testInterfaceWillBeGarbageCollectedSequenceArg, (toRefPtrWillBeMem
berNativeArray<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbage
Collected>(info[0], 1, info.GetIsolate()))); |
| 8251 impl->voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(testInterface
WillBeGarbageCollectedSequenceArg); | 8291 impl->voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(testInterface
WillBeGarbageCollectedSequenceArg); |
| 8252 } | 8292 } |
| 8253 | 8293 |
| 8254 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) | 8294 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 8255 { | 8295 { |
| 8256 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8296 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 8257 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceA
rgMethod(info); | 8297 TestObjectV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceA
rgMethod(info); |
| 8258 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 8298 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 8259 } | 8299 } |
| 8260 | 8300 |
| 8261 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethod(const v8
::FunctionCallbackInfo<v8::Value>& info) | 8301 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethod(const v8
::FunctionCallbackInfo<v8::Value>& info) |
| 8262 { | 8302 { |
| 8263 if (UNLIKELY(info.Length() < 1)) { | 8303 if (UNLIKELY(info.Length() < 1)) { |
| 8264 throwArityTypeErrorForMethod("voidMethodTestInterfaceWillBeGarbageCollec
tedArrayArg", "TestObject", 1, info.Length(), info.GetIsolate()); | 8304 throwMinimumArityTypeErrorForMethod("voidMethodTestInterfaceWillBeGarbag
eCollectedArrayArg", "TestObject", 1, info.Length(), info.GetIsolate()); |
| 8265 return; | 8305 return; |
| 8266 } | 8306 } |
| 8267 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8307 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 8268 TONATIVE_VOID(WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbage
Collected> >, testInterfaceWillBeGarbageCollectedArrayArg, (toRefPtrWillBeMember
NativeArray<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageCol
lected>(info[0], 1, info.GetIsolate()))); | 8308 TONATIVE_VOID(WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbage
Collected> >, testInterfaceWillBeGarbageCollectedArrayArg, (toRefPtrWillBeMember
NativeArray<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageCol
lected>(info[0], 1, info.GetIsolate()))); |
| 8269 impl->voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(testInterfaceWil
lBeGarbageCollectedArrayArg); | 8309 impl->voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(testInterfaceWil
lBeGarbageCollectedArrayArg); |
| 8270 } | 8310 } |
| 8271 | 8311 |
| 8272 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) | 8312 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) |
| 8273 { | 8313 { |
| 8274 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 8314 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| (...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8782 fromInternalPointer(object)->deref(); | 8822 fromInternalPointer(object)->deref(); |
| 8783 } | 8823 } |
| 8784 | 8824 |
| 8785 template<> | 8825 template<> |
| 8786 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) | 8826 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) |
| 8787 { | 8827 { |
| 8788 return toV8(impl, creationContext, isolate); | 8828 return toV8(impl, creationContext, isolate); |
| 8789 } | 8829 } |
| 8790 | 8830 |
| 8791 } // namespace WebCore | 8831 } // namespace WebCore |
| OLD | NEW |