aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4script_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-08-07 14:43:03 +0200
committerLars Knoll <lars.knoll@qt.io>2017-08-10 08:18:50 +0000
commiteb2c08f57493aa12850e6cddff2cc3527e7cbfd7 (patch)
treebe917321e6025a8ca8983881a1f07d1a0fd7680c /src/qml/jsruntime/qv4script_p.h
parente9a8252305fa5e3b3cd4a18261990820975a79da (diff)
Get rid of ExecutionContext::strictMode
This should be done by generating different byte code for the strict/non strict cases. For now the VME has a workaround checking the isStrict() flag of QV4::Function. Change-Id: I2faa9e9184ffc5274491067e67f665d6989b54c2 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4script_p.h')
-rw-r--r--src/qml/jsruntime/qv4script_p.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/qml/jsruntime/qv4script_p.h b/src/qml/jsruntime/qv4script_p.h
index 62e1e566bf..96c3b4b32d 100644
--- a/src/qml/jsruntime/qv4script_p.h
+++ b/src/qml/jsruntime/qv4script_p.h
@@ -65,19 +65,16 @@ namespace QV4 {
struct ContextStateSaver {
Value *savedContext;
- bool strictMode;
QV4::Function *v4Function;
ContextStateSaver(const Scope &scope, ExecutionContext *context)
: savedContext(scope.alloc(1))
- , strictMode(context->d()->strictMode)
, v4Function(context->d()->v4Function)
{
savedContext->setM(context->d());
}
ContextStateSaver(const Scope &scope, Heap::ExecutionContext *context)
: savedContext(scope.alloc(1))
- , strictMode(context->strictMode)
, v4Function(context->v4Function)
{
savedContext->setM(context);
@@ -86,7 +83,6 @@ struct ContextStateSaver {
~ContextStateSaver()
{
Heap::ExecutionContext *ctx = static_cast<Heap::ExecutionContext *>(savedContext->m());
- ctx->strictMode = strictMode;
ctx->v4Function = v4Function;
}
};