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

Issue 164373010: Split the PNaCl IRT shim into 3 pieces, and include one piece into IRT. (Closed)

Created:
6 years, 10 months ago by jvoung (off chromium)
Modified:
6 years, 9 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, binji, Sam Clegg, extensions-reviews_chromium.org
Visibility:
Public.

Description

Split the PNaCl IRT shim into 3 pieces, and include one piece into IRT. (*) A "for irt" library, that will get linked into the IRT. That library just has the auto-generated pnacl_shim.c file. Also modify ppapi_proxy to include a "irt_shim_ppapi.c", which makes use of the pnacl_shim.c file to define a private hook, parallel to the hook provided by irt_ppapi.c. (*) A "for the browser" library, that the browser-tester and the PNaCl packager will include for PNaCl-in-the-browser. This is still called "libpnacl_irt_shim.a" so that we don't need to change the in-browser linker's commandline. However, it will be placed in a different directory so that the Chrome PNaCl packager can pick it up separately from the AOT library. This for-browser library uses the new hook. (*) A "AOT" library, that will go into the SDK for offline pexe -> nexe translation. Still called "libpnacl_irt_shim.a" as well, confusingly enough, so that we don't need to change the pnacl-nativeld.py commandlines. Placed in a different directory from the for-browser library. Does not use the new hook, so that it only depends on stable interfaces. BUG= https://code.google.com/p/nativeclient/issues/detail?id=3783 R=binji@chromium.org, dmichael@chromium.org, mseaborn@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255807

Patch Set 1 #

Total comments: 1

Patch Set 2 : fix headers #

Total comments: 2

Patch Set 3 : add to irt_ppapi.c #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Patch Set 6 : jigger stuff #

Patch Set 7 : fix up mips #

Total comments: 24

Patch Set 8 : review #

Total comments: 4

Patch Set 9 : cleanups and rebase #

Total comments: 2

Patch Set 10 : rebase #

