mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
Rename Register to GPReg and add return regs to backend
This commit is contained in:
parent
65e14f2941
commit
6da6faa35f
3 changed files with 114 additions and 117 deletions
|
@ -90,8 +90,11 @@ where
|
|||
fn build_proc(&mut self, proc: Proc<'a>) -> Result<(&'a [u8], &[Relocation]), String> {
|
||||
self.reset();
|
||||
// TODO: let the backend know of all the arguments.
|
||||
// let start = std::time::Instant::now();
|
||||
self.calculate_last_seen(&proc.body);
|
||||
//println!("{:?}", self.last_seen_map());
|
||||
// let duration = start.elapsed();
|
||||
// println!("Time to calculate lifetimes: {:?}", duration);
|
||||
// println!("{:?}", self.last_seen_map());
|
||||
self.build_stmt(&proc.body)?;
|
||||
self.finalize()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue