summaryrefslogtreecommitdiffstatshomepage
path: root/py/parsehelper.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-10-05 20:13:34 +0100
committerDamien George <damien.p.george@gmail.com>2014-10-05 20:13:34 +0100
commitc4d0868df1117ad243ee8f7238985a822b0f775d (patch)
tree4d75f4c60a2da4cbd85d3d130b773e21fce7be7b /py/parsehelper.c
parenta91ac2011f0131ce550bf227d78ccccbdab4f882 (diff)
downloadmicropython-c4d0868df1117ad243ee8f7238985a822b0f775d.tar.gz
micropython-c4d0868df1117ad243ee8f7238985a822b0f775d.zip
py: Implement proper context save/restore for eval/exec; factor code.
This has benefits all round: code factoring for parse/compile/execute, proper context save/restore for exec, allow to sepcify globals/locals for eval, and reduced ROM usage by >100 bytes on stmhal and unix. Also, the call to mp_parse_compile_execute is tail call optimised for the import code, so it doesn't increase stack memory usage.
Diffstat (limited to 'py/parsehelper.c')
0 files changed, 0 insertions, 0 deletions