Add todo comments

This commit is contained in:
Jef
2019-01-18 13:07:41 +01:00
parent b23e00893c
commit b6e29a899e
2 changed files with 5 additions and 0 deletions

View File

@@ -51,6 +51,7 @@ extern "sysv64" fn println(len: u64, args: *const u8) {
}); });
} }
#[allow(unused_macros)]
macro_rules! asm_println { macro_rules! asm_println {
($asm:expr, $($args:tt)*) => {{ ($asm:expr, $($args:tt)*) => {{
use std::mem; use std::mem;
@@ -2243,6 +2244,8 @@ impl Context<'_> {
let (reg_locals, temps) = let (reg_locals, temps) =
locals_in_gprs.split_at((locals as usize).min(locals_in_gprs.len())); locals_in_gprs.split_at((locals as usize).min(locals_in_gprs.len()));
// TODO: If we have less than some amount of extra scratch here, free
// up some callee-saved regs.
for temp in temps { for temp in temps {
self.block_state.regs.release_scratch_gpr(*temp); self.block_state.regs.release_scratch_gpr(*temp);
} }

View File

@@ -977,6 +977,8 @@ fn nested_storage_calls() {
assert_eq!(translated.execute_func::<(), i32>(0, ()), Ok(1)); assert_eq!(translated.execute_func::<(), i32>(0, ()), Ok(1));
} }
// TODO: Signature mismatches correctly fail, but we can't add a test
// for that until we implement traps properly.
#[test] #[test]
fn call_indirect() { fn call_indirect() {
const CODE: &str = r#" const CODE: &str = r#"