variants.py 1.15 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
# Copyright 2016 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# Use this to run several variants of the tests.
ALL_VARIANT_FLAGS = {
  "default": [[]],
  "stress": [["--stress-opt", "--always-opt"]],
  "turbofan": [["--turbo"]],
  "turbofan_opt": [["--turbo", "--always-opt"]],
  "nocrankshaft": [["--nocrankshaft"]],
  "ignition": [["--ignition"]],
13
  "ignition_staging": [["--ignition-staging"]],
14 15 16 17 18 19 20 21 22 23 24
  "ignition_turbofan": [["--ignition-staging", "--turbo"]],
  "preparser": [["--min-preparse-length=0"]],
}

# FAST_VARIANTS implies no --always-opt.
FAST_VARIANT_FLAGS = {
  "default": [[]],
  "stress": [["--stress-opt"]],
  "turbofan": [["--turbo"]],
  "nocrankshaft": [["--nocrankshaft"]],
  "ignition": [["--ignition"]],
25
  "ignition_staging": [["--ignition-staging"]],
26 27 28 29 30
  "ignition_turbofan": [["--ignition-staging", "--turbo"]],
  "preparser": [["--min-preparse-length=0"]],
}

ALL_VARIANTS = set(["default", "stress", "turbofan", "turbofan_opt",
31 32
                    "nocrankshaft", "ignition", "ignition_staging",
                    "ignition_turbofan", "preparser"])