hotspot/src/share/vm/utilities/globalDefinitions.hpp
changeset 2534 08dac9ce0cd7
parent 2131 98f9cef66a34
child 2570 ecc7862946d4
--- 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 ) {