circuitpython/tests/cmdline
Damien George 59fba2d6ea py: Remove mp_load_const_bytes and instead load precreated bytes object.
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.
2015-06-25 14:42:13 +00:00
..
cmd_showbc.py tests: Fix cmd_showbc now that LOAD_CONST_ELLIPSIS bytecode is gone. 2015-05-05 23:58:52 +01:00
cmd_showbc.py.exp py: Remove mp_load_const_bytes and instead load precreated bytes object. 2015-06-25 14:42:13 +00:00
cmd_verbose.py tests: Add ability to test uPy cmdline executable. 2015-03-13 10:58:34 +00:00
cmd_verbose.py.exp py: Simplify bytecode prelude when encoding closed over variables. 2015-04-07 00:08:17 +01:00
repl_basic.py unix: Add option to use uPy readline, and enable by default. 2015-05-27 15:59:43 +01:00
repl_basic.py.exp tests: Adjust expected output, since Travis can't do git describe. 2015-03-20 21:31:50 +00:00
repl_cont.py tests: Add missing tests for builtins, and many other things. 2015-04-04 22:05:30 +01:00
repl_cont.py.exp tests: Add missing tests for builtins, and many other things. 2015-04-04 22:05:30 +01:00