From ff751173ac39ffe52c1042f3722bb64826933110 Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Thu, 24 Apr 2025 01:13:12 +0200 Subject: [PATCH] LibJS: Delete unused `m_arguments` member in Interpreter --- Libraries/LibJS/Bytecode/Interpreter.cpp | 1 - Libraries/LibJS/Bytecode/Interpreter.h | 1 - 2 files changed, 2 deletions(-) diff --git a/Libraries/LibJS/Bytecode/Interpreter.cpp b/Libraries/LibJS/Bytecode/Interpreter.cpp index b0976314eb1..4e7f5938edb 100644 --- a/Libraries/LibJS/Bytecode/Interpreter.cpp +++ b/Libraries/LibJS/Bytecode/Interpreter.cpp @@ -745,7 +745,6 @@ Interpreter::ResultAndReturnRegister Interpreter::run_executable(Executable& exe VERIFY(registers_and_constants_and_locals_count <= running_execution_context.registers_and_constants_and_locals_and_arguments_span().size()); TemporaryChange restore_running_execution_context { m_running_execution_context, &running_execution_context }; - TemporaryChange restore_arguments { m_arguments, running_execution_context.arguments() }; TemporaryChange restore_registers_and_constants_and_locals { m_registers_and_constants_and_locals, running_execution_context.registers_and_constants_and_locals_and_arguments_span() }; reg(Register::accumulator()) = initial_accumulator_value; diff --git a/Libraries/LibJS/Bytecode/Interpreter.h b/Libraries/LibJS/Bytecode/Interpreter.h index b5b25ab98c7..b6b009a29c7 100644 --- a/Libraries/LibJS/Bytecode/Interpreter.h +++ b/Libraries/LibJS/Bytecode/Interpreter.h @@ -101,7 +101,6 @@ private: GC::Ptr m_global_object { nullptr }; GC::Ptr m_global_declarative_environment { nullptr }; Optional m_program_counter; - Span m_arguments; Span m_registers_and_constants_and_locals; Vector m_argument_values_buffer; ExecutionContext* m_running_execution_context { nullptr };