| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef RUNTIME_PLATFORM_GLOBALS_H_ | 5 #ifndef RUNTIME_PLATFORM_GLOBALS_H_ |
| 6 #define RUNTIME_PLATFORM_GLOBALS_H_ | 6 #define RUNTIME_PLATFORM_GLOBALS_H_ |
| 7 | 7 |
| 8 // __STDC_FORMAT_MACROS has to be defined before including <inttypes.h> to | 8 // __STDC_FORMAT_MACROS has to be defined before including <inttypes.h> to |
| 9 // enable platform independent printf format specifiers. | 9 // enable platform independent printf format specifiers. |
| 10 #ifndef __STDC_FORMAT_MACROS | 10 #ifndef __STDC_FORMAT_MACROS |
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 #else | 455 #else |
| 456 #error Unexpected architecture word size | 456 #error Unexpected architecture word size |
| 457 #endif | 457 #endif |
| 458 | 458 |
| 459 // Byte sizes. | 459 // Byte sizes. |
| 460 const int kWordSize = sizeof(word); | 460 const int kWordSize = sizeof(word); |
| 461 const int kDoubleSize = sizeof(double); // NOLINT | 461 const int kDoubleSize = sizeof(double); // NOLINT |
| 462 const int kFloatSize = sizeof(float); // NOLINT | 462 const int kFloatSize = sizeof(float); // NOLINT |
| 463 const int kQuadSize = 4 * kFloatSize; | 463 const int kQuadSize = 4 * kFloatSize; |
| 464 const int kSimd128Size = sizeof(simd128_value_t); // NOLINT | 464 const int kSimd128Size = sizeof(simd128_value_t); // NOLINT |
| 465 const int kInt64Size = sizeof(int64_t); // NOLINT | |
| 466 const int kInt32Size = sizeof(int32_t); // NOLINT | 465 const int kInt32Size = sizeof(int32_t); // NOLINT |
| 467 const int kInt16Size = sizeof(int16_t); // NOLINT | 466 const int kInt16Size = sizeof(int16_t); // NOLINT |
| 468 #ifdef ARCH_IS_32_BIT | 467 #ifdef ARCH_IS_32_BIT |
| 469 const int kWordSizeLog2 = 2; | 468 const int kWordSizeLog2 = 2; |
| 470 const uword kUwordMax = kMaxUint32; | 469 const uword kUwordMax = kMaxUint32; |
| 471 #else | 470 #else |
| 472 const int kWordSizeLog2 = 3; | 471 const int kWordSizeLog2 = 3; |
| 473 const uword kUwordMax = kMaxUint64; | 472 const uword kUwordMax = kMaxUint64; |
| 474 #endif | 473 #endif |
| 475 | 474 |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 // tag in the ICData and check it when recreating the flow graph in | 709 // tag in the ICData and check it when recreating the flow graph in |
| 711 // optimizing compiler. Enable it for other modes (product, release) if needed | 710 // optimizing compiler. Enable it for other modes (product, release) if needed |
| 712 // for debugging. | 711 // for debugging. |
| 713 #if defined(DEBUG) | 712 #if defined(DEBUG) |
| 714 #define TAG_IC_DATA | 713 #define TAG_IC_DATA |
| 715 #endif | 714 #endif |
| 716 | 715 |
| 717 } // namespace dart | 716 } // namespace dart |
| 718 | 717 |
| 719 #endif // RUNTIME_PLATFORM_GLOBALS_H_ | 718 #endif // RUNTIME_PLATFORM_GLOBALS_H_ |
| OLD | NEW |