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 |
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 Loading... |
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_ |
OLD | NEW |