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

Side by Side Diff: src/globals.h

Issue 341082: Reverting 3174. Aka reapplying 3150, 3151 and 3159. Aka api accessor (Closed)
Patch Set: Created 11 years, 1 month 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 | « 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 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 #define V8PRIxPTR V8_PTR_PREFIX "x" 97 #define V8PRIxPTR V8_PTR_PREFIX "x"
98 #define V8PRIdPTR V8_PTR_PREFIX "d" 98 #define V8PRIdPTR V8_PTR_PREFIX "d"
99 99
100 // Fix for Mac OS X defining uintptr_t as "unsigned long": 100 // Fix for Mac OS X defining uintptr_t as "unsigned long":
101 #if defined(__APPLE__) && defined(__MACH__) 101 #if defined(__APPLE__) && defined(__MACH__)
102 #undef V8PRIxPTR 102 #undef V8PRIxPTR
103 #define V8PRIxPTR "lx" 103 #define V8PRIxPTR "lx"
104 #endif 104 #endif
105 105
106 #if defined(__APPLE__) && defined(__MACH__)
107 #define USING_MAC_ABI
108 #endif
109
106 // Code-point values in Unicode 4.0 are 21 bits wide. 110 // Code-point values in Unicode 4.0 are 21 bits wide.
107 typedef uint16_t uc16; 111 typedef uint16_t uc16;
108 typedef int32_t uc32; 112 typedef int32_t uc32;
109 113
110 // ----------------------------------------------------------------------------- 114 // -----------------------------------------------------------------------------
111 // Constants 115 // Constants
112 116
113 const int KB = 1024; 117 const int KB = 1024;
114 const int MB = KB * KB; 118 const int MB = KB * KB;
115 const int GB = KB * KB * KB; 119 const int GB = KB * KB * KB;
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 570
567 Dest dest; 571 Dest dest;
568 memcpy(&dest, &source, sizeof(dest)); 572 memcpy(&dest, &source, sizeof(dest));
569 return dest; 573 return dest;
570 } 574 }
571 575
572 576
573 } } // namespace v8::internal 577 } } // namespace v8::internal
574 578
575 #endif // V8_GLOBALS_H_ 579 #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