From be70a025c19bfbfadcab957df7b1185109f5e88e Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 3 Aug 2017 13:41:13 +0200 Subject: Don't store the current line number in the ExecutionContext Instead modify our StackFrame struct to hold the QV4::Function and have a linked list of those for the frames. Change-Id: I8676e16bc51a5ba6cf25a5b3423576d44e8a926a Reviewed-by: Erik Verbruggen --- 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 ef48dde6db..62e1e566bf 100644 --- a/src/qml/jsruntime/qv4script_p.h +++ b/src/qml/jsruntime/qv4script_p.h @@ -67,13 +67,11 @@ struct ContextStateSaver { Value *savedContext; bool strictMode; QV4::Function *v4Function; - int lineNumber; ContextStateSaver(const Scope &scope, ExecutionContext *context) : savedContext(scope.alloc(1)) , strictMode(context->d()->strictMode) , v4Function(context->d()->v4Function) - , lineNumber(context->d()->lineNumber) { savedContext->setM(context->d()); } @@ -81,7 +79,6 @@ struct ContextStateSaver { : savedContext(scope.alloc(1)) , strictMode(context->strictMode) , v4Function(context->v4Function) - , lineNumber(context->lineNumber) { savedContext->setM(context); } @@ -91,7 +88,6 @@ struct ContextStateSaver { Heap::ExecutionContext *ctx = static_cast(savedContext->m()); ctx->strictMode = strictMode; ctx->v4Function = v4Function; - ctx->lineNumber = lineNumber; } }; -- cgit v1.2.3