summaryrefslogtreecommitdiff
path: root/src/qml/jsruntime/qv4globalobject.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-09-25 10:33:35 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-28 13:33:14 +0200
commit4d49787af4ed146636a1b5209f19946988a93863 (patch)
treeef51e059bb311852e7c54db4e6ffc6eda6fe28d8 /src/qml/jsruntime/qv4globalobject.cpp
parent0f2cf9074d4f0220f5c707eed478f99334814789 (diff)
downloadqtdeclarative-4d49787af4ed146636a1b5209f19946988a93863.tar.gz
Clean up QV4::ExecutionContext
Remove an unused variable, and don't copy runtimeStrings Change-Id: I2197a7eb82ab3dbefea83cc917567390266f9673 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4globalobject.cpp')
-rw-r--r--src/qml/jsruntime/qv4globalobject.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/qml/jsruntime/qv4globalobject.cpp b/src/qml/jsruntime/qv4globalobject.cpp
index f6f59b2f05..7880b1a69e 100644
--- a/src/qml/jsruntime/qv4globalobject.cpp
+++ b/src/qml/jsruntime/qv4globalobject.cpp
@@ -407,11 +407,7 @@ ReturnedValue EvalFunction::evalCall(Value /*thisObject*/, Value *args, int argc
ctx->strictMode = strictMode;
CompiledData::CompilationUnit * const oldCompilationUnit = ctx->compilationUnit;
- const CompiledData::Function * const oldCompiledFunction = ctx->compiledFunction;
- SafeString * const oldRuntimeStrings = ctx->runtimeStrings;
ctx->compilationUnit = function->compilationUnit;
- ctx->compiledFunction = function->compiledFunction;
- ctx->runtimeStrings = function->compilationUnit->runtimeStrings;
ScopedValue result(scope);
try {
@@ -420,8 +416,6 @@ ReturnedValue EvalFunction::evalCall(Value /*thisObject*/, Value *args, int argc
ctx->strictMode = cstrict;
ctx->currentEvalCode = evalCode.next;
ctx->compilationUnit = oldCompilationUnit;
- ctx->compiledFunction = oldCompiledFunction;
- ctx->runtimeStrings = oldRuntimeStrings;
if (strictMode)
ex.partiallyUnwindContext(parentContext);
throw;
@@ -430,8 +424,6 @@ ReturnedValue EvalFunction::evalCall(Value /*thisObject*/, Value *args, int argc
ctx->strictMode = cstrict;
ctx->currentEvalCode = evalCode.next;
ctx->compilationUnit = oldCompilationUnit;
- ctx->compiledFunction = oldCompiledFunction;
- ctx->runtimeStrings = oldRuntimeStrings;
while (engine->current != parentContext)
engine->popContext();