compile: one closure context by function, and it is the stack frame
authorJean Privat <jean@pryen.org>
Tue, 18 Aug 2009 18:45:52 +0000 (14:45 -0400)
committerJean Privat <jean@pryen.org>
Tue, 18 Aug 2009 23:09:38 +0000 (19:09 -0400)
commitab1c77a045c15d980af0b8868bf77055cd020c23
tree6f67fe60c680b2aea82d5d316d4ea5c88024699b
parentaff9957c569341e7a1c167b6a36f7f27a82bd8b4
compile: one closure context by function, and it is the stack frame

Closure definition directly use the stack frame of the caller to access the
closure environment (local variables, closure parameters, escape marker).
Closure function pointers are passed as separate additional arguments.

Signed-off-by: Jean Privat <jean@pryen.org>
clib/nit_common.h
src/compiling/compiling_icode.nit