Chromium Code Reviews| 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 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 829 | 829 |
| 830 #if ENABLE(Condition) | 830 #if ENABLE(Condition) |
| 831 static void customGetterReadonlyLongAttributeAttributeGetterCallback(v8::Local<v 8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) | 831 static void customGetterReadonlyLongAttributeAttributeGetterCallback(v8::Local<v 8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 832 { | 832 { |
| 833 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 833 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 834 V8TestObjectPython::customGetterReadonlyLongAttributeAttributeGetterCustom(n ame, info); | 834 V8TestObjectPython::customGetterReadonlyLongAttributeAttributeGetterCustom(n ame, info); |
| 835 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 835 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 836 } | 836 } |
| 837 #endif // ENABLE(Condition) | 837 #endif // ENABLE(Condition) |
| 838 | 838 |
| 839 static void customElementsCallbacksReadonlyLongAttributeAttributeGetter(v8::Loca l<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) | |
| 840 { | |
| 841 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | |
| 842 v8SetReturnValueInt(info, imp->customElementsCallbacksReadonlyLongAttribute( )); | |
| 843 } | |
| 844 | |
| 845 static void customElementsCallbacksReadonlyLongAttributeAttributeGetterCallback( v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) | |
|
haraken
2013/10/08 11:06:51
Is this generated code correct? I expected:
Cus
Nils Barth (inactive)
2013/10/09 00:43:36
This is what the Perl generates.
It only adds that
| |
| 846 { | |
| 847 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | |
| 848 TestObjectPythonV8Internal::customElementsCallbacksReadonlyLongAttributeAttr ibuteGetter(name, info); | |
| 849 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | |
| 850 } | |
| 851 | |
| 839 static void readonlyDocumentFragmentAttributeAttributeGetter(v8::Local<v8::Strin g> name, const v8::PropertyCallbackInfo<v8::Value>& info) | 852 static void readonlyDocumentFragmentAttributeAttributeGetter(v8::Local<v8::Strin g> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 840 { | 853 { |
| 841 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 854 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 842 RefPtr<DocumentFragment> result = imp->readonlyDocumentFragmentAttribute(); | 855 RefPtr<DocumentFragment> result = imp->readonlyDocumentFragmentAttribute(); |
| 843 if (result.get() && DOMDataStore::setReturnValueFromWrapper<V8DocumentFragme nt>(info.GetReturnValue(), result.get())) | 856 if (result.get() && DOMDataStore::setReturnValueFromWrapper<V8DocumentFragme nt>(info.GetReturnValue(), result.get())) |
| 844 return; | 857 return; |
| 845 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs olate()); | 858 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs olate()); |
| 846 if (!wrapper.IsEmpty()) { | 859 if (!wrapper.IsEmpty()) { |
| 847 V8HiddenPropertyName::setNamedHiddenReference(info.Holder(), "readonlyDo cumentFragmentAttribute", wrapper); | 860 V8HiddenPropertyName::setNamedHiddenReference(info.Holder(), "readonlyDo cumentFragmentAttribute", wrapper); |
| 848 v8SetReturnValue(info, wrapper); | 861 v8SetReturnValue(info, wrapper); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 914 {"conditionalOrReadonlyLongAttribute", TestObjectPythonV8Internal::condition alOrReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Ac cessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 927 {"conditionalOrReadonlyLongAttribute", TestObjectPythonV8Internal::condition alOrReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Ac cessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 915 #endif // ENABLE(Condition1) || ENABLE(Condition2) | 928 #endif // ENABLE(Condition1) || ENABLE(Condition2) |
| 916 {"customReadonlyLongAttribute", TestObjectPythonV8Internal::customReadonlyLo ngAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v 8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 929 {"customReadonlyLongAttribute", TestObjectPythonV8Internal::customReadonlyLo ngAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v 8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 917 {"customGetterReadonlyLongAttribute", TestObjectPythonV8Internal::customGett erReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i nstance */}, | 930 {"customGetterReadonlyLongAttribute", TestObjectPythonV8Internal::customGett erReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i nstance */}, |
| 918 #if ENABLE(Condition) | 931 #if ENABLE(Condition) |
| 919 {"customReadonlyLongAttribute", TestObjectPythonV8Internal::customReadonlyLo ngAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v 8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 932 {"customReadonlyLongAttribute", TestObjectPythonV8Internal::customReadonlyLo ngAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v 8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 920 #endif // ENABLE(Condition) | 933 #endif // ENABLE(Condition) |
| 921 #if ENABLE(Condition) | 934 #if ENABLE(Condition) |
| 922 {"customGetterReadonlyLongAttribute", TestObjectPythonV8Internal::customGett erReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i nstance */}, | 935 {"customGetterReadonlyLongAttribute", TestObjectPythonV8Internal::customGett erReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i nstance */}, |
| 923 #endif // ENABLE(Condition) | 936 #endif // ENABLE(Condition) |
| 937 {"customElementsCallbacksReadonlyLongAttribute", TestObjectPythonV8Internal: :customElementsCallbacksReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0 , static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute >(v8::None), 0 /* on instance */}, | |
| 924 {"readonlyDocumentFragmentAttribute", TestObjectPythonV8Internal::readonlyDo cumentFragmentAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i nstance */}, | 938 {"readonlyDocumentFragmentAttribute", TestObjectPythonV8Internal::readonlyDo cumentFragmentAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i nstance */}, |
| 925 }; | 939 }; |
| 926 | 940 |
| 927 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestObjectPythonTemplate(v8:: Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType curren tWorldType) | 941 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestObjectPythonTemplate(v8:: Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType curren tWorldType) |
| 928 { | 942 { |
| 929 desc->ReadOnlyPrototype(); | 943 desc->ReadOnlyPrototype(); |
| 930 | 944 |
| 931 v8::Local<v8::Signature> defaultSignature; | 945 v8::Local<v8::Signature> defaultSignature; |
| 932 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestOb jectPython", v8::Local<v8::FunctionTemplate>(), V8TestObjectPython::internalFiel dCount, | 946 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestOb jectPython", v8::Local<v8::FunctionTemplate>(), V8TestObjectPython::internalFiel dCount, |
| 933 V8TestObjectPythonAttributes, WTF_ARRAY_LENGTH(V8TestObjectPythonAttribu tes), | 947 V8TestObjectPythonAttributes, WTF_ARRAY_LENGTH(V8TestObjectPythonAttribu tes), |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 987 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &info, wr apper, isolate, WrapperConfiguration::Independent); | 1001 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &info, wr apper, isolate, WrapperConfiguration::Independent); |
| 988 return wrapper; | 1002 return wrapper; |
| 989 } | 1003 } |
| 990 | 1004 |
| 991 void V8TestObjectPython::derefObject(void* object) | 1005 void V8TestObjectPython::derefObject(void* object) |
| 992 { | 1006 { |
| 993 fromInternalPointer(object)->deref(); | 1007 fromInternalPointer(object)->deref(); |
| 994 } | 1008 } |
| 995 | 1009 |
| 996 } // namespace WebCore | 1010 } // namespace WebCore |
| OLD | NEW |