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

Issue 385983008: Mojo + NaCl prototype. (Closed)

Created:
6 years, 5 months ago by Nick Bray (chromium)
Modified:
6 years, 3 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org, teravest
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Mojo + NaCl prototype. Create a standalone executable that plumbs public Mojo API calls into a NaCl sandbox. This allows the public Mojo unit tests to run inside NaCl. BUG=401761 Committed: https://crrev.com/95d2d4025c767fbc5669377aae457a4bfb5ca46b Cr-Commit-Position: refs/heads/master@{#294484}

Patch Set 1 #

Patch Set 2 : Cleanup #

Patch Set 3 : Better diff #

Total comments: 19

Patch Set 4 : Edits #

Total comments: 1

Patch Set 5 : Cleaner codegen #

Patch Set 6 : Deps cleanup #

Patch Set 7 : Cleanup #

Patch Set 8 : Better Diff #

Patch Set 9 : Edits #

Patch Set 10 : Rebase+edits #

Patch Set 11 : Cleanup for review #

Patch Set 12 : Dead files #

Total comments: 55

Patch Set 13 : EDits #

Patch Set 14 : GYP edit #

Total comments: 72

Patch Set 15 : Edits #

Patch Set 16 : Rebase #

Patch Set 17 : WindowsFix #

Patch Set 18 : WindowsFix2 #

Patch Set 19 : ClipDep #

Total comments: 26

Patch Set 20 : Edits #

Total comments: 2

Patch Set 21 : Jinja #

Patch Set 22 : BuildFix #

Total comments: 24

