Commit 932c5b7a authored by Victor Gomes's avatar Victor Gomes Committed by V8 LUCI CQ

[maglev] Fix updating accumulator in ForEachValue

Bug: v8:7700
Change-Id: I43ef07414326ee656b36e17aa739ae0015c88d57
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3560640Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
Commit-Queue: Victor Gomes <victorgomes@chromium.org>
Cr-Commit-Position: refs/heads/main@{#79679}
parent 8f162595
......@@ -161,7 +161,7 @@ class CompactInterpreterFrameState {
template <typename Function>
void ForEachValue(const MaglevCompilationUnit& info, Function&& f) {
ForEachRegister(info, f);
ForAccumulator(info, [&](ValueNode* value) {
ForAccumulator(info, [&](ValueNode*& value) {
f(value, interpreter::Register::virtual_accumulator());
});
}
......@@ -169,7 +169,7 @@ class CompactInterpreterFrameState {
template <typename Function>
void ForEachValue(const MaglevCompilationUnit& info, Function&& f) const {
ForEachRegister(info, f);
ForAccumulator(info, [&](ValueNode*& value) {
ForAccumulator(info, [&](ValueNode* value) {
f(value, interpreter::Register::virtual_accumulator());
});
}
......
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