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:
parent
011f4878ea
commit
062c43beed
5
main.cpp
5
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();
|
||||
|
|
Loading…
Reference in New Issue