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

[wasm] Disable dynamic tiering for debug code

R=jkummerow@chromium.org

Bug: v8:12281
Change-Id: If0ef4861d6466da211a799916e62234d458c2614
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3253357Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/main@{#77638}
parent 5a869792
......@@ -722,6 +722,7 @@ class LiftoffCompiler {
void TierupCheck(FullDecoder* decoder, WasmCodePosition position,
int budget_used) {
if (for_debugging_ == kNoDebugging) return;
CODE_COMMENT("tierup check");
// We never want to blow the entire budget at once.
const int kMax = FLAG_wasm_tiering_budget / 4;
......@@ -917,7 +918,8 @@ class LiftoffCompiler {
// is never a position of any instruction in the function.
StackCheck(decoder, 0);
if (env_->dynamic_tiering == DynamicTiering::kEnabled) {
if (env_->dynamic_tiering == DynamicTiering::kEnabled &&
for_debugging_ == kNoDebugging) {
// TODO(arobin): Avoid spilling registers unconditionally.
__ SpillAllRegisters();
CODE_COMMENT("dynamic tiering");
......
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