Mercurial > hg > graal-compiler
diff c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotProxy.java @ 1427:149b1d2316de
basic invokeinterface and invokevirtual support
author | Lukas Stadler <lukas.stadler@oracle.com> |
---|---|
date | Wed, 18 Aug 2010 16:47:06 -0700 |
parents | 760213a60e8b |
children | 9e5e83ca2259 |
line wrap: on
line diff
--- a/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotProxy.java Wed Aug 18 11:44:04 2010 -0700 +++ b/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotProxy.java Wed Aug 18 16:47:06 2010 -0700 @@ -29,13 +29,14 @@ private enum CompilerObjectType { // this enum needs to have the same values as the one in c1x_Compiler.hpp - STUB(0x100000000000000l), - METHOD(0x200000000000000l), - CLASS(0x300000000000000l), - SYMBOL(0x400000000000000l), - CONSTANT_POOL(0x500000000000000l), - CONSTANT(0x600000000000000l), - TYPE_MASK(0xf00000000000000l); + STUB(0x100000000000000L), + METHOD(0x200000000000000L), + CLASS(0x300000000000000L), + SYMBOL(0x400000000000000L), + CONSTANT_POOL(0x500000000000000L), + CONSTANT(0x600000000000000L), + TYPE_MASK(0xf00000000000000L), + DUMMY_CONSTANT(0x6ffffffffffffffL); public final long bits; @@ -44,6 +45,8 @@ } } + public static final Long DUMMY_CONSTANT_OBJ = CompilerObjectType.DUMMY_CONSTANT.bits; + private static boolean isType(long id, CompilerObjectType type) { return (id & CompilerObjectType.TYPE_MASK.bits) == type.bits; }