Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/CompilerDirectives.java @ 12408:a9837a03127e
Fix wrong modification of ReplacementsImpl macro node method handling.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Tue, 15 Oct 2013 00:31:43 +0200 |
parents | 139b84d713bc |
children | 3e013f4512de |
comparison
equal
deleted
inserted
replaced
12407:53297646b011 | 12408:a9837a03127e |
---|---|
171 * | 171 * |
172 * @param value the value that is known to have been obtained via Frame.materialize | 172 * @param value the value that is known to have been obtained via Frame.materialize |
173 * @return the value to be casted to the new type | 173 * @return the value to be casted to the new type |
174 */ | 174 */ |
175 public static MaterializedFrame unsafeFrameCast(MaterializedFrame value) { | 175 public static MaterializedFrame unsafeFrameCast(MaterializedFrame value) { |
176 return value; | 176 return unsafeCast(value, getUnsafeFrameType(), true); |
177 } | |
178 | |
179 private static Class<? extends MaterializedFrame> getUnsafeFrameType() { | |
180 return MaterializedFrame.class; | |
177 } | 181 } |
178 | 182 |
179 /** | 183 /** |
180 * Unsafe access to a boolean value within an object. The condition parameter gives a hint to | 184 * Unsafe access to a boolean value within an object. The condition parameter gives a hint to |
181 * the compiler under which circumstances this access can be moved to an earlier location in the | 185 * the compiler under which circumstances this access can be moved to an earlier location in the |