291 Commits (ca0c75f5042cdf602585b08184f132d7ab4713f3)

Author SHA1 Message Date
Damien George 016325dd0a py/vm: Make n_state variable local to just set-up part of VM. 7 years ago
Damien George 9ed5e80eea py/vm: Make "if" control flow more obvious in YIELD_FROM opcode. 7 years ago
Damien George a8a5d1e8c8 py: Provide mp_decode_uint_skip() to help reduce stack usage. 8 years ago
Ville Skyttä ca16c38210 various: Spelling fixes 8 years ago
Damien George 04d05db27e py/vm: Fix bug with unwind jump popping the iterator from a for loop. 8 years ago
Damien George 68e71eacb8 py/vm: Fix bug with stackless mode and unwinding of exceptions. 8 years ago
Damien George dd11af209d py: Add LOAD_SUPER_METHOD bytecode to allow heap-free super meth calls. 8 years ago
Damien George a0973b09ce py/vm: Fix VM opcode tracing to print correct stack pointer. 8 years ago
Damien George 707f16b05c py: Use mp_locals/mp_globals accessor funcs instead of MP_STATE_CTX. 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 1a5c8d1053 py/vm: Don't release the GIL if the scheduler is locked. 8 years ago
Damien George 6e74d24f30 py: Add micropython.schedule() function and associated runtime code. 8 years ago
Damien George 5640e6dacd py: Provide mp_decode_uint_value to help optimise stack usage. 8 years ago
Damien George 71a3d6ec3b py: Reduce size of mp_code_state_t structure. 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 ae8d867586 py: Add iter_buf to getiter type method. 9 years ago
Damien George 101886f529 py/vm: Convert mp_uint_t to size_t where appropriate. 8 years ago
Damien George f6c22a0679 py/vm: Add MICROPY_PY_THREAD_GIL_VM_DIVISOR option. 8 years ago
Damien George cc4c1adf6e py/showbc: Make sure to set the const_table before printing bytecode. 8 years ago
Damien George 71fec076dc py/vm: Use MP_OBJ_FROM_PTR to cast a type to an object. 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 581a59a456 py: Rename struct mp_code_state to mp_code_state_t. 8 years ago
Damien George 4cec63a9db py: Implement a simple global interpreter lock. 9 years ago
Paul Sokolovsky eff85bb1dc py/vm: "yield from" didn't handle MP_OBJ_STOP_ITERATION optimization. 9 years ago
Damien George 40d8430ee3 py/vm: Add macros to hook into various points in the VM. 9 years ago
Damien George 93bb7dffd2 py/vm: Fix popping of exception block in UNWIND_JUMP opcode. 9 years ago
Damien George 3d2daa2d03 py: Change exception traceback data to use size_t instead of mp_uint_t. 9 years ago
Damien George 8047340d75 py: Handle case of return within the finally block of try-finally. 9 years ago
Damien George 7a30e87d2b py: Fix MICROPY_STACKLESS mode to compile with MICROPY_OBJ_REPR_D. 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 c8e9c0d89a py: Add MICROPY_PERSISTENT_CODE so code can persist beyond the runtime. 9 years ago
Damien George 4bf3f2d3c0 py: Fix with+for+return bug by popping for-iter when unwinding exc stack. 9 years ago
Paul Sokolovsky 2ff2ea5f3b vm: Handle "raise X from Y" statements the best way we can. 9 years ago
Damien George 59fba2d6ea py: Remove mp_load_const_bytes and instead load precreated bytes object. 10 years ago
Damien George ed570e4b2a py: Remove mp_load_const_str and replace uses with inlined version. 10 years ago
Damien George c5029bcbf3 py: Add MP_BINARY_OP_DIVMOD to simplify and consolidate divmod builtin. 10 years ago
Damien George c2a4e4effc py: Convert hash API to use MP_UNARY_OP_HASH instead of ad-hoc function. 10 years ago
Paul Sokolovsky 6738c1dded vm: Properly handle StopIteration raised in user instance iterator. 10 years ago
Paul Sokolovsky a7c02c4538 vm: Null pointer test when checking for StopIteration optimizations. 10 years ago
Damien George 8872abcbc4 py: Remove LOAD_CONST_ELLIPSIS bytecode, use LOAD_CONST_OBJ instead. 10 years ago
Paul Sokolovsky ae2c81ff38 vm: On exiting except block, clear sys.exc_info() value. 10 years ago
Paul Sokolovsky 8b85d14b92 modsys: Add basic sys.exc_info() implementation. 10 years ago
Damien George 8c1d23a0e2 py: Modify bytecode "with" behaviour so it doesn't use any heap. 10 years ago
Damien George b1bbe966c4 py: Combine load_attr and store_attr type methods into one (attr). 10 years ago
Damien George 4dea922610 py: Adjust some spaces in code style/format, purely for consistency. 10 years ago
stijn 36cc84a2a9 py: Fix msvc warning '*/ found outside of comment' 10 years ago