From 19357096febe590ae464e0724db87c200acbfdc9 Mon Sep 17 00:00:00 2001 From: Victor Gomes Date: Wed, 9 Mar 2022 12:01:21 +0100 Subject: [PATCH] [maglev] Allow closure register to be loaded Context: https://chromium-review.googlesource.com/c/v8/v8/+/3506444 Bug: v8:7700 Change-Id: Ie877f7f18759f286597f07412ceb1ba25eb4787a Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3512793 Commit-Queue: Victor Gomes Auto-Submit: Victor Gomes Reviewed-by: Leszek Swirski Commit-Queue: Leszek Swirski Cr-Commit-Position: refs/heads/main@{#79416} --- src/maglev/maglev-interpreter-frame-state.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/maglev/maglev-interpreter-frame-state.h b/src/maglev/maglev-interpreter-frame-state.h index e3c63ce7dc..4786cd7099 100644 --- a/src/maglev/maglev-interpreter-frame-state.h +++ b/src/maglev/maglev-interpreter-frame-state.h @@ -55,6 +55,7 @@ class InterpreterFrameState { ValueNode* get(interpreter::Register reg) const { DCHECK_IMPLIES(reg.is_parameter(), reg == interpreter::Register::current_context() || + reg == interpreter::Register::function_closure() || reg.ToParameterIndex() >= 0); return frame_[reg]; }