diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2012-10-02 08:53:47 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-10-02 08:53:47 +0200 |
commit | 062c43beedcae4beb1c1e3667178c3dfa56f38de (patch) | |
tree | f3584d442082ef1b54a5656ebc1950929268d590 /main.cpp | |
parent | 011f4878eabffad2430284c6d18ba66bcba6f1b7 (diff) |
Fix generation of multiple functions
Sine we can't reset the MacroAssembler properly right now, reconstruct
the isel for every function.
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -227,9 +227,10 @@ static void evaluate(QQmlJS::VM::Context *ctx, const QString &fileName, const QS foreach (IR::Function *function, module.functions) isel(function); } else { - MASM::InstructionSelection isel(vm, &module, code); - foreach (IR::Function *function, module.functions) + foreach (IR::Function *function, module.functions) { + MASM::InstructionSelection isel(vm, &module, code); isel(function); + } if (! protect(code, codeSize)) Q_UNREACHABLE(); |