- 27 Sep, 2016 1 commit
-
-
Damien George authored
This corresponds to the change in the way exception values are stored on the Python value stack.
-
- 20 Sep, 2016 1 commit
-
-
Damien George authored
The showbc function now no longer uses the system printf so works correctly.
-
- 25 Jun, 2015 1 commit
-
-
Damien George authored
Previous to this patch each time a bytes object was referenced a new instance (with the same data) was created. With this patch a single bytes object is created in the compiler and is loaded directly at execute time as a true constant (similar to loading bignum and float objects). This saves on allocating RAM and means that bytes objects can now be used when the memory manager is locked (eg in interrupts). The MP_BC_LOAD_CONST_BYTES bytecode was removed as part of this. Generated bytecode is slightly larger due to storing a pointer to the bytes object instead of the qstr identifier. Code size is reduced by about 60 bytes on Thumb2 architectures.
-
- 13 Jun, 2015 1 commit
-
-
Damien George authored
-
- 12 May, 2015 1 commit
-
-
Damien George authored
Hashing is now done using mp_unary_op function with MP_UNARY_OP_HASH as the operator argument. Hashing for int, str and bytes still go via fast-path in mp_unary_op since they are the most common objects which need to be hashed. This lead to quite a bit of code cleanup, and should be more efficient if anything. It saves 176 bytes code space on Thumb2, and 360 bytes on x86. The only loss is that the error message "unhashable type" is now the more generic "unsupported type for __hash__".
-
- 06 May, 2015 1 commit
-
-
Damien George authored
Addresses issue #1226.
-
- 05 May, 2015 1 commit
-
-
Damien George authored
-
- 24 Apr, 2015 1 commit
-
-
Damien George authored
Before this patch a "with" block needed to create a bound method object on the heap for the __exit__ call. Now it doesn't because we use load_method instead of load_attr, and save the method+self on the stack.
-
- 06 Apr, 2015 1 commit
-
-
Damien George authored
-
- 20 Mar, 2015 1 commit
-
-
Damien George authored
-
- 14 Mar, 2015 2 commits
-
-
Damien George authored
-
Damien George authored
-