Mercurial > hg > graal-jvmci-8
diff src/share/vm/utilities/globalDefinitions.hpp @ 710:e5b0439ef4ae
6655638: dynamic languages need method handles
Summary: initial implementation, with known omissions (x86/64, sparc, compiler optim., c-oops, C++ interp.)
Reviewed-by: kvn, twisti, never
author | jrose |
---|---|
date | Wed, 08 Apr 2009 10:56:49 -0700 |
parents | 98cb887364d3 |
children | be93aad57795 |
line wrap: on
line diff
--- a/src/share/vm/utilities/globalDefinitions.hpp Wed Apr 08 00:12:59 2009 -0700 +++ b/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 ) {