From eb2c08f57493aa12850e6cddff2cc3527e7cbfd7 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Mon, 7 Aug 2017 14:43:03 +0200 Subject: 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 --- src/qml/jsruntime/qv4script_p.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/qml/jsruntime/qv4script_p.h') 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(savedContext->m()); - ctx->strictMode = strictMode; ctx->v4Function = v4Function; } }; -- cgit v1.2.3