aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2012-10-02 08:53:47 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2012-10-02 08:53:47 +0200
commit062c43beedcae4beb1c1e3667178c3dfa56f38de (patch)
treef3584d442082ef1b54a5656ebc1950929268d590 /main.cpp
parent011f4878eabffad2430284c6d18ba66bcba6f1b7 (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.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.cpp b/main.cpp
index 460663a059..fa03e08179 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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();