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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 | 105 |
106 #define V8PRIxPTR V8_PTR_PREFIX "x" | 106 #define V8PRIxPTR V8_PTR_PREFIX "x" |
107 #define V8PRIdPTR V8_PTR_PREFIX "d" | 107 #define V8PRIdPTR V8_PTR_PREFIX "d" |
108 | 108 |
109 // Fix for Mac OS X defining uintptr_t as "unsigned long": | 109 // Fix for Mac OS X defining uintptr_t as "unsigned long": |
110 #if defined(__APPLE__) && defined(__MACH__) | 110 #if defined(__APPLE__) && defined(__MACH__) |
111 #undef V8PRIxPTR | 111 #undef V8PRIxPTR |
112 #define V8PRIxPTR "lx" | 112 #define V8PRIxPTR "lx" |
113 #endif | 113 #endif |
114 | 114 |
115 #if defined(__APPLE__) && defined(__MACH__) | 115 #if (defined(__APPLE__) && defined(__MACH__)) || \ |
116 #define USING_MAC_ABI | 116 defined(__FreeBSD__) || defined(__OpenBSD__) |
| 117 #define USING_BSD_ABI |
117 #endif | 118 #endif |
118 | 119 |
119 // Code-point values in Unicode 4.0 are 21 bits wide. | 120 // Code-point values in Unicode 4.0 are 21 bits wide. |
120 typedef uint16_t uc16; | 121 typedef uint16_t uc16; |
121 typedef int32_t uc32; | 122 typedef int32_t uc32; |
122 | 123 |
123 // ----------------------------------------------------------------------------- | 124 // ----------------------------------------------------------------------------- |
124 // Constants | 125 // Constants |
125 | 126 |
126 const int KB = 1024; | 127 const int KB = 1024; |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 CMOV = 15, // x86 | 599 CMOV = 15, // x86 |
599 RDTSC = 4, // x86 | 600 RDTSC = 4, // x86 |
600 CPUID = 10, // x86 | 601 CPUID = 10, // x86 |
601 VFP3 = 1, // ARM | 602 VFP3 = 1, // ARM |
602 ARMv7 = 2, // ARM | 603 ARMv7 = 2, // ARM |
603 SAHF = 0}; // x86 | 604 SAHF = 0}; // x86 |
604 | 605 |
605 } } // namespace v8::internal | 606 } } // namespace v8::internal |
606 | 607 |
607 #endif // V8_GLOBALS_H_ | 608 #endif // V8_GLOBALS_H_ |
OLD | NEW |