Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.api.codegen.test/src/com/oracle/truffle/api/codegen/test/RuntimeStringTest.java @ 8251:cb70ed101b5f
Added automatic generation of generic specialization which throws unsupported operation if reached.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Wed, 13 Mar 2013 11:32:43 +0100 |
parents | aad7e9f4f71c |
children | 141af6b3b72b |
comparison
equal
deleted
inserted
replaced
8250:edc414f52e2b | 8251:cb70ed101b5f |
---|---|
26 | 26 |
27 import com.oracle.truffle.api.*; | 27 import com.oracle.truffle.api.*; |
28 import com.oracle.truffle.api.codegen.*; | 28 import com.oracle.truffle.api.codegen.*; |
29 import com.oracle.truffle.api.codegen.test.TypeSystemTest.TestRootNode; | 29 import com.oracle.truffle.api.codegen.test.TypeSystemTest.TestRootNode; |
30 import com.oracle.truffle.api.codegen.test.TypeSystemTest.ValueNode; | 30 import com.oracle.truffle.api.codegen.test.TypeSystemTest.ValueNode; |
31 import com.oracle.truffle.api.nodes.*; | |
31 | 32 |
32 public class RuntimeStringTest { | 33 public class RuntimeStringTest { |
33 | 34 |
34 @Test | 35 @Test |
35 public void testSubstr() { | 36 public void testSubstr() { |
84 | 85 |
85 @Override | 86 @Override |
86 Object execute() { | 87 Object execute() { |
87 return arguments[index]; | 88 return arguments[index]; |
88 } | 89 } |
90 | |
89 } | 91 } |
90 | 92 |
91 abstract static class BuiltinNode extends ValueNode { | 93 abstract static class BuiltinNode extends ValueNode { |
92 | 94 |
93 @Children ArgNode[] parameters; | 95 @Children ArgNode[] parameters; |