diff c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/VMExitsNative.java @ 1465:2c754f3a2722

Inlining of static final field values. Java mirror instead of VmID. Support for PrintMetrics option.
author Thomas Wuerthinger <wuerthinger@ssw.jku.at>
date Thu, 18 Nov 2010 17:27:43 +0100
parents 1845386f5403
children e4cd5d2de7e1
line wrap: on
line diff
--- a/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/VMExitsNative.java	Mon Nov 15 11:06:38 2010 +0100
+++ b/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/VMExitsNative.java	Thu Nov 18 17:27:43 2010 +0100
@@ -49,6 +49,7 @@
         C1XOptions.OptInlineSynchronized = false;
         C1XOptions.UseDeopt = false;
         C1XOptions.IRChecking = false;
+        C1XOptions.DetailedAsserts = false;
     }
 
     @Override
@@ -151,7 +152,6 @@
                 }
                 Compiler.getVMEntries().recordBailout(result.bailout().getMessage());
             } else {
-                Logger.log("Compilation result: " + result.targetMethod());
                 HotSpotTargetMethod.installMethod(riMethod, result.targetMethod());
             }
         } catch (Throwable t) {
@@ -235,13 +235,8 @@
     }
 
     @Override
-    public CiConstant createCiConstantInt(int value) {
-        return CiConstant.forInt(value);
-    }
-
-    @Override
     public CiConstant createCiConstantLong(long value) {
-        return CiConstant.forLong(value);
+        return new CiConstant(CiKind.Long, value);
     }
 
     @Override
@@ -255,7 +250,7 @@
     }
 
     @Override
-    public CiConstant createCiConstantObject(long vmId) {
-        return CiConstant.forObject(vmId);
+    public CiConstant createCiConstantObject(Object object) {
+        return CiConstant.forObject(object);
     }
 }