Mercurial > hg > graal-compiler
diff c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/VMExitsNative.java @ 1429:abc670a709dc
* -XX:TraceC1X=0...5 controls the native c1x tracing
* -Dc1x.debug=true turns on the logging proxies and lots of log output on the java side
* provide more information about types to the compiler (type hierarchy, etc)
* provide exception handler tables to the compiler
* add exception handlers to the nmethod
* correct implementation of ExceptionObject
* exception handling/unwinding entry points
* modified versions of handle/unwind exception stubs using standard calling conventions
* exception throwing
* implicit null pointer exception, implicit div by 0 exception
* arraystore/classcast/arrayindex exceptions
* checkcast implementation
* newarray, anewarray, multinewarray implementation
* correct new instance initialization
* access to java class mirrors (for ldc)
* unresolved methods
* class resolving - class patching (asssembly prototype copying)
author | Lukas Stadler <lukas.stadler@oracle.com> |
---|---|
date | Tue, 31 Aug 2010 22:13:30 -0700 |
parents | 760213a60e8b |
children | efba53f86c4f |
line wrap: on
line diff
--- a/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/VMExitsNative.java Thu Aug 19 14:34:52 2010 -0700 +++ b/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/VMExitsNative.java Tue Aug 31 22:13:30 2010 -0700 @@ -34,9 +34,9 @@ @Override public void compileMethod(long methodVmId, String name, int entry_bci) { try { - Logger.info("compiling " + name + " (" + methodVmId + ")"); + Logger.info("compiling " + name + " (0x" + Long.toHexString(methodVmId) + ")"); Compiler compiler = Compiler.getInstance(); - HotSpotMethod riMethod = new HotSpotMethod(methodVmId, name); + HotSpotMethodResolved riMethod = new HotSpotMethodResolved(methodVmId, name); CiResult result = compiler.getCompiler().compileMethod(riMethod, null); if (result.bailout() != null) { @@ -55,9 +55,13 @@ } @Override - public RiMethod createRiMethod(long vmId, String name) { - RiMethod m = new HotSpotMethod(vmId, name); - return m; + public RiMethod createRiMethodResolved(long vmId, String name) { + return new HotSpotMethodResolved(vmId, name); + } + + @Override + public RiMethod createRiMethodUnresolved(String name, String signature, RiType holder) { + return new HotSpotMethodUnresolved(name, signature, holder); } @Override @@ -72,7 +76,7 @@ @Override public RiType createRiType(long vmId, String name) { - return new HotSpotTypeResolved(vmId, name); + throw new RuntimeException("not implemented"); } @Override