From 9988618e0e0f5c319e31b135d993e22efb593093 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 6 Apr 2015 22:38:53 +0100 Subject: py: Implement full func arg passing for native emitter. This patch gets full function argument passing working with native emitter. Includes named args, keyword args, default args, var args and var keyword args. Fully Python compliant. It reuses the bytecode mp_setup_code_state function to do all the hard work. This function is slightly adjusted to accommodate native calls, and the native emitter is forced a bit to emit similar prelude and code-info as bytecode. --- py/asmthumb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'py/asmthumb.h') diff --git a/py/asmthumb.h b/py/asmthumb.h index 1ce91d38d..e40f95654 100644 --- a/py/asmthumb.h +++ b/py/asmthumb.h @@ -70,6 +70,7 @@ asm_thumb_t *asm_thumb_new(uint max_num_labels); void asm_thumb_free(asm_thumb_t *as, bool free_code); void asm_thumb_start_pass(asm_thumb_t *as, uint pass); void asm_thumb_end_pass(asm_thumb_t *as); +uint asm_thumb_get_code_pos(asm_thumb_t *as); uint asm_thumb_get_code_size(asm_thumb_t *as); void *asm_thumb_get_code(asm_thumb_t *as); -- cgit v1.2.3