Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/ArrayTest.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 |
---|---|
33 public class ArrayTest { | 33 public class ArrayTest { |
34 | 34 |
35 @Test | 35 @Test |
36 public void testNode1() { | 36 public void testNode1() { |
37 final TestNode1 node = TestNode1NodeGen.create(null); | 37 final TestNode1 node = TestNode1NodeGen.create(null); |
38 RootNode root = new RootNode() { | 38 RootNode root = new RootNode(TestingLanguage.class, null, null) { |
39 @Child TestNode1 test = node; | 39 @Child TestNode1 test = node; |
40 | 40 |
41 @Override | 41 @Override |
42 public Object execute(VirtualFrame frame) { | 42 public Object execute(VirtualFrame frame) { |
43 return test.executeWith(frame, frame.getArguments()[0]); | 43 return test.executeWith(frame, frame.getArguments()[0]); |