Mercurial > hg > truffle
changeset 16761:e5e1013c04fd
SL: adapt SL for @Generic to @Fallback rename.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 11 Aug 2014 15:57:47 +0200 |
parents | 9f38d222fa6c |
children | ea9903f9684f |
files | graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/expression/SLEqualNode.java graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/local/SLWriteLocalVariableNode.java |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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. * <p> - * 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