)) mx_sdk_vm.register_graalvm_component( mx_sdk_vm.GraalVmLanguage( suite=_suite, name='Truffle NFI', short_name='nfi', dir_name='nfi', license_files=[], third_party_license_files=[], dependencies=['Truffle'], truffle_jars=['truffle:TRUFFLE_NFI', 'truffle:TRUFFLE_NFI_LIBFFI'], support_distributions=['truffle:TRUFFLE_NFI_GRAALVM_SUPPORT'], support_libraries_distributions=[ 'truffle:TRUFFLE_NFI_NATIVE_GRAALVM_SUPPORT' ], installable=False, stability="supported", )) mx.update_commands( _suite, { 'check-filename-length': [check_filename_length, ""], 'create-dsl-parser': [create_dsl_parser, "create the DSL expression parser using antlr"], 'create-sl-parser': [create_sl_parser, "create the SimpleLanguage parser using antlr"], }) mx_gate.add_jacoco_includes(['org.graalvm.*', 'com.oracle.truffle.*'])
def get_classpath_repr(self): return self.dist().classpath_repr() _compilers = ['graal-economy', 'graal'] _bootClasspathDists = [ BootClasspathDist('GRAAL'), ] def add_compiler(compilerName): _compilers.append(compilerName) def add_boot_classpath_dist(dist): _bootClasspathDists.append(dist) mx_gate.add_jacoco_includes(['com.oracle.graal.*']) mx_gate.add_jacoco_excluded_annotations(['@Snippet', '@ClassSubstitution']) class JVMCI9MicrobenchExecutor(mx_microbench.MicrobenchExecutor): def parseForkedVmArgs(self, vmArgs): jvm = get_vm() return ['-' + jvm] + _parseVmArgs(_jdk, vmArgs) def run_java(self, args): run_vm(args) mx_microbench.set_microbenchmark_executor(JVMCI9MicrobenchExecutor())
def get_classpath_repr(self): return self.dist().classpath_repr() _compilers = ['graal-economy', 'graal'] _bootClasspathDists = [ BootClasspathDist('GRAAL'), ] def add_compiler(compilerName): _compilers.append(compilerName) def add_boot_classpath_dist(dist): _bootClasspathDists.append(dist) mx_gate.add_jacoco_includes(['org.graalvm.compiler.*']) mx_gate.add_jacoco_excluded_annotations(['@Snippet', '@ClassSubstitution']) # This is different than the 'jmh' commmand in that it # looks for internal JMH benchmarks (i.e. those that # depend on the JMH library). def microbench(args): """run JMH microbenchmark projects""" parser = ArgumentParser(prog='mx microbench', description=microbench.__doc__, usage="%(prog)s [command options|VM options] [-- [JMH options]]") parser.add_argument('--jar', help='Explicitly specify micro-benchmark location') known_args, args = parser.parse_known_args(args) vmArgs, jmhArgs = mx.extract_VM_args(args, useDoubleDash=True) # look for -f in JMH arguments
_compilers = ['graal-economy', 'graal'] _bootClasspathDists = [ BootClasspathDist('GRAAL'), ] def add_compiler(compilerName): _compilers.append(compilerName) def add_boot_classpath_dist(dist): _bootClasspathDists.append(dist) mx_gate.add_jacoco_includes(['org.graalvm.compiler.*']) mx_gate.add_jacoco_excluded_annotations(['@Snippet', '@ClassSubstitution']) # This is different than the 'jmh' commmand in that it # looks for internal JMH benchmarks (i.e. those that # depend on the JMH library). def microbench(args): """run JMH microbenchmark projects""" parser = ArgumentParser( prog='mx microbench', description=microbench.__doc__, usage="%(prog)s [command options|VM options] [-- [JMH options]]") parser.add_argument('--jar', help='Explicitly specify micro-benchmark location') known_args, args = parser.parse_known_args(args)
return self.dist().classpath_repr() _compilers = ["graal-economy", "graal"] _bootClasspathDists = [BootClasspathDist("GRAAL")] def add_compiler(compilerName): _compilers.append(compilerName) def add_boot_classpath_dist(dist): _bootClasspathDists.append(dist) mx_gate.add_jacoco_includes(["com.oracle.graal.*"]) mx_gate.add_jacoco_excluded_annotations(["@Snippet", "@ClassSubstitution"]) # This is different than the 'jmh' commmand in that it # looks for internal JMH benchmarks (i.e. those that # depend on the JMH library). def microbench(args): """run JMH microbenchmark projects""" parser = ArgumentParser( prog="mx microbench", description=microbench.__doc__, usage="%(prog)s [command options|VM options] [-- [JMH options]]", ) parser.add_argument("--jar", help="Explicitly specify micro-benchmark location") known_args, args = parser.parse_known_args(args)