| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2014-04-20 | py: Wrap #if's around emitter functions that are used only by emitcpy. | Damien George | |
| 3 emitter functions are needed only for emitcpy, and so we can #if them out when compiling with emitcpy support. Also remove unused SETUP_LOOP bytecode. | |||
| 2014-04-20 | py: Making closures now passes pointer to stack, not a tuple for vars. | Damien George | |
| Closed over variables are now passed on the stack, instead of creating a tuple and passing that. This way memory for the closed over variables can be allocated within the closure object itself. See issue #510 for background. | |||
| 2014-04-17 | py: Merge BINARY_OP_SUBSCR and store_subscr (w/ delete) into subscr. | Damien George | |
| mp_obj_t->subscr now does load/store/delete. | |||
| 2014-04-12 | py: Improve inline assembler; improve compiler constant folding. | Damien George | |
| 2014-04-10 | py: Simplify stack get/set to become stack adjust in emitters. | Damien George | |
| Can do this now that the stack size calculation is improved. | |||
| 2014-04-10 | py: Make labels unsigned ints (converted from int). | Damien George | |
| Labels should never be negative, and this modified type signature reflects that. | |||
| 2014-04-09 | py: Properly implement deletion of locals and derefs, and detect errors. | Damien George | |
| Needed to reinstate 2 delete opcodes, to specifically check that a local is not deleted twice. | |||
| 2014-04-09 | py, compile: Combine have_star_arg, have_dbl_star_arg into star_flags. | Damien George | |
| Small reduction in ROM, heap and stack usage. | |||
| 2014-04-02 | py: Move to Python 3.4.0 compatibility. | Damien George | |
| Very little has changed. In Python 3.4 they removed the opcode STORE_LOCALS, but in Micro Python we only ever used this for CPython compatibility, so it was a trivial thing to remove. It also allowed to clean up some dead code (eg the 0xdeadbeef in class construction), and now class builders use 1 less stack word. Python 3.4.0 introduced the LOAD_CLASSDEREF opcode, which I have not yet understood. Still, all tests (apart from bytecode test) still pass. Bytecode tests needs some more attention, but they are not that important anymore. | |||
| 2014-03-31 | py: Rename and reorder parameters in emit_make_function/closure. | Damien George | |
| In preparation for implementing default keyword arguments. | |||
| 2014-03-30 | Rename rt_* to mp_*. | Damien George | |
| Mostly just a global search and replace. Except rt_is_true which becomes mp_obj_is_true. Still would like to tidy up some of the names, but this will do for now. | |||
| 2014-03-27 | py: Factor out code from runtime.c to emitglue.c. | Damien George | |
| 2014-02-05 | py: Add built-in super. | Damien George | |
| 2014-02-01 | py: Implement break/continue from an exception with finally. | Damien George | |
| Still todo: break/continue from within the finally block itself. | |||
| 2014-01-29 | py: Fix bug with LOAD_METHOD; fix int->machine_int_t for small int. | Damien George | |
| 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. | |||
| 2014-01-24 | py: Improve freeing of emitters in mp_compile. | Damien George | |
| There can be multiple emitters allocated during compile (eg byte code and native). | |||
| 2014-01-24 | Add support for freeing code emitter objects at the end of compilation. | Paul Sokolovsky | |
| 2014-01-19 | py: 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-18 | Add 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-11 | unified the bops | John R. Lenton | |
| 2014-01-06 | Typo fix in comment. | Paul Sokolovsky | |
| 2013-12-21 | Change 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-12-12 | py: remove further unnecessary emit_verbatim code. | Damien | |
| 2013-12-11 | py: work towards working closures. | Damien | |
| 2013-10-20 | Add local_num skeleton framework to deref/closure emit calls. | Damien | |
| 2013-10-09 | Implement basic class/object functionality in runtime. | Damien | |
| 2013-10-08 | Native Python and Viper support for x64 and thumb all together. | Damien | |
| 2013-10-07 | Implement crude viper emit stage. | Damien | |
| 2013-10-06 | Almost supports arguments for inline asm functions. | Damien | |
| 2013-10-05 | Add support for inline thumb assembly. | Damien | |
| 2013-10-05 | Implement built-in decorators to select emit type. | Damien | |
| 2013-10-05 | Factorise EMIT_COMMON calls, mostly into emit_pass1. | Damien | |
| 2013-10-05 | Compiler computes labels and max_num_labels. | Damien | |
| 2013-10-05 | Further factorise PASS_1 out of specific emit code. | Damien | |
| 2013-10-05 | Restructure emit so it goes through a method table. | Damien | |
| 2013-10-04 | Initial commit. | Damien | |
