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

Issue 5622003: Restructure the structs/unions involved in SRPC argument passing. This will... (Closed)

Created:
10 years ago by sehr (please use chromium)
Modified:
9 years, 7 months ago
Reviewers:
Cliff L. Biffle, krasin
CC:
native-client-reviews_googlegroups.com
Visibility:
Public.

Description

Restructure the structs/unions involved in SRPC argument passing. This will make the serialization changes I am currently working on more robust. BUG=none TEST=all srpc tests Committed: http://src.chromium.org/viewvc/native_client?view=rev&revision=3899

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 4

Patch Set 4 : '' #

Total comments: 1

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+327 lines, -392 lines) Patch
M src/shared/srpc/invoke.c View 1 2 3 4 2 chunks +32 lines, -32 lines 0 comments Download
M src/shared/srpc/nacl_srpc.h View 1 2 3 4 2 chunks +68 lines, -125 lines 0 comments Download
M src/shared/srpc/nacl_srpc.c View 1 2 3 4 3 chunks +7 lines, -7 lines 0 comments Download
M src/shared/srpc/rpc_serialize.c View 1 2 3 4 14 chunks +39 lines, -39 lines 0 comments Download
M src/shared/srpc/rpc_service.c View 1 2 3 4 1 chunk +3 lines, -4 lines 0 comments Download
M src/shared/srpc/rpc_universal.c View 1 2 3 4 12 chunks +37 lines, -37 lines 0 comments Download
M src/trusted/plugin/desc_based_handle.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/trusted/plugin/method_map.cc View 1 2 3 4 1 chunk +13 lines, -13 lines 0 comments Download
M src/trusted/plugin/npapi/plugin_npapi.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M src/trusted/plugin/npapi/scriptable_impl_npapi.cc View 1 2 3 4 10 chunks +28 lines, -28 lines 0 comments Download
M src/trusted/plugin/plugin.cc View 1 2 3 4 6 chunks +6 lines, -6 lines 0 comments Download
M src/trusted/plugin/ppapi/var_utils.cc View 1 2 3 4 3 chunks +16 lines, -24 lines 0 comments Download
M src/trusted/plugin/shared_memory.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M src/trusted/plugin/socket_address.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/trusted/plugin/srt_socket.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M src/trusted/service_runtime/sel_ldr.c View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M tests/autoloader/autoloader_default.c View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tests/contest_issues/issue52.c View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tests/contest_issues/issue55.c View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tests/contest_issues/issue63.c View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tests/fake_browser/deferred_srpc_init.c View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tests/fib/fib_array.c View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M tests/inbrowser_test_runner/test_runner.c View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tests/native_worker/mandel_worker.c View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tests/native_worker/native_worker.c View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tests/photo/nacl_file.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tests/photo/photo.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tests/quake/nacl_file.c View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tests/ruby/main.c View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M tests/srpc/cat.c View 1 2 3 4 3 chunks +6 lines, -6 lines 0 comments Download
M tests/srpc/srpc_bidir.c View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M tests/srpc/srpc_nrd_client.c View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tests/srpc/srpc_nrd_server.c View 1 2 3 4 2 chunks +5 lines, -5 lines 0 comments Download
M tests/srpc/srpc_test.c View 1 2 3 4 6 chunks +15 lines, -15 lines 0 comments Download
M tests/srpc_hw/srpc_hw.c View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tests/syscalls_deprecated/srpc_av.c View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M tests/unittests/shared/srpc/types_srpc_test.c View 1 2 3 4 4 chunks +11 lines, -10 lines 0 comments Download
M tools/srpcgen.py View 1 2 3 4 1 chunk +5 lines, -5 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
sehr (please use chromium)
Cliff, Here's what we discussed on Friday. Please take a look. David
10 years ago (2010-12-05 16:58:34 UTC) #1
krasin
http://codereview.chromium.org/5622003/diff/31003/src/shared/srpc/nacl_srpc.h File src/shared/srpc/nacl_srpc.h (right): http://codereview.chromium.org/5622003/diff/31003/src/shared/srpc/nacl_srpc.h#newcode136 src/shared/srpc/nacl_srpc.h:136: #define NACL_SRPC_ARG_SERIALIZED_FIELDS \ Why it's a macro? It's used ...
10 years ago (2010-12-06 11:44:34 UTC) #2
sehr (please use chromium)
Adding inline comments to my previous mail. http://codereview.chromium.org/5622003/diff/31003/src/shared/srpc/nacl_srpc.h File src/shared/srpc/nacl_srpc.h (right): http://codereview.chromium.org/5622003/diff/31003/src/shared/srpc/nacl_srpc.h#newcode136 src/shared/srpc/nacl_srpc.h:136: #define NACL_SRPC_ARG_SERIALIZED_FIELDS ...
10 years ago (2010-12-06 17:07:40 UTC) #3
Cliff L. Biffle
LGTM, not because I love giant defines, but because I think I see how this ...
10 years ago (2010-12-08 21:51:51 UTC) #4
sehr (please use chromium)
10 years ago (2010-12-08 23:25:12 UTC) #5
On 2010/12/08 21:51:51, Cliff L. Biffle wrote:
> LGTM, not because I love giant defines, but because I think I see how this
will
> make your *other* CL cleaner.
> 
> http://codereview.chromium.org/5622003/diff/28002/src/shared/srpc/invoke.c
> File src/shared/srpc/invoke.c (right):
> 
>
http://codereview.chromium.org/5622003/diff/28002/src/shared/srpc/invoke.c#ne...
> src/shared/srpc/invoke.c:153: (arg)->array_name = va_arg(va, impl_type)
> If you wanted, you could have array_name be e.g. "lval" and use
> (arg)->arrays.array_name.  But, not a big deal.

Thanks.  Committed as r3899.

Powered by Google App Engine
This is Rietveld 408576698