mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00:00
LibJS: Add a VM accessor to Bytecode::Interpreter :^)
This commit is contained in:
parent
69dddd4ef5
commit
6da5d17416
2 changed files with 5 additions and 1 deletions
|
@ -19,12 +19,14 @@ public:
|
|||
~Interpreter();
|
||||
|
||||
GlobalObject& global_object() { return m_global_object; }
|
||||
VM& vm() { return m_vm; }
|
||||
|
||||
void run(Bytecode::Block const&);
|
||||
|
||||
Value& reg(Register const& r) { return m_registers[r.index()]; }
|
||||
|
||||
private:
|
||||
VM& m_vm;
|
||||
GlobalObject& m_global_object;
|
||||
Vector<Value> m_registers;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue