LibJS: Remove Bytecode::Register::global_object()

This is unused.
This commit is contained in:
Linus Groh 2022-08-22 19:38:55 +01:00
commit 987927a596
Notes: sideshowbarker 2024-07-17 16:23:06 +09:00
2 changed files with 0 additions and 8 deletions

View file

@ -68,7 +68,6 @@ Interpreter::ValueAndFrame Interpreter::run_and_return_frame(Executable const& e
m_register_windows.append(make<RegisterWindow>(MarkedVector<Value>(vm().heap()), MarkedVector<Environment*>(vm().heap()), MarkedVector<Environment*>(vm().heap())));
registers().resize(executable.number_of_registers);
registers()[Register::global_object_index] = Value(&m_realm.global_object());
for (;;) {
Bytecode::InstructionStreamIterator pc(block->instruction_stream());

View file

@ -13,7 +13,6 @@ namespace JS::Bytecode {
class Register {
public:
constexpr static u32 accumulator_index = 0;
constexpr static u32 global_object_index = 1;
static Register accumulator()
{
@ -21,12 +20,6 @@ public:
return accumulator;
}
static Register global_object()
{
static Register global_object(global_object_index);
return global_object;
}
explicit Register(u32 index)
: m_index(index)
{