diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-04-17 23:24:13 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-04-17 23:24:13 +0100 |
| commit | 5b65f0c7d386646229b6647332e7a09277872e4c (patch) | |
| tree | 06e46eaf0b82fe600109ccaeefa76f3512175922 /py/vm.c | |
| parent | 559d8239cac950cc011edd9605010a311b2b9be6 (diff) | |
py: Rename USE_COMPUTED_GOTOS to USE_COMPUTED_GOTO and enable on stmhal.
On stmhal, computed gotos make the binary about 1k bigger, but makes it
run faster, and we have the room, so why not. All tests pass on
pyboard using computed gotos.
Diffstat (limited to 'py/vm.c')
| -rw-r--r-- | py/vm.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -165,7 +165,7 @@ mp_vm_return_kind_t mp_execute_byte_code_2(const byte *code_info, const byte **i mp_obj_t *fastn, mp_obj_t **sp_in_out, mp_exc_stack_t *exc_stack, mp_exc_stack_t **exc_sp_in_out, volatile mp_obj_t inject_exc) { -#if MICROPY_USE_COMPUTED_GOTOS +#if MICROPY_USE_COMPUTED_GOTO #include "vmentrytable.h" #define DISPATCH() do { \ save_ip = ip; \ @@ -220,7 +220,7 @@ outer_dispatch_loop: // loop to execute byte code for (;;) { dispatch_loop: -#if MICROPY_USE_COMPUTED_GOTOS +#if MICROPY_USE_COMPUTED_GOTO DISPATCH(); #else save_ip = ip; @@ -935,7 +935,7 @@ yield: fastn[0] = obj1; return MP_VM_RETURN_EXCEPTION; -#if !MICROPY_USE_COMPUTED_GOTOS +#if !MICROPY_USE_COMPUTED_GOTO } // switch #endif } // for loop |
