summaryrefslogtreecommitdiffstatshomepage
path: root/py/showbc.c
Commit message (Collapse)AuthorAge
* Revamp qstrs: they now include length and hash.Damien George2014-01-21
| | | | | Can now have null bytes in strings. Can define ROM qstrs per port using qstrdefsport.h
* py: Add module/function/class name to exceptions.Damien George2014-01-19
| | | | | | | Exceptions know source file, line and block name. Also tidy up some debug printing functions and provide a global flag to enable/disable them.
* py: Temporary fix for bug where not enough VM state is allocated.Damien George2014-01-19
|
* Add source file name and line number to error messages.Damien George2014-01-18
| | | | | Byte code has a map from byte-code offset to source-code line number, used to give better error messages.
* Make VM stack grow upwards, and so no reversed args arrays.Damien George2014-01-18
| | | | | | | | | | | | | | | 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.
* unified the bopsJohn R. Lenton2014-01-11
|
* Dump few more bytecodes (based on attempt to run real-world code).Paul Sokolovsky2014-01-11
|
* Factor and simplify Makefile's and mpconfig, part 2.Damien George2014-01-07
|
* Add ellipsis object.Damien George2014-01-04
|
* Basic implementation of import.Damien George2014-01-03
| | | | | | import works for simple cases. Still work to do on finding the right script, and setting globals/locals correctly when running an imported function.
* py: Add more bytecodes to showbc.c.Damien George2014-01-02
|
* py: make closures work.Damien George2013-12-30
|
* Make unix-cpy cross platform; remove dependency of asmx64 on mpconfig.Damien George2013-12-30
|
* Merge branch 'cross-plat' of https://github.com/pfalcon/micropython into ↵Damien George2013-12-30
|\ | | | | | | pfalcon-cross-plat
| * Make "unix" target be crossplatform and support x86, x64, ARM hosts.Paul Sokolovsky2013-12-30
| |
* | py: add dict length function, and fix rt_store_set.Damien2013-12-29
|/
* Add code in VM to handle nested exceptions correctly.Damien2013-12-29
|
* Change object representation from 1 big union to individual structs.Damien2013-12-21
| | | | | | | | | | 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).
* py: add more functionality to showbc.Damien2013-11-26
|
* py: add some more opcodes to showbc.Damien2013-11-25
|
* Add function to decode and show byte code.Damien2013-11-17