diff graal/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/Frame.java @ 11427:51dcddfa25a6

Truffle: add Byte to Frame
author Christian Wirth <christian.wirth@oracle.com>
date Mon, 26 Aug 2013 18:25:40 +0200
parents 494b818b527c
children 269e6794e1ec
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/Frame.java	Mon Aug 26 17:10:45 2013 +0200
+++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/Frame.java	Mon Aug 26 18:25:40 2013 +0200
@@ -67,6 +67,23 @@
     void setObject(FrameSlot slot, Object value) throws FrameSlotTypeException;
 
     /**
+     * Read access to a local variable of type byte.
+     * 
+     * @param slot the slot of the local variable
+     * @return the current value of the local variable
+     */
+    byte getByte(FrameSlot slot) throws FrameSlotTypeException;
+
+    /**
+     * Write access to a local variable of type byte.
+     * 
+     * @param slot the slot of the local variable
+     * @param value the new value of the local variable
+     */
+
+    void setByte(FrameSlot slot, byte value) throws FrameSlotTypeException;
+
+    /**
      * Read access to a local variable of type boolean.
      * 
      * @param slot the slot of the local variable