aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4isel_p.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2013-08-18 11:29:32 +0200
committerLars Knoll <lars.knoll@digia.com>2013-08-18 12:35:47 +0200
commitd04ba0f62a07e97b80a708d9a3e01539e97e0d59 (patch)
treeeefb6b2e48f5e8e91a5a1ef914b9c058fc615073 /src/qml/compiler/qv4isel_p.h
parent41cc5cca4ff95b59484ca66ba5e2eee10d95b7e1 (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.h')
-rw-r--r--src/qml/compiler/qv4isel_p.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/qml/compiler/qv4isel_p.h b/src/qml/compiler/qv4isel_p.h
index c8e0f6ccd9..c5b29eee77 100644
--- a/src/qml/compiler/qv4isel_p.h
+++ b/src/qml/compiler/qv4isel_p.h
@@ -59,7 +59,7 @@ struct Function;
namespace QQmlJS {
-class Q_QML_EXPORT EvalInstructionSelection
+class Q_QML_EXPORT EvalInstructionSelection : public QV4::Compiler::JSUnitGenerator
{
public:
EvalInstructionSelection(QV4::ExecutableAllocator *execAllocator, V4IR::Module *module);
@@ -69,13 +69,6 @@ public:
void setUseFastLookups(bool b) { useFastLookups = b; }
- int stringId(const QString &str) { return jsUnitGenerator.registerString(str); }
- uint registerGetterLookup(const QString &str) { return jsUnitGenerator.registerGetterLookup(str); }
- uint registerSetterLookup(const QString &str) { return jsUnitGenerator.registerSetterLookup(str); }
- uint registerGlobalGetterLookup(const QString &str) { return jsUnitGenerator.registerGlobalGetterLookup(str); }
- void registerLineNumberMapping(V4IR::Function *function, const QVector<uint> &mappings) { jsUnitGenerator.registerLineNumberMapping(function, mappings); }
- int registerJSClass(QQmlJS::V4IR::ExprList *args) { return jsUnitGenerator.registerJSClass(args); }
-
protected:
virtual void run(V4IR::Function *function) = 0;
virtual QV4::CompiledData::CompilationUnit *backendCompileStep() = 0;
@@ -83,7 +76,6 @@ protected:
protected:
bool useFastLookups;
QV4::ExecutableAllocator *executableAllocator;
- QV4::Compiler::JSUnitGenerator jsUnitGenerator;
};
class Q_QML_EXPORT EvalISelFactory