mirror of
https://github.com/open-goal/jak-project
synced 2026-08-21 14:54:53 -04:00
[goalc] register allocator v2 (#731)
* clean up allocator interface to be simpler * working on functions without spills * working for all * fix missing includes for windows * more windows includes * initialize regs to zero so printing value unintiailized by game code is repeatable
This commit is contained in:
@@ -615,4 +615,12 @@ std::vector<u8> ObjectGenerator::generate_header_v3() {
|
||||
push_data<uint32_t>(64 + 4 + total_link_size, result); // todo, make these numbers less magic.
|
||||
return result;
|
||||
}
|
||||
|
||||
ObjectGeneratorStats ObjectGenerator::get_stats() const {
|
||||
return m_stats;
|
||||
}
|
||||
|
||||
void ObjectGenerator::count_eliminated_move() {
|
||||
m_stats.moves_eliminated++;
|
||||
}
|
||||
} // namespace emitter
|
||||
Reference in New Issue
Block a user