From a44f92d925a1b0f5fa205706a26d81f07de75c33 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Fri, 16 Aug 2013 18:35:29 +0200 Subject: Get rid of the functions list in QV4::ExecutionEngine Change-Id: I97067dbb2819936a1b2029c9f63f0627cb6b8bd2 Reviewed-by: Lars Knoll --- src/qml/jsruntime/qv4debugging.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/qml/jsruntime/qv4debugging.cpp') diff --git a/src/qml/jsruntime/qv4debugging.cpp b/src/qml/jsruntime/qv4debugging.cpp index 3bb031116e..5534305068 100644 --- a/src/qml/jsruntime/qv4debugging.cpp +++ b/src/qml/jsruntime/qv4debugging.cpp @@ -185,9 +185,11 @@ void Debugger::pauseAndWait() void Debugger::applyPendingBreakPoints() { - foreach (Function *function, _engine->functions) { - m_pendingBreakPointsToAdd.applyToFunction(function, /*removeBreakPoints*/false); - m_pendingBreakPointsToRemove.applyToFunction(function, /*removeBreakPoints*/true); + foreach (QV4::CompiledData::CompilationUnit *unit, _engine->compilationUnits) { + foreach (Function *function, unit->runtimeFunctions) { + m_pendingBreakPointsToAdd.applyToFunction(function, /*removeBreakPoints*/false); + m_pendingBreakPointsToRemove.applyToFunction(function, /*removeBreakPoints*/true); + } } for (BreakPoints::ConstIterator it = m_pendingBreakPointsToAdd.constBegin(), -- cgit v1.2.3