diff options
| author | Damien <damien.p.george@gmail.com> | 2013-10-07 00:02:49 +0100 |
|---|---|---|
| committer | Damien <damien.p.george@gmail.com> | 2013-10-07 00:02:49 +0100 |
| commit | 7af3d19a3ca5957dc66b57eea9279da010576862 (patch) | |
| tree | 323dafedd43ac90e38e4a65b280fef9d9cb047be /py/emitx64.c | |
| parent | e4af64f307869355a749b6bc5c27cd9735e3fe1d (diff) | |
Implement crude viper emit stage.
Diffstat (limited to 'py/emitx64.c')
| -rw-r--r-- | py/emitx64.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/py/emitx64.c b/py/emitx64.c index 8ed617f2b..5af561438 100644 --- a/py/emitx64.c +++ b/py/emitx64.c @@ -130,18 +130,6 @@ static void emit_x64_set_stack_size(emit_t *emit, int size) { emit->stack_size = size; } -static void emit_x64_load_id(emit_t *emit, qstr qstr) { - emit_common_load_id(emit, &emit_x64_method_table, emit->scope, qstr); -} - -static void emit_x64_store_id(emit_t *emit, qstr qstr) { - emit_common_store_id(emit, &emit_x64_method_table, emit->scope, qstr); -} - -static void emit_x64_delete_id(emit_t *emit, qstr qstr) { - emit_common_delete_id(emit, &emit_x64_method_table, emit->scope, qstr); -} - static void adjust_stack(emit_t *emit, int stack_size_delta) { emit->stack_size += stack_size_delta; assert(emit->stack_size >= 0); @@ -268,6 +256,18 @@ static void emit_call_with_i64_arg(emit_t *emit, void *fun, int64_t arg_val, int asm_x64_call_ind(emit->as, fun, REG_RAX); } +static void emit_x64_load_id(emit_t *emit, qstr qstr) { + emit_common_load_id(emit, &emit_x64_method_table, emit->scope, qstr); +} + +static void emit_x64_store_id(emit_t *emit, qstr qstr) { + emit_common_store_id(emit, &emit_x64_method_table, emit->scope, qstr); +} + +static void emit_x64_delete_id(emit_t *emit, qstr qstr) { + emit_common_delete_id(emit, &emit_x64_method_table, emit->scope, qstr); +} + static void emit_x64_label_assign(emit_t *emit, int l) { asm_x64_label_assign(emit->as, l); } |
