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"]],
|
2017-06-08 15:51:05 +00:00
|
|
|
"fullcode": [["--noopt", "--no-ignition"]],
|
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-05-04 09:51:20 +00:00
|
|
|
"asm_wasm": [["--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"]],
|
2017-06-08 15:51:05 +00:00
|
|
|
"fullcode": [["--noopt", "--no-ignition"]],
|
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-05-04 09:51:20 +00:00
|
|
|
"asm_wasm": [["--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
|
|
|
}
|
|
|
|
|
2017-06-08 08:41:39 +00:00
|
|
|
ALL_VARIANTS = set(["default", "stress", "fullcode", "nooptimization",
|
|
|
|
"asm_wasm", "wasm_traps"])
|