Patch Set 23 : FinalEdits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1139 lines, -16 lines) Patch
M build/all.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
A mojo/mojo_nacl.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +119 lines, -0 lines 0 comments Download
M mojo/mojo_public_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -5 lines 0 comments Download
M mojo/mojo_variables.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +8 lines, -1 line 0 comments Download
A mojo/nacl/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +5 lines, -0 lines 0 comments Download
A mojo/nacl/README View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +24 lines, -0 lines 0 comments Download
A mojo/nacl/generator/generate_nacl_bindings.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +404 lines, -0 lines 0 comments Download
A mojo/nacl/generator/interface.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +108 lines, -0 lines 0 comments Download
A mojo/nacl/generator/interface_dsl.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +116 lines, -0 lines 0 comments Download
A mojo/nacl/generator/libmojo.cc.tmpl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +25 lines, -0 lines 0 comments Download
A mojo/nacl/generator/mojo_syscall.cc.tmpl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +66 lines, -0 lines 0 comments Download
A + mojo/nacl/mojo_syscall.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +4 lines, -5 lines 0 comments Download
A mojo/nacl/mojo_syscall_internal.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +150 lines, -0 lines 0 comments Download
A mojo/nacl/monacl_sel_main.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +15 lines, -0 lines 0 comments Download
A mojo/nacl/monacl_sel_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +52 lines, -0 lines 0 comments Download
A mojo/nacl/monacl_shell.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +28 lines, -0 lines 0 comments Download
M mojo/public/c/system/tests/core_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +11 lines, -2 lines 0 comments Download
M mojo/public/cpp/system/handle.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 30 (3 generated)
Nick Bray (chromium)
Initial RFC. All but two of the mojo/public tests work. About 60% of the line ...
6 years, 5 months ago (2014-07-18 22:48:18 UTC) #1
viettrungluu
On 2014/07/18 22:48:18, Nick Bray (chromium) wrote: > Initial RFC. All but two of the ...
6 years, 5 months ago (2014-07-18 23:00:50 UTC) #2
Mark Seaborn
https://codereview.chromium.org/385983008/diff/40001/mojo/monacl/DEPS File mojo/monacl/DEPS (right): https://codereview.chromium.org/385983008/diff/40001/mojo/monacl/DEPS#newcode2 mojo/monacl/DEPS:2: "+native_client", Don't use a blanket "all of native_client/" rule, ...
6 years, 5 months ago (2014-07-21 16:31:39 UTC) #3
Nick Bray (chromium)
> Do you think you could take a stab at having the generated code generated ...
6 years, 5 months ago (2014-07-21 21:26:37 UTC) #4
viettrungluu
On 2014/07/21 21:26:37, Nick Bray (chromium) wrote: > > Do you think you could take ...
6 years, 5 months ago (2014-07-21 22:32:21 UTC) #5
Nick Bray (chromium)
https://codereview.chromium.org/385983008/diff/40001/mojo/monacl/README File mojo/monacl/README (right): https://codereview.chromium.org/385983008/diff/40001/mojo/monacl/README#newcode5 mojo/monacl/README:5: gen/interface.py contains a programatic description of the stable Mojo ...
6 years, 5 months ago (2014-07-21 22:38:37 UTC) #6
Mark Seaborn
https://codereview.chromium.org/385983008/diff/40001/mojo/monacl/DEPS File mojo/monacl/DEPS (right): https://codereview.chromium.org/385983008/diff/40001/mojo/monacl/DEPS#newcode2 mojo/monacl/DEPS:2: "+native_client", On 2014/07/21 16:31:39, Mark Seaborn wrote: > Don't ...
6 years, 5 months ago (2014-07-21 23:25:44 UTC) #7
Nick Bray (chromium)
The state of things: I believe the code is pretty much in its final form, ...
6 years, 5 months ago (2014-07-25 23:51:14 UTC) #8
Nick Bray (chromium)
The yaks have been shaven. The CL is in a state that I personally believe ...
6 years, 4 months ago (2014-08-14 20:14:27 UTC) #9
viettrungluu
(I should also point out that jamesr is busy adding .gn files -- https://codereview.chromium.org/494523004/ -- ...
6 years, 4 months ago (2014-08-20 19:52:38 UTC) #10
Mark Seaborn
https://codereview.chromium.org/385983008/diff/220001/mojo/monacl.gyp File mojo/monacl.gyp (right): https://codereview.chromium.org/385983008/diff/220001/mojo/monacl.gyp#newcode9 mojo/monacl.gyp:9: 'monacl_codegen_dir': '<(SHARED_INTERMEDIATE_DIR)/<!(python <(DEPTH)/build/inverse_depth.py <(DEPTH))/monacl', Nit: indent -1 space https://codereview.chromium.org/385983008/diff/220001/mojo/monacl/gen/generate_monacl_bindings.py ...
6 years, 3 months ago (2014-08-26 16:25:54 UTC) #11
Nick Bray (chromium)
PTAL https://codereview.chromium.org/385983008/diff/220001/build/all.gyp File build/all.gyp (right): https://codereview.chromium.org/385983008/diff/220001/build/all.gyp#newcode414 build/all.gyp:414: '../mojo/monacl.gyp:*', On 2014/08/20 19:52:38, viettrungluu wrote: > This ...
6 years, 3 months ago (2014-09-03 23:45:03 UTC) #12
Nick Bray (chromium)
https://codereview.chromium.org/385983008/diff/220001/mojo/mojo_srcs.gypi File mojo/mojo_srcs.gypi (right): https://codereview.chromium.org/385983008/diff/220001/mojo/mojo_srcs.gypi#newcode1 mojo/mojo_srcs.gypi:1: # Copyright 2014 The Chromium Authors. All rights reserved. ...
6 years, 3 months ago (2014-09-03 23:46:03 UTC) #13
Nick Bray (chromium)
OK, I think all the changes are in place, modulo: 1) Serializing through a structure. ...
6 years, 3 months ago (2014-09-04 19:19:18 UTC) #14
Mark Seaborn
It's getting there. Can you fill out the commit message to describe the change, and ...
6 years, 3 months ago (2014-09-09 19:13:12 UTC) #15
viettrungluu
https://codereview.chromium.org/385983008/diff/260001/mojo/mojo_variables.gypi File mojo/mojo_variables.gypi (right): https://codereview.chromium.org/385983008/diff/260001/mojo/mojo_variables.gypi#newcode6 mojo/mojo_variables.gypi:6: # A set of GYP variables that are shared ...
6 years, 3 months ago (2014-09-09 22:02:48 UTC) #16
Nick Bray (chromium)
https://codereview.chromium.org/385983008/diff/40001/mojo/monacl/mojo_syscall.cc File mojo/monacl/mojo_syscall.cc (right): https://codereview.chromium.org/385983008/diff/40001/mojo/monacl/mojo_syscall.cc#newcode62 mojo/monacl/mojo_syscall.cc:62: uintptr_t temp = NaClUserToSysAddrRange(nap, params[1], sizeof(*options)); On 2014/09/09 19:13:10, ...
6 years, 3 months ago (2014-09-09 23:12:34 UTC) #17
Mark Seaborn
https://codereview.chromium.org/385983008/diff/260001/mojo/monacl/generator/interface_dsl.py File mojo/monacl/generator/interface_dsl.py (right): https://codereview.chromium.org/385983008/diff/260001/mojo/monacl/generator/interface_dsl.py#newcode67 mojo/monacl/generator/interface_dsl.py:67: def inp(self, t): On 2014/09/09 23:12:33, Nick Bray (chromium) ...
6 years, 3 months ago (2014-09-10 23:19:21 UTC) #18
Nick Bray (chromium)
https://codereview.chromium.org/385983008/diff/260001/mojo/monacl/generator/interface_dsl.py File mojo/monacl/generator/interface_dsl.py (right): https://codereview.chromium.org/385983008/diff/260001/mojo/monacl/generator/interface_dsl.py#newcode67 mojo/monacl/generator/interface_dsl.py:67: def inp(self, t): On 2014/09/10 23:19:19, Mark Seaborn wrote: ...
6 years, 3 months ago (2014-09-11 00:56:41 UTC) #19
darin (slow to review)
https://codereview.chromium.org/385983008/diff/380001/mojo/nacl/generator/generate_nacl_bindings.py File mojo/nacl/generator/generate_nacl_bindings.py (right): https://codereview.chromium.org/385983008/diff/380001/mojo/nacl/generator/generate_nacl_bindings.py#newcode57 mojo/nacl/generator/generate_nacl_bindings.py:57: template = string.Template(data) not that this should hold up ...
6 years, 3 months ago (2014-09-11 07:32:20 UTC) #21
Nick Bray (chromium)
https://codereview.chromium.org/385983008/diff/380001/mojo/nacl/generator/generate_nacl_bindings.py File mojo/nacl/generator/generate_nacl_bindings.py (right): https://codereview.chromium.org/385983008/diff/380001/mojo/nacl/generator/generate_nacl_bindings.py#newcode57 mojo/nacl/generator/generate_nacl_bindings.py:57: template = string.Template(data) On 2014/09/11 07:32:20, darin wrote: > ...
6 years, 3 months ago (2014-09-11 18:16:23 UTC) #22
Mark Seaborn
LGTM https://codereview.chromium.org/385983008/diff/420001/mojo/nacl/generator/generate_nacl_bindings.py File mojo/nacl/generator/generate_nacl_bindings.py (right): https://codereview.chromium.org/385983008/diff/420001/mojo/nacl/generator/generate_nacl_bindings.py#newcode31 mojo/nacl/generator/generate_nacl_bindings.py:31: sys.path.append(os.path.join(_GetDirAbove("mojo"), "third_party")) Use '' quotes https://codereview.chromium.org/385983008/diff/420001/mojo/nacl/generator/generate_nacl_bindings.py#newcode94 mojo/nacl/generator/generate_nacl_bindings.py:94: Can ...
6 years, 3 months ago (2014-09-11 19:24:02 UTC) #23
viettrungluu
mojo/ (outside mojo/nacl/) lgtm
6 years, 3 months ago (2014-09-11 19:39:40 UTC) #24
Nick Bray
https://codereview.chromium.org/385983008/diff/420001/mojo/nacl/generator/generate_nacl_bindings.py File mojo/nacl/generator/generate_nacl_bindings.py (right): https://codereview.chromium.org/385983008/diff/420001/mojo/nacl/generator/generate_nacl_bindings.py#newcode31 mojo/nacl/generator/generate_nacl_bindings.py:31: sys.path.append(os.path.join(_GetDirAbove("mojo"), "third_party")) On 2014/09/11 19:24:01, Mark Seaborn wrote: > ...
6 years, 3 months ago (2014-09-11 20:24:09 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/385983008/440001
6 years, 3 months ago (2014-09-11 20:30:53 UTC) #28
commit-bot: I haz the power
Committed patchset #23 (id:440001) as 37bcbd443b9b5955d23fbe28924a548ba6d7dc6e
6 years, 3 months ago (2014-09-11 23:05:02 UTC) #29
commit-bot: I haz the power
6 years, 3 months ago (2014-09-11 23:14:25 UTC) #30
Message was sent while issue was closed.
Patchset 23 (id:??) landed as
https://crrev.com/95d2d4025c767fbc5669377aae457a4bfb5ca46b
Cr-Commit-Position: refs/heads/master@{#294484}

Powered by Google App Engine
This is Rietveld 408576698