Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/Frame.java @ 12405:139b84d713bc
Truffle API adjustments: Simplify frame handling. Introduce cast for MaterializedFrame objects.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Mon, 14 Oct 2013 23:28:10 +0200 |
parents | f753092f608d |
children | 856a9864ed93 |
comparison
equal
deleted
inserted
replaced
12404:47eb670c1634 | 12405:139b84d713bc |
---|---|
68 /** | 68 /** |
69 * Read access to a local variable of type byte. | 69 * Read access to a local variable of type byte. |
70 * | 70 * |
71 * @param slot the slot of the local variable | 71 * @param slot the slot of the local variable |
72 * @return the current value of the local variable | 72 * @return the current value of the local variable |
73 * @throws FrameSlotTypeException | |
73 */ | 74 */ |
74 byte getByte(FrameSlot slot) throws FrameSlotTypeException; | 75 byte getByte(FrameSlot slot) throws FrameSlotTypeException; |
75 | 76 |
76 /** | 77 /** |
77 * Write access to a local variable of type byte. | 78 * Write access to a local variable of type byte. |
78 * | 79 * |
79 * @param slot the slot of the local variable | 80 * @param slot the slot of the local variable |
80 * @param value the new value of the local variable | 81 * @param value the new value of the local variable |
81 */ | 82 */ |
82 | 83 |
83 void setByte(FrameSlot slot, byte value) throws FrameSlotTypeException; | 84 void setByte(FrameSlot slot, byte value); |
84 | 85 |
85 /** | 86 /** |
86 * Read access to a local variable of type boolean. | 87 * Read access to a local variable of type boolean. |
87 * | 88 * |
88 * @param slot the slot of the local variable | 89 * @param slot the slot of the local variable |
94 * Write access to a local variable of type boolean. | 95 * Write access to a local variable of type boolean. |
95 * | 96 * |
96 * @param slot the slot of the local variable | 97 * @param slot the slot of the local variable |
97 * @param value the new value of the local variable | 98 * @param value the new value of the local variable |
98 */ | 99 */ |
99 void setBoolean(FrameSlot slot, boolean value) throws FrameSlotTypeException; | 100 void setBoolean(FrameSlot slot, boolean value); |
100 | 101 |
101 /** | 102 /** |
102 * Read access to a local variable of type int. | 103 * Read access to a local variable of type int. |
103 * | 104 * |
104 * @param slot the slot of the local variable | 105 * @param slot the slot of the local variable |
110 * Write access to a local variable of type int. | 111 * Write access to a local variable of type int. |
111 * | 112 * |
112 * @param slot the slot of the local variable | 113 * @param slot the slot of the local variable |
113 * @param value the new value of the local variable | 114 * @param value the new value of the local variable |
114 */ | 115 */ |
115 void setInt(FrameSlot slot, int value) throws FrameSlotTypeException; | 116 void setInt(FrameSlot slot, int value); |
116 | 117 |
117 /** | 118 /** |
118 * Read access to a local variable of type long. | 119 * Read access to a local variable of type long. |
119 * | 120 * |
120 * @param slot the slot of the local variable | 121 * @param slot the slot of the local variable |
126 * Write access to a local variable of type long. | 127 * Write access to a local variable of type long. |
127 * | 128 * |
128 * @param slot the slot of the local variable | 129 * @param slot the slot of the local variable |
129 * @param value the new value of the local variable | 130 * @param value the new value of the local variable |
130 */ | 131 */ |
131 void setLong(FrameSlot slot, long value) throws FrameSlotTypeException; | 132 void setLong(FrameSlot slot, long value); |
132 | 133 |
133 /** | 134 /** |
134 * Read access to a local variable of type float. | 135 * Read access to a local variable of type float. |
135 * | 136 * |
136 * @param slot the slot of the local variable | 137 * @param slot the slot of the local variable |
142 * Write access to a local variable of type float. | 143 * Write access to a local variable of type float. |
143 * | 144 * |
144 * @param slot the slot of the local variable | 145 * @param slot the slot of the local variable |
145 * @param value the new value of the local variable | 146 * @param value the new value of the local variable |
146 */ | 147 */ |
147 void setFloat(FrameSlot slot, float value) throws FrameSlotTypeException; | 148 void setFloat(FrameSlot slot, float value); |
148 | 149 |
149 /** | 150 /** |
150 * Read access to a local variable of type double. | 151 * Read access to a local variable of type double. |
151 * | 152 * |
152 * @param slot the slot of the local variable | 153 * @param slot the slot of the local variable |
158 * Write access to a local variable of type double. | 159 * Write access to a local variable of type double. |
159 * | 160 * |
160 * @param slot the slot of the local variable | 161 * @param slot the slot of the local variable |
161 * @param value the new value of the local variable | 162 * @param value the new value of the local variable |
162 */ | 163 */ |
163 void setDouble(FrameSlot slot, double value) throws FrameSlotTypeException; | 164 void setDouble(FrameSlot slot, double value); |
164 | 165 |
165 /** | 166 /** |
166 * Read access to a local variable of any type. | 167 * Read access to a local variable of any type. |
167 * | 168 * |
168 * @param slot the slot of the local variable | 169 * @param slot the slot of the local variable |