| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 #if V8_HOST_ARCH_64_BIT | 75 #if V8_HOST_ARCH_64_BIT |
| 76 #ifdef _MSC_VER | 76 #ifdef _MSC_VER |
| 77 #define V8_UINT64_C(x) (x ## UI64) | 77 #define V8_UINT64_C(x) (x ## UI64) |
| 78 #define V8_INT64_C(x) (x ## I64) | 78 #define V8_INT64_C(x) (x ## I64) |
| 79 #define V8_PTR_PREFIX "ll" | 79 #define V8_PTR_PREFIX "ll" |
| 80 #else | 80 #else |
| 81 #define V8_UINT64_C(x) (x ## UL) | 81 #define V8_UINT64_C(x) (x ## UL) |
| 82 #define V8_INT64_C(x) (x ## L) | 82 #define V8_INT64_C(x) (x ## L) |
| 83 #define V8_PTR_PREFIX "l" | 83 #define V8_PTR_PREFIX "l" |
| 84 #endif | 84 #endif |
| 85 #else // V8_HOST_ARCH_64_BIT | 85 #else // V8_HOST_ARCH_64_BIT |
| 86 #define V8_PTR_PREFIX "" | 86 #define V8_PTR_PREFIX "" |
| 87 #endif | 87 #endif |
| 88 | 88 |
| 89 #define V8PRIp V8_PTR_PREFIX "x" | 89 #define V8PRIp V8_PTR_PREFIX "x" |
| 90 | 90 |
| 91 // Code-point values in Unicode 4.0 are 21 bits wide. | 91 // Code-point values in Unicode 4.0 are 21 bits wide. |
| 92 typedef uint16_t uc16; | 92 typedef uint16_t uc16; |
| 93 typedef int32_t uc32; | 93 typedef int32_t uc32; |
| 94 | 94 |
| 95 // ----------------------------------------------------------------------------- | 95 // ----------------------------------------------------------------------------- |
| (...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 | 534 |
| 535 Dest dest; | 535 Dest dest; |
| 536 memcpy(&dest, &source, sizeof(dest)); | 536 memcpy(&dest, &source, sizeof(dest)); |
| 537 return dest; | 537 return dest; |
| 538 } | 538 } |
| 539 | 539 |
| 540 | 540 |
| 541 } } // namespace v8::internal | 541 } } // namespace v8::internal |
| 542 | 542 |
| 543 #endif // V8_GLOBALS_H_ | 543 #endif // V8_GLOBALS_H_ |
| OLD | NEW |