Patch Set 11 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+248 lines, -81 lines) Patch
M native_client_sdk/src/build_tools/build_sdk.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M ppapi/native_client/native_client.gyp View 1 2 3 4 5 6 7 8 9 6 chunks +6 lines, -0 lines 0 comments Download
A ppapi/native_client/src/untrusted/pnacl_irt_shim/irt_shim_ppapi.h View 1 2 3 4 5 6 7 8 1 chunk +30 lines, -0 lines 0 comments Download
A ppapi/native_client/src/untrusted/pnacl_irt_shim/irt_shim_ppapi.c View 1 2 3 4 5 6 7 1 chunk +79 lines, -0 lines 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_shim.gyp View 1 2 3 4 5 6 7 8 3 chunks +65 lines, -1 line 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/shim_entry.c View 1 chunk +3 lines, -3 lines 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/shim_ppapi.h View 1 2 chunks +9 lines, -6 lines 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/shim_ppapi.c View 1 2 3 4 5 6 7 8 9 10 3 chunks +24 lines, -53 lines 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_support_extension/pnacl_support_extension.gyp View 1 2 3 4 5 6 6 chunks +13 lines, -13 lines 0 comments Download
M ppapi/ppapi_nacl.gyp View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/proxy/DEPS View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/proxy/irt_ppapi.c View 1 2 3 4 5 6 7 2 chunks +14 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
jvoung (off chromium)
https://codereview.chromium.org/164373010/diff/1/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_shim.gyp File ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_shim.gyp (right): https://codereview.chromium.org/164373010/diff/1/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_shim.gyp#newcode30 ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_shim.gyp:30: '../../../../proxy/irt_shim_ppapi.c', Wasn't sure how common this sort of thing ...
6 years, 10 months ago (2014-02-14 23:11:54 UTC) #1
Mark Seaborn
Minor comment below. This change will take me a while to understand fully... https://codereview.chromium.org/164373010/diff/30001/ppapi/native_client/native_client.gyp File ...
6 years, 10 months ago (2014-02-14 23:45:36 UTC) #2
jvoung (off chromium)
rebased -- Sorry, the ifdefs give me a bit of a headache. Haven't thought of ...
6 years, 9 months ago (2014-02-25 22:44:10 UTC) #3
Mark Seaborn
https://codereview.chromium.org/164373010/diff/260001/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_shim.gyp File ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_shim.gyp (right): https://codereview.chromium.org/164373010/diff/260001/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_shim.gyp#newcode39 ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_shim.gyp:39: '-DPNACL_SHIM_AOT=1', I don't see a corresponding -DPNACL_SHIM_AOT=0, which you ...
6 years, 9 months ago (2014-02-26 22:11:03 UTC) #4
jvoung (off chromium)
Thanks! https://codereview.chromium.org/164373010/diff/260001/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_shim.gyp File ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_shim.gyp (right): https://codereview.chromium.org/164373010/diff/260001/ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_shim.gyp#newcode39 ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_shim.gyp:39: '-DPNACL_SHIM_AOT=1', On 2014/02/26 22:11:03, Mark Seaborn wrote: > ...
6 years, 9 months ago (2014-02-27 01:39:55 UTC) #5
Mark Seaborn
LGTM https://codereview.chromium.org/164373010/diff/280001/ppapi/native_client/src/untrusted/pnacl_irt_shim/irt_shim_ppapi.h File ppapi/native_client/src/untrusted/pnacl_irt_shim/irt_shim_ppapi.h (right): https://codereview.chromium.org/164373010/diff/280001/ppapi/native_client/src/untrusted/pnacl_irt_shim/irt_shim_ppapi.h#newcode16 ppapi/native_client/src/untrusted/pnacl_irt_shim/irt_shim_ppapi.h:16: #else Nit: add empty lines around #else/#ifdef/#endif for ...
6 years, 9 months ago (2014-02-27 17:24:07 UTC) #6
jvoung (off chromium)
+dmichael for ppapi OWNERS +binji for native_client_sdk OWNERS https://codereview.chromium.org/164373010/diff/280001/ppapi/native_client/src/untrusted/pnacl_irt_shim/irt_shim_ppapi.h File ppapi/native_client/src/untrusted/pnacl_irt_shim/irt_shim_ppapi.h (right): https://codereview.chromium.org/164373010/diff/280001/ppapi/native_client/src/untrusted/pnacl_irt_shim/irt_shim_ppapi.h#newcode16 ppapi/native_client/src/untrusted/pnacl_irt_shim/irt_shim_ppapi.h:16: #else ...
6 years, 9 months ago (2014-02-27 21:55:45 UTC) #7
dmichael (off chromium)
https://codereview.chromium.org/164373010/diff/290001/ppapi/proxy/irt_ppapi.c File ppapi/proxy/irt_ppapi.c (right): https://codereview.chromium.org/164373010/diff/290001/ppapi/proxy/irt_ppapi.c#newcode8 ppapi/proxy/irt_ppapi.c:8: #include "native_client/src/trusted/service_runtime/include/sys/unistd.h" It seems wrong to include something from ...
6 years, 9 months ago (2014-02-27 23:14:58 UTC) #8
Mark Seaborn
https://codereview.chromium.org/164373010/diff/290001/ppapi/proxy/irt_ppapi.c File ppapi/proxy/irt_ppapi.c (right): https://codereview.chromium.org/164373010/diff/290001/ppapi/proxy/irt_ppapi.c#newcode8 ppapi/proxy/irt_ppapi.c:8: #include "native_client/src/trusted/service_runtime/include/sys/unistd.h" On 2014/02/27 23:14:59, dmichael wrote: > It ...
6 years, 9 months ago (2014-02-27 23:28:08 UTC) #9
dmichael (off chromium)
OK, ppapi lgtm
6 years, 9 months ago (2014-02-27 23:58:53 UTC) #10
jvoung (off chromium)
Hmm, what's the limit on the IRT's data/rodata? Is it 1MB? If so, non-text sections ...
6 years, 9 months ago (2014-02-28 02:45:08 UTC) #11
Mark Seaborn
On 27 February 2014 18:45, <jvoung@chromium.org> wrote: > Hmm, what's the limit on the IRT's ...
6 years, 9 months ago (2014-02-28 03:33:44 UTC) #12
Mark Seaborn
On 27 February 2014 19:33, Mark Seaborn <mseaborn@chromium.org> wrote: > On 27 February 2014 18:45, ...
6 years, 9 months ago (2014-02-28 04:00:14 UTC) #13
jvoung (off chromium)
On 2014/02/28 03:33:44, Mark Seaborn wrote: > On 27 February 2014 18:45, <mailto:jvoung@chromium.org> wrote: > ...
6 years, 9 months ago (2014-02-28 19:57:09 UTC) #14
Mark Seaborn
On 28 February 2014 11:57, <jvoung@chromium.org> wrote: > On 2014/02/28 03:33:44, Mark Seaborn wrote: > ...
6 years, 9 months ago (2014-02-28 20:07:12 UTC) #15
jvoung (off chromium)
Mark's roll of NaCl -> chrome should have reduced the IRT to be small enough ...
6 years, 9 months ago (2014-03-06 19:38:56 UTC) #16
jvoung (off chromium)
or +sbc
6 years, 9 months ago (2014-03-07 19:41:01 UTC) #17
binji
native_client_sdk lgtm
6 years, 9 months ago (2014-03-07 20:29:49 UTC) #18
jvoung (off chromium)
The CQ bit was checked by jvoung@chromium.org
6 years, 9 months ago (2014-03-07 20:50:46 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jvoung@chromium.org/164373010/310001
6 years, 9 months ago (2014-03-07 20:51:04 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jvoung@chromium.org/164373010/310001
6 years, 9 months ago (2014-03-08 10:57:21 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-08 13:44:49 UTC) #22
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) telemetry_perf_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=234308
6 years, 9 months ago (2014-03-08 13:44:49 UTC) #23
Mark Seaborn
The CQ bit was checked by mseaborn@chromium.org
6 years, 9 months ago (2014-03-08 16:24:50 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jvoung@chromium.org/164373010/310001
6 years, 9 months ago (2014-03-08 16:25:05 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-08 17:04:19 UTC) #26
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) telemetry_perf_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=234473
6 years, 9 months ago (2014-03-08 17:04:20 UTC) #27
jvoung (off chromium)
6 years, 9 months ago (2014-03-09 02:00:28 UTC) #28
Message was sent while issue was closed.
Committed patchset #11 manually as r255807 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698