Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | py: Improve memory usage debugging; better GC AT dumping. | Damien George | 2014-10-24 |
| | | | | In unix port, mem_info(1) now prints pretty GC alloc table. | ||
* | py: Fix debug-printing of bytecode line numbers. | Damien George | 2014-10-24 |
| | | | | Also move the raw bytecode printing code from emitglue to mp_bytecode_print. | ||
* | py: Use mp_uint_t where appropriate in stream functions. | Damien George | 2014-10-24 |
| | |||
* | stream: Add optional 2nd "length" arg to .readinto() - extension to CPython. | Paul Sokolovsky | 2014-10-23 |
| | | | | | While extension to file.readinto() definition of CPython, the additional arg is similar to what in CPython available in socket.recv_into(). | ||
* | py: Properly free string parse-node; add assertion to gc_free. | Damien George | 2014-10-23 |
| | |||
* | py: Add builtin memoryview object (mostly using array code). | Damien George | 2014-10-23 |
| | |||
* | py: Use MP_OBJ_NULL instead of NULL in a few places. | Damien George | 2014-10-23 |
| | |||
* | py: Clean up edge cases of malloc/realloc/free. | Damien George | 2014-10-23 |
| | |||
* | extmod: Add uheapq module. | Damien George | 2014-10-22 |
| | |||
* | py: Fix smallint modulo with negative arguments. | Damien George | 2014-10-22 |
| | | | | Addresses issue #927. | ||
* | py: Remove unused and unneeded SystemError exception. | Damien George | 2014-10-22 |
| | | | | | It's purpose is for internal errors that are not catastrophic (ie not as bad as RuntimeError). Since we don't use it, we don't need it. | ||
* | py: Make mp_const_empty_bytes globally available. | Damien George | 2014-10-21 |
| | |||
* | Implement kwargs for builtin open() and _io.FileIO | stijn | 2014-10-21 |
| | | | | | | | This makes open() and _io.FileIO() more CPython compliant. The mode kwarg is fully iplemented. The encoding kwarg is allowed but not implemented; mainly to allow the tests to specify encoding for CPython, see #874 | ||
* | py: Partially fix viper multi-comparison; add test for it. | Damien George | 2014-10-19 |
| | |||
* | unix, stmhal: Implement file.readinto() method. | Paul Sokolovsky | 2014-10-18 |
| | | | | | | Also, usocket.readinto(). Known issue is that .readinto() should be available only for binary files, but micropython uses single method table for both binary and text files. | ||
* | py: Improve stream_read so it doesn't need to alloc 2 bits of heap. | Damien George | 2014-10-17 |
| | |||
* | py: Add more compiler optimisations for constant if/while conditions. | Damien George | 2014-10-17 |
| | |||
* | py: Simplify compilation of elif blocks. | Damien George | 2014-10-17 |
| | |||
* | py: Add more debug printing code in gc_dump_alloc_table. | Damien George | 2014-10-17 |
| | |||
* | py: Fix compiling of nested while/for and exception handler. | Damien George | 2014-10-17 |
| | | | | Addresses issue #912. | ||
* | py: Take gc_pool_start out of bss section, to reclaim 1st block of heap. | Damien George | 2014-10-16 |
| | |||
* | stream: Handle non-blocking errors in readline() properly. | Paul Sokolovsky | 2014-10-16 |
| | | | | | | Just like they handled in other read*(). Note that behavior of readline() in case there's no data when it's called is underspecified in Python lib spec, implemented to behave as read() - return None. | ||
* | stream: Return errno value as first arg of OSError exception. | Paul Sokolovsky | 2014-10-16 |
| | | | | This is CPython-compatible convention established yet in acb13886fc837a1bb9. | ||
* | objclosure: Fix printing of generator closures. | Paul Sokolovsky | 2014-10-16 |
| | | | | The code previously assumed that only functions can be closed over. | ||
* | py: Fix GC realloc issue, where memory chunks were never shrunk. | Damien George | 2014-10-15 |
| | | | | | Previously, a realloc to a smaller memory chunk size would not free the unused blocks in the tail of the chunk. | ||
* | py: Fix dummy definition of BEGIN/END_ATOMIC_SECTION. | Damien George | 2014-10-15 |
| | |||
* | modzlibd: Remove, superceded by moduzlib. | Paul Sokolovsky | 2014-10-13 |
| | |||
* | Merge pull request #904 from pfalcon/moduzlib | Damien George | 2014-10-12 |
|\ | | | | | Module "uzlib" - based on similarly named library | ||
| * | moduzlib: Integrate into the system. | Paul Sokolovsky | 2014-10-13 |
| | | |||
* | | py: Add module weak link support. | Damien George | 2014-10-12 |
| | | | | | | | | | | | | | | | | | | | | | | With this patch a port can enable module weak link support and provide a dict of qstr->module mapping. This mapping is looked up only if an import fails to find the requested module in the filesystem. This allows to have the builtin module named, eg, usocket, and provide a weak link of "socket" to the same module, but this weak link can be overridden if a file by the name "socket.py" is found in the import path. | ||
* | | py: Fix x86 viper code generation, mem8 <-> mem16 for load. | Damien George | 2014-10-12 |
| | | |||
* | | py: Implement native load for viper. | Damien George | 2014-10-12 |
|/ | | | | | Viper can now do: ptr8(buf)[0], which loads a byte from a buffer using machine instructions. | ||
* | py: Implement and,or,xor native ops for viper. | Damien George | 2014-10-12 |
| | |||
* | modure: Make sure that re1.5 compiled in only of modure itself is enabled. | Paul Sokolovsky | 2014-10-12 |
| | | | | This is achieved by including re1.5 *.c files straight from modure.c . | ||
* | modure: Initial module, using re1.5 (which is based on re1 codebase). | Paul Sokolovsky | 2014-10-11 |
| | | | | https://github.com/pfalcon/re1.5 | ||
* | py: Add further checks for failed malloc in lexer init functions. | Damien George | 2014-10-09 |
| | |||
* | Merge branch 'lexer-crash' of https://github.com/dhylands/micropython into ↵ | Damien George | 2014-10-09 |
|\ | | | | | | | dhylands-lexer-crash | ||
| * | Make lexer fail gracefully when memory can't be allocated. | Dave Hylands | 2014-10-08 |
| | | |||
* | | py: Add #if guard around gc-specific code. | Damien George | 2014-10-09 |
| | | |||
* | | Allow real memory errors (from locked gc) to be reported with traceback. | Dave Hylands | 2014-10-07 |
|/ | |||
* | py: Extra autodetect for little endianness using __LITTLE_ENDIAN__. | Damien George | 2014-10-06 |
| | |||
* | py: Make mp_binary_set_val work on big endian machine. | Damien George | 2014-10-06 |
| | |||
* | py: Make int.to_bytes work on big endian machine. | Damien George | 2014-10-06 |
| | | | | Partly addresses issue #856. | ||
* | py: Try to autodetect machine endianness when not defined by port. | Damien George | 2014-10-06 |
| | |||
* | py: Implement proper context save/restore for eval/exec; factor code. | Damien George | 2014-10-05 |
| | | | | | | | | | This has benefits all round: code factoring for parse/compile/execute, proper context save/restore for exec, allow to sepcify globals/locals for eval, and reduced ROM usage by >100 bytes on stmhal and unix. Also, the call to mp_parse_compile_execute is tail call optimised for the import code, so it doesn't increase stack memory usage. | ||
* | py: Make compiler return a proper exception on SyntaxError. | Damien George | 2014-10-05 |
| | |||
* | Implement missing ARM emitter functions for viper | Fabian Vogt | 2014-10-04 |
| | |||
* | py: Fix unix-cpy to compile with uint->mp_uint_t changes. | Damien George | 2014-10-03 |
| | |||
* | py: Change [u]int to mp_[u]int_t in qstr.[ch], and some other places. | Damien George | 2014-10-03 |
| | | | | This should pretty much resolve issue #50. | ||
* | py: Use UINT_FMT instead of %d. | Damien George | 2014-10-03 |
| |