diff options
author | Erik Verbruggen <erik.verbruggen@digia.com> | 2012-12-04 13:40:18 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@digia.com> | 2012-12-08 04:47:53 +0100 |
commit | 5f22fbd7fc4ca6a7f4629cbd34e0fc2e3c1b1cee (patch) | |
tree | 31a606540d68674315fbc2c71c76592be2ae3dc8 /qmljs_engine.h | |
parent | 3b3f3bebcd24073455de9f4abf2f0c7712a1c1ee (diff) |
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 <lars.knoll@digia.com>
Diffstat (limited to 'qmljs_engine.h')
-rw-r--r-- | qmljs_engine.h | 4 |
1 files changed, 3 insertions, 1 deletions
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(); |