Commit 48522862 authored by Andreas Haas's avatar Andreas Haas Committed by V8 LUCI CQ

[wasm] Add --no-wasm-lazy-compilation for tests that need it

Some tests assume that liftoff code is available immediately after
compilation. Add the `--no-wasm-lazy-compilation` flag to these tests
so that they work even after shipping lazy compilation.

R=clemensb@chromium.org

Bug: v8:12926
Change-Id: I839610221390822b90b25e1bef3ae727fa33d1ca
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3804862Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
Commit-Queue: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/main@{#82162}
parent 4bab7a8e
......@@ -2,9 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// The test needs --no-liftoff because we can't serialize and deserialize
// Liftoff code.
// Flags: --allow-natives-syntax --no-liftoff
// Force TurboFan code for serialization.
// Flags: --allow-natives-syntax --no-liftoff --no-wasm-lazy-compilation
d8.file.execute("test/mjsunit/wasm/wasm-module-builder.js");
......
......@@ -2,9 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// The test needs --no-liftoff because we can't serialize and deserialize
// Liftoff code.
// Flags: --allow-natives-syntax --no-liftoff
// Force TurboFan code for serialization.
// Flags: --allow-natives-syntax --no-liftoff --no-wasm-lazy-compilation
d8.file.execute('test/mjsunit/wasm/wasm-module-builder.js');
......
......@@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// The test needs --no-liftoff because we can't serialize and deserialize
// Liftoff code.
// Force TurboFan code for serialization.
// Flags: --allow-natives-syntax --throws --no-liftoff
// Flags: --no-wasm-lazy-compilation
d8.file.execute('test/mjsunit/wasm/wasm-module-builder.js');
let kTableSize = 3;
......
......@@ -3,8 +3,8 @@
// found in the LICENSE file.
// Flags: --experimental-wasm-eh --allow-natives-syntax
// Disable Liftoff so we can serialize the module.
// Flags: --no-liftoff
// Force TurboFan code for serialization.
// Flags: --no-liftoff --no-wasm-lazy-compilation
d8.file.execute("test/mjsunit/wasm/wasm-module-builder.js");
......
......@@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// The test needs --wasm-tier-up because we can't serialize and deserialize
// Liftoff code.
// Force TurboFan code for serialization.
// Flags: --expose-wasm --allow-natives-syntax --expose-gc --no-liftoff
// Flags: --no-wasm-lazy-compilation
d8.file.execute("test/mjsunit/wasm/wasm-module-builder.js");
......
......@@ -3,6 +3,9 @@
// found in the LICENSE file.
// Flags: --allow-natives-syntax --liftoff --no-wasm-tier-up
// In this test we are interested in the generated code, so force code
// generation by disabling lazy compilation.
// Flags: --no-wasm-lazy-compilation
d8.file.execute('test/mjsunit/wasm/wasm-module-builder.js');
......
......@@ -4,6 +4,8 @@
// Flags: --allow-natives-syntax --randomize-all-allocations
// Flags: --wasm-max-initial-code-space-reservation=1
// Disable lazy compilation, because force easier code generation.
// Flags: --no-wasm-lazy-compilation
// Disable tier-up, to reduce execution time of this test (Liftoff generates
// much bigger code, thus reaches the four code spaces much faster).
......
......@@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// The test needs --no-liftoff because we can't serialize and deserialize
// Liftoff code.
// Force TurboFan code for serialization.
// Flags: --allow-natives-syntax --print-wasm-code --no-liftoff
// Flags: --no-wasm-lazy-compilation
// Just test that printing the code of the following wasm modules does not
// crash.
......
......@@ -3,7 +3,7 @@
// found in the LICENSE file.
// Flags: --allow-natives-syntax --liftoff --no-wasm-tier-up --expose-gc
// Flags: --no-wasm-dynamic-tiering
// Flags: --no-wasm-dynamic-tiering --no-wasm-lazy-compilation
// Compile functions 0 and 2 with Turbofan, the rest with Liftoff:
// Flags: --wasm-tier-mask-for-testing=5
......
......@@ -3,6 +3,7 @@
// found in the LICENSE file.
// Flags: --allow-natives-syntax --liftoff --no-wasm-tier-up
// Flags: --no-wasm-lazy-compilation
// Compile functions 0 and 2 with Turbofan, the rest with Liftoff:
// Flags: --wasm-tier-mask-for-testing=5
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment