diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-08-14 16:35:18 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2013-08-15 09:11:42 +0200 |
commit | 335a903d4b1de7511be76d55f736c9f0c7643727 (patch) | |
tree | 0422350992de812faed44bfd4b016562c6bcb810 /src/qml/compiler/qv4compileddata.cpp | |
parent | 3e49617bc6dddcc7a053d0ec643c8994d84a8c5e (diff) |
Move the masm compilation unit entirely into qv4isel_masm
Change-Id: If24b6a761dc2f2443520b31b5130ab44b739cdf3
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/compiler/qv4compileddata.cpp')
-rw-r--r-- | src/qml/compiler/qv4compileddata.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/qml/compiler/qv4compileddata.cpp b/src/qml/compiler/qv4compileddata.cpp index 1f4ab476ae..2a39f6237d 100644 --- a/src/qml/compiler/qv4compileddata.cpp +++ b/src/qml/compiler/qv4compileddata.cpp @@ -70,30 +70,6 @@ QV4::Function *CompilationUnit::linkToEngine(ExecutionEngine *engine) return linkBackendToEngine(engine); } -// ### Move to masm -QV4::Function *MasmCompilationUnit::linkBackendToEngine(ExecutionEngine *engine) -{ - QV4::Function *rootRuntimeFunction = 0; - - const CompiledData::Function *compiledRootFunction = data->functionAt(data->indexOfRootFunction); - - for (int i = 0 ;i < runtimeFunctions.size(); ++i) { - QV4::Function *runtimeFunction = runtimeFunctions.at(i); - const CompiledData::Function *compiledFunction = data->functionAt(i); - - runtimeFunction->compilationUnit = this; - runtimeFunction->compilationUnit->ref(); - runtimeFunction->compiledFunction = compiledFunction; - - if (compiledFunction == compiledRootFunction) { - assert(!rootRuntimeFunction); - rootRuntimeFunction = runtimeFunction; - } - } - - return rootRuntimeFunction; -} - } } |