|
Implement Mojo message codec in JavaScript
This CL contains an encoder and decoder for the Mojo message IPC format. I've
tested the encoder and decoder against each other, but I haven't yet tested them
against the C++ implementation.
I haven't tried to tune the encoder or decoder for performance. IMHO, we should
work on that after getting correctness.
The C++ code for JSTest.codec is a bit verbose because the C++ code need to
load all the dependencies for codec_unittests.js. A better approach is to teach
the system how to load dependencies from the file system, but I've left that for
a future CL.
BUG= 317398
R=aa@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=235838
Total comments: 9
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+738 lines, -152 lines) |
Patch |
 |
M |
gin/modules/module_registry.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
gin/modules/module_runner_delegate.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
gin/modules/module_runner_delegate.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+18 lines, -0 lines |
0 comments
|
Download
|
 |
M |
gin/test/file_runner.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
gin/test/file_runner.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -11 lines |
0 comments
|
Download
|
 |
M |
gin/test/gtest.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
gin/test/gtest.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
mojo/mojo.gyp
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
A |
mojo/public/bindings/js/codec.js
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+407 lines, -0 lines |
0 comments
|
Download
|
 |
A |
mojo/public/bindings/js/codec_unittests.js
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+164 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/public/bindings/js/core.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
mojo/public/bindings/js/core.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
mojo/public/bindings/js/core_unittests.js
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
D |
mojo/public/bindings/js/global.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+0 lines, -18 lines |
0 comments
|
Download
|
 |
D |
mojo/public/bindings/js/global.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+0 lines, -33 lines |
0 comments
|
Download
|
 |
D |
mojo/public/bindings/js/runner_delegate.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+0 lines, -31 lines |
0 comments
|
Download
|
 |
D |
mojo/public/bindings/js/runner_delegate.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+0 lines, -35 lines |
0 comments
|
Download
|
 |
M |
mojo/public/bindings/js/test/run_js_tests.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+12 lines, -11 lines |
0 comments
|
Download
|
 |
A |
mojo/public/bindings/js/test/sample_service.js
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+99 lines, -0 lines |
0 comments
|
Download
|
Total messages: 19 (0 generated)
|