Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-02-16 | tests/micropython/heapalloc_iter: Add tests for contains and unpack. | Damien George | |
2017-02-16 | tests/micropython: Add test for iterating with the heap locked. | Damien George | |
2017-02-02 | tests/heapalloc_bytesio: Test for BytesIO with preallocates space. | Paul Sokolovsky | |
2017-01-27 | tests/heapalloc_str: Test for alloc-free string operations. | Paul Sokolovsky | |
Starts with concatenation with an empty string. | |||
2017-01-21 | tests/heapalloc_int_from_bytes: Test that int.from_bytes() can work w/o alloc. | Paul Sokolovsky | |
For a small number of bytes, it's expected to return a small int without allocation. | |||
2017-01-19 | tests/micropython/opt_level: Add test for opt_level 3. | Damien George | |
2016-12-28 | tests/micropython: Add test for micropython.stack_use() function. | Rami Ali | |
2016-12-25 | tests/heapalloc_inst_call: Test for no alloc for simple object calls. | Paul Sokolovsky | |
2016-12-15 | tests/micropython: Get heapalloc_traceback test running on baremetal. | Damien George | |
When printing exceptions from files sent to a target by pyboard.py the filename in the exception is <stdin>, which differs to when running the script on the PC. So we strip out the filename to make the outputs the same on all targets (see also misc/print_exception.py test). | |||
2016-11-21 | tests/micropython: Move alloc-less traceback test to separate test file. | Damien George | |
The native emitter doesn't provide proper traceback info so this test should not be run in that case. | |||
2016-11-21 | tests/micropython: Add test for creating traceback without allocation. | Damien George | |
2016-11-10 | tests/micropython: Add test for import from within viper function. | Damien George | |
2016-10-14 | tests/micropython: Add tests for heap_lock, and emergency exceptions. | Damien George | |
2016-10-11 | tests: Improve test coverage of py/compile.c. | Damien George | |
2016-10-11 | tests/micropython: Add test for micropython.opt_level() function. | Damien George | |
2016-09-27 | py/modmicropython: Add micropython.const, alias for identity function. | Damien George | |
Having a micropython.const identity function, and writing "from micropython import const" at the start of scripts that use the const feature, allows to write scripts which are compatible with CPython, and with uPy builds that don't include const optimisation. This patch adds such a function and updates the tests to do the import. | |||
2016-09-27 | tests/micropython: Add tests for const names being replaced in parser. | Damien George | |
2016-07-01 | tests/meminfo: Update for addition of "max free sz" output. | Paul Sokolovsky | |
2016-06-06 | py/parse: Treat constants that start with underscore as private. | Damien George | |
Assignments of the form "_id = const(value)" are treated as private (following a similar CPython convention) and code is no longer emitted for the assignment to a global variable. See issue #2111. | |||
2016-02-09 | py/viper: Allow casting of Python integers to viper pointers. | Damien George | |
This allows you to pass a number (being an address) to a viper function that expects a pointer, and also allows casting of integers to pointers within viper functions. This was actually the original behaviour, but it regressed due to native type identifiers being promoted to 4 bits in width. | |||
2015-10-13 | tests: Add more tests for viper 16/32-bit load/store, and ellipsis. | Damien George | |
2015-10-13 | py: Implement ptr32 load and store in viper emitter. | Damien George | |
2015-10-08 | py/emitnative: Raise ViperTypeError for unsupported unary ops. | Damien George | |
2015-08-30 | tests: Consolidate all feature check snippets under feature_check/. | Paul Sokolovsky | |
2015-07-23 | py: Allow viper functions to take up to 4 arguments. | Damien George | |
Addresses issue #1380. | |||
2015-06-08 | py: Fallback to stack alloca for Python-stack if heap alloc fails. | Damien George | |
If heap allocation for the Python-stack of a function fails then we may as well allocate the Python-stack on the C stack. This will allow to run more code without using the heap. | |||
2015-06-04 | py: Implement native multiply operation in viper emitter. | Damien George | |
2015-06-04 | py: Implement implicit cast to obj for viper load/store index/value. | Damien George | |
This allows to do "ar[i]" and "ar[i] = val" in viper when ar is a Python object and i and/or val are native viper types (eg ints). Patch also includes tests for this feature. | |||
2015-04-22 | tests: Add more tests for viper, including tests for ViperTypeError's. | Damien George | |
2015-04-16 | py: Add %q format support to mp_[v]printf, and use it. | Damien George | |
2015-04-04 | tests: Add missing tests for builtins, and many other things. | Damien George | |
2015-04-03 | tests: Add specific test for closures in native emitter. | Damien George | |
2015-03-25 | tests: Add tests for SyntaxError, TypeError, and other missing things. | Damien George | |
This is intended to improve coverage of the test suite. | |||
2015-03-12 | tests: Add tests for things that are not already tested. | Damien George | |
The aim here is to improve coverage of the code. | |||
2015-03-01 | tests: Add test for micropython const feature when it has a SyntaxError. | Damien George | |
2015-02-15 | tests: Remove obsolete test; don't use fp in micropython/ tests. | Damien George | |
2015-02-15 | py: Fix loading of immediate pointer in Thumb assembler. | Damien George | |
Addresses issue #1117. | |||
2014-12-14 | asmarm: Fix bug with encoding small negative ints using MVN instruction. | Paul Sokolovsky | |
2014-10-31 | tests: Add heapalloc.py.exp, since CPython can't generate it. | Damien George | |
2014-10-31 | py: Make gc.enable/disable just control auto-GC; alloc is still allowed. | Damien George | |
gc.enable/disable are now the same as CPython: they just control whether automatic garbage collection is enabled or not. If disabled, you can still allocate heap memory, and initiate a manual collection. | |||
2014-10-22 | py: Remove unused and unneeded SystemError exception. | Damien George | |
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. | |||
2014-10-19 | py: Partially fix viper multi-comparison; add test for it. | Damien George | |
2014-10-12 | py: Implement native load for viper. | Damien George | |
Viper can now do: ptr8(buf)[0], which loads a byte from a buffer using machine instructions. | |||
2014-10-12 | py: Implement and,or,xor native ops for viper. | Damien George | |
2014-10-05 | tests: Add check for micropython.native and then skip relevant tests. | Damien George | |
If micropython.native decorator doesn't compile, then we skill all native/viper tests. This patch also re-enables the ujson_loads test on NT. Addresses issue #861, and partially addresses issue #856. | |||
2014-09-29 | py: Fix viper store on x86; add tests for viper ptr16. | Damien George | |
2014-09-29 | py: Add casting to viper; add native mem stores to viper. | Damien George | |
Viper can now do the following: def store(p:ptr8, c:int): p[0] = c This does a store of c to the memory pointed to by p using a machine instructions inline in the code. | |||
2014-09-29 | tests: Add tests for viper binary operations. | Damien George | |
2014-09-29 | py: Allow viper to use ints as direct conditionals in jumps. | Damien George | |
Allows things like: if 1: ... | |||
2014-08-24 | py: Fix bug where GC collected native/viper/asm function data. | Damien George | |
Because (for Thumb) a function pointer has the LSB set, pointers to dynamic functions in RAM (eg native, viper or asm functions) were not being traced by the GC. This patch is a comprehensive fix for this. Addresses issue #820. |