Mercurial > hg > graal-jvmci-8
comparison mx/sanitycheck.py @ 9803:8e33b4ebfef1
add isGraalEnabled(vm) function in commands.py
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Thu, 23 May 2013 13:14:08 +0200 |
parents | ea24896c95c9 |
children | d9fcc82766da |
comparison
equal
deleted
inserted
replaced
9802:9dcd6f8a843b | 9803:8e33b4ebfef1 |
---|---|
233 jre = join(jre, 'jre') | 233 jre = join(jre, 'jre') |
234 rtjar = join(jre, 'lib', 'rt.jar') | 234 rtjar = join(jre, 'lib', 'rt.jar') |
235 | 235 |
236 | 236 |
237 args = ['-XX:+CompileTheWorld', '-Xbootclasspath/p:' + rtjar] | 237 args = ['-XX:+CompileTheWorld', '-Xbootclasspath/p:' + rtjar] |
238 if not vm.endswith('-nograal'): | 238 if commands.isGraalEnabled(vm): |
239 args += ['-XX:+BootstrapGraal', '-G:-Debug'] | 239 args += ['-XX:+BootstrapGraal', '-G:-Debug'] |
240 if mode >= CTWMode.NoInline: | 240 if mode >= CTWMode.NoInline: |
241 if vm.endswith('-nograal'): | 241 if not commands.isGraalEnabled(vm): |
242 args.append('-XX:-Inline') | 242 args.append('-XX:-Inline') |
243 else: | 243 else: |
244 args.append('-G:-Inline') | 244 args.append('-G:-Inline') |
245 if mode >= CTWMode.NoComplex: | 245 if mode >= CTWMode.NoComplex: |
246 if not vm.endswith('-nograal'): | 246 if commands.isGraalEnabled(vm): |
247 args += ['-G:-OptLoopTransform', '-G:-OptTailDuplication', '-G:-FullUnroll', '-G:-MemoryAwareScheduling', '-G:-PartialEscapeAnalysis'] | 247 args += ['-G:-OptLoopTransform', '-G:-OptTailDuplication', '-G:-FullUnroll', '-G:-MemoryAwareScheduling', '-G:-PartialEscapeAnalysis'] |
248 | 248 |
249 return Test("CompileTheWorld", args, successREs=[time], scoreMatchers=[scoreMatcher], benchmarkCompilationRate=False) | 249 return Test("CompileTheWorld", args, successREs=[time], scoreMatchers=[scoreMatcher], benchmarkCompilationRate=False) |
250 | 250 |
251 | 251 |