Fix generation of multiple functions

Sine we can't reset the MacroAssembler properly right now, reconstruct
the isel for every function.
This commit is contained in:
Simon Hausmann 2012-10-02 08:53:47 +02:00
parent 011f4878ea
commit 062c43beed
1 changed files with 3 additions and 2 deletions

View File

@ -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();