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

Issue 189543008: Factor abstract base class IDLCompiler, concrete class IDLComplierV8 (Closed)

Created:
6 years, 9 months ago by Nils Barth (inactive)
Modified:
6 years, 9 months ago
CC:
blink-reviews, Nils Barth (inactive), kojih, arv+blink, jsbell+bindings_chromium.org, sof, kouhei+bindings_chromium.org, abarth-chromium, marja+watch_chromium.org, adamk+blink_chromium.org, Nate Chapin, Inactive, yosin_UTC9, terry
Visibility:
Public.

Description

Factor abstract base class IDLCompiler, concrete class IDLComplierV8 This factors out the code common to all IDL compilers to IDLCompiler, an abstract base class, and puts the V8-specific code in a concrete class. This makes reuse easier, and has been requested by Terry (Dart) and Yosi (Closure), and in any case makes the code very generic. Also regularizes write_file(), so it's always on full file contents (previously had 2 versions, one for full file contents (suitable for Jinja), one for line-by-line (legacy from Perl)). ...and renames compile() to compile_file(), due to existing built-in function compile() (causes misleading highlighting). BUG=341748 R=haraken Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168824

Patch Set 1 #

Total comments: 2

Patch Set 2 : Revised #

Patch Set 3 : get_file_contents() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -38 lines) Patch
M Source/bindings/scripts/generate_event_interfaces.py View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/scripts/generate_global_constructors.py View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/scripts/idl_compiler.py View 1 3 chunks +59 lines, -32 lines 0 comments Download
M Source/bindings/scripts/utilities.py View 1 2 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Nils Barth (inactive)
Here's the "base IDLCompiler class" CL that's been requested!
6 years, 9 months ago (2014-03-10 05:50:43 UTC) #1
kouhei (in TOK)
lgtm https://codereview.chromium.org/189543008/diff/1/Source/bindings/scripts/idl_compiler.py File Source/bindings/scripts/idl_compiler.py (right): https://codereview.chromium.org/189543008/diff/1/Source/bindings/scripts/idl_compiler.py#newcode95 Source/bindings/scripts/idl_compiler.py:95: self.code_generator = None # Set in derived class ...
6 years, 9 months ago (2014-03-10 06:01:51 UTC) #2
haraken
LGTM
6 years, 9 months ago (2014-03-10 06:26:51 UTC) #3
Nils Barth (inactive)
https://codereview.chromium.org/189543008/diff/1/Source/bindings/scripts/idl_compiler.py File Source/bindings/scripts/idl_compiler.py (right): https://codereview.chromium.org/189543008/diff/1/Source/bindings/scripts/idl_compiler.py#newcode95 Source/bindings/scripts/idl_compiler.py:95: self.code_generator = None # Set in derived class On ...
6 years, 9 months ago (2014-03-10 06:31:02 UTC) #4
Nils Barth (inactive)
The CQ bit was checked by nbarth@chromium.org
6 years, 9 months ago (2014-03-10 06:31:06 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/189543008/20001
6 years, 9 months ago (2014-03-10 06:31:24 UTC) #6
Nils Barth (inactive)
The CQ bit was unchecked by nbarth@chromium.org
6 years, 9 months ago (2014-03-10 06:32:47 UTC) #7
Nils Barth (inactive)
The CQ bit was checked by nbarth@chromium.org
6 years, 9 months ago (2014-03-10 06:35:54 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/189543008/40001
6 years, 9 months ago (2014-03-10 06:36:10 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-10 07:04:52 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel
6 years, 9 months ago (2014-03-10 07:04:53 UTC) #11
Nils Barth (inactive)
The CQ bit was checked by nbarth@chromium.org
6 years, 9 months ago (2014-03-10 07:11:46 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/189543008/40001
6 years, 9 months ago (2014-03-10 07:12:22 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-10 07:27:36 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel
6 years, 9 months ago (2014-03-10 07:27:36 UTC) #15
Nils Barth (inactive)
The CQ bit was checked by nbarth@chromium.org
6 years, 9 months ago (2014-03-10 08:40:43 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/189543008/40001
6 years, 9 months ago (2014-03-10 08:41:16 UTC) #17
commit-bot: I haz the power
6 years, 9 months ago (2014-03-10 09:24:02 UTC) #18
Message was sent while issue was closed.
Change committed as 168824

Powered by Google App Engine
This is Rietveld 408576698