# HG changeset patch # User Christian Humer # Date 1407765467 -7200 # Node ID e5e1013c04fdbb2641c5083630af7199f76f97f5 # Parent 9f38d222fa6c741531a8a9573e099f4d810deb49 SL: adapt SL for @Generic to @Fallback rename. diff -r 9f38d222fa6c -r e5e1013c04fd graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/expression/SLEqualNode.java --- a/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/expression/SLEqualNode.java Mon Aug 11 15:57:47 2014 +0200 +++ b/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/expression/SLEqualNode.java Mon Aug 11 15:57:47 2014 +0200 @@ -83,11 +83,11 @@ } /** - * The {@link Generic} annotation informs the Truffle DSL that this method should be executed + * The {@link Fallback} annotation informs the Truffle DSL that this method should be executed * when no {@link Specialization specialized method} matches. The operand types must be * {@link Object}. */ - @Generic + @Fallback protected boolean equal(Object left, Object right) { /* * We covered all the cases that can return true in specializations. If we compare two diff -r 9f38d222fa6c -r e5e1013c04fd graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/local/SLWriteLocalVariableNode.java --- a/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/local/SLWriteLocalVariableNode.java Mon Aug 11 15:57:47 2014 +0200 +++ b/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/local/SLWriteLocalVariableNode.java Mon Aug 11 15:57:47 2014 +0200 @@ -66,8 +66,8 @@ /** * Generic write method that works for all possible types. *

- * Why is this method annotated with {@link Specialization} and not {@link Generic}? For a - * {@link Generic} method, the Truffle DSL generated code would try all other specializations + * Why is this method annotated with {@link Specialization} and not {@link Fallback}? For a + * {@link Fallback} method, the Truffle DSL generated code would try all other specializations * first before calling this method. We know that all these specializations would fail their * guards, so there is no point in calling them. Since this method takes a value of type * {@link Object}, it is guaranteed to never fail, i.e., once we are in this specialization the