From 1644bbec6161ec971a2ba3c213ce285b995cac22 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Thu, 1 Jun 2023 11:04:38 +0200 Subject: cooker: OP_CALL and OP_COPY stuff ...mostly. Signed-off-by: Stefano Brivio --- cooker/emit.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cooker/emit.h') diff --git a/cooker/emit.h b/cooker/emit.h index 5d15b1b..ee0583f 100644 --- a/cooker/emit.h +++ b/cooker/emit.h @@ -18,8 +18,18 @@ void emit_cmp_field(struct gluten_ctx *g, enum op_cmp_type cmp, enum jump_type jmp); void emit_return(struct gluten_ctx *g, struct gluten_offset v); void emit_block(struct gluten_ctx *g, int32_t error); +void emit_copy(struct gluten_ctx *g, + struct gluten_offset dst, struct gluten_offset src, size_t size); +void emit_copy_field(struct gluten_ctx *g, struct field *field, + struct gluten_offset dst, struct gluten_offset src); struct gluten_offset emit_data(struct gluten_ctx *g, enum type type, size_t str_len, union value *value); +struct gluten_offset emit_data_at(struct gluten_ctx *g, + struct gluten_offset offset, + enum type type, union value *value); +struct gluten_offset emit_data_or(struct gluten_ctx *g, + struct gluten_offset offset, + enum type type, union value *value); void link_block(struct gluten_ctx *g); void link_match(struct gluten_ctx *g); -- cgit v1.2.3