OLD | NEW |
1 # Copyright 2012 the V8 project authors. All rights reserved. | 1 # Copyright 2012 the V8 project authors. All rights reserved. |
2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
4 # met: | 4 # met: |
5 # | 5 # |
6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
(...skipping 23 matching lines...) Expand all Loading... |
34 from . import utils | 34 from . import utils |
35 from ..objects import testcase | 35 from ..objects import testcase |
36 | 36 |
37 # Use this to run several variants of the tests. | 37 # Use this to run several variants of the tests. |
38 ALL_VARIANT_FLAGS = { | 38 ALL_VARIANT_FLAGS = { |
39 "default": [[]], | 39 "default": [[]], |
40 "stress": [["--stress-opt", "--always-opt"]], | 40 "stress": [["--stress-opt", "--always-opt"]], |
41 "turbofan": [["--turbo"]], | 41 "turbofan": [["--turbo"]], |
42 "turbofan_opt": [["--turbo", "--always-opt"]], | 42 "turbofan_opt": [["--turbo", "--always-opt"]], |
43 "nocrankshaft": [["--nocrankshaft"]], | 43 "nocrankshaft": [["--nocrankshaft"]], |
44 "ignition": [["--ignition", "--turbo", | 44 "ignition": [["--ignition", "--turbo"]], |
45 "--ignition-fallback-on-catch"]], | |
46 "preparser": [["--min-preparse-length=0"]], | 45 "preparser": [["--min-preparse-length=0"]], |
47 } | 46 } |
48 | 47 |
49 # FAST_VARIANTS implies no --always-opt. | 48 # FAST_VARIANTS implies no --always-opt. |
50 FAST_VARIANT_FLAGS = { | 49 FAST_VARIANT_FLAGS = { |
51 "default": [[]], | 50 "default": [[]], |
52 "stress": [["--stress-opt"]], | 51 "stress": [["--stress-opt"]], |
53 "turbofan": [["--turbo"]], | 52 "turbofan": [["--turbo"]], |
54 "nocrankshaft": [["--nocrankshaft"]], | 53 "nocrankshaft": [["--nocrankshaft"]], |
55 "ignition": [["--ignition", "--turbo", | 54 "ignition": [["--ignition", "--turbo"]], |
56 "--ignition-fallback-on-catch"]], | |
57 "preparser": [["--min-preparse-length=0"]], | 55 "preparser": [["--min-preparse-length=0"]], |
58 } | 56 } |
59 | 57 |
60 ALL_VARIANTS = set(["default", "stress", "turbofan", "turbofan_opt", | 58 ALL_VARIANTS = set(["default", "stress", "turbofan", "turbofan_opt", |
61 "nocrankshaft", "ignition", "preparser"]) | 59 "nocrankshaft", "ignition", "preparser"]) |
62 FAST_VARIANTS = set(["default", "turbofan"]) | 60 FAST_VARIANTS = set(["default", "turbofan"]) |
63 STANDARD_VARIANT = set(["default"]) | 61 STANDARD_VARIANT = set(["default"]) |
64 | 62 |
65 | 63 |
66 class VariantGenerator(object): | 64 class VariantGenerator(object): |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 return (testcase.flags + ["--gtest_filter=" + testcase.path] + | 337 return (testcase.flags + ["--gtest_filter=" + testcase.path] + |
340 ["--gtest_random_seed=%s" % context.random_seed] + | 338 ["--gtest_random_seed=%s" % context.random_seed] + |
341 ["--gtest_print_time=0"] + | 339 ["--gtest_print_time=0"] + |
342 context.mode_flags) | 340 context.mode_flags) |
343 | 341 |
344 def _VariantGeneratorFactory(self): | 342 def _VariantGeneratorFactory(self): |
345 return StandardVariantGenerator | 343 return StandardVariantGenerator |
346 | 344 |
347 def shell(self): | 345 def shell(self): |
348 return self.name | 346 return self.name |
OLD | NEW |