266 Commits (8fea833e3fefe1af94562b2a72c0e154d42424c6)

Author SHA1 Message Date
Damien George 4747becc64 py: Improve encoding scheme for line-number to bytecode map. 10 years ago
Damien George 40f3c02682 Rename machine_(u)int_t to mp_(u)int_t. 10 years ago
Damien George aabd83ea20 py: Merge mp_execute_bytecode into fun_bc_call. 11 years ago
Marcus von Appen 0c90eb1658 - FreeBSD provides alloca() via stdlib.h, in contrast to Linux and Windows 11 years ago
Paul Sokolovsky 411732e93b vm: If there's no lineno info, set lineno in traceback to 0, not 1. 11 years ago
Damien George 3ebd4d0cae py: Add option to disable set() object (enabled by default). 11 years ago
Damien George fb510b3bf9 Rename bultins config variables to MICROPY_PY_BUILTINS_*. 11 years ago
Damien George c60a261ef0 py, vm: Replace save_ip, save_sp with code_state->{ip, sp}. 11 years ago
Damien George 5b5562c1d1 py: Fix stack underflow with optimised for loop. 11 years ago
Paul Sokolovsky b4ebad3310 vm: Factor out structure with code execution state and pass it around. 11 years ago
Paul Sokolovsky b16523aa95 vm: Don't unconditionally allocate state on stack, do that only if needed. 11 years ago
Paul Sokolovsky ff8da0b835 vm: Detect stack underflow in addition to overflow. 11 years ago
Paul Sokolovsky 1f07b7e3c3 py: Reformat few long functions argument lists for clarity. 11 years ago
Damien George 25c84643b6 py: Fix break from within a for loop. 11 years ago
Damien George 503d611033 py: Implement long int parsing in int(...). 11 years ago
Damien George d8675541a9 py, vm: Where possible, make variables local to each opcode. 11 years ago
Paul Sokolovsky afaaf535e6 objslice: Support arbitrary objects start, stop, and step. 11 years ago
Damien George ee3fd46f13 Rename configuration variables controling Python features. 11 years ago
Damien George 58ebde4664 Tidy up some configuration options. 11 years ago
Paul Sokolovsky da9f0924ef py, unix: Add copyright for modules I worked closely on. 11 years ago
Paul Sokolovsky c48d6f7add py: Don't expect that type->getiter() always returns iterator, check for NULL. 11 years ago
Damien George 3417bc2f25 py: Rename byte_code to bytecode everywhere. 11 years ago
Damien George a32c1e41cc py: Improve native emitter; now supports more opcodes. 11 years ago
Damien George 04b9147e15 Add license header to (almost) all files. 11 years ago
Paul Sokolovsky f54bcbf099 py, unix: Make "mpconfig.h" be first included, as other headers depend on it. 11 years ago
Damien George 968bf34c4c py: Remove unnecessary LOAD_CONST_ID bytecode. 11 years ago
Damien George db12891918 py: Eliminate 'op' variable in VM dispatch loop. 11 years ago
Damien George c0dc7c3dfa py, vm: Fix recent bug where state is freed too early. 11 years ago
Damien George d5e8482c4a py, vm: Free heap-allocated state if it was allocated on the heap. 11 years ago
Paul Sokolovsky c5e32c6995 vm: Add rudimentary bytecode execution tracing capability. 11 years ago
Damien George 5f6a25fc50 py: Wrap #if's around emitter functions that are used only by emitcpy. 11 years ago
Damien George 3558f62fb5 py: Making closures now passes pointer to stack, not a tuple for vars. 11 years ago
Damien George 5b65f0c7d3 py: Rename USE_COMPUTED_GOTOS to USE_COMPUTED_GOTO and enable on stmhal. 11 years ago
Damien George ea8d06c39d py: Add MP_OBJ_STOP_ITERATION and make good use of it. 11 years ago
Damien George 729f7b42d6 py: Merge BINARY_OP_SUBSCR and store_subscr (w/ delete) into subscr. 11 years ago
Damien George 66ae8c9f49 py: Tidy up variables in VM, probably fixes subtle bugs. 11 years ago
AZ Huang 9413ca02fb Rename header file. 11 years ago
AZ Huang 9309d9982f Move entry_table to separated header file. 11 years ago
Damien George 3bb8bd899b Make USE_COMPUTED_GOTO a config option in mpconfig.h. 11 years ago
AZ Huang b1f692e82e Use computed goto instead of switching op-codes. 11 years ago
Damien George df8127a17e py: Remove unique_codes from emitglue.c. Replace with pointers. 11 years ago
Damien George 6ce4277551 py: Make all LOAD_FAST ops check for unbound local. 11 years ago
Damien George 69b89d21b2 py: Change compile order for default positional and keyword args. 11 years ago
Damien George a1ef441d18 py: Fix VM stack overflow detection. 11 years ago
Damien George e90be0ddf5 py: Add option to VM to detect stack overflow. 11 years ago
Damien George d99944acdd py: Clear state to MP_OBJ_NULL before executing byte code. 11 years ago
Damien George 2bf7c09222 py: Properly implement deletion of locals and derefs, and detect errors. 11 years ago
Damien George f4c9b33abf py: Remove DELETE_SUBSCR opcode, combine with STORE_SUBSCR. 11 years ago
Damien George 1d24ea5207 py: Finish implementation of all del opcodes. 11 years ago
Damien George 495d781a36 py: implement UNPACK_EX byte code (for: a, *b, c = d) 11 years ago