aboutsummaryrefslogtreecommitdiff
path: root/py/showbc.c
AgeCommit message (Collapse)Author
2014-01-21Revamp qstrs: they now include length and hash.Damien George
Can now have null bytes in strings. Can define ROM qstrs per port using qstrdefsport.h
2014-01-19py: Add module/function/class name to exceptions.Damien George
Exceptions know source file, line and block name. Also tidy up some debug printing functions and provide a global flag to enable/disable them.
2014-01-19py: Temporary fix for bug where not enough VM state is allocated.Damien George
2014-01-18Add source file name and line number to error messages.Damien George
Byte code has a map from byte-code offset to source-code line number, used to give better error messages.
2014-01-18Make VM stack grow upwards, and so no reversed args arrays.Damien George
Change state layout in VM so the stack starts at state[0] and grows upwards. Locals are at the top end of the state and number downwards. This cleans up a lot of the interface connecting the VM to C: now all functions that take an array of Micro Python objects are in order (ie no longer in reverse). Also clean up C API with keyword arguments (call_n and call_n_kw replaced with single call method that takes keyword arguments). And now make_new takes keyword arguments. emitnative.c has not yet been changed to comply with the new order of stack layout.
2014-01-11unified the bopsJohn R. Lenton
2014-01-11Dump few more bytecodes (based on attempt to run real-world code).Paul Sokolovsky
2014-01-07Factor and simplify Makefile's and mpconfig, part 2.Damien George
2014-01-04Add ellipsis object.Damien George
2014-01-03Basic implementation of import.Damien George
import works for simple cases. Still work to do on finding the right script, and setting globals/locals correctly when running an imported function.
2014-01-02py: Add more bytecodes to showbc.c.Damien George
2013-12-30py: make closures work.Damien George
2013-12-30Make unix-cpy cross platform; remove dependency of asmx64 on mpconfig.Damien George
2013-12-30Merge branch 'cross-plat' of https://github.com/pfalcon/micropython into ↵Damien George
pfalcon-cross-plat
2013-12-30Make "unix" target be crossplatform and support x86, x64, ARM hosts.Paul Sokolovsky
2013-12-29py: add dict length function, and fix rt_store_set.Damien
2013-12-29Add code in VM to handle nested exceptions correctly.Damien
2013-12-21Change object representation from 1 big union to individual structs.Damien
A big change. Micro Python objects are allocated as individual structs with the first element being a pointer to the type information (which is itself an object). This scheme follows CPython. Much more flexible, not necessarily slower, uses same heap memory, and can allocate objects statically. Also change name prefix, from py_ to mp_ (mp for Micro Python).
2013-11-26py: add more functionality to showbc.Damien
2013-11-25py: add some more opcodes to showbc.Damien
2013-11-17Add function to decode and show byte code.Damien