- 11 Apr, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
-
- 10 Apr, 2014 5 commits
-
-
Damien George authored
Working towards trying to support compile-time constants (see discussion in issue #227), this patch allows the compiler to look inside arbitrary uPy objects at compile time. The objects to search are given by the macro MICROPY_EXTRA_CONSTANTS (so they must be constant/ROM objects), and the constant folding occures on forms base.attr (both base and attr must be id's). It works, but it breaks strict CPython compatibility, since the lookup will succeed even without importing the namespace.
-
Damien George authored
Can do this now that the stack size calculation is improved.
-
Damien George authored
Much less of a hack now. Hopefully it's correct!
-
Damien George authored
Labels should never be negative, and this modified type signature reflects that.
-
Damien George authored
-
- 09 Apr, 2014 6 commits
-
-
Damien George authored
Needed to reinstate 2 delete opcodes, to specifically check that a local is not deleted twice.
-
Damien George authored
So we can add more flags.
-
Damien George authored
-
Damien George authored
-
Damien George authored
Small reduction in ROM, heap and stack usage.
-
Damien George authored
Convert int types to uint where sensible, and then to uint8_t or uint16_t where possible to reduce RAM usage.
-
- 08 Apr, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
-
- 06 Apr, 2014 2 commits
-
-
Damien George authored
On x64, native emitter now passes 70 of the tests.
-
Damien George authored
Also add command line option to unix port to select emitter.
-
- 04 Apr, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
Previous overflow test was inadequate.
-
- 02 Apr, 2014 3 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
Very little has changed. In Python 3.4 they removed the opcode STORE_LOCALS, but in Micro Python we only ever used this for CPython compatibility, so it was a trivial thing to remove. It also allowed to clean up some dead code (eg the 0xdeadbeef in class construction), and now class builders use 1 less stack word. Python 3.4.0 introduced the LOAD_CLASSDEREF opcode, which I have not yet understood. Still, all tests (apart from bytecode test) still pass. Bytecode tests needs some more attention, but they are not that important anymore.
-
- 31 Mar, 2014 3 commits
-
-
Damien George authored
Don't store final, failing value to the loop variable. This fix also makes for .. range a bit more efficient, as it uses less store/load pairs for the loop variable.
-
Damien George authored
These are default arguments after a bare *.
-
Damien George authored
In preparation for implementing default keyword arguments.
-
- 30 Mar, 2014 4 commits
-
-
Paul Sokolovsky authored
The way it is, just crashes app. And optimizing to "raise ZeroDivisionError" is probably too much.
-
Damien George authored
Eg class A(): pass would fail an assertion.
-
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.
-
Paul Sokolovsky authored
-
- 29 Mar, 2014 2 commits
-
-
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
-
- 27 Mar, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
-
- 26 Mar, 2014 2 commits
-
-
Damien George authored
-
Paul Sokolovsky authored
-
- 22 Mar, 2014 3 commits
-
-
Rachel Dowdall authored
-
Rachel Dowdall authored
-
Rachel Dowdall authored
Fixed modulo operator on ints and mp ints to agree with python. Added intdivmod.c and tests/basics/modulo.py.
-
- 17 Mar, 2014 1 commit
-
-
xbe authored
Remove unnecessary includes. Add includes that improve portability.
-
- 03 Mar, 2014 1 commit
-
-
Damien George authored
Checks for non-default args following default args, and errors out. Addresses issue #328.
-