Commit 79e689ff authored by Isaac Oscar Gariano's avatar Isaac Oscar Gariano

Fixed bug in set ret value

parent 9a9ef44f
......@@ -1040,8 +1040,8 @@ impl Value {
}
}
const DISPLAY_ID: bool = true;
const DISPLAY_TYPE: bool = false;
const DISPLAY_ID: bool = false;
const DISPLAY_TYPE: bool = true;
const PRINT_ABBREVIATE_NAME: bool = true;
impl fmt::Debug for Value {
......
......@@ -1766,10 +1766,11 @@ impl<'a> InstructionSelection {
let ref ops = inst.ops;
let ref op = ops[index];
let op_val = self.emit_ireg(op, f_content, f_context, vm);
self.emit_runtime_entry(
&entrypoints::SET_RETVAL,
vec![op.clone_value()],
vec![op_val],
None,
Some(node),
f_context,
......@@ -4637,6 +4638,7 @@ impl<'a> InstructionSelection {
// (the previous FP and LR)
let (_, locations, stack_arg_size) =
self.compute_argument_locations(&sig.arg_tys, &FP, 16, &vm);
trace!("ISAAC: [{:?}] {:?} -> {:?}", args, sig, locations);
self.current_stack_arg_size = stack_arg_size;
for i in 0..args.len() {
let i = i as usize;
......
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