Commit e5d8b5a3 authored by qinsoon's avatar qinsoon

[wip] working on rpython dictionary test

parent dee3785d
......@@ -108,6 +108,7 @@ pub fn validate_regalloc(cf: &CompiledFunction,
// remove registers that die at this instruction from alive entries
if let Some(kills) = liveness.get_kills(i) {
for reg in kills.iter() {
debug!("Temp/Reg{} is killed", reg);
kill_reg(*reg, &mut alive);
}
}
......@@ -123,6 +124,7 @@ pub fn validate_regalloc(cf: &CompiledFunction,
} else {
// we need to kill the reg, so that other temps cannot use it
// (its value has been defined)
debug!("Temp/Reg{} is not liveout, will be killed", reg_def);
kill_reg(reg_def, &mut alive);
}
}
......
......@@ -42,6 +42,17 @@ def test_rpython_dict_new_100():
fn()
@may_spawn_proc
def test_rpython_image_dict_new_100():
def main(argv):
a = {}
for i in range(0, 100):
a[i] = i
return 0
res = run_boot_image(main, '/tmp/test_image_dict_new_100', vmargs="--disable-inline")
assert res.returncode == 0, res.err
@may_spawn_proc
def test_rpython_dict_lookup():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment