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

Issue 984713003: Add an IRT interface for subzero/compiler to serve_translate_requests. (Closed)

Created:
5 years, 9 months ago by jvoung (off chromium)
Modified:
5 years, 9 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/src/native_client.git@master
Target Ref:
refs/heads/master
Project:
nacl
Visibility:
Public.

Description

Add an IRT interface for subzero/compiler to serve_translate_requests. Will be used by: https://codereview.chromium.org/997773002/ These are basic handlers for the current SRPC methods that we use for pnacl-llc, and can be used as a starting point for pnacl-sz. BUG= https://code.google.com/p/nativeclient/issues/detail?id=4091 R=mseaborn@chromium.org Committed: https://chromium.googlesource.com/native_client/src/native_client/+/f5a25bad1b78709c223b0940c3ab2bd567beff6f

Patch Set 1 #

Patch Set 2 : fixes #

Patch Set 3 : stuff #

Patch Set 4 : add a log_fatal for now, to marshal back #

Total comments: 23

Patch Set 5 : make generic #

Patch Set 6 : cleanup #

Patch Set 7 : x #

Patch Set 8 : comment #

Patch Set 9 : sort #

Patch Set 10 : size_t #

Total comments: 25

Patch Set 11 : Mark's 2nd review #

Patch Set 12 : cannot just set to null... #

