add some comments in codegen_scopes' members
This commit is contained in:
parent
f7885a423f
commit
5be1cd7092
|
@ -11,10 +11,11 @@
|
||||||
typedef struct codegen_scope {
|
typedef struct codegen_scope {
|
||||||
struct codegen_scope *up;
|
struct codegen_scope *up;
|
||||||
|
|
||||||
/* local variables are 1-indexed */
|
/* local variables are 1-indexed, 0 is reserved for the callee */
|
||||||
struct xhash *local_tbl;
|
struct xhash *local_tbl;
|
||||||
/* does not count rest argument variable */
|
/* does not count rest argument variable */
|
||||||
size_t argc;
|
size_t argc;
|
||||||
|
/* dirty flags: if local var i is captured, then cv_tbl[i] == 1 */
|
||||||
int *cv_tbl;
|
int *cv_tbl;
|
||||||
bool varg;
|
bool varg;
|
||||||
} codegen_scope;
|
} codegen_scope;
|
||||||
|
|
Loading…
Reference in New Issue