Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/nodes/NodeUtilTest.java @ 22003:5bc7f7b867ab
Making debugger always on for each TruffleVM execution. Introducing EventConsumer to process such debugger events. Requesting each RootNode to be associated with a TruffleLanguage, so debugger can find out proper context for each Node where executions gets suspended.
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Sat, 18 Jul 2015 18:03:36 +0200 |
parents | 9c8c0937da41 |
children | dc83cc1f94f2 |
comparison
equal
deleted
inserted
replaced
22002:324997830dc9 | 22003:5bc7f7b867ab |
---|---|
29 | 29 |
30 import org.junit.*; | 30 import org.junit.*; |
31 | 31 |
32 import com.oracle.truffle.api.frame.*; | 32 import com.oracle.truffle.api.frame.*; |
33 import com.oracle.truffle.api.nodes.*; | 33 import com.oracle.truffle.api.nodes.*; |
34 import com.oracle.truffle.api.test.TestingLanguage; | |
34 | 35 |
35 public class NodeUtilTest { | 36 public class NodeUtilTest { |
36 | 37 |
37 @Test | 38 @Test |
38 public void testRecursiveIterator1() { | 39 public void testRecursiveIterator1() { |
82 | 83 |
83 @Child TestNode child0; | 84 @Child TestNode child0; |
84 | 85 |
85 private int visited; | 86 private int visited; |
86 | 87 |
88 public TestRootNode() { | |
89 super(TestingLanguage.class, null, null); | |
90 } | |
91 | |
87 @Override | 92 @Override |
88 public Object execute(VirtualFrame frame) { | 93 public Object execute(VirtualFrame frame) { |
89 return null; | 94 return null; |
90 } | 95 } |
91 | 96 |