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

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

Issue 7799028: Remove src/trusted/plugin (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: fix gyp file for necessary -I Created 9 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 | « src/trusted/plugin/arch_arm/sandbox_isa.cc ('k') | src/trusted/plugin/array_ppapi.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2010 The Native Client Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can
3 // be found in the LICENSE file.
4
5 #include "native_client/src/trusted/plugin/nexe_arch.h"
6 #include "native_client/src/trusted/platform_qualify/nacl_os_qualify.h"
7
8 namespace {
9 // The list of supported ISA strings for x86. See issue:
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.
12 const char* const kNexeArchX86_32 = "x86-32";
13 const char* const kNexeArchX86_64 = "x86-64";
14 } // namespace
15
16 namespace plugin {
17 const char* GetSandboxISA() {
18 #if defined(NACL_ARCH_CPU_X86_64) && (defined(NACL_LINUX) || defined(NACL_OSX))
19 return kNexeArchX86_64; // 64-bit Linux or Mac.
20 #else
21 return NaClOsIs64BitWindows() == 1
22 ? kNexeArchX86_64 // 64-bit Windows (Chrome, Firefox)
23 : kNexeArchX86_32; // everything else.
24 #endif
25 }
26 } // namespace plugin
OLDNEW
« no previous file with comments | « src/trusted/plugin/arch_arm/sandbox_isa.cc ('k') | src/trusted/plugin/array_ppapi.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698