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": [[]],
|
|
|
|
"stress": [["--stress-opt", "--always-opt"]],
|
|
|
|
"turbofan": [["--turbo"]],
|
|
|
|
"turbofan_opt": [["--turbo", "--always-opt"]],
|
2017-03-09 13:36:23 +00:00
|
|
|
"noturbofan": [["--no-turbo"]],
|
|
|
|
"noturbofan_stress": [["--no-turbo", "--stress-opt", "--always-opt"]],
|
2017-03-14 09:23:48 +00:00
|
|
|
"fullcode": [["--nocrankshaft", "--no-turbo"]],
|
2017-03-27 10:49:51 +00:00
|
|
|
# No optimization actually means no profile guided optimization -
|
|
|
|
# %OptimizeFunctionOnNextCall still works.
|
|
|
|
"nooptimization": [["--nocrankshaft"]],
|
2017-03-28 14:03:49 +00:00
|
|
|
"asm_wasm": [["--validate-asm", "--fast-validate-asm", "--stress-validate-asm", "--suppress-asm-messages"]],
|
2017-03-13 22:12:23 +00:00
|
|
|
"wasm_traps": [["--wasm_guard_pages", "--wasm_trap_handler", "--invoke-weak-callbacks"]],
|
2016-08-04 14:41:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# FAST_VARIANTS implies no --always-opt.
|
|
|
|
FAST_VARIANT_FLAGS = {
|
|
|
|
"default": [[]],
|
|
|
|
"stress": [["--stress-opt"]],
|
|
|
|
"turbofan": [["--turbo"]],
|
2017-03-09 13:36:23 +00:00
|
|
|
"noturbofan": [["--no-turbo"]],
|
|
|
|
"noturbofan_stress": [["--no-turbo", "--stress-opt"]],
|
2017-03-14 09:23:48 +00:00
|
|
|
"fullcode": [["--nocrankshaft", "--no-turbo"]],
|
2017-03-27 10:49:51 +00:00
|
|
|
# No optimization actually means no profile guided optimization -
|
|
|
|
# %OptimizeFunctionOnNextCall still works.
|
|
|
|
"nooptimization": [["--nocrankshaft"]],
|
2017-03-28 14:03:49 +00:00
|
|
|
"asm_wasm": [["--validate-asm", "--fast-validate-asm", "--stress-validate-asm", "--suppress-asm-messages"]],
|
2017-03-13 22:12:23 +00:00
|
|
|
"wasm_traps": [["--wasm_guard_pages", "--wasm_trap_handler", "--invoke-weak-callbacks"]],
|
2016-08-04 14:41:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ALL_VARIANTS = set(["default", "stress", "turbofan", "turbofan_opt",
|
2017-03-14 22:10:56 +00:00
|
|
|
"noturbofan", "noturbofan_stress", "fullcode",
|
|
|
|
"nooptimization", "asm_wasm", "wasm_traps"])
|