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

Side by Side Diff: src/arm64/constants-arm64.h

Issue 404333003: Avoid redundent redefinition of __STDC_FORMAT_MACROS when building with clang (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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 | « no previous file | src/mips64/constants-mips64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_ARM64_CONSTANTS_ARM64_H_ 5 #ifndef V8_ARM64_CONSTANTS_ARM64_H_
6 #define V8_ARM64_CONSTANTS_ARM64_H_ 6 #define V8_ARM64_CONSTANTS_ARM64_H_
7 7
8 8
9 // Assert that this is an LP64 system. 9 // Assert that this is an LP64 system.
10 STATIC_ASSERT(sizeof(int) == sizeof(int32_t)); // NOLINT(runtime/sizeof) 10 STATIC_ASSERT(sizeof(int) == sizeof(int32_t)); // NOLINT(runtime/sizeof)
11 STATIC_ASSERT(sizeof(long) == sizeof(int64_t)); // NOLINT(runtime/int) 11 STATIC_ASSERT(sizeof(long) == sizeof(int64_t)); // NOLINT(runtime/int)
12 STATIC_ASSERT(sizeof(void *) == sizeof(int64_t)); // NOLINT(runtime/sizeof) 12 STATIC_ASSERT(sizeof(void *) == sizeof(int64_t)); // NOLINT(runtime/sizeof)
13 STATIC_ASSERT(sizeof(1) == sizeof(int32_t)); // NOLINT(runtime/sizeof) 13 STATIC_ASSERT(sizeof(1) == sizeof(int32_t)); // NOLINT(runtime/sizeof)
14 STATIC_ASSERT(sizeof(1L) == sizeof(int64_t)); // NOLINT(runtime/sizeof) 14 STATIC_ASSERT(sizeof(1L) == sizeof(int64_t)); // NOLINT(runtime/sizeof)
15 15
16 16
17 // Get the standard printf format macros for C99 stdint types. 17 // Get the standard printf format macros for C99 stdint types.
18 #ifndef __STDC_FORMAT_MACROS
18 #define __STDC_FORMAT_MACROS 19 #define __STDC_FORMAT_MACROS
20 #endif
19 #include <inttypes.h> 21 #include <inttypes.h>
20 22
21 23
22 namespace v8 { 24 namespace v8 {
23 namespace internal { 25 namespace internal {
24 26
25 27
26 const unsigned kInstructionSize = 4; 28 const unsigned kInstructionSize = 4;
27 const unsigned kInstructionSizeLog2 = 2; 29 const unsigned kInstructionSizeLog2 = 2;
28 const unsigned kLoadLiteralScaleLog2 = 2; 30 const unsigned kLoadLiteralScaleLog2 = 2;
(...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after
1241 }; 1243 };
1242 1244
1243 enum UnallocatedOp { 1245 enum UnallocatedOp {
1244 UnallocatedFixed = 0x00000000, 1246 UnallocatedFixed = 0x00000000,
1245 UnallocatedFMask = 0x00000000 1247 UnallocatedFMask = 0x00000000
1246 }; 1248 };
1247 1249
1248 } } // namespace v8::internal 1250 } } // namespace v8::internal
1249 1251
1250 #endif // V8_ARM64_CONSTANTS_ARM64_H_ 1252 #endif // V8_ARM64_CONSTANTS_ARM64_H_
OLDNEW
« no previous file with comments | « no previous file | src/mips64/constants-mips64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698