Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/vm/ImplicitExplicitExportTest.java @ 21890:894f82515e38
Truffle/APIs and Debugging: Evolutionary steps to integrating debugging and tool support with TruffleVM APIs
- Add a version string to language registration: Language.getShortName() produces a string with both language and version
- Rename SLMain --> SLLanguage (little change current machinery)
- Remove DebugEngine dependence on ExecutionContext: Visualizer access migrated to TruffleLanguage
- ExecutionContext now has only one method left: getCompilerOptions()
- Rename SourceExecutionProvider to DebugSupportProvider, now supplied by implementing abstract TruffleLanguage.getDebugSupport()
- Revise DebugEngine and its helper classes to work with the new APIs
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Tue, 09 Jun 2015 15:20:30 -0700 |
parents | 45083be8a812 |
children |
comparison
equal
deleted
inserted
replaced
21889:45083be8a812 | 21890:894f82515e38 |
---|---|
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.TruffleLanguage; | |
26 import com.oracle.truffle.api.source.Source; | |
27 import com.oracle.truffle.api.vm.TruffleVM; | |
28 import java.io.IOException; | |
29 import java.io.Reader; | |
30 import java.util.Enumeration; | |
31 import java.util.HashMap; | |
32 import java.util.Map; | |
33 import java.util.Properties; | |
34 import static org.junit.Assert.*; | 25 import static org.junit.Assert.*; |
35 import org.junit.Before; | 26 |
36 import org.junit.Test; | 27 import java.io.*; |
28 import java.util.*; | |
29 | |
30 import org.junit.*; | |
31 | |
32 import com.oracle.truffle.api.*; | |
33 import com.oracle.truffle.api.debug.*; | |
34 import com.oracle.truffle.api.instrument.*; | |
35 import com.oracle.truffle.api.source.*; | |
36 import com.oracle.truffle.api.vm.*; | |
37 | 37 |
38 public class ImplicitExplicitExportTest { | 38 public class ImplicitExplicitExportTest { |
39 private TruffleVM vm; | 39 private TruffleVM vm; |
40 | 40 |
41 @Before | 41 @Before |
157 | 157 |
158 @Override | 158 @Override |
159 protected boolean isObjectOfLanguage(Object object) { | 159 protected boolean isObjectOfLanguage(Object object) { |
160 return false; | 160 return false; |
161 } | 161 } |
162 | |
163 @Override | |
164 protected ToolSupportProvider getToolSupport() { | |
165 return null; | |
166 } | |
167 | |
168 @Override | |
169 protected DebugSupportProvider getDebugSupport() { | |
170 return null; | |
171 } | |
162 } | 172 } |
163 | 173 |
164 private static final String L1 = "application/x-test-import-export-1"; | 174 private static final String L1 = "application/x-test-import-export-1"; |
165 private static final String L2 = "application/x-test-import-export-2"; | 175 private static final String L2 = "application/x-test-import-export-2"; |
166 private static final String L3 = "application/x-test-import-export-3"; | 176 private static final String L3 = "application/x-test-import-export-3"; |