144 Commits (5ad27d4b8bb248954d98178e068a382599dadfa6)

Author SHA1 Message Date
Damien George 5604b710c2 py/emitglue: When assigning bytecode only pass bytecode len if needed. 7 years ago
Damien George f935bce3c5 py/{emitbc,asmbase}: Only clear emit labels to -1 when in debug mode. 7 years ago
Damien George 280fb4d928 py/emitbc: Remove stray semicolon in outer scope. 7 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 7 years ago
Tom Collins 145796f037 py,extmod: Some casts and minor refactors to quiet compiler warnings. 7 years ago
Damien George 8f064e469d py/emitbc: Fix bug with BC emitter computing Python stack size. 8 years ago
Damien George dd11af209d py: Add LOAD_SUPER_METHOD bytecode to allow heap-free super meth calls. 8 years ago
Damien George 60656eaea4 py: Define and use MP_OBJ_ITER_BUF_NSLOTS to get size of stack iter buf. 8 years ago
Damien George 30b42dd72d py: Remove unused "use_stack" argument from for_iter_end emit function. 8 years ago
Damien George 088740ecc4 py: Optimise storage of iterator so it takes only 4 slots on Py stack. 8 years ago
Damien George 6e769da0da py: Make FOR_ITER opcode pop 1+4 slots from the stack when finished. 8 years ago
Damien George f4df3aaa72 py: Allow bytecode/native to put iter_buf on stack for simple for loops. 9 years ago
Damien George cc2dbdd1fe py/emitbc: Produce correct line number info for large bytecode chunks. 8 years ago
Pavol Rusnak 7ffc959c00 py: remove asserts that are always true in emitbc.c 8 years ago
Damien George 7385b018ed py/emitbc: Remove/refactor unreachable code, to improve coverage. 8 years ago
Damien George f040685b0c py: Only store the exception instance on Py stack in bytecode try block. 8 years ago
Damien George adaf0d865c py: Combine 3 comprehension opcodes (list/dict/set) into 1. 8 years ago
Damien George a5624bf381 py: Combine 3 comprehension emit functions (list/dict/set) into 1. 8 years ago
Damien George ce8b4e8749 py: Combine continuous block of emit steps into with_cleanup emit call. 9 years ago
Damien George ea23520403 py: Add MICROPY_DYNAMIC_COMPILER option to config compiler at runtime. 9 years ago
Damien George dd5353a405 py: Add MICROPY_ENABLE_COMPILER and MICROPY_PY_BUILTINS_EVAL_EXEC opts. 9 years ago
Damien George bdbe8c9ae2 py: Make UNARY_OP_NOT a first-class op, to agree with Py not semantics. 9 years ago
Damien George 999cedb90f py: Wrap all obj-ptr conversions in MP_OBJ_TO_PTR/MP_OBJ_FROM_PTR. 9 years ago
Damien George 5d66b427e2 py/emit: Change type of arg of load_const_obj from void* to mp_obj_t. 9 years ago
Damien George d8c834c95d py: Add MICROPY_PERSISTENT_CODE_LOAD/SAVE to load/save bytecode. 9 years ago
Damien George c8e9c0d89a py: Add MICROPY_PERSISTENT_CODE so code can persist beyond the runtime. 9 years ago
Damien George 713ea1800d py: Add constant table to bytecode. 9 years ago
Damien George 3a3db4dcf0 py: Put all bytecode state (arg count, etc) in bytecode. 9 years ago
Damien George 9b7f583b0c py: Reorganise bytecode layout so it's more structured, easier to edit. 10 years ago
Damien George fbcaf0ea18 py: Slightly simplify compile and emit of star/double-star arguments. 9 years ago
Damien George 3a2171e406 py: Eliminate some cases which trigger unused parameter warnings. 9 years ago
Damien George 65dc960e3b unix-cpy: Remove unix-cpy. It's no longer needed. 9 years ago
Damien George 59fba2d6ea py: Remove mp_load_const_bytes and instead load precreated bytes object. 10 years ago
Damien George 9a42eb541e py: Fix naming of function arguments when function is a closure. 10 years ago
Damien George 8872abcbc4 py: Remove LOAD_CONST_ELLIPSIS bytecode, use LOAD_CONST_OBJ instead. 10 years ago
Damien George 8c1d23a0e2 py: Modify bytecode "with" behaviour so it doesn't use any heap. 10 years ago
Damien George e72cda99fd py: Convert occurrences of non-debug printf to mp_printf. 10 years ago
Damien George 91bc32dc16 py: Provide typedefs for function types instead of writing them inline. 10 years ago
Damien George 4dea922610 py: Adjust some spaces in code style/format, purely for consistency. 10 years ago
Damien George c9aa1883ed py: Simplify bytecode prelude when encoding closed over variables. 10 years ago
Damien George 4112590a60 py, compiler: When just bytecode, make explicit calls instead of table. 10 years ago
Damien George a210c774f9 py, compiler: Remove emit_pass1 code, using emit_bc to do its job. 10 years ago
Damien George 542bd6b4a1 py, compiler: Refactor load/store/delete_id logic to reduce code size. 10 years ago
Damien George 63f3832e81 py: Combine emit functions for jump true/false to reduce code size. 10 years ago
Damien George 7d414a1b52 py: Parse big-int/float/imag constants directly in parser. 10 years ago
Damien George ff8dd3f486 py, unix: Allow to compile with -Wunused-parameter. 10 years ago
Damien George 963a5a3e82 py, unix: Allow to compile with -Wsign-compare. 10 years ago
Damien George 0abb5609b0 py: Remove unnecessary id_flags argument from emitter's load_fast. 10 years ago
Damien George d2d64f00fb py: Add "default" to switches to allow better code flow analysis. 10 years ago
Damien George dab1385177 py: Add load_const_obj to emitter, add LOAD_CONST_OBJ to bytecode. 10 years ago