diff options
| author | Erik Verbruggen <erik.verbruggen@digia.com> | 2014-07-04 17:01:02 +0200 |
|---|---|---|
| committer | Erik Verbruggen <erik.verbruggen@digia.com> | 2014-08-08 10:45:12 +0200 |
| commit | 6333e0913fc0078c0221a8909ced8df03a568992 (patch) | |
| tree | 40661d956eb9a87ba3f695811de0e3c591ab7583 /src/qml/jsruntime/qv4script.cpp | |
| parent | 94669499fd943fc72095afd739a21cd8e675f14f (diff) | |
Add support for conditional breakpoints and evaluate.
Also centralized the context state saver and added line number saving, so that the
JS jobs for evaluation of breakpoint conditions don't change the state of the current
engine context.
Task-number: QTBUG-37119
Task-number: QTCREATORBUG-11516
Change-Id: Ia21b3d64e239e5b67f3c07e1c006d8e6748f29b6
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4script.cpp')
| -rw-r--r-- | src/qml/jsruntime/qv4script.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/qml/jsruntime/qv4script.cpp b/src/qml/jsruntime/qv4script.cpp index e08a63bd1f..27bb7c8d2f 100644 --- a/src/qml/jsruntime/qv4script.cpp +++ b/src/qml/jsruntime/qv4script.cpp @@ -287,27 +287,6 @@ void Script::parse() ReturnedValue Script::run() { - struct ContextStateSaver { - ExecutionContext *savedContext; - bool strictMode; - Lookup *lookups; - CompiledData::CompilationUnit *compilationUnit; - - ContextStateSaver(ExecutionContext *context) - : savedContext(context) - , strictMode(context->d()->strictMode) - , lookups(context->d()->lookups) - , compilationUnit(context->d()->compilationUnit) - {} - - ~ContextStateSaver() - { - savedContext->d()->strictMode = strictMode; - savedContext->d()->lookups = lookups; - savedContext->d()->compilationUnit = compilationUnit; - } - }; - if (!parsed) parse(); if (!vmFunction) |
