JIT hackery. Not quite working.

This commit is contained in:
Ben Vanik
2014-01-25 20:30:18 -08:00
parent a84ce633c9
commit 4609339c5a
16 changed files with 1585 additions and 379 deletions

View File

@@ -49,7 +49,15 @@ int FinalizationPass::Run(HIRBuilder* builder) {
label = label->next;
}
// ?
// ? remove useless jumps?
// Renumber all instructions to make liveness tracking easier.
uint32_t n = 0;
auto instr = block->instr_head;
while (instr) {
instr->ordinal = n++;
instr = instr->next;
}
block = block->next;
}