Mercurial > hg > truffle
comparison mx.truffle/mx_truffle.py @ 22467:5573f12b94f8
Merge
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Wed, 18 Nov 2015 20:38:32 -0800 |
parents | c3e397ce5941 3ed94f641d52 |
children | 07f3efb4e321 |
comparison
equal
deleted
inserted
replaced
22466:57afe7055486 | 22467:5573f12b94f8 |
---|---|
42 def sl(args): | 42 def sl(args): |
43 """run an SL program""" | 43 """run an SL program""" |
44 vmArgs, slArgs = mx.extract_VM_args(args) | 44 vmArgs, slArgs = mx.extract_VM_args(args) |
45 mx.run_java(vmArgs + ['-cp', mx.classpath(["TRUFFLE_API", "com.oracle.truffle.sl"]), "com.oracle.truffle.sl.SLLanguage"] + slArgs) | 45 mx.run_java(vmArgs + ['-cp', mx.classpath(["TRUFFLE_API", "com.oracle.truffle.sl"]), "com.oracle.truffle.sl.SLLanguage"] + slArgs) |
46 | 46 |
47 def slcoverage(args): | |
48 """Demo: run an SL program with coverage counts printed when done""" | |
49 vmArgs, slArgs = mx.extract_VM_args(args) | |
50 mx.run_java(vmArgs + ['-cp', mx.classpath("com.oracle.truffle.sl.tools"), "com.oracle.truffle.sl.tools.SLCoverage"] + slArgs) | |
51 | |
47 def sldebug(args): | 52 def sldebug(args): |
48 """run a simple command line debugger for the Simple Language""" | 53 """run a simple command line debugger for the Simple Language""" |
49 vmArgs, slArgs = mx.extract_VM_args(args, useDoubleDash=True) | 54 vmArgs, slArgs = mx.extract_VM_args(args, useDoubleDash=True) |
50 mx.run_java(vmArgs + ['-cp', mx.classpath("com.oracle.truffle.sl.tools"), "com.oracle.truffle.sl.tools.debug.SLREPL"] + slArgs) | 55 mx.run_java(vmArgs + ['-cp', mx.classpath("com.oracle.truffle.sl.tools"), "com.oracle.truffle.sl.tools.debug.SLREPL"] + slArgs) |
51 | 56 |
56 mx_gate.add_gate_runner(_suite, _truffle_gate_runner) | 61 mx_gate.add_gate_runner(_suite, _truffle_gate_runner) |
57 | 62 |
58 mx.update_commands(_suite, { | 63 mx.update_commands(_suite, { |
59 'sl' : [sl, '[SL args|@VM options]'], | 64 'sl' : [sl, '[SL args|@VM options]'], |
60 'sldebug' : [sldebug, '[SL args|@VM options]'], | 65 'sldebug' : [sldebug, '[SL args|@VM options]'], |
66 'slcoverage' : [slcoverage, '[SL args|@VM options]'], | |
61 }) | 67 }) |