comparison mx/mx_graal.py @ 14744:bf51a92a1bdd

Add new optional method parameter
author Christian Wimmer <christian.wimmer@oracle.com>
date Tue, 25 Mar 2014 11:50:31 -0700
parents af7b9b9a9a28
children 015f84f0b375
comparison
equal deleted inserted replaced
14743:762c9aceb7d8 14744:bf51a92a1bdd
788 """ 788 """
789 789
790 matches = lambda line: len([a for a in annotations if line == a or line.startswith(a + '(')]) != 0 790 matches = lambda line: len([a for a in annotations if line == a or line.startswith(a + '(')]) != 0
791 return p.find_classes_with_matching_source_line(pkgRoot, matches, includeInnerClasses) 791 return p.find_classes_with_matching_source_line(pkgRoot, matches, includeInnerClasses)
792 792
793 def _extract_VM_args(args, allowClasspath=False, useDoubleDash=False): 793 def _extract_VM_args(args, allowClasspath=False, useDoubleDash=False, defaultAllVMArgs=True):
794 """ 794 """
795 Partitions a command line into a leading sequence of HotSpot VM options and the rest. 795 Partitions a command line into a leading sequence of HotSpot VM options and the rest.
796 """ 796 """
797 for i in range(0, len(args)): 797 for i in range(0, len(args)):
798 if useDoubleDash: 798 if useDoubleDash:
809 continue 809 continue
810 vmArgs = args[:i] 810 vmArgs = args[:i]
811 remainder = args[i:] 811 remainder = args[i:]
812 return vmArgs, remainder 812 return vmArgs, remainder
813 813
814 return args, [] 814 if defaultAllVMArgs:
815 return args, []
816 else:
817 return [], args
815 818
816 def _run_tests(args, harness, annotations, testfile): 819 def _run_tests(args, harness, annotations, testfile):
817 820
818 821
819 vmArgs, tests = _extract_VM_args(args) 822 vmArgs, tests = _extract_VM_args(args)