comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/Frame.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 139b84d713bc
children 64dcb92ee75a
comparison
equal deleted inserted replaced
12642:e9f23b348da2 12643:856a9864ed93
189 * @return the new materialized frame 189 * @return the new materialized frame
190 */ 190 */
191 MaterializedFrame materialize(); 191 MaterializedFrame materialize();
192 192
193 /** 193 /**
194 * To check whether the given {@link FrameSlot} has been initialized or not. An initialized slot 194 * Check whether the given {@link FrameSlot} is of type object.
195 * has previously been read or modified. 195 */
196 * 196 boolean isObject(FrameSlot slot);
197 * @param slot the slot 197
198 * @return true if the slot is uninitialized. 198 /**
199 */ 199 * Check whether the given {@link FrameSlot} is of type byte.
200 boolean isInitialized(FrameSlot slot); 200 */
201 boolean isByte(FrameSlot slot);
202
203 /**
204 * Check whether the given {@link FrameSlot} is of type boolean.
205 */
206 boolean isBoolean(FrameSlot slot);
207
208 /**
209 * Check whether the given {@link FrameSlot} is of type int.
210 */
211 boolean isInt(FrameSlot slot);
212
213 /**
214 * Check whether the given {@link FrameSlot} is of type long.
215 */
216 boolean isLong(FrameSlot slot);
217
218 /**
219 * Check whether the given {@link FrameSlot} is of type float.
220 */
221 boolean isFloat(FrameSlot slot);
222
223 /**
224 * Check whether the given {@link FrameSlot} is of type double.
225 */
226 boolean isDouble(FrameSlot slot);
201 } 227 }