Mercurial > hg > graal-jvmci-8
changeset 22392:59a2f85de5c7
Remove Snippet.removeAllFrameStates
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Tue, 28 Jul 2015 13:00:32 -0700 |
parents | 8a0a21599dcc |
children | bdfd42480dc9 |
files | graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/ObjectCloneSnippets.java graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/Snippet.java |
diffstat | 2 files changed, 9 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/ObjectCloneSnippets.java Tue Jul 28 10:52:41 2015 -0700 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/ObjectCloneSnippets.java Tue Jul 28 13:00:32 2015 -0700 @@ -57,63 +57,63 @@ } } - @Snippet(removeAllFrameStates = true) + @Snippet public static boolean[] booleanArrayClone(boolean[] src) { boolean[] result = (boolean[]) NewArrayNode.newUninitializedArray(Boolean.TYPE, src.length); ArrayCopyCallNode.disjointArraycopy(src, 0, result, 0, src.length, Kind.Boolean); return result; } - @Snippet(removeAllFrameStates = true) + @Snippet public static byte[] byteArrayClone(byte[] src) { byte[] result = (byte[]) NewArrayNode.newUninitializedArray(Byte.TYPE, src.length); ArrayCopyCallNode.disjointArraycopy(src, 0, result, 0, src.length, Kind.Byte); return result; } - @Snippet(removeAllFrameStates = true) + @Snippet public static short[] shortArrayClone(short[] src) { short[] result = (short[]) NewArrayNode.newUninitializedArray(Short.TYPE, src.length); ArrayCopyCallNode.disjointArraycopy(src, 0, result, 0, src.length, Kind.Short); return result; } - @Snippet(removeAllFrameStates = true) + @Snippet public static char[] charArrayClone(char[] src) { char[] result = (char[]) NewArrayNode.newUninitializedArray(Character.TYPE, src.length); ArrayCopyCallNode.disjointArraycopy(src, 0, result, 0, src.length, Kind.Char); return result; } - @Snippet(removeAllFrameStates = true) + @Snippet public static int[] intArrayClone(int[] src) { int[] result = (int[]) NewArrayNode.newUninitializedArray(Integer.TYPE, src.length); ArrayCopyCallNode.disjointArraycopy(src, 0, result, 0, src.length, Kind.Int); return result; } - @Snippet(removeAllFrameStates = true) + @Snippet public static float[] floatArrayClone(float[] src) { float[] result = (float[]) NewArrayNode.newUninitializedArray(Float.TYPE, src.length); ArrayCopyCallNode.disjointArraycopy(src, 0, result, 0, src.length, Kind.Float); return result; } - @Snippet(removeAllFrameStates = true) + @Snippet public static long[] longArrayClone(long[] src) { long[] result = (long[]) NewArrayNode.newUninitializedArray(Long.TYPE, src.length); ArrayCopyCallNode.disjointArraycopy(src, 0, result, 0, src.length, Kind.Long); return result; } - @Snippet(removeAllFrameStates = true) + @Snippet public static double[] doubleArrayClone(double[] src) { double[] result = (double[]) NewArrayNode.newUninitializedArray(Double.TYPE, src.length); ArrayCopyCallNode.disjointArraycopy(src, 0, result, 0, src.length, Kind.Double); return result; } - @Snippet(removeAllFrameStates = true) + @Snippet public static Object[] objectArrayClone(Object[] src) { /* Since this snippet is lowered early the array must be initialized */ Object[] result = (Object[]) DynamicNewArrayNode.newArray(GraalDirectives.guardingNonNull(src.getClass().getComponentType()), src.length, Kind.Object);
--- a/graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/Snippet.java Tue Jul 28 10:52:41 2015 -0700 +++ b/graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/Snippet.java Tue Jul 28 13:00:32 2015 -0700 @@ -35,13 +35,6 @@ public @interface Snippet { /** - * Specifies whether all FrameStates within this snippet should always be removed. If this is - * false, FrameStates are only removed if there are no side-effecting instructions in the - * snippet. - */ - boolean removeAllFrameStates() default false; - - /** * Denotes a snippet parameter representing 0 or more arguments that will be bound during * snippet template {@linkplain SnippetTemplate#instantiate instantiation}. During snippet * template creation, its value must be an array whose length specifies the number of arguments