d4c8393c1c
This is the first step towards wasm code sharing. This CL moves wasm code generation outside the JavaScript GC heap using the previously - introduced WasmCodeManager (all this, behind the --wasm-jit-to-native flag). See design document: go/wasm-on-native-heap-stage-1 This CL doesn't change other wasm architectural invariants. We still have per-Isolate wasm code generation, and per-wasm module instance code specialization. Bug:v8:6876 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng Change-Id: I1e08cecad75f93fb081545c31228a4568be276d3 Reviewed-on: https://chromium-review.googlesource.com/674086 Reviewed-by: Ben Titzer <titzer@chromium.org> Reviewed-by: Eric Holk <eholk@chromium.org> Cr-Commit-Position: refs/heads/master@{#49689}
42 lines
2.1 KiB
Python
42 lines
2.1 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"]],
|
|
"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 = {
|
|
"default": [[]],
|
|
"future": [["--future"]],
|
|
"liftoff": [["--liftoff"]],
|
|
"stress": [["--stress-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"]],
|
|
}
|
|
|
|
ALL_VARIANTS = set(["default", "future", "liftoff", "stress",
|
|
"stress_incremental_marking", "nooptimization",
|
|
"stress_background_compile", "wasm_traps"])
|