mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:57:35 +00:00
LibJS: Add a way to get from a Cell to the VM
This commit is contained in:
parent
4a8bfcdd1c
commit
d74bb87d46
2 changed files with 6 additions and 0 deletions
|
@ -51,6 +51,11 @@ Heap& Cell::heap() const
|
||||||
return HeapBlock::from_cell(this)->heap();
|
return HeapBlock::from_cell(this)->heap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VM& Cell::vm() const
|
||||||
|
{
|
||||||
|
return heap().vm();
|
||||||
|
}
|
||||||
|
|
||||||
Interpreter& Cell::interpreter()
|
Interpreter& Cell::interpreter()
|
||||||
{
|
{
|
||||||
return heap().interpreter();
|
return heap().interpreter();
|
||||||
|
|
|
@ -60,6 +60,7 @@ public:
|
||||||
virtual void visit_children(Visitor&) { }
|
virtual void visit_children(Visitor&) { }
|
||||||
|
|
||||||
Heap& heap() const;
|
Heap& heap() const;
|
||||||
|
VM& vm() const;
|
||||||
Interpreter& interpreter();
|
Interpreter& interpreter();
|
||||||
Interpreter& interpreter() const;
|
Interpreter& interpreter() const;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue