- 02 May, 2017 1 commit
-
-
Paul Sokolovsky authored
-
- 22 Apr, 2017 1 commit
-
-
Paul Sokolovsky authored
-
- 14 Mar, 2017 1 commit
-
-
Damien George authored
And raise an exception when mp_lexer_new_from_file is called.
-
- 13 Mar, 2017 1 commit
-
-
Paul Sokolovsky authored
-
- 12 Mar, 2017 1 commit
-
-
Paul Sokolovsky authored
-
- 14 Feb, 2017 2 commits
-
-
Paul Sokolovsky authored
This was a debug output for initial porting, breaks tests.
-
Paul Sokolovsky authored
-
- 21 Jan, 2017 1 commit
-
-
Paul Sokolovsky authored
This makes MicroPython app running in QEMU be pingable from the host (by following QEMU networking setup instructions, https://www.zephyrproject.org/doc/samples/net/qemu_setup.html).
-
- 20 Jan, 2017 1 commit
-
-
Paul Sokolovsky authored
-
- 15 Dec, 2016 2 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
- 14 Dec, 2016 2 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
- 04 Nov, 2016 2 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
- 12 Oct, 2016 1 commit
-
-
Paul Sokolovsky authored
-
- 10 Oct, 2016 3 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
- 09 Oct, 2016 1 commit
-
-
Paul Sokolovsky authored
-
- 19 Apr, 2016 1 commit
-
-
Colin Hogben authored
A port which uses lib/utils/pyexec.c but which does not enable garbage collection should not need to implement the gc_collect function. This patch also moves the gc_collect call to after printing the qstr info. Since qstrs cannot be collected it should not make any difference to the printed statistics.
-
- 11 Jan, 2016 1 commit
-
-
Damien George authored
With this patch the n_args parameter is changed type from mp_uint_t to size_t.
-
- 03 Jan, 2016 1 commit
-
-
Damien George authored
-
- 01 Oct, 2015 1 commit
-
-
Damien George authored
With this patch parse nodes are allocated sequentially in chunks. This reduces fragmentation of the heap and prevents waste at the end of individually allocated parse nodes. Saves roughly 20% of RAM during parse stage.
-
- 22 Jun, 2015 1 commit
-
-
Damien George authored
The do_str() function is provided essentially as documentation to show how to compile and execute a string. This patch makes do_str take an extra arg to specify how the string should be interpreted: either as a single line (ie from a REPL) or as multiple lines (ie from a file).
-
- 16 Apr, 2015 1 commit
-
-
Damien George authored
Previous to this patch the printing mechanism was a bit of a tangled mess. This patch attempts to consolidate printing into one interface. All (non-debug) printing now uses the mp_print* family of functions, mainly mp_printf. All these functions take an mp_print_t structure as their first argument, and this structure defines the printing backend through the "print_strn" function of said structure. Printing from the uPy core can reach the platform-defined print code via two paths: either through mp_sys_stdout_obj (defined pert port) in conjunction with mp_stream_write; or through the mp_plat_print structure which uses the MP_PLAT_PRINT_STRN macro to define how string are printed on the platform. The former is only used when MICROPY_PY_IO is defined. With this new scheme printing is generally more efficient (less layers to go through, less arguments to pass), and, given an mp_print_t* structure, one can call mp_print_str for efficiency instead of mp_pr...
-
- 07 Feb, 2015 1 commit
-
-
Damien George authored
To enable parsing constants more efficiently, mp_parse should be allowed to raise an exception, and mp_compile can already raise a MemoryError. So these functions need to be protected by an nlr push/pop block. This patch adds that feature in all places. This allows to simplify how mp_parse and mp_compile are called: they now raise an exception if they have an error and so explicit checking is not needed anymore.
-
- 09 Jan, 2015 1 commit
-
-
Damien George authored
-
- 07 Jan, 2015 1 commit
-
-
Damien George authored
This patch consolidates all global variables in py/ core into one place, in a global structure. Root pointers are all located together to make GC tracing easier and more efficient.
-
- 01 Jan, 2015 1 commit
-
-
Damien George authored
-
- 08 Dec, 2014 1 commit
-
-
Paul Sokolovsky authored
The function is modeled after traceback.print_exception(), but unbloated, and put into existing module to save overhead on adding another module. Compliant traceback.print_exception() is intended to be implemented in micropython-lib in terms of sys.print_exception(). This change required refactoring mp_obj_print_exception() to take pfenv_t interface arguments. Addresses #751.
-
- 05 Dec, 2014 1 commit
-
-
Damien George authored
mp_lexer_t type is exposed, mp_token_t type is removed, and simple lexer functions (like checking current token kind) are now inlined. This saves 784 bytes ROM on 32-bit unix, 348 bytes on stmhal, and 460 bytes on bare-arm. It also saves a tiny bit of RAM since mp_lexer_t is a bit smaller. Also will run a bit more efficiently.
-
- 05 Nov, 2014 1 commit
-
-
Sven Wegener authored
Required to build bare-arm with debugging. Signed-off-by:
Sven Wegener <sven.wegener@stealer.net>
-
- 21 Oct, 2014 1 commit
-
-
stijn authored
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
-
- 05 Oct, 2014 1 commit
-
-
Damien George authored
-
- 23 Sep, 2014 1 commit
-
-
Damien George authored
mp_parse_node_free now frees the memory associated with non-interned strings. And the parser calls mp_parse_node_free when discarding a non-used node (such as a doc string). Also, the compiler now frees the parse tree explicitly just before it exits (as opposed to relying on the caller to do this). Addresses issue #708 as best we can.
-
- 04 Aug, 2014 1 commit
-
-
Damien George authored
qstr_init is always called exactly before mp_init, so makes sense to just have mp_init call it. Similarly with mp_init_emergency_exception_buf. Doing this makes the ports simpler and less error prone (ie they can no longer forget to call these).
-
- 02 May, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 12 Apr, 2014 1 commit
-
-
Damien George authored
-