Mercurial > hg > graal-compiler
diff graal/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/NativeFrame.java @ 12643:856a9864ed93
Frame: add is<Type> methods.
author | Andreas Woess <andreas.woess@jku.at> |
---|---|
date | Wed, 30 Oct 2013 20:01:50 +0100 |
parents | 51dcddfa25a6 |
children |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/NativeFrame.java Wed Oct 30 17:31:13 2013 +0100 +++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/NativeFrame.java Wed Oct 30 20:01:50 2013 +0100 @@ -48,77 +48,77 @@ @Override public Object getObject(FrameSlot slot) { - throw new UnsupportedOperationException("native frame"); + throw unsupportedInNativeFrame(); } @Override public void setObject(FrameSlot slot, Object value) { - throw new UnsupportedOperationException("native frame"); + throw unsupportedInNativeFrame(); } @Override public byte getByte(FrameSlot slot) { - throw new UnsupportedOperationException("native frame"); + throw unsupportedInNativeFrame(); } @Override public void setByte(FrameSlot slot, byte value) { - throw new UnsupportedOperationException("native frame"); + throw unsupportedInNativeFrame(); } @Override public boolean getBoolean(FrameSlot slot) { - throw new UnsupportedOperationException("native frame"); + throw unsupportedInNativeFrame(); } @Override public void setBoolean(FrameSlot slot, boolean value) { - throw new UnsupportedOperationException("native frame"); + throw unsupportedInNativeFrame(); } @Override public int getInt(FrameSlot slot) { - throw new UnsupportedOperationException("native frame"); + throw unsupportedInNativeFrame(); } @Override public void setInt(FrameSlot slot, int value) { - throw new UnsupportedOperationException("native frame"); + throw unsupportedInNativeFrame(); } @Override public long getLong(FrameSlot slot) { - throw new UnsupportedOperationException("native frame"); + throw unsupportedInNativeFrame(); } @Override public void setLong(FrameSlot slot, long value) { - throw new UnsupportedOperationException("native frame"); + throw unsupportedInNativeFrame(); } @Override public float getFloat(FrameSlot slot) { - throw new UnsupportedOperationException("native frame"); + throw unsupportedInNativeFrame(); } @Override public void setFloat(FrameSlot slot, float value) { - throw new UnsupportedOperationException("native frame"); + throw unsupportedInNativeFrame(); } @Override public double getDouble(FrameSlot slot) { - throw new UnsupportedOperationException("native frame"); + throw unsupportedInNativeFrame(); } @Override public void setDouble(FrameSlot slot, double value) { - throw new UnsupportedOperationException("native frame"); + throw unsupportedInNativeFrame(); } @Override public Object getValue(FrameSlot slot) { - throw new UnsupportedOperationException("native frame"); + throw unsupportedInNativeFrame(); } @Override @@ -133,7 +133,7 @@ @Override public MaterializedFrame materialize() { - throw new UnsupportedOperationException("native frame"); + throw unsupportedInNativeFrame(); } @Override @@ -143,11 +143,45 @@ @Override public FrameDescriptor getFrameDescriptor() { - throw new UnsupportedOperationException("native frame"); + throw unsupportedInNativeFrame(); + } + + @Override + public boolean isObject(FrameSlot slot) { + throw unsupportedInNativeFrame(); + } + + @Override + public boolean isByte(FrameSlot slot) { + throw unsupportedInNativeFrame(); + } + + @Override + public boolean isBoolean(FrameSlot slot) { + throw unsupportedInNativeFrame(); } @Override - public boolean isInitialized(FrameSlot slot) { + public boolean isInt(FrameSlot slot) { + throw unsupportedInNativeFrame(); + } + + @Override + public boolean isLong(FrameSlot slot) { + throw unsupportedInNativeFrame(); + } + + @Override + public boolean isFloat(FrameSlot slot) { + throw unsupportedInNativeFrame(); + } + + @Override + public boolean isDouble(FrameSlot slot) { + throw unsupportedInNativeFrame(); + } + + private static UnsupportedOperationException unsupportedInNativeFrame() { throw new UnsupportedOperationException("native frame"); } }