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

Side by Side Diff: ppapi/native_client/src/trusted/plugin/arch_x86/sandbox_isa.cc

Issue 10908254: NaCl: Remove the only use of NACL_ARCH_CPU_* #defines (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "native_client/src/trusted/plugin/nexe_arch.h" 5 #include "native_client/src/trusted/plugin/nexe_arch.h"
6 #include "native_client/src/trusted/platform_qualify/nacl_os_qualify.h" 6 #include "native_client/src/trusted/platform_qualify/nacl_os_qualify.h"
7 7
8 namespace { 8 namespace {
9 // The list of supported ISA strings for x86. See issue: 9 // The list of supported ISA strings for x86. See issue:
10 // http://code.google.com/p/nativeclient/issues/detail?id=1040 for more 10 // http://code.google.com/p/nativeclient/issues/detail?id=1040 for more
11 // information. Note that these string are to be case-insensitive compared. 11 // information. Note that these string are to be case-insensitive compared.
12 const char* const kNexeArchX86_32 = "x86-32"; 12 const char* const kNexeArchX86_32 = "x86-32";
13 const char* const kNexeArchX86_64 = "x86-64"; 13 const char* const kNexeArchX86_64 = "x86-64";
14 } // namespace 14 } // namespace
15 15
16 namespace plugin { 16 namespace plugin {
17 const char* GetSandboxISA() { 17 const char* GetSandboxISA() {
18 #if defined(NACL_ARCH_CPU_X86_64) && (defined(NACL_LINUX) || defined(NACL_OSX)) 18 #if (NACL_ARCH(NACL_BUILD_ARCH) == NACL_x86 && NACL_BUILD_SUBARCH == 64) && \
19 (defined(NACL_LINUX) || defined(NACL_OSX))
19 return kNexeArchX86_64; // 64-bit Linux or Mac. 20 return kNexeArchX86_64; // 64-bit Linux or Mac.
20 #else 21 #else
21 return NaClOsIs64BitWindows() == 1 22 return NaClOsIs64BitWindows() == 1
22 ? kNexeArchX86_64 // 64-bit Windows (Chrome, Firefox) 23 ? kNexeArchX86_64 // 64-bit Windows (Chrome, Firefox)
23 : kNexeArchX86_32; // everything else. 24 : kNexeArchX86_32; // everything else.
24 #endif 25 #endif
25 } 26 }
26 } // namespace plugin 27 } // namespace plugin
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698