8aa3459f20
This adds a --stress-validate-asm flag intended to stress test the validator by running against every single function, independent of whether a "use asm" directive is present. It mainly tests negative cases because barely any function in our test corpus will be a valid module according to the asm.js spec. R=bradnelson@chromium.org BUG=v8:6127 Change-Id: Id04b0440628134d4e81c9bb4d71039f940fc9a83 Reviewed-on: https://chromium-review.googlesource.com/457039 Reviewed-by: Brad Nelson <bradnelson@chromium.org> Reviewed-by: Michael Achenbach <machenbach@chromium.org> Commit-Queue: Michael Starzinger <mstarzinger@chromium.org> Cr-Commit-Position: refs/heads/master@{#44055}
35 lines
1.4 KiB
Python
35 lines
1.4 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": [[]],
|
|
"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"]],
|
|
"nooptimization": [["--nocrankshaft", "--turbo-filter=~"]],
|
|
"asm_wasm": [["--validate-asm", "--stress-validate-asm"]],
|
|
"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"]],
|
|
"nooptimization": [["--nocrankshaft", "--turbo-filter=~"]],
|
|
"asm_wasm": [["--validate-asm", "--stress-validate-asm"]],
|
|
"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"])
|