[Mono-list] JIT - saving stack arg across basic block

Daniel Wilson dkw@iseek.net
Tue, 2 Sep 2003 11:46:46 -0400


Hello,

In the JIT compiler (specifically mini.c), when the IL is converted to =
IR
trees, stack items are stored/restored across basic block boundaries. It =
is
done by "handle_stack_args()" or "handle_loaded_temps()". I wonder if =
anyone
could explain the intuition behind it?

I am modifying the trees by inserting new basic blocks, but some null
arguments exceptions are resulted. The above mentioned issue is sth I
ignored before. Any insight is appreciated.

Thanks,
Derek