Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | py: Add MICROPY_COMP_{DOUBLE,TRIPLE}_TUPLE_ASSIGN config options. | Damien George | 2015-03-14 |
| | | | | | | These allow to fine-tune the compiler to select whether it optimises tuple assignments of the form a, b = c, d and a, b, c = d, e, f. Sensible defaults are provided. | ||
* | py: In compiler, put macro guard around potentially unused asm vars. | Damien George | 2015-03-14 |
| | |||
* | py: Make some mpz functions static and remove unused ones. | Damien George | 2015-03-12 |
| | |||
* | py: Add support for start/stop/step attributes of builtin range object. | Peter D. Gray | 2015-03-11 |
| | |||
* | objmemoryview: Introduce mp_obj_new_memoryview(). | Paul Sokolovsky | 2015-03-06 |
| | | | | | This follows existing pattern for object constructor API and allows to create memoryview objects e.g. in external modules. | ||
* | objarray: Support array('O'), array of objects, as extension to CPython. | Paul Sokolovsky | 2015-03-05 |
| | | | | Might be useful at least for memoryview hacks. | ||
* | objarray: Fix typo in null TYPECODE_MASK. | Paul Sokolovsky | 2015-03-04 |
| | |||
* | py: Add MICROPY_MALLOC_USES_ALLOCATED_SIZE to allow simpler malloc API. | Damien George | 2015-03-03 |
| | |||
* | runtime: Typo fixes in comments. | Paul Sokolovsky | 2015-03-03 |
| | |||
* | py: In inline assembler, reset labels on code-size pass. | Damien George | 2015-03-03 |
| | |||
* | py: Simplify some inline-assembler error messages, but retain meaning. | Damien George | 2015-03-03 |
| | | | | | Just to reduce code size. Messages are still to the point and unambiguous. | ||
* | py: Give error for duplicate label in inline assembler. | Damien George | 2015-03-03 |
| | |||
* | py: Guard against redef of nlr_push with DEBUG + MICROPY_NLR_SETJMP. | stijn | 2015-03-03 |
| | |||
* | py: In inline assembler, fix branch out-of-range error reporting. | Damien George | 2015-03-02 |
| | | | | | Should only give an error on the last pass of the assembler, since that's when we are certain about the branch size. | ||
* | py: Use SMALL_INT creation macro in builtin sum. | Damien George | 2015-03-02 |
| | |||
* | py: For inline assembler, add bcc_n and bcc_w ops. | Damien George | 2015-03-02 |
| | | | | Addresses issue #1143. | ||
* | py: Clean up and comment out unused functions in mpz. | Damien George | 2015-03-02 |
| | |||
* | py: Set compiler scope before folding constants so error messages work. | Damien George | 2015-03-01 |
| | | | | Addresses issue #1140. | ||
* | py: Combine complie functions for or_test/and_test to reduce code size. | Damien George | 2015-02-28 |
| | | | | Saves around 60 bytes code on Thumb2 archs. | ||
* | py: Combine emit functions for jump true/false to reduce code size. | Damien George | 2015-02-28 |
| | | | | Saves 116 bytes for stmhal and 56 bytes for cc3200 port. | ||
* | py: Combine logic for compiling and/or tests, to reduce code size. | Damien George | 2015-02-28 |
| | | | | Reduces code size by 72 bytes on Thumb2 archs. | ||
* | objarray: Implement array slice assignment. | Paul Sokolovsky | 2015-02-27 |
| | | | | | | | | | | | | | | | | This is rarely used feature which takes enough code to implement, so is controlled by MICROPY_PY_ARRAY_SLICE_ASSIGN config setting, default off. But otherwise it may be useful, as allows to update arbitrary-sized data buffers in-place. Slice is yet to implement, and actually, slice assignment implemented in such a way that RHS of assignment should be array of the exact same item typecode as LHS. CPython has it more relaxed, where RHS can be any sequence of compatible types (e.g. it's possible to assign list of int's to a bytearray slice). Overall, when all "slice write" features are implemented, it may cost ~1KB of code. | ||
* | py: Transform assert logic in compiler to save code space. | Damien George | 2015-02-27 |
| | | | | Saves about 250 code bytes for Thumb2 archs. | ||
* | py: Use m_{new,renew,del} consistently. | Damien George | 2015-02-27 |
| | | | | This is so all memory requests go through the same interface. | ||
* | py: Fix adding of traceback so that it appends to existing info. | Damien George | 2015-02-27 |
| | | | | | | | | This makes exception traceback info self contained (ie doesn't rely on list object, which was a bit of a hack), reduces code size, and reduces RAM footprint of exception by eliminating the list object. Addresses part of issue #1126. | ||
* | py: Small optimisation of logic flow in BC_WITH_CLEANUP bytecode. | Damien George | 2015-02-26 |
| | | | | | Slightly smaller code, and does not need to use C stack to save temporaries. | ||
* | py: Make inline assembler raise exception when branch not in range. | Damien George | 2015-02-25 |
| | | | | Addresses issue #1132. | ||
* | py: In inline assembler, add return statement to fix flow logic. | Damien George | 2015-02-24 |
| | |||
* | py: Factor some code in inline thumb assembler to reduce code size. | Damien George | 2015-02-24 |
| | |||
* | py: Make more asmthumb functions inline to reduce code size. | Damien George | 2015-02-24 |
| | |||
* | py: Reduce code size of inline thumb assembler by using static tables. | Damien George | 2015-02-24 |
| | | | | Reduces stmhal by about 300 bytes ROM. | ||
* | py: Update parse.c&mpconfig.h to reflect rename of mp_lexer_show_token. | nhtshot | 2015-02-23 |
| | | | | | This function is only used when DEBUG_PRINTERS and USE_RULE_NAME are enabled. | ||
* | py: Implement UnicodeError. | Paul Sokolovsky | 2015-02-23 |
| | | | | | Still too shy to implement UnicodeEncodeError which was really needed for micropython-lib case. | ||
* | py: Make math special functions configurable and disabled by default. | Damien George | 2015-02-22 |
| | | | | | | | The implementation of these functions is very large (order 4k) and they are rarely used, so we don't enable them by default. They are however enabled in stmhal and unix, since we have the room. | ||
* | py: Add few more special methods. | Paul Sokolovsky | 2015-02-22 |
| | |||
* | py: Expose mp_obj_list_remove as a public function. | Damien George | 2015-02-21 |
| | |||
* | py: Fix mp_obj_print() to work when Python streams are not used. | Paul Sokolovsky | 2015-02-17 |
| | |||
* | py: Revamp mp_obj_print() to use Python streams. | Paul Sokolovsky | 2015-02-17 |
| | | | | | | | Most of printing infrastructure now uses streams, but mp_obj_print() used libc's printf(), which led to weird buffering issues in output. So, switch mp_obj_print() to streams too, even though it may make sense to move it to a separate file, as it is purely a debugging function now. | ||
* | py: Implement bl/bx instructions for inline Thumb assembler. | Damien George | 2015-02-16 |
| | |||
* | py: Implement "it" instruction for inline Thumb assembler. | Damien George | 2015-02-16 |
| | |||
* | py: More robust checking in inline assembler compiler. | Damien George | 2015-02-16 |
| | |||
* | builtinimport: Revamp&refactor handling of relative imports. | Paul Sokolovsky | 2015-02-16 |
| | | | | | | | | | Relative imports are based of a package, so we're currently at a module within a package, we should get to package first. Also, factor out path travsering operation, but this broke testing for boundary errors with relative imports. TODO: reintroduce them, together with proper tests. | ||
* | builtinimport: Improve debugging output. | Paul Sokolovsky | 2015-02-16 |
| | |||
* | stackctrl: Encode "recursion depth exceeded" message as qstr. | Paul Sokolovsky | 2015-02-15 |
| | | | | So corresponding exception can be thrown even under tight memory conditions. | ||
* | objexcept: Optimize traceback allocation for exception. | Paul Sokolovsky | 2015-02-15 |
| | | | | | | Traceback allocation for exception will now never lead to recursive MemoryError exception - if there's no memory for traceback, it simply won't be created. | ||
* | objexcept: Optimize using messages without formatting substitutions. | Paul Sokolovsky | 2015-02-15 |
| | | | | | They are directly cast to str object, skipping allocation of formatting buffer. | ||
* | nlr: Add even more optional debugging logging. | Paul Sokolovsky | 2015-02-15 |
| | | | | | Has to be enabled by manual editing, but at least it's there, as debugging NLR issues may be weird. | ||
* | nlr: If DEBUG, guard against recursive nlr_push(). | Paul Sokolovsky | 2015-02-15 |
| | | | | | | Pushing same NLR record twice would lead to "infinite loop" in nlr_jump (but more realistically, it will crash as soon as NLR record on stack is overwritten). | ||
* | py: Make old_globals part of mp_code_state structure. | Paul Sokolovsky | 2015-02-15 |
| | | | | | Conceptually it is part of code state, so let it be allocated in the same way as the rest of state. | ||
* | py: Use TextIOWrapper only if PY_IO_FILEIO def'd; cast size_t for print. | Damien George | 2015-02-15 |
| |