ladybird/Libraries/LibJS/Bytecode/AsmInterpreter/AsmInterpreter.h
Andreas Kling 2ca7dfa649 LibJS: Move bytecode interpreter state to VM
The bytecode interpreter only needed the running execution context,
but still threaded a separate Interpreter object through both the C++
and asm entry points. Move that state and the bytecode execution
helpers onto VM instead, and teach the asm generator and slow paths to
use VM directly.
2026-04-13 18:29:43 +02:00

23 lines
302 B
C++

/*
* Copyright (c) 2026, the Ladybird developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Types.h>
namespace JS {
class VM;
namespace Bytecode {
class AsmInterpreter {
public:
static void run(VM&, size_t entry_point);
static bool is_available();
};
}
}