WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
32638
[V8] V8CustomBinding.h should vanish.
https://bugs.webkit.org/show_bug.cgi?id=32638
Summary
[V8] V8CustomBinding.h should vanish.
Dimitri Glazkov (Google)
Reported
2009-12-16 15:49:23 PST
It's just a long list of all custom callback declarations. These should just live in the corresponding generated headers. Net gain of not having to touch one extra place when custom methods are added to IDLs is an epic win.
Attachments
Generate header declarations for non-constructor callbacks
(119.25 KB, patch)
2009-12-17 15:58 PST
,
Nate Chapin
abarth
: review-
Details
Formatted Diff
Diff
Example output
(1.66 KB, text/plain)
2009-12-18 13:47 PST
,
Nate Chapin
no flags
Details
patch2
(121.17 KB, patch)
2009-12-18 15:29 PST
,
Nate Chapin
no flags
Details
Formatted Diff
Diff
patch2 again
(121.03 KB, patch)
2009-12-18 15:32 PST
,
Nate Chapin
japhet
: commit-queue-
Details
Formatted Diff
Diff
Death to V8Custom!
(38.03 KB, patch)
2010-02-03 16:23 PST
,
Nate Chapin
dglazkov
: review+
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Dimitri Glazkov (Google)
Comment 1
2009-12-16 15:53:28 PST
This may be not-so-trivial, because we'll have to break the V8Custom class up, but I think the reason behind this class' existence is bogus, so I'd say it's doable.
Nate Chapin
Comment 2
2009-12-17 15:58:48 PST
Created
attachment 45106
[details]
Generate header declarations for non-constructor callbacks I didn't immediately see a good way to generate declarations for constructors, so I left them in V8CustomBinding.h. All the other callbacks are now declared in their respective headers. This patch is huge, but it's mostly renaming.
Adam Barth
Comment 3
2009-12-17 22:18:58 PST
Comment on
attachment 45106
[details]
Generate header declarations for non-constructor callbacks No ChangeLog. Also, this patch does not download and apply to TOT:
http://webkit-commit-queue.appspot.com/patch-status/chromium-ews/45106
Detailed code comments to follow.
Adam Barth
Comment 4
2009-12-17 22:29:36 PST
+ static v8::Handle<v8::Value> ${name}Callback(const v8::Arguments&); Is this adding static declarations to a header file? Maybe this is part of a class? But the indent is only two spaces... Can you attach a sample generated file? + class V8HTMLPlugInElement { + public: The public should be indented zero spaces. You can catch this kind of stuff by running check-webkit-style. (The stylebot would have caught it if the patch applied to TOT). + ACCESSOR_GETTER(ClipboardTypes) I don't understand the diff for this function. - for (HashSet<String>::const_iterator it = types.begin(); it != end; ++it, ++index) + for (HashSet<String>::const_iterator it = types.begin(); it != end; ++it, index) Notice that you lost the "++" before index. Intensional? Other than that, looks great!
Nate Chapin
Comment 5
2009-12-18 13:47:26 PST
Created
attachment 45184
[details]
Example output Yeah, sorry for my clumsiness with this patch. Re: the spacing, I just followed the existing pattern in CodeGeneratorV8.pm, which is hopefully more obvious from the example output. The removing of the "++" was unintentional and will be fixed in the next patch.
Adam Barth
Comment 6
2009-12-18 15:10:02 PST
I understand now. The generated code is out of style, but I think we have bigger things to worry about than that. If you post a new version with the above comments addressed, I think we're good to go.
Nate Chapin
Comment 7
2009-12-18 15:29:58 PST
Created
attachment 45193
[details]
patch2
Nate Chapin
Comment 8
2009-12-18 15:32:20 PST
Created
attachment 45194
[details]
patch2 again Doh, I didn't upload an up to date version of the patch. Trying again.
WebKit Review Bot
Comment 9
2009-12-18 15:35:20 PST
Attachment 45194
[details]
did not pass style-queue: Failed to run "WebKitTools/Scripts/check-webkit-style" exit_code: 1 WebCore/bindings/v8/custom/V8SVGElementInstanceCustom.cpp:34: Found header this file implements after other header. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] WebCore/bindings/v8/custom/V8SVGLengthCustom.cpp:34: Found header this file implements after other header. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] Total errors found: 2
Adam Barth
Comment 10
2009-12-18 15:38:27 PST
Comment on
attachment 45194
[details]
patch2 again Ok. Can you fix the style nits in a followup patch? The Chromium EWS is probably processing your patch now. You might want to give it a few minutes to process your patch. Here's the URL that should have the results (yeah, we need a better status dashboard):
http://webkit-commit-queue.appspot.com/patch-status/chromium-ews/45194
Nate Chapin
Comment 11
2009-12-21 09:29:21 PST
(In reply to
comment #10
)
> (From update of
attachment 45194
[details]
) > Ok. Can you fix the style nits in a followup patch? The Chromium EWS is > probably processing your patch now. You might want to give it a few minutes to > process your patch. Here's the URL that should have the results (yeah, we need > a better status dashboard): > >
http://webkit-commit-queue.appspot.com/patch-status/chromium-ews/45194
Is it alright if I ignore the last couple style nits? The complaint is because of include headers that go like this: #include "config.h" #if ENABLED(SVG) #include "PrimaryHeader.h" That seems like a reasonable exception to me, but I'm not certain of it.
Adam Barth
Comment 12
2009-12-21 11:33:52 PST
> #if ENABLED(SVG) > #include "PrimaryHeader.h"
Yeah, that sounds like a false alarm. We should fix the tool not to complain in that case.
Eric Seidel (no email)
Comment 13
2009-12-28 21:40:29 PST
Comment on
attachment 45194
[details]
patch2 again Clearing Adam Barth's review on this obsolete patch.
Nate Chapin
Comment 14
2010-02-03 16:23:57 PST
Created
attachment 48076
[details]
Death to V8Custom!
Dimitri Glazkov (Google)
Comment 15
2010-02-03 18:58:32 PST
Comment on
attachment 48076
[details]
Death to V8Custom! Duuude. Are you eventually going to reduce the V8 bindings code to 0? 'cuz I think if you said "yes", I'd believe ya.
Adam Barth
Comment 16
2010-02-03 19:07:36 PST
No GYPI change?
Nate Chapin
Comment 17
2010-02-04 11:36:52 PST
http://trac.webkit.org/changeset/54349
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug