summaryrefslogtreecommitdiffstats
path: root/components/nacl
diff options
context:
space:
mode:
authorstichnot <stichnot@chromium.org>2015-11-29 12:33:04 -0800
committerCommit bot <commit-bot@chromium.org>2015-11-29 20:34:00 +0000
commit2a2f2a70fdc213d499d95d9c3724d9dd60ee2eaf (patch)
tree72b3ee4680cb7ded3ff15c9e3c23d7eab4bd840b /components/nacl
parent0da9346c5db41f17f0e4e3c52d6dccec7fa93780 (diff)
downloadchromium_src-2a2f2a70fdc213d499d95d9c3724d9dd60ee2eaf.zip
chromium_src-2a2f2a70fdc213d499d95d9c3724d9dd60ee2eaf.tar.gz
chromium_src-2a2f2a70fdc213d499d95d9c3724d9dd60ee2eaf.tar.bz2
Revert "PNaCl: Enable the Subzero translator for x86-32 without a flag."
This reverts commit bcfc0fcc956c7523eb3788dcb8f855f5b912690f. XP tests for PNaCl error tests are failing. Subzero's error handling is apparently different in some respect from llc's error handling. See http://build.chromium.org/p/chromium.win/builders/XP%20Tests%20%281%29/builds/41379 BUG=532718 TBR=mseaborn Review URL: https://codereview.chromium.org/1486453002 Cr-Commit-Position: refs/heads/master@{#362070}
Diffstat (limited to 'components/nacl')
-rw-r--r--components/nacl/renderer/ppb_nacl_private_impl.cc11
1 files changed, 3 insertions, 8 deletions
diff --git a/components/nacl/renderer/ppb_nacl_private_impl.cc b/components/nacl/renderer/ppb_nacl_private_impl.cc
index dfc7af8..dde4ef8 100644
--- a/components/nacl/renderer/ppb_nacl_private_impl.cc
+++ b/components/nacl/renderer/ppb_nacl_private_impl.cc
@@ -1092,15 +1092,10 @@ PP_Bool ManifestGetProgramURL(PP_Instance instance,
*pp_full_url = ppapi::StringVar::StringToPPVar(full_url);
*pp_uses_nonsfi_mode = PP_FromBool(uses_nonsfi_mode);
// Check if we should use Subzero (x86-32 / non-debugging case for now).
- // TODO(stichnot): When phasing in Subzero for a new target architecture,
- // add it behind the --enable-pnacl-subzero flag, and add a clause here:
- // && base::CommandLine::ForCurrentProcess()->HasSwitch(
- // switches::kEnablePNaClSubzero)
- // Also modify the ValidationCacheOfTranslatorNexes test to match. When
- // Subzero is finally fully released for all sandbox architectures, the
- // --enable-pnacl-subzero flag can be removed.
if (pnacl_options->opt_level == 0 && !pnacl_options->is_debug &&
- strcmp(GetSandboxArch(), "x86-32") == 0) {
+ strcmp(GetSandboxArch(), "x86-32") == 0 &&
+ base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnablePNaClSubzero)) {
pnacl_options->use_subzero = PP_TRUE;
// Subzero -O2 is closer to LLC -O0, so indicate -O2.
pnacl_options->opt_level = 2;