Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.graal.truffle.hotspot/src/com/oracle/graal/truffle/hotspot/HotSpotFrameInstance.java @ 15574:d79501a10e5b
Truffle: remove obsolete HotSpotFrameInstance.getTargetCallTarget()
author | Andreas Woess <andreas.woess@jku.at> |
---|---|
date | Fri, 09 May 2014 15:55:37 +0200 |
parents | 5696af217fe2 |
children |
line wrap: on
line diff
--- a/graal/com.oracle.graal.truffle.hotspot/src/com/oracle/graal/truffle/hotspot/HotSpotFrameInstance.java Fri May 09 15:53:30 2014 +0200 +++ b/graal/com.oracle.graal.truffle.hotspot/src/com/oracle/graal/truffle/hotspot/HotSpotFrameInstance.java Fri May 09 15:55:37 2014 +0200 @@ -42,8 +42,6 @@ protected abstract int getNotifyIndex(); - protected abstract int getCallTargetIndex(); - protected abstract int getFrameIndex(); @SlowPath @@ -86,8 +84,6 @@ public abstract CallTarget getCallTarget(); - public abstract CallTarget getTargetCallTarget(); - public abstract Node getCallNode(); /** @@ -105,7 +101,6 @@ } } private static final int NOTIFY_INDEX = 0; - private static final int CALL_TARGET_INDEX = 1; private static final int FRAME_INDEX = 2; public CallNodeFrame(InspectedFrame stackFrame) { @@ -118,11 +113,6 @@ } @Override - protected int getCallTargetIndex() { - return CALL_TARGET_INDEX; - } - - @Override protected int getFrameIndex() { return FRAME_INDEX; } @@ -133,11 +123,6 @@ } @Override - public CallTarget getTargetCallTarget() { - return (CallTarget) stackFrame.getLocal(getCallTargetIndex()); - } - - @Override public Node getCallNode() { Object receiver = stackFrame.getLocal(getNotifyIndex()); if (receiver instanceof DirectCallNode || receiver instanceof IndirectCallNode) { @@ -184,23 +169,13 @@ } @Override - protected int getCallTargetIndex() { - return CALL_TARGET_INDEX; - } - - @Override protected int getFrameIndex() { return FRAME_INDEX; } @Override public CallTarget getCallTarget() { - return (CallTarget) stackFrame.getLocal(getCallTargetIndex()); - } - - @Override - public CallTarget getTargetCallTarget() { - return null; + return (CallTarget) stackFrame.getLocal(CALL_TARGET_INDEX); } @Override