- 01 Feb, 2014 13 commits
-
-
Damien George authored
Still todo: break/continue from within the finally block itself.
-
Damien George authored
Hopefully this works for other people as well :)
-
Damien George authored
Add mpconfigport.mk file to configure which modules to include into build
-
Damien George authored
-
Paul Sokolovsky authored
Proof of concept, controls "ffi" module as one which requires external dependencies.
-
Damien George authored
-
Damien George authored
Add exception stack unwind support for RETURN_VALUE.
-
Damien George authored
Conflicts: stm/usb.c stm/usb.h
-
Damien George authored
Using PendSV interrupt at lowest priority, code can now raise an exception during an interrupt by calling pendsv_nlr_jump. The exception will be raised when all interrupts are finished. This is used to trap ctrl-C from the USB VCP to break out of running Python code.
-
mux authored
-
Paul Sokolovsky authored
TODO: Decide if we really need separate bytecode for creating functions with default arguments - we would need same for closures, then there're keywords arguments too. Having all combinations is a small exponential explosion, likely we need just 2 cases - simplest (no defaults, no kw), and full - defaults & kw.
-
Paul Sokolovsky authored
This properly implements return from try/finally block(s). TODO: Consider if we need to do any value stack unwinding for RETURN_VALUE case. Intuitively, this is "success" return, so value stack should be in good shape, and unwinding shouldn't be required.
-
mux authored
* Detect VCP line state, based on SET_CONTROL_LINE_STATE request
-
- 31 Jan, 2014 15 commits
-
-
Damien George authored
vm: Introduce structure for exception stack entry, record entry type.
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Markus Siemens authored
rt_call_function_n_kw did check for integers but not for strings being called. Added a check so running "a"() won't SIGSEV but throw an exception.
-
Paul Sokolovsky authored
It's mildly suprising these work without further changes to exception handling code (the only change required was to handle SETUP_FINALLY).
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Also, handle SETUP_FINALLY opcode.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
xbe authored
-
xbe authored
-
Damien George authored
-
- 30 Jan, 2014 9 commits
-
-
Damien George authored
vm: Add basic implementation of END_FINALLY opcode.
-
Damien George authored
windows: Make windows/main.c independent from unix/main.c
-
Damien George authored
-
Markus Siemens authored
Up to know changes unix/main.c were able to break the windows build because windows/main.c simply included unix/main.c. Now windows/main.c stands on it's own and won't break if unix/main.c changes.
-
Paul Sokolovsky authored
Allows to have nested try blocks with except filters. TODO: Don't add END_FINALLY's exception re-raise points to traceback.
-
Damien George authored
-
Damien George authored
Implement __bool__ and __len__ via unary_op virtual method for all types.
-
Paul Sokolovsky authored
__bool__() and __len__() are just the same as __neg__() or __invert__(), and require efficient dispatching implementation (not requiring search/lookup). type->unary_op() is just the right choice for this short of adding standalone virtual method(s) to already big mp_obj_type_t structure.
-
Paul Sokolovsky authored
To alloc complete memory alloc flow tracing.
-
- 29 Jan, 2014 3 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
-