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

Side by Side Diff: src/globals.h

Issue 109016: Changed definition of INT64_C and UINT64_C to use the one in stdint.h. (Closed)
Patch Set: Created 11 years, 7 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
« no previous file with comments | « include/v8.h ('k') | 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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #define bool __my_bool__ // use 'indirection' to avoid name clashes 47 #define bool __my_bool__ // use 'indirection' to avoid name clashes
48 #endif 48 #endif
49 49
50 typedef uint8_t byte; 50 typedef uint8_t byte;
51 typedef byte* Address; 51 typedef byte* Address;
52 52
53 // Define macros for writing 64-bit constants and pointer-size constants. 53 // Define macros for writing 64-bit constants and pointer-size constants.
54 #ifdef _MSC_VER 54 #ifdef _MSC_VER
55 #define UINT64_C(x) (x ## UI64) 55 #define UINT64_C(x) (x ## UI64)
56 #define INT64_C(x) (x ## I64) 56 #define INT64_C(x) (x ## I64)
57 #else
58 #define UINT64_C(x) (x ## ULL)
59 #define INT64_C(x) (x ## LL)
60 #endif 57 #endif
61 58
62 // Code-point values in Unicode 4.0 are 21 bits wide. 59 // Code-point values in Unicode 4.0 are 21 bits wide.
63 typedef uint16_t uc16; 60 typedef uint16_t uc16;
64 typedef int32_t uc32; 61 typedef int32_t uc32;
65 62
66 #if defined(V8_ARCH_IA32) || defined(V8_ARCH_X64) 63 #if defined(V8_ARCH_IA32) || defined(V8_ARCH_X64)
67 #define CAN_READ_UNALIGNED 1 64 #define CAN_READ_UNALIGNED 1
68 #endif 65 #endif
69 66
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 506
510 Dest dest; 507 Dest dest;
511 memcpy(&dest, &source, sizeof(dest)); 508 memcpy(&dest, &source, sizeof(dest));
512 return dest; 509 return dest;
513 } 510 }
514 511
515 512
516 } } // namespace v8::internal 513 } } // namespace v8::internal
517 514
518 #endif // V8_GLOBALS_H_ 515 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « include/v8.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698