diff options
author | Damien George <damien.p.george@gmail.com> | 2017-02-10 11:58:10 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-02-10 11:58:10 +1100 |
commit | cc2dbdd1fe4a5131a40b2ab73195786451314bf8 (patch) | |
tree | f7b348766618548b8c39847eb67c811069d5a585 /stmhal/make-stmconst.py | |
parent | 8f1c6d952ac695bc41afe8965aa79fbabcc6bcc1 (diff) | |
download | micropython-cc2dbdd1fe4a5131a40b2ab73195786451314bf8.tar.gz micropython-cc2dbdd1fe4a5131a40b2ab73195786451314bf8.zip |
py/emitbc: Produce correct line number info for large bytecode chunks.
Previous to this patch, for large chunks of bytecode that originated from
a single source-code line, the bytecode-line mapping would generate
something like (for 42 bytecode bytes and 1 line):
BC_SKIP=31 LINE_SKIP=1
BC_SKIP=11 LINE_SKIP=0
This would mean that any errors in the last 11 bytecode bytes would be
reported on the following line. This patch fixes it to generate instead:
BC_SKIP=31 LINE_SKIP=0
BC_SKIP=11 LINE_SKIP=1
Diffstat (limited to 'stmhal/make-stmconst.py')
0 files changed, 0 insertions, 0 deletions