Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(386)

Issue 18341025: Rename deprecated "supplemental_dependencies" and clean up IDL dependency script (Closed)

Created:
7 years, 5 months ago by Nils Barth (inactive)
Modified:
7 years, 5 months ago
Reviewers:
haraken, do-not-use
CC:
blink-reviews, jsbell+bindings_chromium.org, eae+blinkwatch, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, haraken, Nate Chapin, kojih
Visibility:
Public.

Description

Rename deprecated "supplemental_dependencies" and clean up IDL dependency script This is a cleanup patch: * Rename "supplemental_dependencies" to "interface_dependencies", since these are actually partial interfaces and implements, not supplementals (which has a technical meaning that's not being used here) (Changed throughout.) * Rename preprocess_idls.py to compute_dependencies.py, since this computes dependencies, and is not a preprocessor (a preprocessor changes source files before they hit the compiler, while this doesn't change the .idls: it just computes dependencies) * Significant refactoring to compute_dependencies.py (was: preprocess_idls.py) When renaming variables, I had trouble understanding what the variables actually were (what's the difference between "supplemental_dependencies" and "supplementals"?), so I cleaned up to make it clearer. The main function parse_idl_files was actually computing a backwards dictionary (!), and then reversing it at the end (!), which is brain-bending, and dates back to Perl when we just had partial dependencies, not implements. I rewrote it to just compute the dependencies in the forward order. I also made the code simpler (less deeply nested, less hard-coded) and clearly separated the IDL parsing from the output file writing: previously some files were written in the middle of parsing, while others were done afterwards. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=153766

Patch Set 1 #

Patch Set 2 : Fix exec #

Total comments: 22

Patch Set 3 : Revised #

Patch Set 4 : Typo #

Patch Set 5 : Comment typo fixed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -510 lines) Patch
M Source/bindings/derived_sources.gyp View 1 2 6 chunks +18 lines, -15 lines 0 comments Download
M Source/bindings/scripts/CodeGeneratorV8.pm View 1 3 chunks +3 lines, -3 lines 0 comments Download
A + Source/bindings/scripts/compute_dependencies.py View 1 2 3 4 9 chunks +144 lines, -106 lines 0 comments Download
M Source/bindings/scripts/generate-bindings.pl View 6 chunks +18 lines, -17 lines 0 comments Download
D Source/bindings/scripts/preprocess_idls.py View 1 chunk +0 lines, -322 lines 0 comments Download
A + Source/core/scripts/list_idl_files_with_partial_interface.py View 1 2 chunks +1 line, -2 lines 0 comments Download
D Source/core/scripts/supplemental_idl_files.py View 1 chunk +0 lines, -45 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Nils Barth (inactive)
Hi haraken and/or Christophe, Here's a cleanup CL as part of renaming "supplemental_dependencies". ...since we ...
7 years, 5 months ago (2013-07-09 05:04:31 UTC) #1
haraken
Looks like good refactoring. LGTM. https://codereview.chromium.org/18341025/diff/1001/Source/bindings/derived_sources.gyp File Source/bindings/derived_sources.gyp (right): https://codereview.chromium.org/18341025/diff/1001/Source/bindings/derived_sources.gyp#newcode129 Source/bindings/derived_sources.gyp:129: '<(SHARED_INTERMEDIATE_DIR)/interface_dependencies.txt', Nit: InterfaceDependencies.txt https://codereview.chromium.org/18341025/diff/1001/Source/bindings/scripts/compute_dependencies.py ...
7 years, 5 months ago (2013-07-09 05:21:38 UTC) #2
Nils Barth (inactive)
Thanks for review, revised and committing! https://codereview.chromium.org/18341025/diff/1001/Source/bindings/derived_sources.gyp File Source/bindings/derived_sources.gyp (right): https://codereview.chromium.org/18341025/diff/1001/Source/bindings/derived_sources.gyp#newcode129 Source/bindings/derived_sources.gyp:129: '<(SHARED_INTERMEDIATE_DIR)/interface_dependencies.txt', On 2013/07/09 ...
7 years, 5 months ago (2013-07-09 06:00:40 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/18341025/5002
7 years, 5 months ago (2013-07-09 06:00:59 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/18341025/19001
7 years, 5 months ago (2013-07-09 06:40:40 UTC) #5
commit-bot: I haz the power
Retried try job too often on linux_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_layout_rel&number=15420
7 years, 5 months ago (2013-07-09 07:35:53 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/18341025/19001
7 years, 5 months ago (2013-07-09 07:42:14 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/18341025/19001
7 years, 5 months ago (2013-07-09 07:58:35 UTC) #8
commit-bot: I haz the power
Change committed as 153766
7 years, 5 months ago (2013-07-09 09:01:53 UTC) #9
do-not-use
On 2013/07/09 09:01:53, I haz the power (commit-bot) wrote: > Change committed as 153766 Looks ...
7 years, 5 months ago (2013-07-09 10:44:55 UTC) #10
Nils Barth (inactive)
7 years, 5 months ago (2013-07-09 11:54:04 UTC) #11
Message was sent while issue was closed.
On 2013/07/09 10:44:55, Christophe Dumez wrote:
> On 2013/07/09 09:01:53, I haz the power (commit-bot) wrote:
> > Change committed as 153766
> 
> Looks like bindings tests are broken:

Oops! Sorry... m(_ _)m
Fix posted:
Issue 18425003: Fix run-bindings-tests post-cleaning
https://codereview.chromium.org/18425003/

Powered by Google App Engine
This is Rietveld 408576698