diff options
| author | Noralf Trønnes <noralf@tronnes.org> | 2018-08-25 13:14:58 +0200 |
|---|---|---|
| committer | Noralf Trønnes <noralf@tronnes.org> | 2018-08-25 13:14:58 +0200 |
| commit | 2d1fecc80430618ff295498c421064be28796822 (patch) | |
| tree | aa6d25a0495d7d96f9efa51b5973184e816272c0 | |
| parent | d1b588375be0812f6e8d58f1eba1a6c82f91a931 (diff) | |
Revert "py/vm: Improve performance of opcode dispatch when using switch stmt."
This reverts commit 869024dd6e62905b7e1069b547856a769b3b24ba.
Ctrl-C stopped producing KeyboardInterrupt with this change on CircuitPython.
The Unix and stm32 ports handles Ctrl-C differently with a handler which is
probably why they where not affected.
Fixes #1092
| -rw-r--r-- | py/vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -136,7 +136,7 @@ mp_vm_return_kind_t mp_execute_bytecode(mp_code_state_t *code_state, volatile mp #define ENTRY(op) entry_##op #define ENTRY_DEFAULT entry_default #else - #define DISPATCH() goto dispatch_loop + #define DISPATCH() break #define DISPATCH_WITH_PEND_EXC_CHECK() goto pending_exception_check #define ENTRY(op) case op #define ENTRY_DEFAULT default |
