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

Issue 1005173006: Add a switch for using PNaCl Subzero and use it for -O0 translation. (Closed)

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

Description

Add a switch for using PNaCl Subzero and use it for -O0 translation. Toggles use of Subzero for x86-32 when given the --enable-pnacl-subzero flag (bikeshedding welcome). Is not used when debug metadata is present. Subzero O2 is approximately LLC O0 so adjust the optlevels. There isn't a way to select Subzero O0. BUG= https://code.google.com/p/nativeclient/issues/detail?id=4091 CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:linux_chromium_dbg_32_ng,linux_nacl_sdk_build TEST= (1) build 32-bit chrome under 64-bit kernel but a 32-bit linux container and install 64-bit libc/libstdc++. (2) xvfb-run --server-args="-screen 0 1024x768x24" out/Release/browser_tests --gtest_filter=*PnaclSubzero* Committed: https://crrev.com/58bea9692855603927912636d029586a90d60452 Cr-Commit-Position: refs/heads/master@{#323063}

Patch Set 1 #

Patch Set 2 : use single methods for resource #

Patch Set 3 : ends in .nexe #

Patch Set 4 : check commandline flag and manifest option #

Patch Set 5 : use the pnacl_info.json, and start touching the translate thread #

Patch Set 6 : set up simple test #

Patch Set 7 : rename llc to compile #

Patch Set 8 : success kid! #

Patch Set 9 : plumb num_threads separately #

Patch Set 10 : stuff #

Total comments: 12

Patch Set 11 : Nick review #

Patch Set 12 : separate subzero / llc cache keys #

Total comments: 13

Patch Set 13 : dschuff review #

Patch Set 14 : missed comment #

Patch Set 15 : fix takefileinfo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+317 lines, -202 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/test/nacl/nacl_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -2 lines 0 comments Download
M chrome/test/nacl/nacl_browsertest_util.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/test/nacl/nacl_browsertest_util.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M components/nacl/browser/pnacl_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M components/nacl/browser/pnacl_translation_cache.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M components/nacl/browser/pnacl_translation_cache_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -0 lines 0 comments Download
M components/nacl/common/nacl_host_messages.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M components/nacl/common/nacl_switches.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/nacl/common/nacl_switches.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M components/nacl/common/pnacl_types.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M components/nacl/common/pnacl_types.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M components/nacl/renderer/plugin/plugin.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/nacl/renderer/plugin/pnacl_coordinator.h View 1 2 3 4 5 10 11 12 1 chunk +3 lines, -1 line 0 comments Download
M components/nacl/renderer/plugin/pnacl_coordinator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +34 lines, -35 lines 0 comments Download
M components/nacl/renderer/plugin/pnacl_resources.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +19 lines, -19 lines 0 comments Download
M components/nacl/renderer/plugin/pnacl_resources.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +57 lines, -30 lines 0 comments Download
M components/nacl/renderer/plugin/pnacl_translate_thread.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +6 lines, -4 lines 0 comments Download
M components/nacl/renderer/plugin/pnacl_translate_thread.cc View 1 2 3 4 5 6 7 8 9 10 11 12 11 chunks +104 lines, -87 lines 0 comments Download
M components/nacl/renderer/ppb_nacl_private.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +5 lines, -1 line 0 comments Download
M components/nacl/renderer/ppb_nacl_private_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 chunks +45 lines, -20 lines 0 comments Download

Messages

