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

Side by Side Diff: src/globals.h

Issue 13841011: Enable Native Client build of V8. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: A few nits Created 7 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 | « build/common.gypi ('k') | 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 #include "../include/v8stdint.h" 60 #include "../include/v8stdint.h"
61 61
62 namespace v8 { 62 namespace v8 {
63 namespace internal { 63 namespace internal {
64 64
65 // Processor architecture detection. For more info on what's defined, see: 65 // Processor architecture detection. For more info on what's defined, see:
66 // http://msdn.microsoft.com/en-us/library/b0084kay.aspx 66 // http://msdn.microsoft.com/en-us/library/b0084kay.aspx
67 // http://www.agner.org/optimize/calling_conventions.pdf 67 // http://www.agner.org/optimize/calling_conventions.pdf
68 // or with gcc, run: "echo | gcc -E -dM -" 68 // or with gcc, run: "echo | gcc -E -dM -"
69 #if defined(_M_X64) || defined(__x86_64__) 69 #if defined(_M_X64) || defined(__x86_64__)
70 #if defined(__native_client__)
71 // For Native Client builds of V8, use V8_TARGET_ARCH_ARM, so that V8
72 // generates ARM machine code, together with a portable ARM simulator
73 // compiled for the host architecture in question.
74 //
75 // Since Native Client is ILP-32 on all architectures we use
76 // V8_HOST_ARCH_IA32 on both 32- and 64-bit x86.
77 #define V8_HOST_ARCH_IA32 1
78 #define V8_HOST_ARCH_32_BIT 1
79 #define V8_HOST_CAN_READ_UNALIGNED 1
80 #else
70 #define V8_HOST_ARCH_X64 1 81 #define V8_HOST_ARCH_X64 1
71 #define V8_HOST_ARCH_64_BIT 1 82 #define V8_HOST_ARCH_64_BIT 1
72 #define V8_HOST_CAN_READ_UNALIGNED 1 83 #define V8_HOST_CAN_READ_UNALIGNED 1
84 #endif // __native_client__
73 #elif defined(_M_IX86) || defined(__i386__) 85 #elif defined(_M_IX86) || defined(__i386__)
74 #define V8_HOST_ARCH_IA32 1 86 #define V8_HOST_ARCH_IA32 1
75 #define V8_HOST_ARCH_32_BIT 1 87 #define V8_HOST_ARCH_32_BIT 1
76 #define V8_HOST_CAN_READ_UNALIGNED 1 88 #define V8_HOST_CAN_READ_UNALIGNED 1
77 #elif defined(__ARMEL__) 89 #elif defined(__ARMEL__)
78 #define V8_HOST_ARCH_ARM 1 90 #define V8_HOST_ARCH_ARM 1
79 #define V8_HOST_ARCH_32_BIT 1 91 #define V8_HOST_ARCH_32_BIT 1
80 // Some CPU-OS combinations allow unaligned access on ARM. We assume 92 // Some CPU-OS combinations allow unaligned access on ARM. We assume
81 // that unaligned accesses are not allowed unless the build system 93 // that unaligned accesses are not allowed unless the build system
82 // defines the CAN_USE_UNALIGNED_ACCESSES macro to be non-zero. 94 // defines the CAN_USE_UNALIGNED_ACCESSES macro to be non-zero.
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 // the backend, so both modes are represented by the kStrictMode value. 406 // the backend, so both modes are represented by the kStrictMode value.
395 enum StrictModeFlag { 407 enum StrictModeFlag {
396 kNonStrictMode, 408 kNonStrictMode,
397 kStrictMode 409 kStrictMode
398 }; 410 };
399 411
400 412
401 } } // namespace v8::internal 413 } } // namespace v8::internal
402 414
403 #endif // V8_GLOBALS_H_ 415 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698