Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 180 # else | 180 # else |
| 181 # define V8_INTPTR_C(x) (x) | 181 # define V8_INTPTR_C(x) (x) |
| 182 # define V8_PTR_PREFIX "" | 182 # define V8_PTR_PREFIX "" |
| 183 # endif // V8_HOST_ARCH_64_BIT | 183 # endif // V8_HOST_ARCH_64_BIT |
| 184 #elif V8_CC_MINGW64 | 184 #elif V8_CC_MINGW64 |
| 185 # define V8_UINT64_C(x) (x ## ULL) | 185 # define V8_UINT64_C(x) (x ## ULL) |
| 186 # define V8_INT64_C(x) (x ## LL) | 186 # define V8_INT64_C(x) (x ## LL) |
| 187 # define V8_INTPTR_C(x) (x ## LL) | 187 # define V8_INTPTR_C(x) (x ## LL) |
| 188 # define V8_PTR_PREFIX "I64" | 188 # define V8_PTR_PREFIX "I64" |
| 189 #elif V8_HOST_ARCH_64_BIT | 189 #elif V8_HOST_ARCH_64_BIT |
| 190 # define V8_UINT64_C(x) (x ## UL) | 190 # if defined(__APPLE__) && defined(__MACH__) |
|
Benedikt Meurer
2013/12/02 12:00:06
Please use #if V8_OS_MACOSX instead #if defined(__
haitao.feng
2013/12/02 12:24:46
Done.
| |
| 191 # define V8_INT64_C(x) (x ## L) | 191 # define V8_UINT64_C(x) (x ## ULL) |
| 192 # define V8_INT64_C(x) (x ## LL) | |
| 193 # else | |
| 194 # define V8_UINT64_C(x) (x ## UL) | |
| 195 # define V8_INT64_C(x) (x ## L) | |
| 196 # endif | |
| 192 # define V8_INTPTR_C(x) (x ## L) | 197 # define V8_INTPTR_C(x) (x ## L) |
| 193 # define V8_PTR_PREFIX "l" | 198 # define V8_PTR_PREFIX "l" |
| 194 #else | 199 #else |
| 195 # define V8_UINT64_C(x) (x ## ULL) | 200 # define V8_UINT64_C(x) (x ## ULL) |
| 196 # define V8_INT64_C(x) (x ## LL) | 201 # define V8_INT64_C(x) (x ## LL) |
| 197 # define V8_INTPTR_C(x) (x) | 202 # define V8_INTPTR_C(x) (x) |
| 198 # define V8_PTR_PREFIX "" | 203 # define V8_PTR_PREFIX "" |
| 199 #endif | 204 #endif |
| 200 | 205 |
| 201 // The following macro works on both 32 and 64-bit platforms. | 206 // The following macro works on both 32 and 64-bit platforms. |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 409 // the backend, so both modes are represented by the kStrictMode value. | 414 // the backend, so both modes are represented by the kStrictMode value. |
| 410 enum StrictModeFlag { | 415 enum StrictModeFlag { |
| 411 kNonStrictMode, | 416 kNonStrictMode, |
| 412 kStrictMode | 417 kStrictMode |
| 413 }; | 418 }; |
| 414 | 419 |
| 415 | 420 |
| 416 } } // namespace v8::internal | 421 } } // namespace v8::internal |
| 417 | 422 |
| 418 #endif // V8_GLOBALS_H_ | 423 #endif // V8_GLOBALS_H_ |
| OLD | NEW |