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

Side by Side Diff: src/globals.h

Issue 96623002: Use ULL and LL suffix for uint64_t and int64_t constants on Mac (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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 | « no previous file | 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 # else 180 # else
181 # define V8_INTPTR_C(x) (x) 181 # define V8_INTPTR_C(x) (x)
182 # define V8_PTR_PREFIX "" 182 # define V8_PTR_PREFIX ""
183 # endif // V8_HOST_ARCH_64_BIT 183 # endif // V8_HOST_ARCH_64_BIT
184 #elif V8_CC_MINGW64 184 #elif V8_CC_MINGW64
185 # define V8_UINT64_C(x) (x ## ULL) 185 # define V8_UINT64_C(x) (x ## ULL)
186 # define V8_INT64_C(x) (x ## LL) 186 # define V8_INT64_C(x) (x ## LL)
187 # define V8_INTPTR_C(x) (x ## LL) 187 # define V8_INTPTR_C(x) (x ## LL)
188 # define V8_PTR_PREFIX "I64" 188 # define V8_PTR_PREFIX "I64"
189 #elif V8_HOST_ARCH_64_BIT 189 #elif V8_HOST_ARCH_64_BIT
190 # define V8_UINT64_C(x) (x ## UL) 190 # if defined(__APPLE__) && defined(__MACH__)
Benedikt Meurer 2013/12/02 12:00:06 Please use #if V8_OS_MACOSX instead #if defined(__
haitao.feng 2013/12/02 12:24:46 Done.
191 # define V8_INT64_C(x) (x ## L) 191 # define V8_UINT64_C(x) (x ## ULL)
192 # define V8_INT64_C(x) (x ## LL)
193 # else
194 # define V8_UINT64_C(x) (x ## UL)
195 # define V8_INT64_C(x) (x ## L)
196 # endif
192 # define V8_INTPTR_C(x) (x ## L) 197 # define V8_INTPTR_C(x) (x ## L)
193 # define V8_PTR_PREFIX "l" 198 # define V8_PTR_PREFIX "l"
194 #else 199 #else
195 # define V8_UINT64_C(x) (x ## ULL) 200 # define V8_UINT64_C(x) (x ## ULL)
196 # define V8_INT64_C(x) (x ## LL) 201 # define V8_INT64_C(x) (x ## LL)
197 # define V8_INTPTR_C(x) (x) 202 # define V8_INTPTR_C(x) (x)
198 # define V8_PTR_PREFIX "" 203 # define V8_PTR_PREFIX ""
199 #endif 204 #endif
200 205
201 // The following macro works on both 32 and 64-bit platforms. 206 // The following macro works on both 32 and 64-bit platforms.
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 // the backend, so both modes are represented by the kStrictMode value. 414 // the backend, so both modes are represented by the kStrictMode value.
410 enum StrictModeFlag { 415 enum StrictModeFlag {
411 kNonStrictMode, 416 kNonStrictMode,
412 kStrictMode 417 kStrictMode
413 }; 418 };
414 419
415 420
416 } } // namespace v8::internal 421 } } // namespace v8::internal
417 422
418 #endif // V8_GLOBALS_H_ 423 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698