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

Issue 16296004: JSON export/import in generate-bindings.pl (Closed)

Created:
7 years, 6 months ago by Nils Barth (inactive)
Modified:
7 years, 6 months ago
CC:
blink-reviews, jsbell+bindings_chromium.org, eae+blinkwatch, abarth-chromium, marja+watch_chromium.org, adamk+blink_chromium.org, Nate Chapin, kojih, dominicc (has gone to gerrit)
Visibility:
Public.

Description

Initial CL using JSON export/import in bindings generation. Roundtrips to/from JSON in usual compile so code used; does not write intermediate files (that's a build change, next CL). Roundtrip makes no semantic difference to generated code. (Changes comments in 3 files, changing order of extended attributes.) BUG=242795 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=152399

Patch Set 1 #

Patch Set 2 : Add JSON.pm directory to include paths #

Total comments: 4

Patch Set 3 : Python JSON import #

Patch Set 4 : IDL: Perl to/from JSON export/import #

Total comments: 33

Patch Set 5 : Revised #

Patch Set 6 : Revised again #

Total comments: 24

Patch Set 7 : Re-revised #

Total comments: 11

Patch Set 8 : Finalized #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -0 lines) Patch
M Source/bindings/derived_sources.gyp View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
A Source/bindings/scripts/IDLSerializer.pm View 1 2 3 4 5 6 7 1 chunk +132 lines, -0 lines 0 comments Download
M Source/bindings/scripts/generate-bindings.pl View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M Tools/Scripts/webkitpy/bindings/main.py View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
Nils Barth (inactive)
Hi haraken, Here's a small patch implementing JSON export. It depends on JSON.pm so it's ...
7 years, 6 months ago (2013-06-03 03:44:02 UTC) #1
Nils Barth (inactive)
Just checked on trybot to confirm that we do in fact need JSON.pm, as otherwise ...
7 years, 6 months ago (2013-06-03 03:51:13 UTC) #2
haraken
Basically the approach looks good. Let's get back to this CL once JSON.pm is landed. ...
7 years, 6 months ago (2013-06-03 06:49:14 UTC) #3
Nils Barth (inactive)
(Need JSON.pm to land before we can test; detailed comments follow) https://codereview.chromium.org/16296004/diff/4001/Source/bindings/derived_sources.gyp File Source/bindings/derived_sources.gyp (right): ...
7 years, 6 months ago (2013-06-03 07:27:16 UTC) #4
haraken
> You can see what's involved in importing to Python (60 lines), where we're just ...
7 years, 6 months ago (2013-06-03 07:53:54 UTC) #5
Nils Barth (inactive)
On 2013/06/03 07:53:54, haraken wrote: > This question is also related to https://codereview.chromium.org/15984007/, but > ...
7 years, 6 months ago (2013-06-03 09:02:17 UTC) #6
haraken
> Does this clarify what I'm doing? Yes, thanks for the clarification. It looks like ...
7 years, 6 months ago (2013-06-03 09:39:45 UTC) #7
Nils Barth (inactive)
On 2013/06/03 09:39:45, haraken wrote: > I don't see any benefit of splitting the files ...
7 years, 6 months ago (2013-06-04 04:08:47 UTC) #8
haraken
OK, thanks. > Got it; if you're fine with reviewing the Python rewrite incrementally, > ...
7 years, 6 months ago (2013-06-04 06:26:52 UTC) #9
Nils Barth (inactive)
On 2013/06/04 06:26:52, haraken wrote: > You can upload a patch that dumps a JSON ...
7 years, 6 months ago (2013-06-04 06:45:32 UTC) #10
haraken
No. (1) Please wait for the JSON.pm patch being landed. (2) Upload a patch that ...
7 years, 6 months ago (2013-06-04 06:53:14 UTC) #11
Nils Barth (inactive)
Ok, read JSON back into Perl. Will do!
7 years, 6 months ago (2013-06-04 07:14:14 UTC) #12
dominicc (has gone to gerrit)
Informal review. https://codereview.chromium.org/16296004/diff/18001/Source/bindings/scripts/IRToFromJSON.pm File Source/bindings/scripts/IRToFromJSON.pm (right): https://codereview.chromium.org/16296004/diff/18001/Source/bindings/scripts/IRToFromJSON.pm#newcode56 Source/bindings/scripts/IRToFromJSON.pm:56: # Blessed references for objects, canonical to ...
7 years, 6 months ago (2013-06-11 22:56:30 UTC) #13
haraken
Is the patch set 4 the patch you want us to review? I hope you ...
7 years, 6 months ago (2013-06-11 23:51:44 UTC) #14
Nils Barth (inactive)
On 2013/06/11 23:51:44, haraken wrote: > Is the patch set 4 the patch you want ...
7 years, 6 months ago (2013-06-12 01:16:04 UTC) #15
Nils Barth (inactive)
Revised per Dominic's comments - thanks! Haraken, do you want to take a look at ...
7 years, 6 months ago (2013-06-12 02:56:12 UTC) #16
haraken
https://codereview.chromium.org/16296004/diff/18001/Source/bindings/scripts/IRToFromJSON.pm File Source/bindings/scripts/IRToFromJSON.pm (right): https://codereview.chromium.org/16296004/diff/18001/Source/bindings/scripts/IRToFromJSON.pm#newcode35 Source/bindings/scripts/IRToFromJSON.pm:35: package IRToFromJSON; I'd call this JSONSerializer.pm. IR sounds unclear. ...
7 years, 6 months ago (2013-06-12 03:20:20 UTC) #17
Nils Barth (inactive)
Revised again! How does it look now? https://codereview.chromium.org/16296004/diff/18001/Source/bindings/scripts/IRToFromJSON.pm File Source/bindings/scripts/IRToFromJSON.pm (right): https://codereview.chromium.org/16296004/diff/18001/Source/bindings/scripts/IRToFromJSON.pm#newcode35 Source/bindings/scripts/IRToFromJSON.pm:35: package IRToFromJSON; ...
7 years, 6 months ago (2013-06-12 03:57:43 UTC) #18
dominicc (has gone to gerrit)
More comments inline. https://codereview.chromium.org/16296004/diff/29001/Source/bindings/scripts/JSONSerializer.pm File Source/bindings/scripts/JSONSerializer.pm (right): https://codereview.chromium.org/16296004/diff/29001/Source/bindings/scripts/JSONSerializer.pm#newcode30 Source/bindings/scripts/JSONSerializer.pm:30: # Library to convert the Perl ...
7 years, 6 months ago (2013-06-12 04:39:32 UTC) #19
haraken
https://codereview.chromium.org/16296004/diff/29001/Source/bindings/scripts/JSONSerializer.pm File Source/bindings/scripts/JSONSerializer.pm (right): https://codereview.chromium.org/16296004/diff/29001/Source/bindings/scripts/JSONSerializer.pm#newcode43 Source/bindings/scripts/JSONSerializer.pm:43: @EXPORT = qw(serializeJSON deserializeJSON); Do you need these exports? ...
7 years, 6 months ago (2013-06-12 04:46:31 UTC) #20
Nils Barth (inactive)
Re-revised! Haraken, thoughts on Dominic's suggestion to refactor generate-bindings.pl? I could do it in a ...
7 years, 6 months ago (2013-06-12 09:15:27 UTC) #21
haraken
LGTM from my side. Wait for comments from dominicc. > Haraken, thoughts on Dominic's suggestion ...
7 years, 6 months ago (2013-06-12 09:23:56 UTC) #22
Nils Barth (inactive)
On 2013/06/12 09:23:56, haraken wrote: > LGTM from my side. Wait for comments from dominicc. ...
7 years, 6 months ago (2013-06-12 11:06:04 UTC) #23
dominicc (has gone to gerrit)
Informally LGTM if you address these nits. https://codereview.chromium.org/16296004/diff/36001/Source/bindings/scripts/IDLSerializer.pm File Source/bindings/scripts/IDLSerializer.pm (right): https://codereview.chromium.org/16296004/diff/36001/Source/bindings/scripts/IDLSerializer.pm#newcode30 Source/bindings/scripts/IDLSerializer.pm:30: # Convert ...
7 years, 6 months ago (2013-06-12 13:39:52 UTC) #24
Nils Barth (inactive)
Final tweaks. Passed final checks (same C++/headers code, some comment order changes), committing. https://codereview.chromium.org/16296004/diff/36001/Source/bindings/scripts/IDLSerializer.pm File ...
7 years, 6 months ago (2013-06-13 04:33:37 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/16296004/44001
7 years, 6 months ago (2013-06-13 04:35:52 UTC) #26
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=12533
7 years, 6 months ago (2013-06-13 09:02:22 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/16296004/44001
7 years, 6 months ago (2013-06-13 09:28:24 UTC) #28
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=12556
7 years, 6 months ago (2013-06-13 10:29:19 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/16296004/44001
7 years, 6 months ago (2013-06-14 01:47:23 UTC) #30
commit-bot: I haz the power
7 years, 6 months ago (2013-06-14 02:04:54 UTC) #31
Message was sent while issue was closed.
Change committed as 152399

Powered by Google App Engine
This is Rietveld 408576698