Mercurial > hg > graal-compiler
comparison agent/src/share/classes/sun/jvm/hotspot/runtime/ClassConstants.java @ 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 |
---|---|
38 public static final int JVM_CONSTANT_String = 8; | 38 public static final int JVM_CONSTANT_String = 8; |
39 public static final int JVM_CONSTANT_Fieldref = 9; | 39 public static final int JVM_CONSTANT_Fieldref = 9; |
40 public static final int JVM_CONSTANT_Methodref = 10; | 40 public static final int JVM_CONSTANT_Methodref = 10; |
41 public static final int JVM_CONSTANT_InterfaceMethodref = 11; | 41 public static final int JVM_CONSTANT_InterfaceMethodref = 11; |
42 public static final int JVM_CONSTANT_NameAndType = 12; | 42 public static final int JVM_CONSTANT_NameAndType = 12; |
43 public static final int JVM_CONSTANT_MethodHandle = 15; | |
44 public static final int JVM_CONSTANT_MethodType = 16; | |
45 | |
46 // JVM_CONSTANT_MethodHandle subtypes | |
47 public static final int JVM_REF_getField = 1; | |
48 public static final int JVM_REF_getStatic = 2; | |
49 public static final int JVM_REF_putField = 3; | |
50 public static final int JVM_REF_putStatic = 4; | |
51 public static final int JVM_REF_invokeVirtual = 5; | |
52 public static final int JVM_REF_invokeStatic = 6; | |
53 public static final int JVM_REF_invokeSpecial = 7; | |
54 public static final int JVM_REF_newInvokeSpecial = 8; | |
55 public static final int JVM_REF_invokeInterface = 9; | |
43 | 56 |
44 // HotSpot specific constant pool constant types. | 57 // HotSpot specific constant pool constant types. |
45 | 58 |
46 // For bad value initialization | 59 // For bad value initialization |
47 public static final int JVM_CONSTANT_Invalid = 0; | 60 public static final int JVM_CONSTANT_Invalid = 0; |