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

Issue 12623004: Allow PNaCl NMF to set translator optimization options for experimentation. (Closed)

Created:
7 years, 9 months ago by jvoung (off chromium)
Modified:
7 years, 9 months ago
CC:
chromium-reviews, native-client-reviews_googlegroups.com, Mark Seaborn
Visibility:
Public.

Description

Allow PNaCl NMF to set translator optimization options for experimentation. This adds two fields: (1) "-O": i (2) "experimentation_flags": "arbitrary flags" We may want to remove (2) soon... or just omit it. The optimization flag is separated and made a uint so that it can be tracked as a UMA stat more easily. Also set default to -O0 for now. TEST= browser_tests --gtest_filter=*Pnacl*Options* This only tests that the plugin doesn't barf on those new NMF options. To really test it we'd need to instrument LLC to know that it's really getting these flags and get output from LLC confirming that. For now I have a manual test: http://www/~jvoung/IrrLicht/testirrnacl_portable.html showing that it works though. BUG= http://code.google.com/p/nativeclient/issues/detail?id=3325 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=187764

Patch Set 1 #

Patch Set 2 : Try to fix windows build. #

Patch Set 3 : test experimental_flags also, sort of #

Patch Set 4 : try fixing windows again #

Patch Set 5 : rebase #

Total comments: 9

Patch Set 6 : use default copy / add note #

Patch Set 7 : Default to -O0 instead of the default for now #

