- 02 Feb, 2014 1 commit
-
-
Paul Sokolovsky authored
Takes slice object and sequence length and computes subsequence indexes for case of slice step=1.
-
- 01 Feb, 2014 9 commits
-
-
Paul Sokolovsky authored
-
Damien George authored
-
Damien George authored
IS_NOT and NOT_IN are now compiled to IS + NOT and IN + NOT, with a new special NOT bytecode.
-
Damien George authored
-
Damien George authored
-
Damien George authored
Still todo: break/continue from within the finally block itself.
-
Damien George 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.
-
- 31 Jan, 2014 9 commits
-
-
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
-
Paul Sokolovsky authored
Also, handle SETUP_FINALLY opcode.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
xbe authored
-
Damien George authored
-
- 30 Jan, 2014 5 commits
-
-
Damien George authored
-
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
-
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 6 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
We still have FAST_[0,1,2] byte codes, but they now just access the fastn array (before they had special local variables). It's now simpler, a bit faster, and uses a bit less stack space (on STM at least, which is most important). The only reason now to keep FAST_[0,1,2] byte codes is for compressed byte code size.
-
Damien George authored
LOAD_METHOD bug was: emitbc did not correctly calculate the amount of stack usage for a LOAD_METHOD operation. small int bug was: int was being used to pass small ints, when it should have been machine_int_t.
-
Damien George authored
-
Damien George authored
-
- 28 Jan, 2014 9 commits
-
-
Damien George authored
-
Paul Sokolovsky authored
This is special feature for FFI.
-
Markus Siemens authored
Fixed '#ifdef's so Linux would compile again and added .scl and .type for Windows.
-
Markus Siemens authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
- 27 Jan, 2014 1 commit
-
-
Damien George authored
-