Total messages: 21 (5 generated)
jvoung (off chromium)
ncbray for nacl_browser_test* Jim and Derek for everything else
5 years, 9 months ago (2015-03-27 17:03:24 UTC) #2
Jim Stichnoth
Quick sanity check question. I tried looking through this CL and the other 2 referenced ...
5 years, 9 months ago (2015-03-27 20:27:55 UTC) #3
Jim Stichnoth
Forgot one thing. Per our offline discussion, be sure to add a "subzero" bit to ...
5 years, 9 months ago (2015-03-27 20:28:31 UTC) #4
Nick Bray (chromium)
Test stuff LGTM ish. o_0! https://codereview.chromium.org/1005173006/diff/180001/chrome/test/nacl/nacl_browsertest.cc File chrome/test/nacl/nacl_browsertest.cc (right): https://codereview.chromium.org/1005173006/diff/180001/chrome/test/nacl/nacl_browsertest.cc#newcode401 chrome/test/nacl/nacl_browsertest.cc:401: IN_PROC_BROWSER_TEST_F(NaClBrowserTestPnaclSubzero, Put this next ...
5 years, 9 months ago (2015-03-27 20:30:42 UTC) #5
jvoung (off chromium)
Some inline comments to hopefully make it easier to follow how the --threads=N parameter makes ...
5 years, 9 months ago (2015-03-27 20:46:51 UTC) #6
Jim Stichnoth
Thanks! https://codereview.chromium.org/1005173006/diff/180001/components/nacl/renderer/plugin/pnacl_translate_thread.cc File components/nacl/renderer/plugin/pnacl_translate_thread.cc (right): https://codereview.chromium.org/1005173006/diff/180001/components/nacl/renderer/plugin/pnacl_translate_thread.cc#newcode66 components/nacl/renderer/plugin/pnacl_translate_thread.cc:66: // args.push_back("-mattr=" + architecture_attributes); On 2015/03/27 20:46:51, jvoung ...
5 years, 9 months ago (2015-03-27 21:19:13 UTC) #7
jvoung (off chromium)
Plumbed a translation cache bit to distinguish between subzero and llc. +jschuh for components/nacl/common/nacl_host_messages.h OWNERS ...
5 years, 9 months ago (2015-03-28 01:18:34 UTC) #9
Jim Stichnoth
lgtm
5 years, 9 months ago (2015-03-28 18:18:45 UTC) #10
Derek Schuff
https://codereview.chromium.org/1005173006/diff/220001/components/nacl/renderer/plugin/pnacl_resources.cc File components/nacl/renderer/plugin/pnacl_resources.cc (right): https://codereview.chromium.org/1005173006/diff/220001/components/nacl/renderer/plugin/pnacl_resources.cc#newcode45 components/nacl/renderer/plugin/pnacl_resources.cc:45: size_t index = static_cast<size_t>(type); would making ResourceType an enum ...
5 years, 8 months ago (2015-03-30 16:39:47 UTC) #11
jvoung (off chromium)
Thanks https://codereview.chromium.org/1005173006/diff/220001/components/nacl/renderer/plugin/pnacl_resources.cc File components/nacl/renderer/plugin/pnacl_resources.cc (right): https://codereview.chromium.org/1005173006/diff/220001/components/nacl/renderer/plugin/pnacl_resources.cc#newcode45 components/nacl/renderer/plugin/pnacl_resources.cc:45: size_t index = static_cast<size_t>(type); On 2015/03/30 16:39:47, Derek ...
5 years, 8 months ago (2015-03-30 20:26:40 UTC) #12
Derek Schuff
pnacl coordinator and translation cache LGTM https://codereview.chromium.org/1005173006/diff/220001/components/nacl/renderer/plugin/pnacl_resources.cc File components/nacl/renderer/plugin/pnacl_resources.cc (right): https://codereview.chromium.org/1005173006/diff/220001/components/nacl/renderer/plugin/pnacl_resources.cc#newcode45 components/nacl/renderer/plugin/pnacl_resources.cc:45: size_t index = ...
5 years, 8 months ago (2015-03-30 21:03:12 UTC) #13
jvoung (off chromium)
or Tom for components/nacl/common/nacl_host_messages.h OWNERS
5 years, 8 months ago (2015-03-31 14:58:50 UTC) #15
Tom Sepez
Messages LGTM.
5 years, 8 months ago (2015-03-31 16:26:51 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1005173006/280001
5 years, 8 months ago (2015-03-31 16:54:57 UTC) #19
commit-bot: I haz the power
Committed patchset #15 (id:280001)
5 years, 8 months ago (2015-03-31 17:19:46 UTC) #20
commit-bot: I haz the power
5 years, 8 months ago (2015-03-31 17:20:52 UTC) #21
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/58bea9692855603927912636d029586a90d60452
Cr-Commit-Position: refs/heads/master@{#323063}

Powered by Google App Engine
This is Rietveld 408576698