diff graal/com.oracle.max.graal.hotspot/src/com/oracle/max/graal/hotspot/ri/HotSpotMethodResolvedImpl.java @ 4319:3c21eee8ab4d

Add installMethodCallback() to HotSpotRuntime. Re-add tail call node and opcode.
author Andreas Woess <andreas.woess@jku.at>
date Tue, 24 Jan 2012 19:17:28 +0100
parents d089b71a5237
children 539fca6a3b98
line wrap: on
line diff
--- a/graal/com.oracle.max.graal.hotspot/src/com/oracle/max/graal/hotspot/ri/HotSpotMethodResolvedImpl.java	Mon Jan 23 12:21:06 2012 +0100
+++ b/graal/com.oracle.max.graal.hotspot/src/com/oracle/max/graal/hotspot/ri/HotSpotMethodResolvedImpl.java	Tue Jan 24 19:17:28 2012 +0100
@@ -57,6 +57,7 @@
     private RiResolvedType holder;
     private byte[] code;
     private boolean canBeInlined;
+    private CiGenericCallback callback;
 
     private HotSpotMethodResolvedImpl() {
         super(null);
@@ -306,10 +307,16 @@
 
     @Override
     public boolean canBeInlined() {
-        return canBeInlined;
+        return canBeInlined && callback == null;
+    }
+    public void neverInline() {
+        this.canBeInlined = false;
     }
 
-    public void setCanBeInlined(boolean canBeInlined) {
-        this.canBeInlined = canBeInlined;
+    public CiGenericCallback callback() {
+        return callback;
+    }
+    public void setCallback(CiGenericCallback callback) {
+        this.callback = callback;
     }
 }