Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/vm/ImplicitExplicitExportTest.java @ 22219:1c0f490984d5
Merge with f47b601edbc626dcfe8b3636933b4834c89f7779
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Wed, 16 Sep 2015 15:36:22 -0700 |
parents | dc83cc1f94f2 d3bdaa91bc82 |
children | 20380d1d41f2 |
comparison
equal
deleted
inserted
replaced
22160:0599e2df6a9f | 22219:1c0f490984d5 |
---|---|
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.test.vm; | 23 package com.oracle.truffle.api.test.vm; |
24 | 24 |
25 import com.oracle.truffle.api.CallTarget; | 25 import static org.junit.Assert.assertEquals; |
26 import com.oracle.truffle.api.RootCallTarget; | 26 import static org.junit.Assert.assertNotEquals; |
27 import com.oracle.truffle.api.TruffleLanguage; | 27 import static org.junit.Assert.assertTrue; |
28 import com.oracle.truffle.api.TruffleLanguage.Env; | 28 |
29 import com.oracle.truffle.api.debug.DebugSupportProvider; | |
30 import com.oracle.truffle.api.instrument.ToolSupportProvider; | |
31 import com.oracle.truffle.api.nodes.Node; | |
32 import com.oracle.truffle.api.nodes.RootNode; | |
33 import com.oracle.truffle.api.source.Source; | |
34 import com.oracle.truffle.api.vm.TruffleVM; | |
35 import java.io.IOException; | 29 import java.io.IOException; |
36 import java.io.Reader; | 30 import java.io.Reader; |
37 import java.util.Enumeration; | 31 import java.util.Enumeration; |
38 import java.util.HashMap; | 32 import java.util.HashMap; |
39 import java.util.Map; | 33 import java.util.Map; |
40 import java.util.Properties; | 34 import java.util.Properties; |
41 import java.util.concurrent.Executors; | 35 import java.util.concurrent.Executors; |
36 | |
42 import org.junit.After; | 37 import org.junit.After; |
43 import static org.junit.Assert.assertEquals; | |
44 import static org.junit.Assert.assertNotEquals; | |
45 import static org.junit.Assert.assertTrue; | |
46 import org.junit.Before; | 38 import org.junit.Before; |
47 import org.junit.Test; | 39 import org.junit.Test; |
40 | |
41 import com.oracle.truffle.api.CallTarget; | |
42 import com.oracle.truffle.api.RootCallTarget; | |
43 import com.oracle.truffle.api.TruffleLanguage; | |
44 import com.oracle.truffle.api.TruffleLanguage.Env; | |
45 import com.oracle.truffle.api.debug.DebugSupportProvider; | |
46 import com.oracle.truffle.api.frame.MaterializedFrame; | |
47 import com.oracle.truffle.api.instrument.ASTProber; | |
48 import com.oracle.truffle.api.instrument.AdvancedInstrumentResultListener; | |
49 import com.oracle.truffle.api.instrument.AdvancedInstrumentRootFactory; | |
50 import com.oracle.truffle.api.instrument.ToolSupportProvider; | |
51 import com.oracle.truffle.api.instrument.Visualizer; | |
52 import com.oracle.truffle.api.nodes.Node; | |
53 import com.oracle.truffle.api.nodes.RootNode; | |
54 import com.oracle.truffle.api.source.Source; | |
55 import com.oracle.truffle.api.vm.TruffleVM; | |
48 | 56 |
49 public class ImplicitExplicitExportTest { | 57 public class ImplicitExplicitExportTest { |
50 private static Thread mainThread; | 58 private static Thread mainThread; |
51 private TruffleVM vm; | 59 private TruffleVM vm; |
52 | 60 |
170 protected boolean isObjectOfLanguage(Object object) { | 178 protected boolean isObjectOfLanguage(Object object) { |
171 return false; | 179 return false; |
172 } | 180 } |
173 | 181 |
174 @Override | 182 @Override |
183 protected Visualizer getVisualizer() { | |
184 return null; | |
185 } | |
186 | |
187 @Override | |
188 protected ASTProber getDefaultASTProber() { | |
189 return null; | |
190 } | |
191 | |
192 @Override | |
193 protected Object evalInContext(Source source, Node node, MaterializedFrame mFrame) throws IOException { | |
194 return null; | |
195 } | |
196 | |
197 @Override | |
198 protected AdvancedInstrumentRootFactory createAdvancedInstrumentRootFactory(String expr, AdvancedInstrumentResultListener resultListener) throws IOException { | |
199 return null; | |
200 } | |
201 | |
202 @SuppressWarnings("deprecation") | |
203 @Override | |
175 protected ToolSupportProvider getToolSupport() { | 204 protected ToolSupportProvider getToolSupport() { |
176 return null; | 205 throw new UnsupportedOperationException(); |
177 } | 206 } |
178 | 207 |
208 @SuppressWarnings("deprecation") | |
179 @Override | 209 @Override |
180 protected DebugSupportProvider getDebugSupport() { | 210 protected DebugSupportProvider getDebugSupport() { |
181 return null; | 211 throw new UnsupportedOperationException(); |
212 } | |
213 | |
214 @SuppressWarnings("deprecation") | |
215 @Override | |
216 protected void enableASTProbing(ASTProber astProber) { | |
217 throw new UnsupportedOperationException(); | |
182 } | 218 } |
183 | 219 |
184 private Object importExport(Source code) { | 220 private Object importExport(Source code) { |
185 assertNotEquals("Should run asynchronously", Thread.currentThread(), mainThread); | 221 assertNotEquals("Should run asynchronously", Thread.currentThread(), mainThread); |
186 final Node node = createFindContextNode(); | 222 final Node node = createFindContextNode(); |