|
Begin implementing V8 bindings for Mojo
This CL contains the beginnings of JavaScript bindings for the core Mojo
system. The approach in this CL is to bind as close to the "metal" as possible
so as to self-host as much as possiblem in the VM. I've tried to avoid
retaining any state on the C++ side of the bindings, but I didn't quite succeed
because V8 requires embedders to retain state in order to access the memory
that backs ArrayBuffers.
In this CL, I've added some basic bindings for the symbols exported by core.h.
Specifically, I've created bindings for CreateMessagePipe, Close, Wait,
WaitMany, WriteMessage, and ReadMessage.
R=aa@chromium.org, darin@chromium.org
BUG= 317398
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=234347
Total comments: 23
Total comments: 2
Total comments: 25
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+906 lines, -132 lines) |
Patch |
![](/static/closedtriangle.gif) |
A |
gin/arguments.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+54 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
A |
gin/arguments.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+36 lines, -0 lines |
2 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
gin/array_buffer.h
|
View
|
1
2
3
4
|
2 chunks |
+39 lines, -6 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
gin/array_buffer.cc
|
View
|
1
2
3
4
|
5 chunks |
+63 lines, -30 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
gin/converter.h
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+23 lines, -1 line |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
gin/converter.cc
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+35 lines, -1 line |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
A |
gin/dictionary.h
|
View
|
1
2
3
4
|
1 chunk |
+50 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
A |
gin/dictionary.cc
|
View
|
1
2
3
4
|
1 chunk |
+40 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
gin/gin.gyp
|
View
|
1
2
3
4
5
6
|
2 chunks |
+25 lines, -4 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
gin/per_isolate_data.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
gin/per_isolate_data.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+11 lines, -3 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
gin/runner.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
A + |
gin/test/gtest.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+6 lines, -4 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
A |
gin/test/gtest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+76 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
mojo/apps/js/DEPS
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
mojo/apps/js/main.cc
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
D |
mojo/apps/js/v8_environment.h
|
View
|
1
2
|
1 chunk |
+0 lines, -16 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
mojo/apps/js/v8_environment.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -49 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
mojo/mojo.gyp
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+41 lines, -4 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
A + |
mojo/public/bindings/js/DEPS
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
A |
mojo/public/bindings/js/core.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
A |
mojo/public/bindings/js/core.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+161 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
A |
mojo/public/bindings/js/handle.h
|
View
|
1
2
3
4
|
1 chunk |
+23 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
A |
mojo/public/bindings/js/handle.cc
|
View
|
1
2
3
4
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
A |
mojo/public/bindings/js/mojo.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
A |
mojo/public/bindings/js/mojo.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
A + |
mojo/public/bindings/js/mojo_unittests.js
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+3 lines, -7 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
A |
mojo/public/bindings/js/runner_delegate.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+29 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
A |
mojo/public/bindings/js/runner_delegate.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+23 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
A + |
mojo/public/bindings/js/test/DEPS
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
A |
mojo/public/bindings/js/test/harness.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+69 lines, -0 lines |
0 comments
|
Download
|
Total messages: 24 (0 generated)
|