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

Issue 67763002: Add gin, a lightweight bindings system for V8 (Closed)

Created:
7 years, 1 month ago by abarth-chromium
Modified:
7 years, 1 month ago
CC:
chromium-reviews
Visibility:
Public.

Description

This CL introduces a lightweight bindings system for V8 called gin Unlike the extensions V8 bindings, gin is based on ObjectTemplates rather than on evaluating script. Unlike the Blink V8 bindings, gin isn't tightly coupled to Blink. In fact, gin's only link-time dependency is V8. We plan to use gin to build the V8 bindings for Mojo (see https://codereview.chromium.org/59153005/ for an example of how they will be used). In the long term, gin could serve as a basis for both the Blink and the extension system bindings, but we don't have any immediate plans to pursue that use of this code. This code is largely inspired by a lightweight bindings system designed by Aaron Boodman. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=234160

Patch Set 1 #

Patch Set 2 : Passes unit test #

Patch Set 3 : Now with runner #

Total comments: 8

Patch Set 4 : Address Aaron's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1024 lines, -8 lines) Patch
M build/all.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
A gin/DEPS View 1 1 chunk +7 lines, -0 lines 0 comments Download
A + gin/OWNERS View 1 1 chunk +1 line, -1 line 0 comments Download
A gin/README View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
A gin/array_buffer.h View 1 1 chunk +45 lines, -0 lines 0 comments Download
A gin/array_buffer.cc View 1 1 chunk +150 lines, -0 lines 0 comments Download
A gin/converter.h View 1 2 1 chunk +121 lines, -0 lines 0 comments Download
A gin/converter.cc View 1 1 chunk +102 lines, -0 lines 0 comments Download
A gin/converter_unittest.cc View 1 1 chunk +128 lines, -0 lines 0 comments Download
A gin/gin.gyp View 1 2 1 chunk +54 lines, -0 lines 0 comments Download
A + gin/initialize.h View 1 1 chunk +6 lines, -5 lines 0 comments Download
A gin/initialize.cc View 1 1 chunk +38 lines, -0 lines 0 comments Download
A gin/per_isolate_data.h View 1 2 3 1 chunk +38 lines, -0 lines 0 comments Download
A gin/per_isolate_data.cc View 1 2 3 1 chunk +33 lines, -0 lines 0 comments Download
A gin/runner.h View 1 2 1 chunk +67 lines, -0 lines 0 comments Download
A gin/runner.cc View 1 2 1 chunk +64 lines, -0 lines 0 comments Download
A gin/runner_unittest.cc View 1 2 1 chunk +55 lines, -0 lines 0 comments Download
A + gin/test/run_all_unittests.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
A gin/test/v8_test.h View 1 1 chunk +30 lines, -0 lines 0 comments Download
A gin/test/v8_test.cc View 1 1 chunk +33 lines, -0 lines 0 comments Download
A gin/wrapper_info.h View 1 1 chunk +25 lines, -0 lines 0 comments Download
A gin/wrapper_info.cc View 1 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
abarth-chromium
I've extracted the non-Mojo specific parts of mojo/public/bindings/js into a new top-level directory, as requested. ...
7 years, 1 month ago (2013-11-09 11:51:25 UTC) #1
darin (slow to review)
LGTM for adding this as a top-level module. Please announce on chromium-dev. I haven't reviewed ...
7 years, 1 month ago (2013-11-09 16:32:04 UTC) #2
darin1
Also, I think there is a target in addition to all that you want to ...
7 years, 1 month ago (2013-11-09 16:34:39 UTC) #3
Aaron Boodman
Cooool. I expect ArgumentParser will also end up here? LGTM - you decide whether to ...
7 years, 1 month ago (2013-11-09 21:40:34 UTC) #4
abarth-chromium
Thanks for the review! I'm going to address your comments below and land this CL ...
7 years, 1 month ago (2013-11-10 02:12:19 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/67763002/210001
7 years, 1 month ago (2013-11-10 02:13:53 UTC) #6
commit-bot: I haz the power
7 years, 1 month ago (2013-11-10 05:00:51 UTC) #7
Message was sent while issue was closed.
Change committed as 234160

Powered by Google App Engine
This is Rietveld 408576698