Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLLanguage.java @ 22125:8d2bdc802002
Fixing the formating the way E. formater likes it
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Thu, 03 Sep 2015 15:48:35 +0200 |
parents | ff7b5334d725 |
children | 7d4e42092f39 |
comparison
equal
deleted
inserted
replaced
22124:ff7b5334d725 | 22125:8d2bdc802002 |
---|---|
179 private static boolean statementCounts = false; | 179 private static boolean statementCounts = false; |
180 /* Enables demonstration of per-line tabulation of STATEMENT coverage */ | 180 /* Enables demonstration of per-line tabulation of STATEMENT coverage */ |
181 private static boolean coverage = false; | 181 private static boolean coverage = false; |
182 | 182 |
183 /* Small tools that can be installed for demonstration */ | 183 /* Small tools that can be installed for demonstration */ |
184 // private static NodeExecCounter nodeExecCounter = null; | 184 // private static NodeExecCounter nodeExecCounter = null; |
185 // private static NodeExecCounter statementExecCounter = null; | 185 // private static NodeExecCounter statementExecCounter = null; |
186 // private static CoverageTracker coverageTracker = null; | 186 // private static CoverageTracker coverageTracker = null; |
187 | 187 |
188 /** | 188 /** |
189 * The main entry point. Use the mx command "mx sl" to run it with the correct class path setup. | 189 * The main entry point. Use the mx command "mx sl" to run it with the correct class path setup. |
190 */ | 190 */ |
191 public static void main(String[] args) throws IOException { | 191 public static void main(String[] args) throws IOException { |
453 return debugSupport; | 453 return debugSupport; |
454 } | 454 } |
455 | 455 |
456 // TODO (mlvdv) remove the static hack when we no longer have the static demo variables | 456 // TODO (mlvdv) remove the static hack when we no longer have the static demo variables |
457 private static void setupToolDemos() { | 457 private static void setupToolDemos() { |
458 // if (statementCounts || coverage) { | 458 // if (statementCounts || coverage) { |
459 // if (registeredASTProber == null) { | 459 // if (registeredASTProber == null) { |
460 // final ASTProber newProber = new SLStandardASTProber(); | 460 // final ASTProber newProber = new SLStandardASTProber(); |
461 // // This should be registered on the TruffleVM | 461 // // This should be registered on the TruffleVM |
462 // Probe.registerASTProber(newProber); | 462 // Probe.registerASTProber(newProber); |
463 // registeredASTProber = newProber; | 463 // registeredASTProber = newProber; |
464 // } | 464 // } |
465 // } | 465 // } |
466 // if (nodeExecCounts) { | 466 // if (nodeExecCounts) { |
467 // nodeExecCounter = new NodeExecCounter(); | 467 // nodeExecCounter = new NodeExecCounter(); |
468 // nodeExecCounter.install(); | 468 // nodeExecCounter.install(); |
469 // } | 469 // } |
470 // | 470 // |
471 // if (statementCounts) { | 471 // if (statementCounts) { |
472 // statementExecCounter = new NodeExecCounter(StandardSyntaxTag.STATEMENT); | 472 // statementExecCounter = new NodeExecCounter(StandardSyntaxTag.STATEMENT); |
473 // statementExecCounter.install(); | 473 // statementExecCounter.install(); |
474 // } | 474 // } |
475 // | 475 // |
476 // if (coverage) { | 476 // if (coverage) { |
477 // coverageTracker = new CoverageTracker(); | 477 // coverageTracker = new CoverageTracker(); |
478 // coverageTracker.install(); | 478 // coverageTracker.install(); |
479 // } | 479 // } |
480 } | 480 } |
481 | 481 |
482 private static void reportToolDemos() { | 482 private static void reportToolDemos() { |
483 // if (nodeExecCounter != null) { | 483 // if (nodeExecCounter != null) { |
484 // nodeExecCounter.print(System.out); | 484 // nodeExecCounter.print(System.out); |
485 // nodeExecCounter.dispose(); | 485 // nodeExecCounter.dispose(); |
486 // } | 486 // } |
487 // if (statementExecCounter != null) { | 487 // if (statementExecCounter != null) { |
488 // statementExecCounter.print(System.out); | 488 // statementExecCounter.print(System.out); |
489 // statementExecCounter.dispose(); | 489 // statementExecCounter.dispose(); |
490 // } | 490 // } |
491 // if (coverageTracker != null) { | 491 // if (coverageTracker != null) { |
492 // coverageTracker.print(System.out); | 492 // coverageTracker.print(System.out); |
493 // coverageTracker.dispose(); | 493 // coverageTracker.dispose(); |
494 // } | 494 // } |
495 } | 495 } |
496 | 496 |
497 public Node createFindContextNode0() { | 497 public Node createFindContextNode0() { |
498 return createFindContextNode(); | 498 return createFindContextNode(); |
499 } | 499 } |