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

Side by Side Diff: src/globals.h

Issue 136643008: A64: Synchronize with r18256. (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.cc ('k') | src/handles.h » ('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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 # else 194 # else
195 # define V8_INTPTR_C(x) (x) 195 # define V8_INTPTR_C(x) (x)
196 # define V8_PTR_PREFIX "" 196 # define V8_PTR_PREFIX ""
197 # endif // V8_HOST_ARCH_64_BIT 197 # endif // V8_HOST_ARCH_64_BIT
198 #elif V8_CC_MINGW64 198 #elif V8_CC_MINGW64
199 # define V8_UINT64_C(x) (x ## ULL) 199 # define V8_UINT64_C(x) (x ## ULL)
200 # define V8_INT64_C(x) (x ## LL) 200 # define V8_INT64_C(x) (x ## LL)
201 # define V8_INTPTR_C(x) (x ## LL) 201 # define V8_INTPTR_C(x) (x ## LL)
202 # define V8_PTR_PREFIX "I64" 202 # define V8_PTR_PREFIX "I64"
203 #elif V8_HOST_ARCH_64_BIT 203 #elif V8_HOST_ARCH_64_BIT
204 # define V8_UINT64_C(x) (x ## UL) 204 # if V8_OS_MACOSX
205 # define V8_INT64_C(x) (x ## L) 205 # define V8_UINT64_C(x) (x ## ULL)
206 # define V8_INT64_C(x) (x ## LL)
207 # else
208 # define V8_UINT64_C(x) (x ## UL)
209 # define V8_INT64_C(x) (x ## L)
210 # endif
206 # define V8_INTPTR_C(x) (x ## L) 211 # define V8_INTPTR_C(x) (x ## L)
207 # define V8_PTR_PREFIX "l" 212 # define V8_PTR_PREFIX "l"
208 #else 213 #else
209 # define V8_UINT64_C(x) (x ## ULL) 214 # define V8_UINT64_C(x) (x ## ULL)
210 # define V8_INT64_C(x) (x ## LL) 215 # define V8_INT64_C(x) (x ## LL)
211 # define V8_INTPTR_C(x) (x) 216 # define V8_INTPTR_C(x) (x)
212 # define V8_PTR_PREFIX "" 217 # define V8_PTR_PREFIX ""
213 #endif 218 #endif
214 219
215 // The following macro works on both 32 and 64-bit platforms. 220 // The following macro works on both 32 and 64-bit platforms.
216 // Usage: instead of writing 0x1234567890123456 221 // Usage: instead of writing 0x1234567890123456
217 // write V8_2PART_UINT64_C(0x12345678,90123456); 222 // write V8_2PART_UINT64_C(0x12345678,90123456);
218 #define V8_2PART_UINT64_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u)) 223 #define V8_2PART_UINT64_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
219 224
220 #define V8PRIxPTR V8_PTR_PREFIX "x" 225 #define V8PRIxPTR V8_PTR_PREFIX "x"
221 #define V8PRIdPTR V8_PTR_PREFIX "d" 226 #define V8PRIdPTR V8_PTR_PREFIX "d"
222 #define V8PRIuPTR V8_PTR_PREFIX "u" 227 #define V8PRIuPTR V8_PTR_PREFIX "u"
223 228
224 // Fix for Mac OS X defining uintptr_t as "unsigned long": 229 // Fix for Mac OS X defining uintptr_t as "unsigned long":
225 #if defined(__APPLE__) && defined(__MACH__) 230 #if V8_OS_MACOSX
226 #undef V8PRIxPTR 231 #undef V8PRIxPTR
227 #define V8PRIxPTR "lx" 232 #define V8PRIxPTR "lx"
228 #endif 233 #endif
229 234
230 #if (defined(__APPLE__) && defined(__MACH__)) || \ 235 #if V8_OS_MACOSX || defined(__FreeBSD__) || defined(__OpenBSD__)
231 defined(__FreeBSD__) || defined(__OpenBSD__)
232 #define USING_BSD_ABI 236 #define USING_BSD_ABI
233 #endif 237 #endif
234 238
235 // ----------------------------------------------------------------------------- 239 // -----------------------------------------------------------------------------
236 // Constants 240 // Constants
237 241
238 const int KB = 1024; 242 const int KB = 1024;
239 const int MB = KB * KB; 243 const int MB = KB * KB;
240 const int GB = KB * KB * KB; 244 const int GB = KB * KB * KB;
241 const int kMaxInt = 0x7FFFFFFF; 245 const int kMaxInt = 0x7FFFFFFF;
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 // the backend, so both modes are represented by the kStrictMode value. 427 // the backend, so both modes are represented by the kStrictMode value.
424 enum StrictModeFlag { 428 enum StrictModeFlag {
425 kNonStrictMode, 429 kNonStrictMode,
426 kStrictMode 430 kStrictMode
427 }; 431 };
428 432
429 433
430 } } // namespace v8::internal 434 } } // namespace v8::internal
431 435
432 #endif // V8_GLOBALS_H_ 436 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/frames.cc ('k') | src/handles.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698