Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/NodeFieldTest.java @ 20940:476374f3fe9a
Truffle-DSL: generate better polymorphic execute signatures
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Tue, 14 Apr 2015 15:12:48 +0200 |
parents | 5148aab962af |
children |
comparison
equal
deleted
inserted
replaced
20939:f83fd99b2962 | 20940:476374f3fe9a |
---|---|
121 String alwaysRewrite() { | 121 String alwaysRewrite() { |
122 throw new RuntimeException(); | 122 throw new RuntimeException(); |
123 } | 123 } |
124 | 124 |
125 @Specialization(contains = "alwaysRewrite") | 125 @Specialization(contains = "alwaysRewrite") |
126 String returnField() { | 126 Object returnField() { |
127 return getField(); | 127 return getField(); |
128 } | 128 } |
129 } | 129 } |
130 | 130 |
131 @Test | 131 @Test |