Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | py: Merge BINARY_OP_SUBSCR and store_subscr (w/ delete) into subscr. | Damien George | 2014-04-17 |
| | | | | mp_obj_t->subscr now does load/store/delete. | ||
* | py: Fix up source-line calculation. | Damien George | 2014-04-13 |
| | | | | Should address issue #475. | ||
* | py: Update showbc to decode ptrs for MAKE_FUNCTION ops. | Damien George | 2014-04-13 |
| | |||
* | py: Make all LOAD_FAST ops check for unbound local. | Damien George | 2014-04-12 |
| | | | | | | | | This is necessary to catch all cases where locals are referenced before assignment. We still keep the _0, _1, _2 versions of LOAD_FAST to help reduced the byte code size in RAM. Addresses issue #457. | ||
* | showbc: Add quotes around (some) string args, to show empty string properly. | Paul Sokolovsky | 2014-04-12 |
| | |||
* | showbs: Dump LOAD_CONST_BYTES. | Paul Sokolovsky | 2014-04-12 |
| | |||
* | showbc: Dump LOAD_NULL. | Paul Sokolovsky | 2014-04-12 |
| | |||
* | py: Properly implement deletion of locals and derefs, and detect errors. | Damien George | 2014-04-09 |
| | | | | | Needed to reinstate 2 delete opcodes, to specifically check that a local is not deleted twice. | ||
* | py: Finish implementation of all del opcodes. | Damien George | 2014-04-08 |
| | | | | | | | At this point, all opcodes are now implemented! Some del opcodes have been combined with store opcodes, with the value to store being MP_OBJ_NULL. | ||
* | py: Add LOAD_NULL bytecode and use it to simplify function calls. | Damien George | 2014-03-31 |
| | | | | | | | Adding this bytecode allows to remove 4 others related to function/method calls with * and ** support. Will also help with bytecodes that make functions/closures with default positional and keyword args. | ||
* | showbc: Dump all CALL_FUNCTION_* and CALL_METHOD_* opcodes. | Paul Sokolovsky | 2014-03-30 |
| | |||
* | py: Fix bugs with debugging output. | Damien George | 2014-03-28 |
| | | | | | | | show_bc now decodes the prelude correctly. Moved WRITE_FILE stuff from runtime.c to emitglue.c. Addresses issue #385. | ||
* | showbc: Add few bytecodes related to "with". | Paul Sokolovsky | 2014-03-28 |
| | |||
* | py: Support closures with default args. | Paul Sokolovsky | 2014-03-26 |
| | |||
* | showbc: Dump YIELD_FROM. | Paul Sokolovsky | 2014-03-22 |
| | |||
* | py: Clean up includes. | xbe | 2014-03-17 |
| | | | | Remove unnecessary includes. Add includes that improve portability. | ||
* | py: Fix casting and printing of small int. | Damien George | 2014-02-22 |
| | |||
* | showbc: Update for recent int varlen storage refactor. | Paul Sokolovsky | 2014-02-21 |
| | | | | TODO: De-duplicate DECODE_UINT, etc. definitions. | ||
* | Bytecode int varlen encoding: support arbitrary values for signed ints too. | Paul Sokolovsky | 2014-02-19 |
| | |||
* | Implement "from module import *" construct. | Paul Sokolovsky | 2014-02-14 |
| | |||
* | py: More output in showbc. | Damien George | 2014-02-06 |
| | |||
* | py: Tidy up BINARY_OPs; negation done by special NOT bytecode. | Damien George | 2014-02-01 |
| | | | | | IS_NOT and NOT_IN are now compiled to IS + NOT and IN + NOT, with a new special NOT bytecode. | ||
* | py: Implement break/continue from an exception with finally. | Damien George | 2014-02-01 |
| | | | | Still todo: break/continue from within the finally block itself. | ||
* | Implement default function arguments (for Python functions). | Paul Sokolovsky | 2014-02-01 |
| | | | | | | | | TODO: Decide if we really need separate bytecode for creating functions with default arguments - we would need same for closures, then there're keywords arguments too. Having all combinations is a small exponential explosion, likely we need just 2 cases - simplest (no defaults, no kw), and full - defaults & kw. | ||
* | Dump 4 more bytecodes (loop and finally ones). | Paul Sokolovsky | 2014-01-31 |
| | |||
* | py: Fix bug with LOAD_METHOD; fix int->machine_int_t for small int. | Damien George | 2014-01-29 |
| | | | | | | | | LOAD_METHOD bug was: emitbc did not correctly calculate the amount of stack usage for a LOAD_METHOD operation. small int bug was: int was being used to pass small ints, when it should have been machine_int_t. | ||
* | Revamp qstrs: they now include length and hash. | Damien George | 2014-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 George | 2014-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 George | 2014-01-19 |
| | |||
* | Add source file name and line number to error messages. | Damien George | 2014-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 George | 2014-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 bops | John R. Lenton | 2014-01-11 |
| | |||
* | Dump few more bytecodes (based on attempt to run real-world code). | Paul Sokolovsky | 2014-01-11 |
| | |||
* | Factor and simplify Makefile's and mpconfig, part 2. | Damien George | 2014-01-07 |
| | |||
* | Add ellipsis object. | Damien George | 2014-01-04 |
| | |||
* | Basic implementation of import. | Damien George | 2014-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 George | 2014-01-02 |
| | |||
* | py: make closures work. | Damien George | 2013-12-30 |
| | |||
* | Make unix-cpy cross platform; remove dependency of asmx64 on mpconfig. | Damien George | 2013-12-30 |
| | |||
* | Merge branch 'cross-plat' of https://github.com/pfalcon/micropython into ↵ | Damien George | 2013-12-30 |
|\ | | | | | | | pfalcon-cross-plat | ||
| * | Make "unix" target be crossplatform and support x86, x64, ARM hosts. | Paul Sokolovsky | 2013-12-30 |
| | | |||
* | | py: add dict length function, and fix rt_store_set. | Damien | 2013-12-29 |
|/ | |||
* | Add code in VM to handle nested exceptions correctly. | Damien | 2013-12-29 |
| | |||
* | Change object representation from 1 big union to individual structs. | Damien | 2013-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. | Damien | 2013-11-26 |
| | |||
* | py: add some more opcodes to showbc. | Damien | 2013-11-25 |
| | |||
* | Add function to decode and show byte code. | Damien | 2013-11-17 |