OLD | NEW |
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 Loading... |
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 | |
110 // Code-point values in Unicode 4.0 are 21 bits wide. | 106 // Code-point values in Unicode 4.0 are 21 bits wide. |
111 typedef uint16_t uc16; | 107 typedef uint16_t uc16; |
112 typedef int32_t uc32; | 108 typedef int32_t uc32; |
113 | 109 |
114 // ----------------------------------------------------------------------------- | 110 // ----------------------------------------------------------------------------- |
115 // Constants | 111 // Constants |
116 | 112 |
117 const int KB = 1024; | 113 const int KB = 1024; |
118 const int MB = KB * KB; | 114 const int MB = KB * KB; |
119 const int GB = KB * KB * KB; | 115 const int GB = KB * KB * KB; |
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 | 566 |
571 Dest dest; | 567 Dest dest; |
572 memcpy(&dest, &source, sizeof(dest)); | 568 memcpy(&dest, &source, sizeof(dest)); |
573 return dest; | 569 return dest; |
574 } | 570 } |
575 | 571 |
576 | 572 |
577 } } // namespace v8::internal | 573 } } // namespace v8::internal |
578 | 574 |
579 #endif // V8_GLOBALS_H_ | 575 #endif // V8_GLOBALS_H_ |
OLD | NEW |