Revert "py/vm: Improve performance of opcode dispatch when using switch stmt."

This reverts commit 869024dd6e.

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
This commit is contained in:
Noralf Trønnes 2018-08-25 13:14:58 +02:00
parent d1b588375b
commit 2d1fecc804

View File

@ -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(op) entry_##op
#define ENTRY_DEFAULT entry_default #define ENTRY_DEFAULT entry_default
#else #else
#define DISPATCH() goto dispatch_loop #define DISPATCH() break
#define DISPATCH_WITH_PEND_EXC_CHECK() goto pending_exception_check #define DISPATCH_WITH_PEND_EXC_CHECK() goto pending_exception_check
#define ENTRY(op) case op #define ENTRY(op) case op
#define ENTRY_DEFAULT default #define ENTRY_DEFAULT default