diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-08-18 11:29:32 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@digia.com> | 2013-08-18 12:35:47 +0200 |
commit | d04ba0f62a07e97b80a708d9a3e01539e97e0d59 (patch) | |
tree | eefb6b2e48f5e8e91a5a1ef914b9c058fc615073 /src/qml/compiler/qv4isel_p.cpp | |
parent | 41cc5cca4ff95b59484ca66ba5e2eee10d95b7e1 (diff) |
Cleanup: Make isel subclass the unit generator
Change-Id: Iadff4974ec6fde25c6586d03d23136ea280f9555
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/compiler/qv4isel_p.cpp')
-rw-r--r-- | src/qml/compiler/qv4isel_p.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qml/compiler/qv4isel_p.cpp b/src/qml/compiler/qv4isel_p.cpp index 5972e3ac33..cb01546dfc 100644 --- a/src/qml/compiler/qv4isel_p.cpp +++ b/src/qml/compiler/qv4isel_p.cpp @@ -59,9 +59,9 @@ using namespace QQmlJS; using namespace QQmlJS::V4IR; EvalInstructionSelection::EvalInstructionSelection(QV4::ExecutableAllocator *execAllocator, Module *module) - : useFastLookups(true) + : QV4::Compiler::JSUnitGenerator(module) + , useFastLookups(true) , executableAllocator(execAllocator) - , jsUnitGenerator(module) { assert(execAllocator); assert(module); @@ -75,10 +75,10 @@ EvalISelFactory::~EvalISelFactory() QV4::CompiledData::CompilationUnit *EvalInstructionSelection::compile() { - Function *rootFunction = jsUnitGenerator.irModule->rootFunction; + Function *rootFunction = irModule->rootFunction; if (!rootFunction) return 0; - foreach (V4IR::Function *f, jsUnitGenerator.irModule->functions) + foreach (V4IR::Function *f, irModule->functions) run(f); return backendCompileStep(); |