Mercurial > hg > graal-compiler
comparison mx/mx_graal.py @ 21568:3b8bbf51d320
Truffle/Debugging: add the Truffle DebugEngine and supporting code, as well as add a crude command-line debugging tool used mainly to test the DebugEngine. Migrate the small tols out of project com.oracle.truffle.api into the new project com.oracle.truffle.tools.
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Tue, 26 May 2015 16:38:13 -0700 |
parents | f172a195a8a9 |
children | fc376e0b80ba |
comparison
equal
deleted
inserted
replaced
21470:1bbef57f9a38 | 21568:3b8bbf51d320 |
---|---|
2404 | 2404 |
2405 def sl(args): | 2405 def sl(args): |
2406 """run an SL program""" | 2406 """run an SL program""" |
2407 vmArgs, slArgs = _extract_VM_args(args) | 2407 vmArgs, slArgs = _extract_VM_args(args) |
2408 vm(vmArgs + ['-cp', mx.classpath(["TRUFFLE", "com.oracle.truffle.sl"]), "com.oracle.truffle.sl.SLMain"] + slArgs) | 2408 vm(vmArgs + ['-cp', mx.classpath(["TRUFFLE", "com.oracle.truffle.sl"]), "com.oracle.truffle.sl.SLMain"] + slArgs) |
2409 | |
2410 def sldebug(args): | |
2411 """run a simple command line debugger for the Simple Language""" | |
2412 vmArgs, slArgs = _extract_VM_args(args, useDoubleDash=True) | |
2413 vm(vmArgs + ['-cp', mx.classpath("com.oracle.truffle.sl.tools.debug"), "com.oracle.truffle.sl.tools.debug.SLREPLServer"] + slArgs) | |
2409 | 2414 |
2410 def isGraalEnabled(vm): | 2415 def isGraalEnabled(vm): |
2411 return vm != 'original' and not vm.endswith('nograal') | 2416 return vm != 'original' and not vm.endswith('nograal') |
2412 | 2417 |
2413 def jol(args): | 2418 def jol(args): |
2651 'vmg': [vmg, '[-options] class [args...]'], | 2656 'vmg': [vmg, '[-options] class [args...]'], |
2652 'vmfg': [vmfg, '[-options] class [args...]'], | 2657 'vmfg': [vmfg, '[-options] class [args...]'], |
2653 'deoptalot' : [deoptalot, '[n]'], | 2658 'deoptalot' : [deoptalot, '[n]'], |
2654 'longtests' : [longtests, ''], | 2659 'longtests' : [longtests, ''], |
2655 'sl' : [sl, '[SL args|@VM options]'], | 2660 'sl' : [sl, '[SL args|@VM options]'], |
2661 'sldebug' : [sldebug, '[SL args|@VM options]'], | |
2656 'jol' : [jol, ''], | 2662 'jol' : [jol, ''], |
2657 } | 2663 } |
2658 | 2664 |
2659 mx.add_argument('--jacoco', help='instruments com.oracle.* classes using JaCoCo', default='off', choices=['off', 'on', 'append']) | 2665 mx.add_argument('--jacoco', help='instruments com.oracle.* classes using JaCoCo', default='off', choices=['off', 'on', 'append']) |
2660 mx.add_argument('--vmcwd', dest='vm_cwd', help='current directory will be changed to <path> before the VM is executed', default=None, metavar='<path>') | 2666 mx.add_argument('--vmcwd', dest='vm_cwd', help='current directory will be changed to <path> before the VM is executed', default=None, metavar='<path>') |