Mercurial > hg > graal-jvmci-8
comparison src/share/vm/prims/jvm.h @ 1602:136b78722a08
6939203: JSR 292 needs method handle constants
Summary: Add new CP types CONSTANT_MethodHandle, CONSTANT_MethodType; extend 'ldc' bytecode.
Reviewed-by: twisti, never
author | jrose |
---|---|
date | Wed, 09 Jun 2010 18:50:45 -0700 |
parents | c18cbe5936b8 |
children | 083fde3b838e |
comparison
equal
deleted
inserted
replaced
1585:49fac4acd688 | 1602:136b78722a08 |
---|---|
1042 JVM_CONSTANT_Class, | 1042 JVM_CONSTANT_Class, |
1043 JVM_CONSTANT_String, | 1043 JVM_CONSTANT_String, |
1044 JVM_CONSTANT_Fieldref, | 1044 JVM_CONSTANT_Fieldref, |
1045 JVM_CONSTANT_Methodref, | 1045 JVM_CONSTANT_Methodref, |
1046 JVM_CONSTANT_InterfaceMethodref, | 1046 JVM_CONSTANT_InterfaceMethodref, |
1047 JVM_CONSTANT_NameAndType | 1047 JVM_CONSTANT_NameAndType, |
1048 JVM_CONSTANT_MethodHandle = 15, // JSR 292 | |
1049 JVM_CONSTANT_MethodType = 16 // JSR 292 | |
1050 }; | |
1051 | |
1052 /* JVM_CONSTANT_MethodHandle subtypes */ | |
1053 enum { | |
1054 JVM_REF_getField = 1, | |
1055 JVM_REF_getStatic = 2, | |
1056 JVM_REF_putField = 3, | |
1057 JVM_REF_putStatic = 4, | |
1058 JVM_REF_invokeVirtual = 5, | |
1059 JVM_REF_invokeStatic = 6, | |
1060 JVM_REF_invokeSpecial = 7, | |
1061 JVM_REF_newInvokeSpecial = 8, | |
1062 JVM_REF_invokeInterface = 9 | |
1048 }; | 1063 }; |
1049 | 1064 |
1050 /* Used in the newarray instruction. */ | 1065 /* Used in the newarray instruction. */ |
1051 | 1066 |
1052 #define JVM_T_BOOLEAN 4 | 1067 #define JVM_T_BOOLEAN 4 |