- 03 Jan, 2015 1 commit
-
-
Paul Sokolovsky authored
-
- 02 Jan, 2015 3 commits
-
-
Damien George authored
-
David Steinberg authored
-
stijn authored
The compiler treats `if (MICROPY_ERROR_REPORTING == MICROPY_ERROR_REPORTING_TERSE)` as a normal statement and generates assembly for it in degug mode as if MICROPY_ERROR_REPORTING is an actual symbol instead of a preprocessor definition. As such linking fails because mp_arg_error_terse_mismatch is not defined when MICROPY_ERROR_REPORTING_TERSE is detailed or normal.
-
- 01 Jan, 2015 12 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
This reduces dependency on assembler, and allows to consolidate global variables in the future.
-
Damien George authored
Addresses issue #1022.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Damien George authored
-
Damien George authored
We are not word-for-word compatible with CPython exceptions, so we are free to make them short but informative in order to reduce code size. Also, try to make messages the same as existing ones where possible.
-
Damien George authored
Reduces code size when MICROPY_ERROR_REPORTING_TERSE is selected.
-
Paul Sokolovsky authored
-
stijn authored
-
stijn authored
- remove single string initialization style - take list of strings instead - store list in the type for fast lookup
-
- 31 Dec, 2014 2 commits
-
-
Damien George authored
Addresses issue #1027.
-
Paul Sokolovsky authored
-
- 29 Dec, 2014 6 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
This fixes conversion when float type has more mantissa bits than small int, and float value has small exponent. This is for example the case of 32-bit platform using doubles, and converting value of time.time(). Conversion of floats with larg exponnet is still not handled correctly.
-
Damien George authored
-
Damien George authored
This is for efficiency, so we don't need to subtract 1 from the ip before storing it to code_state->ip. It saves a lot of ROM bytes on unix and stmhal.
-
Paul Sokolovsky authored
-
- 28 Dec, 2014 4 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
This allows to pring either absolute addresses or relative offsets in jumps and code references.
-
Paul Sokolovsky authored
Mirroring ip to a volatile memory variable for each opcode is an expensive operation. For quite a lot of often executed opcodes like stack manipulation or jumps, exceptions cannot actually happen. So, record ip only for opcode where that's possible.
-
- 27 Dec, 2014 4 commits
-
-
Damien George authored
This patch makes the MICROPY_PY_BUILTINS_SLICE compile-time option fully disable the builtin slice operation (when set to 0). This includes removing the slice sytanx from the grammar. Now, enabling slice costs 4228 bytes on unix x64, and 1816 bytes on stmhal.
-
Damien George authored
This patch makes MICROPY_PY_BUILTINS_SET compile-time option fully disable the builtin set object (when set to 0). This includes removing set constructor/comprehension from the grammar, the compiler and the emitters. Now, enabling set costs 8168 bytes on unix x64, and 3576 bytes on stmhal.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
- 24 Dec, 2014 1 commit
-
-
Damien George authored
-
- 22 Dec, 2014 1 commit
-
-
Damien George authored
This optimisation reduces the VM exception stack element (mp_exc_stack_t) by 1 word, by using bit 1 of a pointer to store whether the opcode was a FINALLY or WITH opcode. This optimisation was pending, waiting for maturity of the exception handling code, which has now proven itself. Saves 1 machine word RAM for each exception (4->3 words per exception). Increases stmhal code by 4 bytes, and decreases unix x64 code by 32 bytes.
-
- 21 Dec, 2014 4 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
This patch gives proper SyntaxError exceptions for bad global/nonlocal declarations. It also reduces code size: 304 bytes on unix x64, 132 bytes on stmhal.
-
Damien George authored
-
- 20 Dec, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
This saves around 100 bytes code space on stmhal, more on unix.
-