summaryrefslogtreecommitdiffstats
path: root/src/v4/qv4context.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-04-03 20:24:38 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-04-04 15:32:21 +0200
commit90dbc177757e16ad6cfcf5a195cbf610fe68a92d (patch)
tree72a3305e60e86cc2729a599e2b6925d609996460 /src/v4/qv4context.cpp
parentaecf1c22d38816269b27c8e8d70a9767c57dbc1d (diff)
Create some execution contexts on the stack again
This seems to be working now, and speeds up our benchmarks with another 20%. Change-Id: Ib01bf8f66db91b0e06090eff705db79b0caf66ee Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/v4/qv4context.cpp')
-rw-r--r--src/v4/qv4context.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/v4/qv4context.cpp b/src/v4/qv4context.cpp
index 51a80f4a..88365f4f 100644
--- a/src/v4/qv4context.cpp
+++ b/src/v4/qv4context.cpp
@@ -542,6 +542,9 @@ void ExecutionContext::initCallContext(ExecutionEngine *engine)
marked = false;
this->engine = engine;
outer = function->scope;
+#ifndef QT_NO_DEBUG
+ assert(outer->next != (ExecutionContext *)0x1);
+#endif
exceptionVarName = 0;
exceptionValue = Value::undefinedValue();