@@ -51,6 +51,11 @@ Heap& Cell::heap() const
return HeapBlock::from_cell(this)->heap();
}
+VM& Cell::vm() const
+{
+ return heap().vm();
+}
+
Interpreter& Cell::interpreter()
{
return heap().interpreter();
@@ -60,6 +60,7 @@ public:
virtual void visit_children(Visitor&) { }
Heap& heap() const;
+ VM& vm() const;
Interpreter& interpreter();
Interpreter& interpreter() const;