RESOLVED FIXED 32844
[V8] Generate header declaration for property accessor getters/setters
https://bugs.webkit.org/show_bug.cgi?id=32844
Summary [V8] Generate header declaration for property accessor getters/setters
Nate Chapin
Reported 2009-12-21 16:20:57 PST
Part of https://bugs.webkit.org/show_bug.cgi?id=32638, the quest to remove all the manually declared custom bindings from V8CustomBinding.h.
Attachments
Generate property accessor getter/setter declarations. (46.43 KB, patch)
2009-12-21 16:29 PST, Nate Chapin
dglazkov: review+
patch2 - removed .idl modifications (47.39 KB, patch)
2009-12-30 13:36 PST, Nate Chapin
dglazkov: review+
japhet: commit-queue-
Nate Chapin
Comment 1 2009-12-21 16:29:08 PST
Created attachment 45359 [details] Generate property accessor getter/setter declarations. I'm on my way out the door for the holidays, so this review is decidedly non-urgent.
WebKit Review Bot
Comment 2 2009-12-21 16:33:56 PST
style-queue ran check-webkit-style on attachment 45359 [details] without any errors.
Dimitri Glazkov (Google)
Comment 3 2009-12-29 09:08:29 PST
Comment on attachment 45359 [details] Generate property accessor getter/setter declarations. r=me with notes: Gah! Why is this custom for V8 bindings? Need a FIXME and a bug for this. > + readonly attribute [V8CustomGetter] DOMString appVersion; Ditto. > + attribute [Replaceable, V8CustomGetter] WorkerContext self; This special-casing bonanza needs FIXMEs and bugs. We should work to remove these. > + if ($dataNode->name eq "Event") { > + push(@headerContent, " static v8::Handle<v8::Value> dataTransferAccessorGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info);\n"); > + push(@headerContent, " static void valueAccessorSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info);\n"); > + } > + if ($dataNode->name eq "Location") { > + push(@headerContent, " static v8::Handle<v8::Value> assignAccessorGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info);\n"); > + push(@headerContent, " static v8::Handle<v8::Value> reloadAccessorGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info);\n"); > + push(@headerContent, " static v8::Handle<v8::Value> replaceAccessorGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info);\n"); > + } > }
Nate Chapin
Comment 4 2009-12-30 13:36:31 PST
Created attachment 45683 [details] patch2 - removed .idl modifications The .idl modifications were originally necessary because of some v8 only custom bindings that didn't really need to be custom. Those bindings are now generated, which resulted in the removal of V8NavigatorCustom.cpp.
WebKit Review Bot
Comment 5 2009-12-30 13:36:56 PST
style-queue ran check-webkit-style on attachment 45683 [details] without any errors.
Dimitri Glazkov (Google)
Comment 6 2009-12-30 13:39:58 PST
Comment on attachment 45683 [details] patch2 - removed .idl modifications ROCK!
Nate Chapin
Comment 7 2009-12-30 14:14:29 PST
Note You need to log in before you can comment on or make changes to this bug.