Testing smaller closure objects

This commit is contained in:
Justin Ethier 2018-10-15 18:38:07 -04:00
parent 8d451954cd
commit 3a789bccdc

View file

@ -1214,8 +1214,8 @@ typedef struct {
gc_header_type hdr; gc_header_type hdr;
tag_type tag; tag_type tag;
function_type fn; function_type fn;
int pc; unsigned char pc;
int num_args; unsigned char num_args;
} macro_type; } macro_type;
/** @brief A closed-over function with no variables */ /** @brief A closed-over function with no variables */
@ -1223,16 +1223,16 @@ typedef struct {
gc_header_type hdr; gc_header_type hdr;
tag_type tag; tag_type tag;
function_type fn; function_type fn;
int pc; unsigned char pc;
int num_args; unsigned char num_args;
} closure0_type; } closure0_type;
/** @brief A closed-over function with one variable */ /** @brief A closed-over function with one variable */
typedef struct { typedef struct {
gc_header_type hdr; gc_header_type hdr;
tag_type tag; tag_type tag;
function_type fn; function_type fn;
int pc; unsigned char pc;
int num_args; unsigned char num_args;
object element; object element;
} closure1_type; } closure1_type;
/** @brief A closed-over function with zero or more closed-over variables */ /** @brief A closed-over function with zero or more closed-over variables */
@ -1240,9 +1240,9 @@ typedef struct {
gc_header_type hdr; gc_header_type hdr;
tag_type tag; tag_type tag;
function_type fn; function_type fn;
int pc; unsigned char pc;
int num_args; unsigned char num_args;
int num_elements; unsigned char num_elements;
object *elements; object *elements;
} closureN_type; } closureN_type;