Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/CallTest.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 |
---|---|
58 | 58 |
59 private final CallTarget firstTarget; | 59 private final CallTarget firstTarget; |
60 private final CallTarget secondTarget; | 60 private final CallTarget secondTarget; |
61 | 61 |
62 DualCallNode(CallTarget firstTarget, CallTarget secondTarget) { | 62 DualCallNode(CallTarget firstTarget, CallTarget secondTarget) { |
63 super(null); | 63 super(TestingLanguage.class, null, null); |
64 this.firstTarget = firstTarget; | 64 this.firstTarget = firstTarget; |
65 this.secondTarget = secondTarget; | 65 this.secondTarget = secondTarget; |
66 } | 66 } |
67 | 67 |
68 @Override | 68 @Override |
74 class ConstantRootNode extends RootNode { | 74 class ConstantRootNode extends RootNode { |
75 | 75 |
76 private final int value; | 76 private final int value; |
77 | 77 |
78 public ConstantRootNode(int value) { | 78 public ConstantRootNode(int value) { |
79 super(null); | 79 super(TestingLanguage.class, null, null); |
80 this.value = value; | 80 this.value = value; |
81 } | 81 } |
82 | 82 |
83 @Override | 83 @Override |
84 public Object execute(VirtualFrame frame) { | 84 public Object execute(VirtualFrame frame) { |