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

Side by Side Diff: src/globals.h

Issue 619005: Fast algorithm for double->string conversion. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 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
OLDNEW
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 #define V8_PTR_PREFIX "ll" 91 #define V8_PTR_PREFIX "ll"
92 #else // _MSC_VER 92 #else // _MSC_VER
93 #define V8_UINT64_C(x) (x ## UL) 93 #define V8_UINT64_C(x) (x ## UL)
94 #define V8_INT64_C(x) (x ## L) 94 #define V8_INT64_C(x) (x ## L)
95 #define V8_PTR_PREFIX "l" 95 #define V8_PTR_PREFIX "l"
96 #endif // _MSC_VER 96 #endif // _MSC_VER
97 #else // V8_HOST_ARCH_64_BIT 97 #else // V8_HOST_ARCH_64_BIT
98 #define V8_PTR_PREFIX "" 98 #define V8_PTR_PREFIX ""
99 #endif // V8_HOST_ARCH_64_BIT 99 #endif // V8_HOST_ARCH_64_BIT
100 100
101 // The following macro works on both 32 and 64-bit platforms.
102 // Usage: instead of writing 0x1234567890123456
103 // write GRISU_UINT64_C(0x12345678,90123456);
Lasse Reichstein 2010/02/22 11:31:36 GRISU -> V8_2PART
Florian Loitsch 2010/02/22 15:52:53 Done.
floitsch 2012/04/10 15:54:34 Done.
104 #define V8_2PART_UINT64_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x ## b))
Lasse Reichstein 2010/02/22 11:31:36 Put a "## u" after the b to make it an unsigned co
Florian Loitsch 2010/02/22 15:52:53 Done.
floitsch 2012/04/10 15:54:34 Done.
105
101 #define V8PRIxPTR V8_PTR_PREFIX "x" 106 #define V8PRIxPTR V8_PTR_PREFIX "x"
102 #define V8PRIdPTR V8_PTR_PREFIX "d" 107 #define V8PRIdPTR V8_PTR_PREFIX "d"
103 108
104 // Fix for Mac OS X defining uintptr_t as "unsigned long": 109 // Fix for Mac OS X defining uintptr_t as "unsigned long":
105 #if defined(__APPLE__) && defined(__MACH__) 110 #if defined(__APPLE__) && defined(__MACH__)
106 #undef V8PRIxPTR 111 #undef V8PRIxPTR
107 #define V8PRIxPTR "lx" 112 #define V8PRIxPTR "lx"
108 #endif 113 #endif
109 114
110 #if defined(__APPLE__) && defined(__MACH__) 115 #if defined(__APPLE__) && defined(__MACH__)
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 CMOV = 15, // x86 616 CMOV = 15, // x86
612 RDTSC = 4, // x86 617 RDTSC = 4, // x86
613 CPUID = 10, // x86 618 CPUID = 10, // x86
614 VFP3 = 1, // ARM 619 VFP3 = 1, // ARM
615 ARMv7 = 2, // ARM 620 ARMv7 = 2, // ARM
616 SAHF = 0}; // x86 621 SAHF = 0}; // x86
617 622
618 } } // namespace v8::internal 623 } } // namespace v8::internal
619 624
620 #endif // V8_GLOBALS_H_ 625 #endif // V8_GLOBALS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698