--- a/hotspot/src/share/vm/utilities/globalDefinitions.hpp Wed Apr 08 00:12:59 2009 -0700
+++ b/hotspot/src/share/vm/utilities/globalDefinitions.hpp Wed Apr 08 10:56:49 2009 -0700
@@ -408,6 +408,15 @@
return T_BOOLEAN <= t && t <= T_LONG;
}
+inline bool is_subword_type(BasicType t) {
+ // these guys are processed exactly like T_INT in calling sequences:
+ return (t == T_BOOLEAN || t == T_CHAR || t == T_BYTE || t == T_SHORT);
+}
+
+inline bool is_signed_subword_type(BasicType t) {
+ return (t == T_BYTE || t == T_SHORT);
+}
+
// Convert a char from a classfile signature to a BasicType
inline BasicType char2type(char c) {
switch( c ) {