Mercurial > hg > truffle
comparison src/share/vm/utilities/globalDefinitions.hpp @ 2491:0654ee04b214
Merge with OpenJDK.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Fri, 22 Apr 2011 15:30:53 +0200 |
parents | 0cd39a385a72 e863062e521d |
children | 04b9a2566eec |
comparison
equal
deleted
inserted
replaced
2490:29246b1d2d3c | 2491:0654ee04b214 |
---|---|
744 CompLevel_all = -1, | 744 CompLevel_all = -1, |
745 CompLevel_none = 0, // Interpreter | 745 CompLevel_none = 0, // Interpreter |
746 CompLevel_simple = 1, // C1 | 746 CompLevel_simple = 1, // C1 |
747 CompLevel_limited_profile = 2, // C1, invocation & backedge counters | 747 CompLevel_limited_profile = 2, // C1, invocation & backedge counters |
748 CompLevel_full_profile = 3, // C1, invocation & backedge counters + mdo | 748 CompLevel_full_profile = 3, // C1, invocation & backedge counters + mdo |
749 CompLevel_full_optimization = 4, // C2 | 749 CompLevel_full_optimization = 4, // C2 or Shark |
750 | 750 |
751 #if defined(COMPILER2) | 751 #if defined(COMPILER2) || defined(SHARK) |
752 CompLevel_highest_tier = CompLevel_full_optimization, // pure C2 and tiered | 752 CompLevel_highest_tier = CompLevel_full_optimization, // pure C2 and tiered |
753 #elif defined(COMPILER1) | 753 #elif defined(COMPILER1) |
754 CompLevel_highest_tier = CompLevel_simple, // pure C1 | 754 CompLevel_highest_tier = CompLevel_simple, // pure C1 |
755 #else | 755 #else |
756 CompLevel_highest_tier = CompLevel_none, | 756 CompLevel_highest_tier = CompLevel_none, |
758 | 758 |
759 #if defined(TIERED) | 759 #if defined(TIERED) |
760 CompLevel_initial_compile = CompLevel_full_profile // tiered | 760 CompLevel_initial_compile = CompLevel_full_profile // tiered |
761 #elif defined(COMPILER1) | 761 #elif defined(COMPILER1) |
762 CompLevel_initial_compile = CompLevel_simple // pure C1 | 762 CompLevel_initial_compile = CompLevel_simple // pure C1 |
763 #elif defined(COMPILER2) | 763 #elif defined(COMPILER2) || defined(SHARK) |
764 CompLevel_initial_compile = CompLevel_full_optimization // pure C2 | 764 CompLevel_initial_compile = CompLevel_full_optimization // pure C2 |
765 #else | 765 #else |
766 CompLevel_initial_compile = CompLevel_none | 766 CompLevel_initial_compile = CompLevel_none |
767 #endif | 767 #endif |
768 }; | 768 }; |
1183 // Each compiler-specific definitions file (e.g., globalDefinitions_gcc.hpp) | 1183 // Each compiler-specific definitions file (e.g., globalDefinitions_gcc.hpp) |
1184 // must define the macro FORMAT64_MODIFIER, which is the modifier for '%x' or | 1184 // must define the macro FORMAT64_MODIFIER, which is the modifier for '%x' or |
1185 // '%d' formats to indicate a 64-bit quantity; commonly "l" (in LP64) or "ll" | 1185 // '%d' formats to indicate a 64-bit quantity; commonly "l" (in LP64) or "ll" |
1186 // (in ILP32). | 1186 // (in ILP32). |
1187 | 1187 |
1188 #define BOOL_TO_STR(__b) (__b) ? "true" : "false" | 1188 #define BOOL_TO_STR(_b_) ((_b_) ? "true" : "false") |
1189 | 1189 |
1190 // Format 32-bit quantities. | 1190 // Format 32-bit quantities. |
1191 #define INT32_FORMAT "%d" | 1191 #define INT32_FORMAT "%d" |
1192 #define UINT32_FORMAT "%u" | 1192 #define UINT32_FORMAT "%u" |
1193 #define INT32_FORMAT_W(width) "%" #width "d" | 1193 #define INT32_FORMAT_W(width) "%" #width "d" |