From 5f22fbd7fc4ca6a7f4629cbd34e0fc2e3c1b1cee Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Tue, 4 Dec 2012 13:40:18 +0100 Subject: Add a MemoryManager, which does GC for the interpreter. Todo: - stack walking for MASM - fix all TODOs/FIXMEs and hidden treasures (bugs). Change-Id: I36f8cdc3a545df7287ce1df17b3570a9c017865e Reviewed-by: Lars Knoll --- qmljs_engine.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qmljs_engine.h') diff --git a/qmljs_engine.h b/qmljs_engine.h index 2837adb882..520acab675 100644 --- a/qmljs_engine.h +++ b/qmljs_engine.h @@ -68,6 +68,7 @@ struct ErrorObject; struct ArgumentsObject; struct ExecutionContext; struct ExecutionEngine; +class MemoryManager; struct ObjectPrototype; struct StringPrototype; @@ -87,6 +88,7 @@ struct URIErrorPrototype; struct ExecutionEngine { + MemoryManager *memoryManager; EvalISelFactory *iselFactory; ExecutionContext *current; ExecutionContext *rootContext; @@ -148,7 +150,7 @@ struct ExecutionEngine struct StringPool *stringPool; - ExecutionEngine(EvalISelFactory *iselFactory); + ExecutionEngine(MemoryManager *memoryManager, EvalISelFactory *iselFactory); ~ExecutionEngine(); ExecutionContext *newContext(); -- cgit v1.2.3