v8/tools/testrunner/local/variants.py
Mircea Trofin 1048a6b4ea [wasm] Fix wasm-jit-to-native + W^X GC heap interaction issues
- in certain cases, we need both modification scopes because we may
mutate JS functions, even in the jit-to-native case - e.g. JS-to-wasm
wrappers
- added handling for wasm-to-wasm wrappers in the context of lazy
compilation.

Bug: v8:7105
Change-Id: I085c14e03ef0b08d040998f2207abf7bc3fff01c
Reviewed-on: https://chromium-review.googlesource.com/811285
Commit-Queue: Mircea Trofin <mtrofin@chromium.org>
Reviewed-by: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#49947}
2017-12-08 02:21:46 +00:00

30 lines
1.3 KiB
Python

# 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": [[]],
"future": [["--future"]],
"liftoff": [["--liftoff"]],
"minor_mc": [["--minor-mc"]],
"stress": [["--stress-opt", "--always-opt"]],
# TODO(6792): Write protected code has been temporary added to the below
# variant until the feature has been enabled (or staged) by default.
"stress_incremental_marking": [["--stress-incremental-marking", "--write-protect-code-memory"]],
# No optimization means disable all optimizations. OptimizeFunctionOnNextCall
# would not force optimization too. It turns into a Nop. Please see
# https://chromium-review.googlesource.com/c/452620/ for more discussion.
"nooptimization": [["--noopt"]],
"stress_background_compile": [["--background-compile", "--stress-background-compile"]],
"wasm_traps": [["--wasm_trap_handler", "--invoke-weak-callbacks", "--wasm-jit-to-native"]],
}
# FAST_VARIANTS implies no --always-opt.
FAST_VARIANT_FLAGS = dict(
(k, [[f for f in v[0] if f != "--always-opt"]])
for k, v in ALL_VARIANT_FLAGS.iteritems()
)
ALL_VARIANTS = set(ALL_VARIANT_FLAGS.keys())