Unified diffs Side-by-side diffs Delta from patch set Stats (+390 lines, -133 lines) Patch
M chrome/test/data/nacl/nacl_test_data.gyp View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
A chrome/test/data/nacl/pnacl_nmf_options/pnacl_o_0.nmf View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/test/data/nacl/pnacl_nmf_options/pnacl_o_2.nmf View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/test/data/nacl/pnacl_nmf_options/pnacl_o_large.nmf View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
A + chrome/test/data/nacl/pnacl_nmf_options/pnacl_options.html View 3 chunks +10 lines, -4 lines 0 comments Download
A chrome/test/data/nacl/pnacl_nmf_options/pnacl_time_passes.nmf View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/test/nacl/nacl_browsertest.cc View 1 2 3 4 1 chunk +20 lines, -0 lines 0 comments Download
M chrome/test/nacl/nacl_browsertest_util.h View 1 2 2 chunks +10 lines, -11 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/json_manifest.h View 3 chunks +7 lines, -10 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/json_manifest.cc View 13 chunks +44 lines, -39 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/manifest.h View 3 chunks +10 lines, -10 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.cc View 1 2 3 4 2 chunks +4 lines, -6 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h View 6 chunks +8 lines, -4 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc View 11 chunks +32 lines, -36 lines 0 comments Download
A ppapi/native_client/src/trusted/plugin/pnacl_options.h View 1 2 3 4 5 1 chunk +66 lines, -0 lines 0 comments Download
A ppapi/native_client/src/trusted/plugin/pnacl_options.cc View 1 2 3 4 5 6 1 chunk +82 lines, -0 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.h View 3 chunks +3 lines, -0 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc View 3 chunks +21 lines, -4 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/service_runtime.h View 1 chunk +0 lines, -2 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/service_runtime.cc View 5 chunks +10 lines, -7 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
jvoung (off chromium)
7 years, 9 months ago (2013-03-08 19:25:18 UTC) #1
Derek Schuff
https://codereview.chromium.org/12623004/diff/25001/ppapi/native_client/src/trusted/plugin/pnacl_options.cc File ppapi/native_client/src/trusted/plugin/pnacl_options.cc (right): https://codereview.chromium.org/12623004/diff/25001/ppapi/native_client/src/trusted/plugin/pnacl_options.cc#newcode16 ppapi/native_client/src/trusted/plugin/pnacl_options.cc:16: PnaclOptions::PnaclOptions(const PnaclOptions& opt) { do we really need a ...
7 years, 9 months ago (2013-03-08 21:34:55 UTC) #2
jvoung (off chromium)
https://codereview.chromium.org/12623004/diff/25001/ppapi/native_client/src/trusted/plugin/pnacl_options.cc File ppapi/native_client/src/trusted/plugin/pnacl_options.cc (right): https://codereview.chromium.org/12623004/diff/25001/ppapi/native_client/src/trusted/plugin/pnacl_options.cc#newcode16 ppapi/native_client/src/trusted/plugin/pnacl_options.cc:16: PnaclOptions::PnaclOptions(const PnaclOptions& opt) { On 2013/03/08 21:34:55, Derek Schuff ...
7 years, 9 months ago (2013-03-08 23:21:41 UTC) #3
Derek Schuff
https://codereview.chromium.org/12623004/diff/25001/ppapi/native_client/src/trusted/plugin/pnacl_options.cc File ppapi/native_client/src/trusted/plugin/pnacl_options.cc (right): https://codereview.chromium.org/12623004/diff/25001/ppapi/native_client/src/trusted/plugin/pnacl_options.cc#newcode16 ppapi/native_client/src/trusted/plugin/pnacl_options.cc:16: PnaclOptions::PnaclOptions(const PnaclOptions& opt) { for that matter, where are ...
7 years, 9 months ago (2013-03-08 23:37:51 UTC) #4
jvoung (off chromium)
https://codereview.chromium.org/12623004/diff/25001/ppapi/native_client/src/trusted/plugin/pnacl_options.cc File ppapi/native_client/src/trusted/plugin/pnacl_options.cc (right): https://codereview.chromium.org/12623004/diff/25001/ppapi/native_client/src/trusted/plugin/pnacl_options.cc#newcode16 ppapi/native_client/src/trusted/plugin/pnacl_options.cc:16: PnaclOptions::PnaclOptions(const PnaclOptions& opt) { On 2013/03/08 23:37:51, Derek Schuff ...
7 years, 9 months ago (2013-03-08 23:49:47 UTC) #5
Derek Schuff
https://codereview.chromium.org/12623004/diff/25001/ppapi/native_client/src/trusted/plugin/pnacl_options.cc File ppapi/native_client/src/trusted/plugin/pnacl_options.cc (right): https://codereview.chromium.org/12623004/diff/25001/ppapi/native_client/src/trusted/plugin/pnacl_options.cc#newcode16 ppapi/native_client/src/trusted/plugin/pnacl_options.cc:16: PnaclOptions::PnaclOptions(const PnaclOptions& opt) { I see. maybe we should ...
7 years, 9 months ago (2013-03-11 16:08:24 UTC) #6
jvoung (off chromium)
https://codereview.chromium.org/12623004/diff/25001/ppapi/native_client/src/trusted/plugin/pnacl_options.cc File ppapi/native_client/src/trusted/plugin/pnacl_options.cc (right): https://codereview.chromium.org/12623004/diff/25001/ppapi/native_client/src/trusted/plugin/pnacl_options.cc#newcode16 ppapi/native_client/src/trusted/plugin/pnacl_options.cc:16: PnaclOptions::PnaclOptions(const PnaclOptions& opt) { Okay, I added a note ...
7 years, 9 months ago (2013-03-11 17:29:22 UTC) #7
Derek Schuff
LGTM
7 years, 9 months ago (2013-03-11 17:42:32 UTC) #8
Nick Bray (chromium)
Quick owners LGTM, if needed.
7 years, 9 months ago (2013-03-11 22:34:08 UTC) #9
jvoung (off chromium)
Thanks Nick! I do need to wait for a NaCl DEPS bump to pull in ...
7 years, 9 months ago (2013-03-11 23:04:13 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jvoung@chromium.org/12623004/42001
7 years, 9 months ago (2013-03-12 22:19:39 UTC) #11
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
7 years, 9 months ago (2013-03-13 03:24:14 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jvoung@chromium.org/12623004/42001
7 years, 9 months ago (2013-03-13 03:42:37 UTC) #13
commit-bot: I haz the power
7 years, 9 months ago (2013-03-13 03:52:10 UTC) #14
Message was sent while issue was closed.
Change committed as 187764

Powered by Google App Engine
This is Rietveld 408576698