Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/NodeContainerTest.java @ 11439:efe58aa92f86
Truffle-DSL: guards can now be declared using any base type or interface of the target value type.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Tue, 27 Aug 2013 22:08:26 +0200 |
parents | c7d9ff67beed |
children |
comparison
equal
deleted
inserted
replaced
11438:b77721210bd6 | 11439:efe58aa92f86 |
---|---|
94 assertSame(context, node.getNode().getContext()); | 94 assertSame(context, node.getNode().getContext()); |
95 // accessible by execution | 95 // accessible by execution |
96 assertSame(context, executeWith(node)); | 96 assertSame(context, executeWith(node)); |
97 } | 97 } |
98 | 98 |
99 static class StrBase { | |
100 | |
101 } | |
102 | |
99 @NodeContainer(BuiltinNode.class) | 103 @NodeContainer(BuiltinNode.class) |
100 static class Str { | 104 static class Str extends StrBase { |
101 | 105 |
102 private final String internal; | 106 private final String internal; |
103 | 107 |
104 public Str(String internal) { | 108 public Str(String internal) { |
105 this.internal = internal; | 109 this.internal = internal; |