[Mono-list] lmf handling

Paolo Molaro lupus@ximian.com
Mon, 19 Apr 2004 17:52:53 +0200


On 04/16/04 Ferguson, Neale wrote:
>  I am trying to understand lmf chaining for the JIT. Is this the way it
> works:
> 
> 1. Following setup_jit_tls
> 
> *--------------*     *-------------*
> | jit_tls->lmf |---->| Initial LMF |
> *--------------*     *-------------*
> 
> 	  		   - previous_lmf = NULL
> 		         - ebp = -1
> 
> 
> 2. Following emit_prolog where save_lmf is indicated:
> 
> - Option 1
> 
> *--------------*     *-------------*           *-------------*
> | jit_tls->lmf |---->|   New LMF   |---------->| Initial LMF |
> *--------------*     *-------------*           *-------------*
> 
> 			   - lmf_addr = jit_tls->lmf
> 			   - previous_lmf = Initial LMF
> 			   - ebp = stack ptr
> 			   - eip = current instruction

This is the intended behaviour: jit_tls->lmf points to the last
structure on the stack.

lupus

-- 
-----------------------------------------------------------------
lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better