aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4isel_moth.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2013-08-19 08:31:35 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-19 16:11:49 +0200
commit90aaff37be419ca1f1da40df64424c0d88bfaf19 (patch)
tree732af65cacdbddc8e95e7bbc834fec926f71e818 /src/qml/compiler/qv4isel_moth.cpp
parenta57273f033f06a80b72b7a8c06faa08aee392cd1 (diff)
Cleanup: Determine the root/entry function in isel independent code
Change-Id: I99004b872be9bd7d9dd0c798eb2d9bb4ddfa4cbd Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/compiler/qv4isel_moth.cpp')
-rw-r--r--src/qml/compiler/qv4isel_moth.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/qml/compiler/qv4isel_moth.cpp b/src/qml/compiler/qv4isel_moth.cpp
index 4c298d8d72..3140030392 100644
--- a/src/qml/compiler/qv4isel_moth.cpp
+++ b/src/qml/compiler/qv4isel_moth.cpp
@@ -1081,14 +1081,9 @@ Instr::Param InstructionSelection::getParam(V4IR::Expr *e) {
}
-QV4::Function *CompilationUnit::linkBackendToEngine(QV4::ExecutionEngine *engine)
+void CompilationUnit::linkBackendToEngine(QV4::ExecutionEngine *engine)
{
- QV4::Function *rootRuntimeFunction = 0;
-
- const QV4::CompiledData::Function *compiledRootFunction = data->functionAt(data->indexOfRootFunction);
-
runtimeFunctions.resize(data->functionTableSize);
-
for (int i = 0 ;i < runtimeFunctions.size(); ++i) {
const QV4::CompiledData::Function *compiledFunction = data->functionAt(i);
@@ -1099,12 +1094,5 @@ QV4::Function *CompilationUnit::linkBackendToEngine(QV4::ExecutionEngine *engine
if (QV4::Debugging::Debugger *debugger = engine->debugger)
debugger->setPendingBreakpoints(runtimeFunction);
-
- if (compiledFunction == compiledRootFunction) {
- assert(!rootRuntimeFunction);
- rootRuntimeFunction = runtimeFunction;
- }
}
-
- return rootRuntimeFunction;
}