diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-10 17:28:54 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-10 17:28:54 +0000 |
commit | d66ae1864031d7a369c2030b79d4ac649be5c0db (patch) | |
tree | 2a223d57a8b88838db95f99e45d7fdcf88936be6 /py/emit.h | |
parent | 069a35e3a56bc68571470c91d919f013d4b40650 (diff) |
py: Simplify stack get/set to become stack adjust in emitters.
Can do this now that the stack size calculation is improved.
Diffstat (limited to 'py/emit.h')
-rw-r--r-- | py/emit.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -24,8 +24,7 @@ typedef struct _emit_method_table_t { void (*start_pass)(emit_t *emit, pass_kind_t pass, scope_t *scope); void (*end_pass)(emit_t *emit); bool (*last_emit_was_return_value)(emit_t *emit); - int (*get_stack_size)(emit_t *emit); - void (*set_stack_size)(emit_t *emit, int size); + void (*adjust_stack_size)(emit_t *emit, int delta); void (*set_line_number)(emit_t *emit, int line); void (*load_id)(emit_t *emit, qstr qstr); |