summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime/VM.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-09-21 13:47:33 +0200
committerAndreas Kling <kling@serenityos.org>2020-09-21 14:34:40 +0200
commitfbe290751067b52770ead18ff6f06bccc55e2c98 (patch)
tree73a256c8de5df3e01c87fb9b048a6029d9f64fa1 /Libraries/LibJS/Runtime/VM.h
parent31bb107922f8c869bfecb348288a7e4dc74d8937 (diff)
downloadserenity-fbe290751067b52770ead18ff6f06bccc55e2c98.zip
LibJS: GC should gather roots from all active interpreters
If we are in a nested execution context, we shouldn't only mark things used by the active interpreter.
Diffstat (limited to 'Libraries/LibJS/Runtime/VM.h')
-rw-r--r--Libraries/LibJS/Runtime/VM.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibJS/Runtime/VM.h b/Libraries/LibJS/Runtime/VM.h
index d262398219..dd1b333cc0 100644
--- a/Libraries/LibJS/Runtime/VM.h
+++ b/Libraries/LibJS/Runtime/VM.h
@@ -53,6 +53,8 @@ public:
Interpreter& m_interpreter;
};
+ void gather_roots(HashTable<Cell*>&);
+
private:
VM();