Mercurial > hg > graal-compiler
diff graal/com.oracle.max.graal.nodes/src/com/oracle/max/graal/nodes/InvokeNode.java @ 4472:63cd21fda79b
hotspot gc bugfix, added possibility to fallback to invocation if type check is violated
author | Christian Haeubl <christian.haeubl@oracle.com> |
---|---|
date | Mon, 06 Feb 2012 15:28:35 -0800 |
parents | 72d099e5be61 |
children | a3cdfa2be94e |
line wrap: on
line diff
--- a/graal/com.oracle.max.graal.nodes/src/com/oracle/max/graal/nodes/InvokeNode.java Mon Feb 06 10:11:25 2012 -0800 +++ b/graal/com.oracle.max.graal.nodes/src/com/oracle/max/graal/nodes/InvokeNode.java Mon Feb 06 15:28:35 2012 -0800 @@ -37,6 +37,7 @@ @Input private final MethodCallTargetNode callTarget; private final int bci; + private boolean useForInlining; /** * Constructs a new Invoke instruction. @@ -50,12 +51,22 @@ super(callTarget.returnStamp()); this.callTarget = callTarget; this.bci = bci; + this.useForInlining = true; } public MethodCallTargetNode callTarget() { return callTarget; } + public boolean useForInlining() { + return useForInlining; + } + + @Override + public void setUseForInlining(boolean value) { + this.useForInlining = value; + } + @Override public Map<Object, Object> getDebugProperties() { Map<Object, Object> debugProperties = super.getDebugProperties();