| OLD | NEW |
| 1 /* | 1 /* |
| 2 This file is part of the Blink open source project. | 2 This file is part of the Blink open source project. |
| 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! | 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! |
| 4 | 4 |
| 5 This library is free software; you can redistribute it and/or | 5 This library is free software; you can redistribute it and/or |
| 6 modify it under the terms of the GNU Library General Public | 6 modify it under the terms of the GNU Library General Public |
| 7 License as published by the Free Software Foundation; either | 7 License as published by the Free Software Foundation; either |
| 8 version 2 of the License, or (at your option) any later version. | 8 version 2 of the License, or (at your option) any later version. |
| 9 | 9 |
| 10 This library is distributed in the hope that it will be useful, | 10 This library is distributed in the hope that it will be useful, |
| (...skipping 4747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4758 imp->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInterf
aceEmptyArg, variadicTestInterfaceEmptyArgs); | 4758 imp->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInterf
aceEmptyArg, variadicTestInterfaceEmptyArgs); |
| 4759 } | 4759 } |
| 4760 | 4760 |
| 4761 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa
llback(const v8::FunctionCallbackInfo<v8::Value>& args) | 4761 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa
llback(const v8::FunctionCallbackInfo<v8::Value>& args) |
| 4762 { | 4762 { |
| 4763 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4763 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4764 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInter
faceEmptyArgMethod(args); | 4764 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInter
faceEmptyArgMethod(args); |
| 4765 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4765 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4766 } | 4766 } |
| 4767 | 4767 |
| 4768 static void voidMethodClampUnsignedShortArgClampUnsignedLongArgMethod(const v8::
FunctionCallbackInfo<v8::Value>& args) |
| 4769 { |
| 4770 if (UNLIKELY(args.Length() < 2)) { |
| 4771 throwTypeError(ExceptionMessages::failedToExecute("voidMethodClampUnsign
edShortArgClampUnsignedLongArg", "TestObjectPython", ExceptionMessages::notEnoug
hArguments(2, args.Length())), args.GetIsolate()); |
| 4772 return; |
| 4773 } |
| 4774 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); |
| 4775 unsigned short clampUnsignedShortArg = 0; |
| 4776 V8TRYCATCH_VOID(double, clampUnsignedShortArgNativeValue, args[0]->NumberVal
ue()); |
| 4777 if (!std::isnan(clampUnsignedShortArgNativeValue)) |
| 4778 clampUnsignedShortArg = clampTo<unsigned short>(clampUnsignedShortArgNat
iveValue); |
| 4779 unsigned long clampUnsignedLongArg = 0; |
| 4780 V8TRYCATCH_VOID(double, clampUnsignedLongArgNativeValue, args[1]->NumberValu
e()); |
| 4781 if (!std::isnan(clampUnsignedLongArgNativeValue)) |
| 4782 clampUnsignedLongArg = clampTo<unsigned long>(clampUnsignedLongArgNative
Value); |
| 4783 imp->voidMethodClampUnsignedShortArgClampUnsignedLongArg(clampUnsignedShortA
rg, clampUnsignedLongArg); |
| 4784 } |
| 4785 |
| 4786 static void voidMethodClampUnsignedShortArgClampUnsignedLongArgMethodCallback(co
nst v8::FunctionCallbackInfo<v8::Value>& args) |
| 4787 { |
| 4788 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4789 TestObjectPythonV8Internal::voidMethodClampUnsignedShortArgClampUnsignedLong
ArgMethod(args); |
| 4790 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4791 } |
| 4792 |
| 4768 } // namespace TestObjectPythonV8Internal | 4793 } // namespace TestObjectPythonV8Internal |
| 4769 | 4794 |
| 4770 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectPythonAttrib
utes[] = { | 4795 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectPythonAttrib
utes[] = { |
| 4771 {"readonlyStringAttribute", TestObjectPythonV8Internal::readonlyStringAttrib
uteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU
LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 4796 {"readonlyStringAttribute", TestObjectPythonV8Internal::readonlyStringAttrib
uteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU
LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 4772 {"readonlyTestInterfaceEmptyAttribute", TestObjectPythonV8Internal::readonly
TestInterfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}, | 4797 {"readonlyTestInterfaceEmptyAttribute", TestObjectPythonV8Internal::readonly
TestInterfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}, |
| 4773 {"readonlyLongAttribute", TestObjectPythonV8Internal::readonlyLongAttributeA
ttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 4798 {"readonlyLongAttribute", TestObjectPythonV8Internal::readonlyLongAttributeA
ttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 4774 {"dateAttribute", TestObjectPythonV8Internal::dateAttributeAttributeGetterCa
llback, TestObjectPythonV8Internal::dateAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), 0 /* on instance */}, | 4799 {"dateAttribute", TestObjectPythonV8Internal::dateAttributeAttributeGetterCa
llback, TestObjectPythonV8Internal::dateAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), 0 /* on instance */}, |
| 4775 {"stringAttribute", TestObjectPythonV8Internal::stringAttributeAttributeGett
erCallback, TestObjectPythonV8Internal::stringAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, | 4800 {"stringAttribute", TestObjectPythonV8Internal::stringAttributeAttributeGett
erCallback, TestObjectPythonV8Internal::stringAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, |
| 4776 {"readonlyDOMTimeStampAttribute", TestObjectPythonV8Internal::readonlyDOMTim
eStampAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessContro
l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance
*/}, | 4801 {"readonlyDOMTimeStampAttribute", TestObjectPythonV8Internal::readonlyDOMTim
eStampAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessContro
l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance
*/}, |
| 4777 {"booleanAttribute", TestObjectPythonV8Internal::booleanAttributeAttributeGe
tterCallback, TestObjectPythonV8Internal::booleanAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, | 4802 {"booleanAttribute", TestObjectPythonV8Internal::booleanAttributeAttributeGe
tterCallback, TestObjectPythonV8Internal::booleanAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4954 {"voidMethodOptionalLongArg", TestObjectPythonV8Internal::voidMethodOptional
LongArgMethodCallback, 0, 0}, | 4979 {"voidMethodOptionalLongArg", TestObjectPythonV8Internal::voidMethodOptional
LongArgMethodCallback, 0, 0}, |
| 4955 {"stringMethodOptionalLongArg", TestObjectPythonV8Internal::stringMethodOpti
onalLongArgMethodCallback, 0, 0}, | 4980 {"stringMethodOptionalLongArg", TestObjectPythonV8Internal::stringMethodOpti
onalLongArgMethodCallback, 0, 0}, |
| 4956 {"testInterfaceEmptyMethodOptionalLongArg", TestObjectPythonV8Internal::test
InterfaceEmptyMethodOptionalLongArgMethodCallback, 0, 0}, | 4981 {"testInterfaceEmptyMethodOptionalLongArg", TestObjectPythonV8Internal::test
InterfaceEmptyMethodOptionalLongArgMethodCallback, 0, 0}, |
| 4957 {"longMethodOptionalLongArg", TestObjectPythonV8Internal::longMethodOptional
LongArgMethodCallback, 0, 0}, | 4982 {"longMethodOptionalLongArg", TestObjectPythonV8Internal::longMethodOptional
LongArgMethodCallback, 0, 0}, |
| 4958 {"voidMethodLongArgOptionalLongArg", TestObjectPythonV8Internal::voidMethodL
ongArgOptionalLongArgMethodCallback, 0, 1}, | 4983 {"voidMethodLongArgOptionalLongArg", TestObjectPythonV8Internal::voidMethodL
ongArgOptionalLongArgMethodCallback, 0, 1}, |
| 4959 {"voidMethodLongArgOptionalLongArgOptionalLongArg", TestObjectPythonV8Intern
al::voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback, 0, 1}, | 4984 {"voidMethodLongArgOptionalLongArgOptionalLongArg", TestObjectPythonV8Intern
al::voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback, 0, 1}, |
| 4960 {"voidMethodLongArgOptionalTestInterfaceEmptyArg", TestObjectPythonV8Interna
l::voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback, 0, 1}, | 4985 {"voidMethodLongArgOptionalTestInterfaceEmptyArg", TestObjectPythonV8Interna
l::voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback, 0, 1}, |
| 4961 {"voidMethodTestInterfaceEmptyArgOptionalLongArg", TestObjectPythonV8Interna
l::voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback, 0, 1}, | 4986 {"voidMethodTestInterfaceEmptyArgOptionalLongArg", TestObjectPythonV8Interna
l::voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback, 0, 1}, |
| 4962 {"voidMethodVariadicStringArg", TestObjectPythonV8Internal::voidMethodVariad
icStringArgMethodCallback, 0, 1}, | 4987 {"voidMethodVariadicStringArg", TestObjectPythonV8Internal::voidMethodVariad
icStringArgMethodCallback, 0, 1}, |
| 4963 {"voidMethodStringArgVariadicStringArg", TestObjectPythonV8Internal::voidMet
hodStringArgVariadicStringArgMethodCallback, 0, 2}, | 4988 {"voidMethodStringArgVariadicStringArg", TestObjectPythonV8Internal::voidMet
hodStringArgVariadicStringArgMethodCallback, 0, 2}, |
| 4989 {"voidMethodClampUnsignedShortArgClampUnsignedLongArg", TestObjectPythonV8In
ternal::voidMethodClampUnsignedShortArgClampUnsignedLongArgMethodCallback, 0, 2}
, |
| 4964 }; | 4990 }; |
| 4965 | 4991 |
| 4966 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestObjectPythonTemplate(v8::
Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType curren
tWorldType) | 4992 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestObjectPythonTemplate(v8::
Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType curren
tWorldType) |
| 4967 { | 4993 { |
| 4968 desc->ReadOnlyPrototype(); | 4994 desc->ReadOnlyPrototype(); |
| 4969 | 4995 |
| 4970 v8::Local<v8::Signature> defaultSignature; | 4996 v8::Local<v8::Signature> defaultSignature; |
| 4971 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestOb
jectPython", v8::Local<v8::FunctionTemplate>(), V8TestObjectPython::internalFiel
dCount, | 4997 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestOb
jectPython", v8::Local<v8::FunctionTemplate>(), V8TestObjectPython::internalFiel
dCount, |
| 4972 V8TestObjectPythonAttributes, WTF_ARRAY_LENGTH(V8TestObjectPythonAttribu
tes), | 4998 V8TestObjectPythonAttributes, WTF_ARRAY_LENGTH(V8TestObjectPythonAttribu
tes), |
| 4973 V8TestObjectPythonMethods, WTF_ARRAY_LENGTH(V8TestObjectPythonMethods),
isolate, currentWorldType); | 4999 V8TestObjectPythonMethods, WTF_ARRAY_LENGTH(V8TestObjectPythonMethods),
isolate, currentWorldType); |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5154 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &wrapperT
ypeInfo, wrapper, isolate, WrapperConfiguration::Independent); | 5180 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &wrapperT
ypeInfo, wrapper, isolate, WrapperConfiguration::Independent); |
| 5155 return wrapper; | 5181 return wrapper; |
| 5156 } | 5182 } |
| 5157 | 5183 |
| 5158 void V8TestObjectPython::derefObject(void* object) | 5184 void V8TestObjectPython::derefObject(void* object) |
| 5159 { | 5185 { |
| 5160 fromInternalPointer(object)->deref(); | 5186 fromInternalPointer(object)->deref(); |
| 5161 } | 5187 } |
| 5162 | 5188 |
| 5163 } // namespace WebCore | 5189 } // namespace WebCore |
| OLD | NEW |