Commit f1b4d027 authored by Laszlo Domoszlai's avatar Laszlo Domoszlai
Browse files

use the thunk in the code area in the case of Litarals (instead of copying it to the heap)

parent cd113baf
......@@ -297,7 +297,7 @@ void exec(Code* expr, int frame_ptr, int root_frame_ptr)
}
}
case CT_LIT:
set_return(root_frame_ptr, updateT(get_dst(root_frame_ptr), &((LitEntry*) expr)->thunk));
set_return(root_frame_ptr, &((LitEntry*) expr)->thunk);
destroy_stack_frame(root_frame_ptr);
return;
case CT_SELECT:
......
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