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

Issue 1778753002: Implement MojoGetBufferInformation(), part 3. (Closed)

Created:
4 years, 9 months ago by viettrungluu
Modified:
4 years, 9 months ago
Reviewers:
vardhan, Sean Klein
CC:
mojo-reviews_chromium.org, gregsimon, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org, yzshen+mojopublicwatch_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Implement MojoGetBufferInformation(), part 3. This hooks up Core::GetBufferInformation() to all the thunks, etc. R=smklein@chromium.org, vardhan@google.com BUG=#501 Committed: https://chromium.googlesource.com/external/mojo/+/9beb4f7377e271d83038be0bdaf53154ed6bc607

Patch Set 1 #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+880 lines, -672 lines) Patch
M mojo/edk/embedder/entrypoints.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M mojo/edk/embedder/system_impl_private_entrypoints.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M mojo/edk/system/shared_buffer_dispatcher_unittest.cc View 2 chunks +18 lines, -5 lines 0 comments Download
M mojo/nacl/nonsfi/irt_mojo_nonsfi.cc View 2 chunks +13 lines, -12 lines 2 comments Download
M mojo/nacl/sfi/nacl_bindings/mojo_irt.c View 10 chunks +164 lines, -148 lines 0 comments Download
M mojo/nacl/sfi/nacl_bindings/mojo_syscall.cc View 6 chunks +318 lines, -282 lines 2 comments Download
M mojo/nacl/sfi/nacl_bindings_generator/generate_nacl_bindings.py View 3 chunks +21 lines, -0 lines 0 comments Download
M mojo/nacl/sfi/nacl_bindings_generator/interface.py View 2 chunks +71 lines, -65 lines 2 comments Download
M mojo/nacl/sfi/nacl_bindings_generator/interface_dsl.py View 1 chunk +12 lines, -0 lines 2 comments Download
M mojo/public/c/system/tests/core_unittest.cc View 2 chunks +31 lines, -18 lines 0 comments Download
M mojo/public/platform/nacl/libmojo.cc View 2 chunks +87 lines, -77 lines 0 comments Download
M mojo/public/platform/nacl/mojo_irt.h View 2 chunks +42 lines, -39 lines 0 comments Download
M mojo/public/platform/native/system_impl_private.h View 1 chunk +5 lines, -0 lines 0 comments Download
M mojo/public/platform/native/system_impl_private_thunks.h View 2 chunks +5 lines, -0 lines 0 comments Download
M mojo/public/platform/native/system_impl_private_thunks.c View 1 chunk +10 lines, -0 lines 0 comments Download
M mojo/public/platform/native/system_impl_private_unittest.cc View 3 chunks +31 lines, -7 lines 0 comments Download
M mojo/public/platform/native/system_thunks.h View 2 chunks +27 lines, -19 lines 0 comments Download
M mojo/public/platform/native/system_thunks.c View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
viettrungluu
smklein -> NaCl stuff, vardhan -> everything else https://codereview.chromium.org/1778753002/diff/1/mojo/nacl/nonsfi/irt_mojo_nonsfi.cc File mojo/nacl/nonsfi/irt_mojo_nonsfi.cc (right): https://codereview.chromium.org/1778753002/diff/1/mojo/nacl/nonsfi/irt_mojo_nonsfi.cc#newcode19 mojo/nacl/nonsfi/irt_mojo_nonsfi.cc:19: nacl::MojoGetInitialHandle, ...
4 years, 9 months ago (2016-03-09 00:51:04 UTC) #1
viettrungluu
ping?
4 years, 9 months ago (2016-03-09 21:45:54 UTC) #3
Sean Klein
LGTM w.r.t. NaCl bits. Thanks for annotating where you relocated unchanged code. https://codereview.chromium.org/1778753002/diff/1/mojo/nacl/nonsfi/irt_mojo_nonsfi.cc File mojo/nacl/nonsfi/irt_mojo_nonsfi.cc ...
4 years, 9 months ago (2016-03-09 22:18:22 UTC) #4
vardhan
lgtm
4 years, 9 months ago (2016-03-09 23:43:13 UTC) #5
viettrungluu
Committed patchset #1 (id:1) manually as 9beb4f7377e271d83038be0bdaf53154ed6bc607 (presubmit successful).
4 years, 9 months ago (2016-03-09 23:58:22 UTC) #7
viettrungluu
4 years, 9 months ago (2016-03-09 23:59:53 UTC) #8
Message was sent while issue was closed.
Thanks.

On 2016/03/09 22:18:22, Sean Klein wrote:
> LGTM w.r.t. NaCl bits. Thanks for annotating where you relocated unchanged
code.
> 
>
https://codereview.chromium.org/1778753002/diff/1/mojo/nacl/nonsfi/irt_mojo_n...
> File mojo/nacl/nonsfi/irt_mojo_nonsfi.cc (right):
> 
>
https://codereview.chromium.org/1778753002/diff/1/mojo/nacl/nonsfi/irt_mojo_n...
> mojo/nacl/nonsfi/irt_mojo_nonsfi.cc:19: nacl::MojoGetInitialHandle,
> On 2016/03/09 00:51:04, viettrungluu wrote:
> > This had to be reordered to match the reordering of interface.py (I wonder
if
> > this shouldn't be generated too. <shrug>)
> 
> The Non-SFI and SFI implementations may not always have feature parity, so I
> think doing Non-SFI changes like this manually is fine.

That's a good point.

> 
>
https://codereview.chromium.org/1778753002/diff/1/mojo/nacl/sfi/nacl_bindings...
> File mojo/nacl/sfi/nacl_bindings_generator/interface_dsl.py (right):
> 
>
https://codereview.chromium.org/1778753002/diff/1/mojo/nacl/sfi/nacl_bindings...
> mojo/nacl/sfi/nacl_bindings_generator/interface_dsl.py:122: # Out extensible
> structs have an input size indicating the buffer size. On
> On 2016/03/09 00:51:04, viettrungluu wrote:
> > This (and the resulting generated code) should be considered carefully. I
> think
> > it's right....
> 
> Seems correct to me. Slightly confusing that it is identified as "not an
array"
> here, but uses the "ConvertArray" function later (I understand why, but it's
> still a little weird).

Maybe it should be renamed to "ConvertBuffer", but I left it as-is for now.

Powered by Google App Engine
This is Rietveld 408576698