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

Side by Side Diff: src/globals.h

Issue 148153010: Synchronize with r15701. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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/frames-inl.h ('k') | src/handles.cc » ('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 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 #define V8_HOST_ARCH_IA32 1 86 #define V8_HOST_ARCH_IA32 1
87 #define V8_HOST_ARCH_32_BIT 1 87 #define V8_HOST_ARCH_32_BIT 1
88 #define V8_HOST_CAN_READ_UNALIGNED 1 88 #define V8_HOST_CAN_READ_UNALIGNED 1
89 #elif defined(__AARCH64EL__) 89 #elif defined(__AARCH64EL__)
90 #define V8_HOST_ARCH_A64 1 90 #define V8_HOST_ARCH_A64 1
91 #define V8_HOST_ARCH_64_BIT 1 91 #define V8_HOST_ARCH_64_BIT 1
92 #define V8_HOST_CAN_READ_UNALIGNED 1 92 #define V8_HOST_CAN_READ_UNALIGNED 1
93 #elif defined(__ARMEL__) 93 #elif defined(__ARMEL__)
94 #define V8_HOST_ARCH_ARM 1 94 #define V8_HOST_ARCH_ARM 1
95 #define V8_HOST_ARCH_32_BIT 1 95 #define V8_HOST_ARCH_32_BIT 1
96 // Some CPU-OS combinations allow unaligned access on ARM. We assume
97 // that unaligned accesses are not allowed unless the build system
98 // defines the CAN_USE_UNALIGNED_ACCESSES macro to be non-zero.
99 #if CAN_USE_UNALIGNED_ACCESSES
100 #define V8_HOST_CAN_READ_UNALIGNED 1
101 #endif
102 #elif defined(__MIPSEL__) 96 #elif defined(__MIPSEL__)
103 #define V8_HOST_ARCH_MIPS 1 97 #define V8_HOST_ARCH_MIPS 1
104 #define V8_HOST_ARCH_32_BIT 1 98 #define V8_HOST_ARCH_32_BIT 1
105 #else 99 #else
106 #error "Host architecture was not detected as supported by v8" 100 #error "Host architecture was not detected as supported by v8"
107 #endif 101 #endif
108 102
103 #if defined(__ARM_ARCH_7A__) || \
104 defined(__ARM_ARCH_7R__) || \
105 defined(__ARM_ARCH_7__)
106 # define CAN_USE_ARMV7_INSTRUCTIONS 1
107 # ifndef CAN_USE_VFP3_INSTRUCTIONS
108 # define CAN_USE_VFP3_INSTRUCTIONS
109 # endif
110 #endif
111
112
109 // Target architecture detection. This may be set externally. If not, detect 113 // Target architecture detection. This may be set externally. If not, detect
110 // in the same way as the host architecture, that is, target the native 114 // in the same way as the host architecture, that is, target the native
111 // environment as presented by the compiler. 115 // environment as presented by the compiler.
112 #if !V8_TARGET_ARCH_X64 && !V8_TARGET_ARCH_IA32 && \ 116 #if !V8_TARGET_ARCH_X64 && !V8_TARGET_ARCH_IA32 && \
113 !V8_TARGET_ARCH_ARM && !V8_TARGET_ARCH_A64 && !V8_TARGET_ARCH_MIPS 117 !V8_TARGET_ARCH_ARM && !V8_TARGET_ARCH_A64 && !V8_TARGET_ARCH_MIPS
114 #if defined(_M_X64) || defined(__x86_64__) 118 #if defined(_M_X64) || defined(__x86_64__)
115 #define V8_TARGET_ARCH_X64 1 119 #define V8_TARGET_ARCH_X64 1
116 #elif defined(_M_IX86) || defined(__i386__) 120 #elif defined(_M_IX86) || defined(__i386__)
117 #define V8_TARGET_ARCH_IA32 1 121 #define V8_TARGET_ARCH_IA32 1
118 #elif defined(__AARCH64EL__) 122 #elif defined(__AARCH64EL__)
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 // the backend, so both modes are represented by the kStrictMode value. 447 // the backend, so both modes are represented by the kStrictMode value.
444 enum StrictModeFlag { 448 enum StrictModeFlag {
445 kNonStrictMode, 449 kNonStrictMode,
446 kStrictMode 450 kStrictMode
447 }; 451 };
448 452
449 453
450 } } // namespace v8::internal 454 } } // namespace v8::internal
451 455
452 #endif // V8_GLOBALS_H_ 456 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/frames-inl.h ('k') | src/handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698