# HG changeset patch # User Andreas Woess # Date 1383159588 -3600 # Node ID 0046afcda972409b8a362a883ebaeb96508d21c9 # Parent 60c32ab6eb39cb369f2b45da6684b257c11f940e remove obsolete FrameUtil.setSafe methods. diff -r 60c32ab6eb39 -r 0046afcda972 graal/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/FrameUtil.java --- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/FrameUtil.java Wed Oct 30 19:50:11 2013 +0100 +++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/FrameUtil.java Wed Oct 30 19:59:48 2013 +0100 @@ -25,91 +25,6 @@ package com.oracle.truffle.api.frame; public final class FrameUtil { - - /** - * Write access to a local variable of type {@link Object}. - * - * Sets the frame slot type to {@link Object} if it isn't already. - * - * @param slot the slot of the local variable - * @param value the new value of the local variable - */ - public static void setObjectSafe(Frame frame, FrameSlot slot, Object value) { - frame.setObject(slot, value); - } - - /** - * Write access to a local variable of type {@code byte}. - * - * Sets the frame slot type to {@code byte} if it isn't already. - * - * @param slot the slot of the local variable - * @param value the new value of the local variable - */ - public static void setByteSafe(Frame frame, FrameSlot slot, byte value) { - frame.setByte(slot, value); - } - - /** - * Write access to a local variable of type {@code boolean}. - * - * Sets the frame slot type to {@code boolean} if it isn't already. - * - * @param slot the slot of the local variable - * @param value the new value of the local variable - */ - public static void setBooleanSafe(Frame frame, FrameSlot slot, boolean value) { - frame.setBoolean(slot, value); - } - - /** - * Write access to a local variable of type {@code int}. - * - * Sets the frame slot type to {@code int} if it isn't already. - * - * @param slot the slot of the local variable - * @param value the new value of the local variable - */ - public static void setIntSafe(Frame frame, FrameSlot slot, int value) { - frame.setInt(slot, value); - } - - /** - * Write access to a local variable of type {@code long}. - * - * Sets the frame slot type to {@code long} if it isn't already. - * - * @param slot the slot of the local variable - * @param value the new value of the local variable - */ - public static void setLongSafe(Frame frame, FrameSlot slot, long value) { - frame.setLong(slot, value); - } - - /** - * Write access to a local variable of type {@code float}. - * - * Sets the frame slot type to {@code float} if it isn't already. - * - * @param slot the slot of the local variable - * @param value the new value of the local variable - */ - public static void setFloatSafe(Frame frame, FrameSlot slot, float value) { - frame.setFloat(slot, value); - } - - /** - * Write access to a local variable of type {@code double}. - * - * Sets the frame slot type to {@code double} if it isn't already. - * - * @param slot the slot of the local variable - * @param value the new value of the local variable - */ - public static void setDoubleSafe(Frame frame, FrameSlot slot, double value) { - frame.setDouble(slot, value); - } - /** * Read a frame slot that is guaranteed to be of the desired kind (either previously checked by * a guard or statically known).