# HG changeset patch # User Jaroslav Tulach # Date 1441288115 -7200 # Node ID 8d2bdc8020029fb613257e28c61c51965492c8b4 # Parent ff7b5334d725c9cfd740d815b13f8b4e0cf4d90b Fixing the formating the way E. formater likes it diff -r ff7b5334d725 -r 8d2bdc802002 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 10:30:40 2015 +0200 +++ b/truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLLanguage.java Thu Sep 03 15:48:35 2015 +0200 @@ -181,9 +181,9 @@ private static boolean coverage = false; /* Small tools that can be installed for demonstration */ -// private static NodeExecCounter nodeExecCounter = null; -// private static NodeExecCounter statementExecCounter = null; -// private static CoverageTracker coverageTracker = null; + // private static NodeExecCounter nodeExecCounter = null; + // private static NodeExecCounter statementExecCounter = null; + // private static CoverageTracker coverageTracker = null; /** * The main entry point. Use the mx command "mx sl" to run it with the correct class path setup. @@ -455,43 +455,43 @@ // TODO (mlvdv) remove the static hack when we no longer have the static demo variables private static void setupToolDemos() { -// if (statementCounts || coverage) { -// if (registeredASTProber == null) { -// final ASTProber newProber = new SLStandardASTProber(); -// // This should be registered on the TruffleVM -// Probe.registerASTProber(newProber); -// registeredASTProber = newProber; -// } -// } -// if (nodeExecCounts) { -// nodeExecCounter = new NodeExecCounter(); -// nodeExecCounter.install(); -// } -// -// if (statementCounts) { -// statementExecCounter = new NodeExecCounter(StandardSyntaxTag.STATEMENT); -// statementExecCounter.install(); -// } -// -// if (coverage) { -// coverageTracker = new CoverageTracker(); -// coverageTracker.install(); -// } + // if (statementCounts || coverage) { + // if (registeredASTProber == null) { + // final ASTProber newProber = new SLStandardASTProber(); + // // This should be registered on the TruffleVM + // Probe.registerASTProber(newProber); + // registeredASTProber = newProber; + // } + // } + // if (nodeExecCounts) { + // nodeExecCounter = new NodeExecCounter(); + // nodeExecCounter.install(); + // } + // + // if (statementCounts) { + // statementExecCounter = new NodeExecCounter(StandardSyntaxTag.STATEMENT); + // statementExecCounter.install(); + // } + // + // if (coverage) { + // coverageTracker = new CoverageTracker(); + // coverageTracker.install(); + // } } private static void reportToolDemos() { -// if (nodeExecCounter != null) { -// nodeExecCounter.print(System.out); -// nodeExecCounter.dispose(); -// } -// if (statementExecCounter != null) { -// statementExecCounter.print(System.out); -// statementExecCounter.dispose(); -// } -// if (coverageTracker != null) { -// coverageTracker.print(System.out); -// coverageTracker.dispose(); -// } + // if (nodeExecCounter != null) { + // nodeExecCounter.print(System.out); + // nodeExecCounter.dispose(); + // } + // if (statementExecCounter != null) { + // statementExecCounter.print(System.out); + // statementExecCounter.dispose(); + // } + // if (coverageTracker != null) { + // coverageTracker.print(System.out); + // coverageTracker.dispose(); + // } } public Node createFindContextNode0() {