aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4isel_p.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2013-08-17 20:48:56 +0200
committerLars Knoll <lars.knoll@digia.com>2013-08-18 12:32:53 +0200
commit41cc5cca4ff95b59484ca66ba5e2eee10d95b7e1 (patch)
tree2f268e3396bacd812b9087eda4590cc30356b60e /src/qml/compiler/qv4isel_p.h
parentca2b4d1ccabc3bccde4d146284b1cac39058e711 (diff)
Get rid of engine pointer in isel
Change-Id: I58759712624713cd2215621dca4ccc86fa9a9194 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/compiler/qv4isel_p.h')
-rw-r--r--src/qml/compiler/qv4isel_p.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/qml/compiler/qv4isel_p.h b/src/qml/compiler/qv4isel_p.h
index 0872311c72..c8e0f6ccd9 100644
--- a/src/qml/compiler/qv4isel_p.h
+++ b/src/qml/compiler/qv4isel_p.h
@@ -53,7 +53,7 @@
QT_BEGIN_NAMESPACE
namespace QV4 {
-struct ExecutionEngine;
+struct ExecutableAllocator;
struct Function;
}
@@ -62,7 +62,7 @@ namespace QQmlJS {
class Q_QML_EXPORT EvalInstructionSelection
{
public:
- EvalInstructionSelection(QV4::ExecutionEngine *engine, V4IR::Module *module);
+ EvalInstructionSelection(QV4::ExecutableAllocator *execAllocator, V4IR::Module *module);
virtual ~EvalInstructionSelection() = 0;
QV4::CompiledData::CompilationUnit *compile();
@@ -77,14 +77,12 @@ public:
int registerJSClass(QQmlJS::V4IR::ExprList *args) { return jsUnitGenerator.registerJSClass(args); }
protected:
- QV4::ExecutionEngine *engine() const { return _engine; }
virtual void run(V4IR::Function *function) = 0;
virtual QV4::CompiledData::CompilationUnit *backendCompileStep() = 0;
-private:
- QV4::ExecutionEngine *_engine;
protected:
bool useFastLookups;
+ QV4::ExecutableAllocator *executableAllocator;
QV4::Compiler::JSUnitGenerator jsUnitGenerator;
};
@@ -92,7 +90,7 @@ class Q_QML_EXPORT EvalISelFactory
{
public:
virtual ~EvalISelFactory() = 0;
- virtual EvalInstructionSelection *create(QV4::ExecutionEngine *engine, V4IR::Module *module) = 0;
+ virtual EvalInstructionSelection *create(QV4::ExecutableAllocator *execAllocator, V4IR::Module *module) = 0;
virtual bool jitCompileRegexps() const = 0;
};