# HG changeset patch # User Jaroslav Tulach # Date 1441289820 -7200 # Node ID 7d4e42092f399cb22b4a23c51c736f686795f0f1 # Parent 8d2bdc8020029fb613257e28c61c51965492c8b4 Removing unused fields. Plus applying formatter which is able to make any comment undreadable. diff -r 8d2bdc802002 -r 7d4e42092f39 truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLLanguage.java --- 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. * - * - *

- * Tools:
- * The use of some of Truffle's support for developer tools (based on the Truffle Instrumentation - * Framework) are demonstrated in this file, for example: - *

- * 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 - * default printer. - * + */ + +/* + * + *

Tools:
The use of some of Truffle's support for developer tools (based on the + * Truffle Instrumentation Framework) are demonstrated in this file, for example:

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 default printer. */ @TruffleLanguage.Registration(name = "SL", version = "0.5", mimeType = "application/x-sl") public final class SLLanguage extends TruffleLanguage { @@ -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;