|
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
Total comments: 8
|
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
|
Total messages: 7 (0 generated)
|