Commit 3266dd84 authored by Victor Gomes's avatar Victor Gomes Committed by V8 LUCI CQ

[maglev] Fix SetPendingMessage

Add return register to the allocator. SetPendingMessage is a ValueNode
and returns the previous pending message.

This was not identified before, because we do not support
exception handlers yet.

Bug: v8:7700
Change-Id: Ia03ea609e85297198792816edda22d4f1c79708c
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3849652
Commit-Queue: Victor Gomes <victorgomes@chromium.org>
Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
Auto-Submit: Victor Gomes <victorgomes@chromium.org>
Commit-Queue: Leszek Swirski <leszeks@chromium.org>
Cr-Commit-Position: refs/heads/main@{#82654}
parent 4898cd54
...@@ -2421,8 +2421,9 @@ void LogicalNot::GenerateCode(MaglevCodeGenState* code_gen_state, ...@@ -2421,8 +2421,9 @@ void LogicalNot::GenerateCode(MaglevCodeGenState* code_gen_state,
} }
} }
void SetPendingMessage::AllocateVreg(MaglevVregAllocationState*) { void SetPendingMessage::AllocateVreg(MaglevVregAllocationState* vreg_state) {
UseRegister(value()); UseRegister(value());
DefineAsRegister(vreg_state, this);
} }
void SetPendingMessage::GenerateCode(MaglevCodeGenState* code_gen_state, void SetPendingMessage::GenerateCode(MaglevCodeGenState* code_gen_state,
......
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