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

Side by Side Diff: src/globals.h

Issue 181453002: Reset trunk to 3.24.35.4 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 6 years, 9 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/global-handles.cc ('k') | src/harmony-math.js » ('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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 #define V8_HOST_CAN_READ_UNALIGNED 1 64 #define V8_HOST_CAN_READ_UNALIGNED 1
65 #else 65 #else
66 #define V8_HOST_ARCH_X64 1 66 #define V8_HOST_ARCH_X64 1
67 #define V8_HOST_ARCH_64_BIT 1 67 #define V8_HOST_ARCH_64_BIT 1
68 #define V8_HOST_CAN_READ_UNALIGNED 1 68 #define V8_HOST_CAN_READ_UNALIGNED 1
69 #endif // __native_client__ 69 #endif // __native_client__
70 #elif defined(_M_IX86) || defined(__i386__) 70 #elif defined(_M_IX86) || defined(__i386__)
71 #define V8_HOST_ARCH_IA32 1 71 #define V8_HOST_ARCH_IA32 1
72 #define V8_HOST_ARCH_32_BIT 1 72 #define V8_HOST_ARCH_32_BIT 1
73 #define V8_HOST_CAN_READ_UNALIGNED 1 73 #define V8_HOST_CAN_READ_UNALIGNED 1
74 #elif defined(__AARCH64EL__)
75 #define V8_HOST_ARCH_A64 1
76 #define V8_HOST_ARCH_64_BIT 1
77 #define V8_HOST_CAN_READ_UNALIGNED 1
78 #elif defined(__ARMEL__) 74 #elif defined(__ARMEL__)
79 #define V8_HOST_ARCH_ARM 1 75 #define V8_HOST_ARCH_ARM 1
80 #define V8_HOST_ARCH_32_BIT 1 76 #define V8_HOST_ARCH_32_BIT 1
81 #elif defined(__MIPSEL__) 77 #elif defined(__MIPSEL__)
82 #define V8_HOST_ARCH_MIPS 1 78 #define V8_HOST_ARCH_MIPS 1
83 #define V8_HOST_ARCH_32_BIT 1 79 #define V8_HOST_ARCH_32_BIT 1
84 #else 80 #else
85 #error "Host architecture was not detected as supported by v8" 81 #error Host architecture was not detected as supported by v8
86 #endif 82 #endif
87 83
88 #if defined(__ARM_ARCH_7A__) || \ 84 #if defined(__ARM_ARCH_7A__) || \
89 defined(__ARM_ARCH_7R__) || \ 85 defined(__ARM_ARCH_7R__) || \
90 defined(__ARM_ARCH_7__) 86 defined(__ARM_ARCH_7__)
91 # define CAN_USE_ARMV7_INSTRUCTIONS 1 87 # define CAN_USE_ARMV7_INSTRUCTIONS 1
92 # ifndef CAN_USE_VFP3_INSTRUCTIONS 88 # ifndef CAN_USE_VFP3_INSTRUCTIONS
93 # define CAN_USE_VFP3_INSTRUCTIONS 89 # define CAN_USE_VFP3_INSTRUCTIONS
94 # endif 90 # endif
95 #endif 91 #endif
96 92
97 93
98 // Target architecture detection. This may be set externally. If not, detect 94 // Target architecture detection. This may be set externally. If not, detect
99 // in the same way as the host architecture, that is, target the native 95 // in the same way as the host architecture, that is, target the native
100 // environment as presented by the compiler. 96 // environment as presented by the compiler.
101 #if !V8_TARGET_ARCH_X64 && !V8_TARGET_ARCH_IA32 && \ 97 #if !V8_TARGET_ARCH_X64 && !V8_TARGET_ARCH_IA32 && \
102 !V8_TARGET_ARCH_ARM && !V8_TARGET_ARCH_A64 && !V8_TARGET_ARCH_MIPS 98 !V8_TARGET_ARCH_ARM && !V8_TARGET_ARCH_MIPS
103 #if defined(_M_X64) || defined(__x86_64__) 99 #if defined(_M_X64) || defined(__x86_64__)
104 #define V8_TARGET_ARCH_X64 1 100 #define V8_TARGET_ARCH_X64 1
105 #elif defined(_M_IX86) || defined(__i386__) 101 #elif defined(_M_IX86) || defined(__i386__)
106 #define V8_TARGET_ARCH_IA32 1 102 #define V8_TARGET_ARCH_IA32 1
107 #elif defined(__AARCH64EL__)
108 #define V8_TARGET_ARCH_A64 1
109 #elif defined(__ARMEL__) 103 #elif defined(__ARMEL__)
110 #define V8_TARGET_ARCH_ARM 1 104 #define V8_TARGET_ARCH_ARM 1
111 #elif defined(__MIPSEL__) 105 #elif defined(__MIPSEL__)
112 #define V8_TARGET_ARCH_MIPS 1 106 #define V8_TARGET_ARCH_MIPS 1
113 #else 107 #else
114 #error Target architecture was not detected as supported by v8 108 #error Target architecture was not detected as supported by v8
115 #endif 109 #endif
116 #endif 110 #endif
117 111
118 // Check for supported combinations of host and target architectures. 112 // Check for supported combinations of host and target architectures.
119 #if V8_TARGET_ARCH_IA32 && !V8_HOST_ARCH_IA32 113 #if V8_TARGET_ARCH_IA32 && !V8_HOST_ARCH_IA32
120 #error Target architecture ia32 is only supported on ia32 host 114 #error Target architecture ia32 is only supported on ia32 host
121 #endif 115 #endif
122 #if V8_TARGET_ARCH_X64 && !V8_HOST_ARCH_X64 116 #if V8_TARGET_ARCH_X64 && !V8_HOST_ARCH_X64
123 #error Target architecture x64 is only supported on x64 host 117 #error Target architecture x64 is only supported on x64 host
124 #endif 118 #endif
125 #if (V8_TARGET_ARCH_ARM && !(V8_HOST_ARCH_IA32 || V8_HOST_ARCH_ARM)) 119 #if (V8_TARGET_ARCH_ARM && !(V8_HOST_ARCH_IA32 || V8_HOST_ARCH_ARM))
126 #error Target architecture arm is only supported on arm and ia32 host 120 #error Target architecture arm is only supported on arm and ia32 host
127 #endif 121 #endif
128 #if (V8_TARGET_ARCH_A64 && !(V8_HOST_ARCH_X64 || V8_HOST_ARCH_A64))
129 #error Target architecture a64 is only supported on a64 and x64 host
130 #endif
131 #if (V8_TARGET_ARCH_MIPS && !(V8_HOST_ARCH_IA32 || V8_HOST_ARCH_MIPS)) 122 #if (V8_TARGET_ARCH_MIPS && !(V8_HOST_ARCH_IA32 || V8_HOST_ARCH_MIPS))
132 #error Target architecture mips is only supported on mips and ia32 host 123 #error Target architecture mips is only supported on mips and ia32 host
133 #endif 124 #endif
134 125
135 // Determine whether we are running in a simulated environment. 126 // Determine whether we are running in a simulated environment.
136 // Setting USE_SIMULATOR explicitly from the build script will force 127 // Setting USE_SIMULATOR explicitly from the build script will force
137 // the use of a simulated environment. 128 // the use of a simulated environment.
138 #if !defined(USE_SIMULATOR) 129 #if !defined(USE_SIMULATOR)
139 #if (V8_TARGET_ARCH_A64 && !V8_HOST_ARCH_A64)
140 #define USE_SIMULATOR 1
141 #endif
142 #if (V8_TARGET_ARCH_ARM && !V8_HOST_ARCH_ARM) 130 #if (V8_TARGET_ARCH_ARM && !V8_HOST_ARCH_ARM)
143 #define USE_SIMULATOR 1 131 #define USE_SIMULATOR 1
144 #endif 132 #endif
145 #if (V8_TARGET_ARCH_MIPS && !V8_HOST_ARCH_MIPS) 133 #if (V8_TARGET_ARCH_MIPS && !V8_HOST_ARCH_MIPS)
146 #define USE_SIMULATOR 1 134 #define USE_SIMULATOR 1
147 #endif 135 #endif
148 #endif 136 #endif
149 137
150 // Determine architecture endiannes (we only support little-endian). 138 // Determine architecture endiannes (we only support little-endian).
151 #if V8_TARGET_ARCH_IA32 139 #if V8_TARGET_ARCH_IA32
152 #define V8_TARGET_LITTLE_ENDIAN 1 140 #define V8_TARGET_LITTLE_ENDIAN 1
153 #elif V8_TARGET_ARCH_X64 141 #elif V8_TARGET_ARCH_X64
154 #define V8_TARGET_LITTLE_ENDIAN 1 142 #define V8_TARGET_LITTLE_ENDIAN 1
155 #elif V8_TARGET_ARCH_ARM 143 #elif V8_TARGET_ARCH_ARM
156 #define V8_TARGET_LITTLE_ENDIAN 1 144 #define V8_TARGET_LITTLE_ENDIAN 1
157 #elif V8_TARGET_ARCH_A64
158 #define V8_TARGET_LITTLE_ENDIAN 1
159 #elif V8_TARGET_ARCH_MIPS 145 #elif V8_TARGET_ARCH_MIPS
160 #define V8_TARGET_LITTLE_ENDIAN 1 146 #define V8_TARGET_LITTLE_ENDIAN 1
161 #else 147 #else
162 #error Unknown target architecture endiannes 148 #error Unknown target architecture endiannes
163 #endif 149 #endif
164 150
165 // Support for alternative bool type. This is only enabled if the code is 151 // Support for alternative bool type. This is only enabled if the code is
166 // compiled with USE_MYBOOL defined. This catches some nasty type bugs. 152 // compiled with USE_MYBOOL defined. This catches some nasty type bugs.
167 // For instance, 'bool b = "false";' results in b == true! This is a hidden 153 // For instance, 'bool b = "false";' results in b == true! This is a hidden
168 // source of bugs. 154 // source of bugs.
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 // the backend, so both modes are represented by the kStrictMode value. 413 // the backend, so both modes are represented by the kStrictMode value.
428 enum StrictModeFlag { 414 enum StrictModeFlag {
429 kNonStrictMode, 415 kNonStrictMode,
430 kStrictMode 416 kStrictMode
431 }; 417 };
432 418
433 419
434 } } // namespace v8::internal 420 } } // namespace v8::internal
435 421
436 #endif // V8_GLOBALS_H_ 422 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/global-handles.cc ('k') | src/harmony-math.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698