Mercurial > hg > graal-compiler
comparison mx/commands.py @ 5245:71ac4221b1b0
added hcfdis command
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 17 Apr 2012 13:38:28 +0200 |
parents | 55ff4ba8d7b1 |
children | a549662f6c6f b8661be84cfd |
comparison
equal
deleted
inserted
replaced
5244:55ff4ba8d7b1 | 5245:71ac4221b1b0 |
---|---|
942 lib = mx.lib_suffix('hsdis-amd64') | 942 lib = mx.lib_suffix('hsdis-amd64') |
943 path = join(_vmLibDirInJdk(_jdk(build)), lib) | 943 path = join(_vmLibDirInJdk(_jdk(build)), lib) |
944 if not exists(path): | 944 if not exists(path): |
945 mx.download(path, ['http://lafo.ssw.uni-linz.ac.at/hsdis/' + flavor + "/" + lib]) | 945 mx.download(path, ['http://lafo.ssw.uni-linz.ac.at/hsdis/' + flavor + "/" + lib]) |
946 | 946 |
947 def hcfdis(args): | |
948 """disassembles HexCodeFiles embedded in text files | |
949 | |
950 Run a tool over the input files to convert all embedded HexCodeFiles | |
951 to a disassembled format.""" | |
952 path = join(_graal_home, 'lib', 'hcfdis.jar') | |
953 if not exists(path): | |
954 mx.download(path, ['http://lafo.ssw.uni-linz.ac.at/hcfdis.jar']) | |
955 mx.run_java(['-jar', path] + args) | |
956 | |
947 def jacocoreport(args): | 957 def jacocoreport(args): |
948 """creates a JaCoCo coverage report | 958 """creates a JaCoCo coverage report |
949 | 959 |
950 Creates the report from the 'jacoco.exec' file in the current directory. | 960 Creates the report from the 'jacoco.exec' file in the current directory. |
951 Default output directory is 'coverage', but an alternative can be provided as an argument.""" | 961 Default output directory is 'coverage', but an alternative can be provided as an argument.""" |
962 commands = { | 972 commands = { |
963 'build': [build, '[-options]'], | 973 'build': [build, '[-options]'], |
964 'buildvms': [buildvms, '[-options]'], | 974 'buildvms': [buildvms, '[-options]'], |
965 'clean': [clean, ''], | 975 'clean': [clean, ''], |
966 'hsdis': [hsdis, '[att]'], | 976 'hsdis': [hsdis, '[att]'], |
977 'hcfdis': [hcfdis, ''], | |
967 'igv' : [igv, ''], | 978 'igv' : [igv, ''], |
968 'intro': [intro, ''], | 979 'intro': [intro, ''], |
969 'jdkhome': [jdkhome, ''], | 980 'jdkhome': [jdkhome, ''], |
970 'dacapo': [dacapo, '[[n] benchmark] [VM options|@DaCapo options]'], | 981 'dacapo': [dacapo, '[[n] benchmark] [VM options|@DaCapo options]'], |
971 'scaladacapo': [scaladacapo, '[[n] benchmark] [VM options|@Scala DaCapo options]'], | 982 'scaladacapo': [scaladacapo, '[[n] benchmark] [VM options|@Scala DaCapo options]'], |