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

Side by Side Diff: components/nacl/common/nacl_switches.cc

Issue 1005173006: Add a switch for using PNaCl Subzero and use it for -O0 translation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix takefileinfo Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/nacl/common/nacl_switches.h ('k') | components/nacl/common/pnacl_types.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/nacl/common/nacl_switches.h" 5 #include "components/nacl/common/nacl_switches.h"
6 6
7 namespace switches { 7 namespace switches {
8 8
9 // Disables crash throttling for Portable Native Client. 9 // Disables crash throttling for Portable Native Client.
10 const char kDisablePnaclCrashThrottling[] = "disable-pnacl-crash-throttling"; 10 const char kDisablePnaclCrashThrottling[] = "disable-pnacl-crash-throttling";
11 11
12 // Enables debugging via RSP over a socket. 12 // Enables debugging via RSP over a socket.
13 const char kEnableNaClDebug[] = "enable-nacl-debug"; 13 const char kEnableNaClDebug[] = "enable-nacl-debug";
14 14
15 // Enables Mojo support for Native Client plugins. 15 // Enables Mojo support for Native Client plugins.
16 const char kEnableNaClMojo[] = "enable-nacl-mojo"; 16 const char kEnableNaClMojo[] = "enable-nacl-mojo";
17 17
18 // Enables Non-SFI mode, in which programs can be run without NaCl's SFI 18 // Enables Non-SFI mode, in which programs can be run without NaCl's SFI
19 // sandbox. 19 // sandbox.
20 const char kEnableNaClNonSfiMode[] = "enable-nacl-nonsfi-mode"; 20 const char kEnableNaClNonSfiMode[] = "enable-nacl-nonsfi-mode";
21 21
22 // Enable use of the Subzero as the PNaCl translator instead of LLC.
23 const char kEnablePNaClSubzero[] = "enable-pnacl-subzero";
24
22 // Value for --type that causes the process to run as a NativeClient broker 25 // Value for --type that causes the process to run as a NativeClient broker
23 // (used for launching NaCl loader processes on 64-bit Windows). 26 // (used for launching NaCl loader processes on 64-bit Windows).
24 const char kNaClBrokerProcess[] = "nacl-broker"; 27 const char kNaClBrokerProcess[] = "nacl-broker";
25 28
26 // Disable sandbox even for non SFI mode. This is particularly unsafe 29 // Disable sandbox even for non SFI mode. This is particularly unsafe
27 // as non SFI NaCl heavily relies on the seccomp sandbox. 30 // as non SFI NaCl heavily relies on the seccomp sandbox.
28 const char kNaClDangerousNoSandboxNonSfi[] = 31 const char kNaClDangerousNoSandboxNonSfi[] =
29 "nacl-dangerous-no-sandbox-nonsfi"; 32 "nacl-dangerous-no-sandbox-nonsfi";
30 33
31 // Uses NaCl manifest URL to choose whether NaCl program will be debugged by 34 // Uses NaCl manifest URL to choose whether NaCl program will be debugged by
(...skipping 21 matching lines...) Expand all
53 const char kNaClLoaderProcess[] = "nacl-loader"; 56 const char kNaClLoaderProcess[] = "nacl-loader";
54 57
55 // Use nacl_helper_nonsfi executable (the new, newlib-based version of the 58 // Use nacl_helper_nonsfi executable (the new, newlib-based version of the
56 // Non-SFI runtime) to run Non-SFI nexe, instead of nacl_helper executable 59 // Non-SFI runtime) to run Non-SFI nexe, instead of nacl_helper executable
57 // (which uses the older, glib-based runtime for Non-SFI mode). 60 // (which uses the older, glib-based runtime for Non-SFI mode).
58 // TODO(hidehiko): Make this default and then remove this flag after 61 // TODO(hidehiko): Make this default and then remove this flag after
59 // nacl_helper_nonsfi is supported. 62 // nacl_helper_nonsfi is supported.
60 const char kUseNaClHelperNonSfi[] = "use-nacl-helper-nonsfi"; 63 const char kUseNaClHelperNonSfi[] = "use-nacl-helper-nonsfi";
61 64
62 } // namespace switches 65 } // namespace switches
OLDNEW
« no previous file with comments | « components/nacl/common/nacl_switches.h ('k') | components/nacl/common/pnacl_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698