- 06 Apr, 2014 1 commit
-
-
Damien George authored
On x64, native emitter now passes 70 of the tests.
-
- 05 Apr, 2014 3 commits
-
-
Damien George authored
This does not affect code size or performance when debugging turned off. To address issue #420.
-
Damien George authored
-
Damien George authored
-
- 04 Apr, 2014 1 commit
-
-
Damien George authored
A malloc/realloc fail now throws MemoryError.
-
- 31 Mar, 2014 4 commits
-
-
Damien George authored
-
Paul Sokolovsky authored
There was thinkos that either send_value or throw_value is specified, but there were cases with both. Note that send_value is pushed onto generator's stack - but that's probably only good, because if we throw exception into gen, it should not ever use send_value, and that will be just extra "assert".
-
Damien George authored
These are default arguments after a bare *.
-
Damien George authored
Adding this bytecode allows to remove 4 others related to function/method calls with * and ** support. Will also help with bytecodes that make functions/closures with default positional and keyword args.
-
- 30 Mar, 2014 7 commits
-
-
Paul Sokolovsky authored
Iterators and ducktype objects can now be arguments of yield from.
-
Damien George authored
Extends previous implementation with * for function calls to * and ** for both function and method calls.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Damien George authored
Mostly just a global search and replace. Except rt_is_true which becomes mp_obj_is_true. Still would like to tidy up some of the names, but this will do for now.
-
Damien George authored
-
Damien George authored
-
- 29 Mar, 2014 12 commits
-
-
Paul Sokolovsky authored
Required to reraise correct exceptions in except block, regardless if more try blocks with active exceptions happen in the same except block. P.S. This "automagic reraise" appears to be quite wasteful feature of Python - we need to save pending exception just in case it *might* be reraised. Instead, programmer could explcitly capture exception to a variable using "except ... as var", and reraise that. So, consider disabling argless raise support as an optimization.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
E.g. to handle currently_in_except_block restoring properly.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Damien George authored
The compiler allocates 7 entries on the stack for a with statement (following CPython, but probably can be reduced). This is enough for the method load and call in SETUP_WITH.
-
Damien George authored
-
Damien George authored
Addresses issue #388.
-
Damien George authored
Partly (very partly!) addresses issue #386. Most importantly, at the REPL command line, each invocation does not now lead to increased memory usage (unless you define a function/lambda).
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
This reduntant triple is one of the ugliest parts of Python, which they chickened out to fix in Python3. We really should consider passing just as single exception instance (without breaking Python-level APIs of course), but until we do, let's follow CPython layout.
-
Paul Sokolovsky authored
Will be reused in WITH bytecodes.
-
- 28 Mar, 2014 2 commits
-
-
Paul Sokolovsky authored
Handling of GeneratorExit is really peculiar - it subverts normal exception propagation rules.
-
Paul Sokolovsky authored
-
- 27 Mar, 2014 2 commits
-
-
Damien George authored
Rationale: setting up the stack (state for locals and exceptions) is really part of the "code", it's the prelude of the function. For example, native code adjusts the stack pointer on entry to the function. Native code doesn't need to know n_state for any other reason. So putting the state size in the bytecode prelude is sensible. It reduced ROM usage on STM by about 30 bytes :) And makes it easier to pass information about the bytecode between functions.
-
Damien George authored
-
- 26 Mar, 2014 4 commits
-
-
Paul Sokolovsky authored
-
Damien George authored
-
Damien George authored
-
Paul Sokolovsky authored
-
- 23 Mar, 2014 2 commits
-
-
Paul Sokolovsky authored
For this, needed to implement DELETE_NAME bytecode (because var bound in except clause is automatically deleted at its end). http://docs.python.org/3/reference/compound_stmts.html#except : "When an exception has been assigned using as target, it is cleared at the end of the except clause."
-
Paul Sokolovsky authored
Based on issues raised during recent review and inconsistency of different implementations.
-
- 22 Mar, 2014 2 commits
-
-
Damien George authored
-
Paul Sokolovsky authored
-