2016-08-04 14:41:09 +00:00
|
|
|
# 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": [[]],
|
2017-11-20 12:43:01 +00:00
|
|
|
"future": [["--future"]],
|
2017-11-21 11:17:08 +00:00
|
|
|
"liftoff": [["--liftoff"]],
|
2017-11-30 09:33:05 +00:00
|
|
|
"minor_mc": [["--minor-mc"]],
|
2016-08-04 14:41:09 +00:00
|
|
|
"stress": [["--stress-opt", "--always-opt"]],
|
2017-11-08 15:30:01 +00:00
|
|
|
# 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"]],
|
2017-04-28 13:33:43 +00:00
|
|
|
# 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"]],
|
2017-11-03 21:36:23 +00:00
|
|
|
"stress_background_compile": [["--background-compile", "--stress-background-compile"]],
|
2017-12-08 01:31:37 +00:00
|
|
|
"wasm_traps": [["--wasm_trap_handler", "--invoke-weak-callbacks", "--wasm-jit-to-native"]],
|
2016-08-04 14:41:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# FAST_VARIANTS implies no --always-opt.
|
2017-11-30 10:10:52 +00:00
|
|
|
FAST_VARIANT_FLAGS = dict(
|
|
|
|
(k, [[f for f in v[0] if f != "--always-opt"]])
|
|
|
|
for k, v in ALL_VARIANT_FLAGS.iteritems()
|
|
|
|
)
|
2016-08-04 14:41:09 +00:00
|
|
|
|
2017-11-30 10:10:52 +00:00
|
|
|
ALL_VARIANTS = set(ALL_VARIANT_FLAGS.keys())
|