diff options
| author | Damien George <damien.p.george@gmail.com> | 2016-01-09 23:59:52 +0000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2017-02-16 18:38:06 +1100 |
| commit | f4df3aaa72a0460614b1ab8b7b8a7927a1165e31 (patch) | |
| tree | 2c1ee2988630c79a4e79e40a15173af588d8fd2c /py/vmentrytable.h | |
| parent | ae8d86758631e62466a55d179897d2111c3cb1c1 (diff) | |
py: Allow bytecode/native to put iter_buf on stack for simple for loops.
So that the "for x in it: ..." statement can now work without using the
heap (so long as the iterator argument fits in an iter_buf structure).
Diffstat (limited to 'py/vmentrytable.h')
| -rw-r--r-- | py/vmentrytable.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/vmentrytable.h b/py/vmentrytable.h index dd30dd7a5..8731c3d4c 100644 --- a/py/vmentrytable.h +++ b/py/vmentrytable.h @@ -73,6 +73,7 @@ static const void *const entry_table[256] = { [MP_BC_SETUP_FINALLY] = &&entry_MP_BC_SETUP_FINALLY, [MP_BC_END_FINALLY] = &&entry_MP_BC_END_FINALLY, [MP_BC_GET_ITER] = &&entry_MP_BC_GET_ITER, + [MP_BC_GET_ITER_STACK] = &&entry_MP_BC_GET_ITER_STACK, [MP_BC_FOR_ITER] = &&entry_MP_BC_FOR_ITER, [MP_BC_POP_BLOCK] = &&entry_MP_BC_POP_BLOCK, [MP_BC_POP_EXCEPT] = &&entry_MP_BC_POP_EXCEPT, |
