mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
6655638: dynamic languages need method handles
Initial implementation, with known omissions (x86/64, sparc, compiler optim., c-oops, C++ interp.) Reviewed-by: kvn, twisti, never
This commit is contained in:
parent
318da3f68c
commit
ce0c084720
63 changed files with 5815 additions and 70 deletions
|
@ -408,6 +408,15 @@ inline bool is_java_primitive(BasicType t) {
|
|||
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 ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue