summaryrefslogtreecommitdiff
path: root/deps/v8/tools/testrunner/local/variants.py
blob: 2ad00cff2ab154022205b94e4461d9f57716073c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# 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"]],
  "noturbofan": [["--no-turbo"]],
  "noturbofan_stress": [["--no-turbo", "--stress-opt", "--always-opt"]],
  "fullcode": [["--nocrankshaft", "--no-turbo"]],
  # No optimization actually means no profile guided optimization -
  # %OptimizeFunctionOnNextCall still works.
  "nooptimization": [["--nocrankshaft"]],
  "asm_wasm": [["--validate-asm", "--fast-validate-asm", "--stress-validate-asm", "--suppress-asm-messages"]],
  "wasm_traps": [["--wasm_guard_pages", "--wasm_trap_handler", "--invoke-weak-callbacks"]],
}

# FAST_VARIANTS implies no --always-opt.
FAST_VARIANT_FLAGS = {
  "default": [[]],
  "stress": [["--stress-opt"]],
  "turbofan": [["--turbo"]],
  "noturbofan": [["--no-turbo"]],
  "noturbofan_stress": [["--no-turbo", "--stress-opt"]],
  "fullcode": [["--nocrankshaft", "--no-turbo"]],
  # No optimization actually means no profile guided optimization -
  # %OptimizeFunctionOnNextCall still works.
  "nooptimization": [["--nocrankshaft"]],
  "asm_wasm": [["--validate-asm", "--fast-validate-asm", "--stress-validate-asm", "--suppress-asm-messages"]],
  "wasm_traps": [["--wasm_guard_pages", "--wasm_trap_handler", "--invoke-weak-callbacks"]],
}

ALL_VARIANTS = set(["default", "stress", "turbofan", "turbofan_opt",
                    "noturbofan", "noturbofan_stress", "fullcode",
                    "nooptimization", "asm_wasm", "wasm_traps"])