Mercurial > hg > truffle
diff graal/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/NodeFieldTest.java @ 16756:5148aab962af
Truffle-DSL: updated tests for the new generation layout.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 11 Aug 2014 15:53:05 +0200 |
parents | 5a0c694ef735 |
children | 476374f3fe9a |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/NodeFieldTest.java Mon Aug 11 15:53:05 2014 +0200 +++ b/graal/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/NodeFieldTest.java Mon Aug 11 15:53:05 2014 +0200 @@ -117,12 +117,12 @@ public abstract String getField(); - @Specialization(order = 1, rewriteOn = RuntimeException.class) + @Specialization(rewriteOn = RuntimeException.class) String alwaysRewrite() { throw new RuntimeException(); } - @Specialization(order = 2) + @Specialization(contains = "alwaysRewrite") String returnField() { return getField(); }