summaryrefslogtreecommitdiffstatshomepage
path: root/py/runtime.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-03-26 15:49:53 +0000
committerDamien George <damien.p.george@gmail.com>2015-03-26 16:52:45 +0000
commita210c774f9cfbcde284f5b8a63442b4d6da1ae5b (patch)
tree1277140fe133c950ac047cb909a01ce7330a0b84 /py/runtime.c
parent542bd6b4a1ead90fde42f24d01c82580f9d048de (diff)
downloadmicropython-a210c774f9cfbcde284f5b8a63442b4d6da1ae5b.tar.gz
micropython-a210c774f9cfbcde284f5b8a63442b4d6da1ae5b.zip
py, compiler: Remove emit_pass1 code, using emit_bc to do its job.
First pass for the compiler is computing the scope (eg if an identifier is local or not) and originally had an entire table of methods dedicated to this, most of which did nothing. With changes from previous commit, this set of methods can be removed and the methods from the bytecode emitter used instead, with very little modification -- this is what is done in this commit. This factoring has little to no impact on the speed of the compiler (tested by compiling 3763 Python scripts and timing it). This factoring reduces code size by about 270-300 bytes on Thumb2 archs, and 400 bytes on x86.
Diffstat (limited to 'py/runtime.c')
0 files changed, 0 insertions, 0 deletions