diff options
| author | Lars Knoll <lars.knoll@qt.io> | 2017-08-03 08:57:03 +0200 |
|---|---|---|
| committer | Lars Knoll <lars.knoll@qt.io> | 2017-08-03 10:22:00 +0000 |
| commit | ef5d5a989a344ba812a91b365cd54ace65f27f26 (patch) | |
| tree | 0a74d146d7e69005c1181188882b4893b5850f2b /src/qml/jsruntime/qv4globalobject.cpp | |
| parent | 1f8ab5fa975b2ec9172090f5665bb77cc5630584 (diff) | |
Get rid of the compilation unit related members in ExecutionContext
And change the signature for VME::exec to take the QV4::Function
that should be executed. This is in preparation to being able
to run functions that will not need to allocate an execution
context on their own.
Change-Id: I34538a8723006f4ec24583805e88a66e750100c3
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4globalobject.cpp')
| -rw-r--r-- | src/qml/jsruntime/qv4globalobject.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4globalobject.cpp b/src/qml/jsruntime/qv4globalobject.cpp index c0f05d7a3d..ff395adb27 100644 --- a/src/qml/jsruntime/qv4globalobject.cpp +++ b/src/qml/jsruntime/qv4globalobject.cpp @@ -392,8 +392,7 @@ void EvalFunction::evalCall(Scope &scope, CallData *callData, bool directCall) c // set the correct strict mode flag on the context ctx->d()->strictMode = false; - ctx->d()->compilationUnit = function->compilationUnit; - ctx->d()->constantTable = function->compilationUnit->constants; + ctx->d()->v4Function = function; scope.result = Q_V4_PROFILE(ctx->engine(), function); } |
