diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-07-03 08:08:16 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-07-03 13:38:08 +0000 |
commit | 1283f7c3b34ebd441b9679ce3981d216ba530e98 (patch) | |
tree | d968f0bf6fe3744ebea6d5500a372707c8f9b9d8 /src/qml/jsruntime/qv4functionobject.cpp | |
parent | 540cad8cef8c1e59859c57a8960467bea4be8ee8 (diff) |
Move the Runtime codegen into it's own file
Change-Id: I3d09fc4b8aebe19acae0ba5a688491428a4af715
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4functionobject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4functionobject.cpp b/src/qml/jsruntime/qv4functionobject.cpp index fbce1e0cda..85a86ee84f 100644 --- a/src/qml/jsruntime/qv4functionobject.cpp +++ b/src/qml/jsruntime/qv4functionobject.cpp @@ -53,7 +53,7 @@ #include <private/qqmljsast_p.h> #include <private/qqmljavascriptexpression_p.h> #include <private/qqmlengine_p.h> -#include <qv4codegen_p.h> +#include <qv4runtimecodegen_p.h> #include "private/qlocale_tools_p.h" #include "private/qqmlbuiltinfunctions_p.h" @@ -219,7 +219,7 @@ void FunctionCtor::construct(const Managed *that, Scope &scope, CallData *callDa Compiler::Module module(scope.engine->debugger() != 0); Compiler::JSUnitGenerator jsGenerator(&module); - Compiler::RuntimeCodegen cg(scope.engine, &jsGenerator, f->strictMode()); + RuntimeCodegen cg(scope.engine, &jsGenerator, f->strictMode()); cg.generateFromFunctionExpression(QString(), function, fe, &module); QQmlRefPointer<CompiledData::CompilationUnit> compilationUnit = cg.generateCompilationUnit(); |