| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 #define V8PRId V8_PTR_PREFIX "d" |
| 90 | 91 |
| 91 // Code-point values in Unicode 4.0 are 21 bits wide. | 92 // Code-point values in Unicode 4.0 are 21 bits wide. |
| 92 typedef uint16_t uc16; | 93 typedef uint16_t uc16; |
| 93 typedef int32_t uc32; | 94 typedef int32_t uc32; |
| 94 | 95 |
| 95 // ----------------------------------------------------------------------------- | 96 // ----------------------------------------------------------------------------- |
| 96 // Constants | 97 // Constants |
| 97 | 98 |
| 98 const int KB = 1024; | 99 const int KB = 1024; |
| 99 const int MB = KB * KB; | 100 const int MB = KB * KB; |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 | 535 |
| 535 Dest dest; | 536 Dest dest; |
| 536 memcpy(&dest, &source, sizeof(dest)); | 537 memcpy(&dest, &source, sizeof(dest)); |
| 537 return dest; | 538 return dest; |
| 538 } | 539 } |
| 539 | 540 |
| 540 | 541 |
| 541 } } // namespace v8::internal | 542 } } // namespace v8::internal |
| 542 | 543 |
| 543 #endif // V8_GLOBALS_H_ | 544 #endif // V8_GLOBALS_H_ |
| OLD | NEW |