Mercurial > hg > truffle
changeset 22126:7d4e42092f39
Removing unused fields. Plus applying formatter which is able to make any comment undreadable.
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Thu, 03 Sep 2015 16:17:00 +0200 |
parents | 8d2bdc802002 |
children | 5a0cccf023c4 |
files | truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLLanguage.java |
diffstat | 1 files changed, 17 insertions(+), 26 deletions(-) [+] |
line wrap: on
line diff
--- a/truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLLanguage.java Thu Sep 03 15:48:35 2015 +0200 +++ b/truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLLanguage.java Thu Sep 03 16:17:00 2015 +0200 @@ -40,11 +40,6 @@ */ package com.oracle.truffle.sl; -import java.io.*; -import java.math.*; -import java.util.*; -import java.util.Scanner; - import com.oracle.truffle.api.*; import com.oracle.truffle.api.debug.*; import com.oracle.truffle.api.dsl.*; @@ -63,7 +58,14 @@ import com.oracle.truffle.sl.nodes.local.*; import com.oracle.truffle.sl.parser.*; import com.oracle.truffle.sl.runtime.*; +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStreamReader; +import java.io.PrintWriter; +import java.math.BigInteger; import java.nio.file.Path; +import java.util.Collections; +import java.util.List; /** * SL is a simple language to demonstrate and showcase features of Truffle. The implementation is as @@ -137,19 +139,16 @@ * argument and adds them to the function registry. Functions that are already defined are replaced * with the new version. * </ul> - * - * <p> - * <b>Tools:</b><br> - * The use of some of Truffle's support for developer tools (based on the Truffle Instrumentation - * Framework) are demonstrated in this file, for example: - * <ul> - * <li>a {@linkplain NodeExecCounter counter for node executions}, tabulated by node type; and</li> - * <li>a simple {@linkplain CoverageTracker code coverage engine}.</li> - * </ul> - * In each case, the tool is enabled if a corresponding local boolean variable in this file is set - * to {@code true}. Results are printed at the end of the execution using each tool's - * <em>default printer</em>. - * + */ + +/* + * + * <p> <b>Tools:</b><br> The use of some of Truffle's support for developer tools (based on the + * Truffle Instrumentation Framework) are demonstrated in this file, for example: <ul> <li>a + * {@linkplain NodeExecCounter counter for node executions}, tabulated by node type; and</li> <li>a + * simple {@linkplain CoverageTracker code coverage engine}.</li> </ul> In each case, the tool is + * enabled if a corresponding local boolean variable in this file is set to {@code true}. Results + * are printed at the end of the execution using each tool's <em>default printer</em>. */ @TruffleLanguage.Registration(name = "SL", version = "0.5", mimeType = "application/x-sl") public final class SLLanguage extends TruffleLanguage<SLContext> { @@ -172,14 +171,6 @@ return context; } - // TODO (mlvdv) command line options - /* Enables demonstration of per-type tabulation of node execution counts */ - private static boolean nodeExecCounts = false; - /* Enables demonstration of per-line tabulation of STATEMENT node execution counts */ - private static boolean statementCounts = false; - /* Enables demonstration of per-line tabulation of STATEMENT coverage */ - private static boolean coverage = false; - /* Small tools that can be installed for demonstration */ // private static NodeExecCounter nodeExecCounter = null; // private static NodeExecCounter statementExecCounter = null;