Add todo comments
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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#"
|
||||||
|
|||||||
Reference in New Issue
Block a user