comparison 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
comparison
equal deleted inserted replaced
709:1d037ecd7960 710:e5b0439ef4ae
404 T_ILLEGAL = 99 404 T_ILLEGAL = 99
405 }; 405 };
406 406
407 inline bool is_java_primitive(BasicType t) { 407 inline bool is_java_primitive(BasicType t) {
408 return T_BOOLEAN <= t && t <= T_LONG; 408 return T_BOOLEAN <= t && t <= T_LONG;
409 }
410
411 inline bool is_subword_type(BasicType t) {
412 // these guys are processed exactly like T_INT in calling sequences:
413 return (t == T_BOOLEAN || t == T_CHAR || t == T_BYTE || t == T_SHORT);
414 }
415
416 inline bool is_signed_subword_type(BasicType t) {
417 return (t == T_BYTE || t == T_SHORT);
409 } 418 }
410 419
411 // Convert a char from a classfile signature to a BasicType 420 // Convert a char from a classfile signature to a BasicType
412 inline BasicType char2type(char c) { 421 inline BasicType char2type(char c) {
413 switch( c ) { 422 switch( c ) {