# HG changeset patch # User Tom Rodriguez # Date 1435267481 25200 # Node ID eed96001920d5e1c93e918aec96d945bfec84c0f # Parent 91edea43c0754096bb5cafb7af253d2b5057a34f Don't allow late binding of NodeIntrisic arguments in Snippets diff -r 91edea43c075 -r eed96001920d graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/NodeIntrinsificationPlugin.java --- a/graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/NodeIntrinsificationPlugin.java Thu Jun 25 14:24:07 2015 -0700 +++ b/graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/NodeIntrinsificationPlugin.java Thu Jun 25 14:24:41 2015 -0700 @@ -195,8 +195,7 @@ private ValueNode createNodeIntrinsic(GraphBuilderContext b, ResolvedJavaMethod method, NodeIntrinsic intrinsic, List args, Stamp stamp) { ValueNode res = nodeIntrinsification.createIntrinsicNode(args, stamp, method, b.getGraph(), intrinsic); - assert res != null || b.getGraph().method().getAnnotation(Snippet.class) != null : String.format( - "Could not create node intrinsic for call to %s as one of the arguments expected to be constant isn't: arguments=%s", method.format("%H.%n(%p)"), args); + assert res != null : String.format("Could not create node intrinsic for call to %s as one of the arguments expected to be constant isn't: arguments=%s", method.format("%H.%n(%p)"), args); return res; } }