Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/TestingLanguage.java @ 22215:d3bdaa91bc82
Truffle/Instrumentation: method signature on TruffleLanguage for getting each language's "default" ASTProber
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Tue, 15 Sep 2015 11:57:05 -0700 |
parents | 3aad794eec0e |
children | 20380d1d41f2 |
comparison
equal
deleted
inserted
replaced
22214:3aad794eec0e | 22215:d3bdaa91bc82 |
---|---|
20 * or visit www.oracle.com if you need additional information or have any | 20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. | 21 * questions. |
22 */ | 22 */ |
23 package com.oracle.truffle.api.dsl.test; | 23 package com.oracle.truffle.api.dsl.test; |
24 | 24 |
25 import java.io.IOException; | |
26 | |
25 import com.oracle.truffle.api.CallTarget; | 27 import com.oracle.truffle.api.CallTarget; |
26 import com.oracle.truffle.api.TruffleLanguage; | 28 import com.oracle.truffle.api.TruffleLanguage; |
27 import com.oracle.truffle.api.debug.DebugSupportProvider; | 29 import com.oracle.truffle.api.debug.DebugSupportProvider; |
28 import com.oracle.truffle.api.frame.MaterializedFrame; | 30 import com.oracle.truffle.api.frame.MaterializedFrame; |
29 import com.oracle.truffle.api.instrument.ASTProber; | 31 import com.oracle.truffle.api.instrument.ASTProber; |
31 import com.oracle.truffle.api.instrument.AdvancedInstrumentRootFactory; | 33 import com.oracle.truffle.api.instrument.AdvancedInstrumentRootFactory; |
32 import com.oracle.truffle.api.instrument.ToolSupportProvider; | 34 import com.oracle.truffle.api.instrument.ToolSupportProvider; |
33 import com.oracle.truffle.api.instrument.Visualizer; | 35 import com.oracle.truffle.api.instrument.Visualizer; |
34 import com.oracle.truffle.api.nodes.Node; | 36 import com.oracle.truffle.api.nodes.Node; |
35 import com.oracle.truffle.api.source.Source; | 37 import com.oracle.truffle.api.source.Source; |
36 | |
37 import java.io.IOException; | |
38 import java.util.Collections; | |
39 import java.util.List; | |
40 | 38 |
41 public final class TestingLanguage extends TruffleLanguage<Object> { | 39 public final class TestingLanguage extends TruffleLanguage<Object> { |
42 public static final TestingLanguage INSTANCE = new TestingLanguage(); | 40 public static final TestingLanguage INSTANCE = new TestingLanguage(); |
43 | 41 |
44 private TestingLanguage() { | 42 private TestingLanguage() { |
69 protected Visualizer getVisualizer() { | 67 protected Visualizer getVisualizer() { |
70 return null; | 68 return null; |
71 } | 69 } |
72 | 70 |
73 @Override | 71 @Override |
74 protected List<ASTProber> getASTProbers() { | 72 protected ASTProber getDefaultASTProber() { |
75 return Collections.emptyList(); | 73 return null; |
76 } | 74 } |
77 | 75 |
78 @SuppressWarnings("deprecation") | 76 @SuppressWarnings("deprecation") |
79 @Override | 77 @Override |
80 protected void enableASTProbing(ASTProber astProber) { | 78 protected void enableASTProbing(ASTProber astProber) { |