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

Issue 15697019: Parametrize names of llc and ld nexes by reading them from the resource info JSON file. (Closed)

Created:
7 years, 7 months ago by eliben
Modified:
7 years, 7 months ago
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Parametrize names of llc and ld nexes by reading them from the resource info JSON file. At Chrome build-time, the pnacl_component_crx_gen.py script generates a "resource info" JSON file that's placed alongside the translator nexes. We were not actually reading this file so far, but with this CL, we are. The first use is not hard-coding the ld.nexe and llc.nexe tool names in the plugin code. Instead, the tool names are read from the info file. This will allow us, in the future, to move the tool names into the native client directory so we can change them without touching Chrome at all. BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202002

Patch Set 1 #

Patch Set 2 : Tidy up #

Patch Set 3 : More cleanups #

Patch Set 4 : Refactoring, ready for initial review #

Patch Set 5 : Fix Win build #

Total comments: 18

Patch Set 6 : Try fix windows compilation failure #

Patch Set 7 : Fixes for Jan's review comments #

Total comments: 2

Patch Set 8 : Tweak comments some more, following Jan's review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+352 lines, -118 lines) Patch
A ppapi/native_client/src/trusted/plugin/file_utils.h View 1 2 3 4 5 6 7 1 chunk +38 lines, -0 lines 0 comments Download
A ppapi/native_client/src/trusted/plugin/file_utils.cc View 1 2 3 4 5 6 1 chunk +77 lines, -0 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.cc View 1 2 3 4 5 6 3 chunks +34 lines, -69 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc View 1 2 3 4 5 6 3 chunks +22 lines, -14 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_resources.h View 1 2 3 4 5 6 3 chunks +54 lines, -16 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_resources.cc View 1 2 3 4 5 6 3 chunks +118 lines, -15 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_support_extension/pnacl_info_template.json View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
eliben
7 years, 7 months ago (2013-05-23 18:48:04 UTC) #1
jvoung (off chromium)
mostly good (once it compiles on windows ;-)) https://codereview.chromium.org/15697019/diff/13001/ppapi/native_client/src/trusted/plugin/file_utils.cc File ppapi/native_client/src/trusted/plugin/file_utils.cc (right): https://codereview.chromium.org/15697019/diff/13001/ppapi/native_client/src/trusted/plugin/file_utils.cc#newcode21 ppapi/native_client/src/trusted/plugin/file_utils.cc:21: namespace ...
7 years, 7 months ago (2013-05-23 20:33:18 UTC) #2
eliben
https://codereview.chromium.org/15697019/diff/13001/ppapi/native_client/src/trusted/plugin/file_utils.cc File ppapi/native_client/src/trusted/plugin/file_utils.cc (right): https://codereview.chromium.org/15697019/diff/13001/ppapi/native_client/src/trusted/plugin/file_utils.cc#newcode21 ppapi/native_client/src/trusted/plugin/file_utils.cc:21: namespace plugin { namespace file_utils { On 2013/05/23 20:33:19, ...
7 years, 7 months ago (2013-05-23 20:54:25 UTC) #3
jvoung (off chromium)
LGTM, can remove the "This is a preliminary commit, not ready for review yet" part ...
7 years, 7 months ago (2013-05-23 21:15:22 UTC) #4
eliben
https://codereview.chromium.org/15697019/diff/16002/ppapi/native_client/src/trusted/plugin/file_utils.h File ppapi/native_client/src/trusted/plugin/file_utils.h (right): https://codereview.chromium.org/15697019/diff/16002/ppapi/native_client/src/trusted/plugin/file_utils.h#newcode26 ppapi/native_client/src/trusted/plugin/file_utils.h:26: // Slurp the whole contents of the given file ...
7 years, 7 months ago (2013-05-23 21:20:59 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eliben@chromium.org/15697019/38001
7 years, 7 months ago (2013-05-23 23:37:16 UTC) #6
commit-bot: I haz the power
7 years, 7 months ago (2013-05-24 07:15:03 UTC) #7
Message was sent while issue was closed.
Change committed as 202002

Powered by Google App Engine
This is Rietveld 408576698