# HG changeset patch # User Thomas Wuerthinger # Date 1277306440 -7200 # Node ID 2c41834aa270ee525cb606b6546a5d98722703b5 # Parent 1b41af477605e1e9a7279632da9f57ee4533b035 Small adaptations diff -r 1b41af477605 -r 2c41834aa270 c1x4hotspotsrc/HotSpotVM/.classpath --- a/c1x4hotspotsrc/HotSpotVM/.classpath Wed Jun 23 16:36:58 2010 +0200 +++ b/c1x4hotspotsrc/HotSpotVM/.classpath Wed Jun 23 17:20:40 2010 +0200 @@ -2,8 +2,9 @@ - - - + + + + diff -r 1b41af477605 -r 2c41834aa270 c1x4hotspotsrc/HotSpotVM/README.txt --- a/c1x4hotspotsrc/HotSpotVM/README.txt Wed Jun 23 16:36:58 2010 +0200 +++ b/c1x4hotspotsrc/HotSpotVM/README.txt Wed Jun 23 17:20:40 2010 +0200 @@ -1,3 +1,4 @@ The classes from the projects C1X, CRI, and HotSpotVM have to be on the classpath. The classes of the HotSpotVM project have to be on the bootclasspath Example command line arguments for HotSpot: --XX:+UseC1X -XX:TraceC1X=5 -Xbootclasspath/a:THIS_DIRECTORY/bin SomeClass \ No newline at end of file +-XX:+UseC1X -XX:TraceC1X=5 -Xbootclasspath/a:THIS_DIRECTORY/bin;MAXINE_DIR/C1X/bin;MAXINE_DIR/CRI/bin SomeClass + diff -r 1b41af477605 -r 2c41834aa270 c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotConstantPool.java --- a/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotConstantPool.java Wed Jun 23 16:36:58 2010 +0200 +++ b/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotConstantPool.java Wed Jun 23 17:20:40 2010 +0200 @@ -27,8 +27,8 @@ } @Override - public RiMethod lookupMethod(int cpi, byte byteCode) { - return VMEntries.RiConstantPool_lookupMethod(constantPoolOop, cpi, byteCode); + public RiMethod lookupMethod(int cpi, int byteCode) { + return VMEntries.RiConstantPool_lookupMethod(constantPoolOop, cpi, (byte)byteCode); } @Override @@ -37,12 +37,12 @@ } @Override - public RiType lookupType(int cpi) { + public RiType lookupType(int cpi, int opcode) { return VMEntries.RiConstantPool_lookupType(constantPoolOop, cpi); } @Override - public RiField lookupField(int cpi) { + public RiField lookupField(int cpi, int opcode) { return VMEntries.RiConstantPool_lookupField(constantPoolOop, cpi); } diff -r 1b41af477605 -r 2c41834aa270 c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotRuntime.java --- a/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotRuntime.java Wed Jun 23 16:36:58 2010 +0200 +++ b/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotRuntime.java Wed Jun 23 17:20:40 2010 +0200 @@ -79,7 +79,7 @@ private String disassemble(byte[] code, DisassemblyPrinter disassemblyPrinter) { final ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); final InstructionSet instructionSet = InstructionSet.AMD64; - //Disassembler.disassemble(byteArrayOutputStream, code, instructionSet, null, 0, null, disassemblyPrinter); + Disassembler.disassemble(byteArrayOutputStream, code, instructionSet, null, 0, null, disassemblyPrinter); return byteArrayOutputStream.toString(); } @@ -226,4 +226,10 @@ return null; } + @Override + public CiConstant foldWordOperation(int opcode, CiMethodInvokeArguments args) { + // TODO Auto-generated method stub + return null; + } + } diff -r 1b41af477605 -r 2c41834aa270 c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotXirGenerator.java --- a/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotXirGenerator.java Wed Jun 23 16:36:58 2010 +0200 +++ b/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotXirGenerator.java Wed Jun 23 17:20:40 2010 +0200 @@ -39,37 +39,40 @@ /** * * @author Thomas Wuerthinger - * + * */ public class HotSpotXirGenerator extends RiXirGenerator { private XirTemplate[] emptyTemplates = new XirTemplate[CiKind.values().length]; - + @Override public List buildTemplates(CiXirAssembler asm) { List templates = new ArrayList(); - for (int i=0; i