Patch Set 13 : c void #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -61 lines) Patch
M src/untrusted/irt/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M src/untrusted/irt/irt.gyp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M src/untrusted/irt/irt_dev.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +55 lines, -0 lines 0 comments Download
M src/untrusted/irt/irt_interfaces.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M src/untrusted/irt/irt_interfaces.c View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
D src/untrusted/irt/irt_pnacl_translator.c View 1 chunk +0 lines, -57 lines 0 comments Download
A src/untrusted/irt/irt_pnacl_translator_compile.c View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +118 lines, -0 lines 0 comments Download
A + src/untrusted/irt/irt_pnacl_translator_link.c View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -1 line 0 comments Download
M src/untrusted/irt/nacl.scons View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 21 (3 generated)
jvoung (off chromium)
5 years, 9 months ago (2015-03-23 17:46:52 UTC) #3
Mark Seaborn
https://codereview.chromium.org/984713003/diff/60001/src/untrusted/irt/irt_dev.h File src/untrusted/irt/irt_dev.h (right): https://codereview.chromium.org/984713003/diff/60001/src/untrusted/irt/irt_dev.h#newcode165 src/untrusted/irt/irt_dev.h:165: struct PNaClSubzeroFunctions { Nit: Use lower_case_with_underscores, following the style ...
5 years, 9 months ago (2015-03-23 18:09:39 UTC) #4
Jim Stichnoth
https://codereview.chromium.org/984713003/diff/60001/src/untrusted/irt/irt_dev.h File src/untrusted/irt/irt_dev.h (right): https://codereview.chromium.org/984713003/diff/60001/src/untrusted/irt/irt_dev.h#newcode142 src/untrusted/irt/irt_dev.h:142: * This is an internal interface, for use by ...
5 years, 9 months ago (2015-03-23 18:13:41 UTC) #5
Mark Seaborn
https://codereview.chromium.org/984713003/diff/60001/src/untrusted/irt/irt_dev.h File src/untrusted/irt/irt_dev.h (right): https://codereview.chromium.org/984713003/diff/60001/src/untrusted/irt/irt_dev.h#newcode167 src/untrusted/irt/irt_dev.h:167: int obj_file_fd, So I guess this is specific to ...
5 years, 9 months ago (2015-03-23 18:15:56 UTC) #6
Mark Seaborn
https://codereview.chromium.org/984713003/diff/60001/src/untrusted/irt/irt_pnacl_translator_subzero.c File src/untrusted/irt/irt_pnacl_translator_subzero.c (right): https://codereview.chromium.org/984713003/diff/60001/src/untrusted/irt/irt_pnacl_translator_subzero.c#newcode67 src/untrusted/irt/irt_pnacl_translator_subzero.c:67: const struct NaClSrpcHandlerDesc srpc_methods[] = { Nit: add "static"
5 years, 9 months ago (2015-03-23 18:18:36 UTC) #7
Jim Stichnoth
https://codereview.chromium.org/984713003/diff/60001/src/untrusted/irt/irt_dev.h File src/untrusted/irt/irt_dev.h (right): https://codereview.chromium.org/984713003/diff/60001/src/untrusted/irt/irt_dev.h#newcode167 src/untrusted/irt/irt_dev.h:167: int obj_file_fd, On 2015/03/23 18:15:56, Mark Seaborn wrote: > ...
5 years, 9 months ago (2015-03-23 18:21:16 UTC) #8
JF
https://codereview.chromium.org/984713003/diff/60001/src/untrusted/irt/irt_pnacl_translator_subzero.c File src/untrusted/irt/irt_pnacl_translator_subzero.c (right): https://codereview.chromium.org/984713003/diff/60001/src/untrusted/irt/irt_pnacl_translator_subzero.c#newcode26 src/untrusted/irt/irt_pnacl_translator_subzero.c:26: * Only one object file is needed for subzero. ...
5 years, 9 months ago (2015-03-23 18:33:54 UTC) #9
jvoung (off chromium)
https://codereview.chromium.org/984713003/diff/60001/src/untrusted/irt/irt_dev.h File src/untrusted/irt/irt_dev.h (right): https://codereview.chromium.org/984713003/diff/60001/src/untrusted/irt/irt_dev.h#newcode142 src/untrusted/irt/irt_dev.h:142: * This is an internal interface, for use by ...
5 years, 9 months ago (2015-03-23 21:18:55 UTC) #10
Derek Schuff
> Ah... didn't think that the hook was only for trusted code, but that makes ...
5 years, 9 months ago (2015-03-23 21:30:35 UTC) #11
jvoung (off chromium)
On 2015/03/23 21:30:35, Derek Schuff wrote: > > Ah... didn't think that the hook was ...
5 years, 9 months ago (2015-03-24 01:39:01 UTC) #12
jvoung (off chromium)
On 2015/03/24 01:39:01, jvoung wrote: > On 2015/03/23 21:30:35, Derek Schuff wrote: > > > ...
5 years, 9 months ago (2015-03-24 01:41:05 UTC) #13
jvoung (off chromium)
+Roland since Mark is on vacation and Roland is the only other IRT owner. Mark, ...
5 years, 9 months ago (2015-03-25 23:19:31 UTC) #15
Mark Seaborn
LGTM https://codereview.chromium.org/984713003/diff/180001/src/untrusted/irt/irt_dev.h File src/untrusted/irt/irt_dev.h (right): https://codereview.chromium.org/984713003/diff/180001/src/untrusted/irt/irt_dev.h#newcode151 src/untrusted/irt/irt_dev.h:151: * (*) init_callback is used to initialize the ...
5 years, 9 months ago (2015-03-26 20:39:00 UTC) #16
Derek Schuff
https://codereview.chromium.org/984713003/diff/180001/src/untrusted/irt/irt_pnacl_translator_compile.c File src/untrusted/irt/irt_pnacl_translator_compile.c (right): https://codereview.chromium.org/984713003/diff/180001/src/untrusted/irt/irt_pnacl_translator_compile.c#newcode41 src/untrusted/irt/irt_pnacl_translator_compile.c:41: /* TODO(jvoung): figure out how to get an error ...
5 years, 9 months ago (2015-03-26 22:29:35 UTC) #17
jvoung (off chromium)
https://codereview.chromium.org/984713003/diff/180001/src/untrusted/irt/irt_dev.h File src/untrusted/irt/irt_dev.h (right): https://codereview.chromium.org/984713003/diff/180001/src/untrusted/irt/irt_dev.h#newcode151 src/untrusted/irt/irt_dev.h:151: * (*) init_callback is used to initialize the translation ...
5 years, 9 months ago (2015-03-26 22:30:12 UTC) #18
Derek Schuff
On 2015/03/26 22:29:35, Derek Schuff wrote: > It's deferred. > Today errors during translation cause ...
5 years, 9 months ago (2015-03-26 22:30:35 UTC) #19
jvoung (off chromium)
(and thanks Mark!)
5 years, 9 months ago (2015-03-26 22:30:42 UTC) #20
jvoung (off chromium)
5 years, 9 months ago (2015-03-27 22:08:09 UTC) #21
Message was sent while issue was closed.
Committed patchset #13 (id:240001) manually as
f5a25bad1b78709c223b0940c3ab2bd567beff6f (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698