summaryrefslogtreecommitdiff
path: root/py/runtime0.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-29 20:30:52 +0000
committerDamien George <damien.p.george@gmail.com>2014-01-29 20:30:52 +0000
commitd0691ccaec37b367892a3cc924ee5eed24288b38 (patch)
tree3804facffaac43f454bf4c0d23b066886c88a46c /py/runtime0.h
parent01fa4a91643702eb62645346991a41e52c1c8414 (diff)
py: Simplify fastn in VM; reduce size of unique code struct.
We still have FAST_[0,1,2] byte codes, but they now just access the fastn array (before they had special local variables). It's now simpler, a bit faster, and uses a bit less stack space (on STM at least, which is most important). The only reason now to keep FAST_[0,1,2] byte codes is for compressed byte code size.
Diffstat (limited to 'py/runtime0.h')
-rw-r--r--py/runtime0.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/py/runtime0.h b/py/runtime0.h
index b7b5afaeb..cd82b1412 100644
--- a/py/runtime0.h
+++ b/py/runtime0.h
@@ -78,7 +78,7 @@ extern void *const rt_fun_table[RT_F_NUMBER_OF];
void rt_init(void);
void rt_deinit(void);
-int rt_get_unique_code_id(void);
-void rt_assign_byte_code(int unique_code_id, byte *code, uint len, int n_args, int n_locals, int n_stack, bool is_generator);
-void rt_assign_native_code(int unique_code_id, void *f, uint len, int n_args);
-void rt_assign_inline_asm_code(int unique_code_id, void *f, uint len, int n_args);
+uint rt_get_unique_code_id(void);
+void rt_assign_byte_code(uint unique_code_id, byte *code, uint len, int n_args, int n_locals, int n_stack, bool is_generator);
+void rt_assign_native_code(uint unique_code_id, void *f, uint len, int n_args);
+void rt_assign_inline_asm_code(uint unique_code_id, void *f, uint len, int n_args);