From 3a789bccdc9c1276dc67ff37913b665b2cbf49ad Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Mon, 15 Oct 2018 18:38:07 -0400 Subject: [PATCH] Testing smaller closure objects --- include/cyclone/types.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/include/cyclone/types.h b/include/cyclone/types.h index 26d9b0f5..2eb5e200 100644 --- a/include/cyclone/types.h +++ b/include/cyclone/types.h @@ -1214,8 +1214,8 @@ typedef struct { gc_header_type hdr; tag_type tag; function_type fn; - int pc; - int num_args; + unsigned char pc; + unsigned char num_args; } macro_type; /** @brief A closed-over function with no variables */ @@ -1223,16 +1223,16 @@ typedef struct { gc_header_type hdr; tag_type tag; function_type fn; - int pc; - int num_args; + unsigned char pc; + unsigned char num_args; } closure0_type; /** @brief A closed-over function with one variable */ typedef struct { gc_header_type hdr; tag_type tag; function_type fn; - int pc; - int num_args; + unsigned char pc; + unsigned char num_args; object element; } closure1_type; /** @brief A closed-over function with zero or more closed-over variables */ @@ -1240,9 +1240,9 @@ typedef struct { gc_header_type hdr; tag_type tag; function_type fn; - int pc; - int num_args; - int num_elements; + unsigned char pc; + unsigned char num_args; + unsigned char num_elements; object *elements; } closureN_type;