129 Commits (05e5d411b53dcba9529b6ac1e9388bab65f8c11b)

Author SHA1 Message Date
Jim Mussared def76fe4d9 all: Use MP_ERROR_TEXT for all error messages. 5 years ago
Damien George 69661f3343 all: Reformat C and Python source code with tools/codeformat.py. 5 years ago
Damien George 97eca38c4f py: Add mp_raise_type helper macro and use it where appropriate. 5 years ago
Damien George edc7a8bf1d py/objgenerator: Use mp_obj_new_exception_arg1 to make StopIteration. 5 years ago
Jim Mussared 5578182ec9 py/objgenerator: Allow pend_throw to an unstarted generator. 5 years ago
Jim Mussared 576ed89224 py/objgenerator: Remove globals from mp_obj_gen_instance_t. 5 years ago
Damien George 306ec5369a py/emitnative: Add support for archs that cannot read executable data. 5 years ago
Damien George b5ebfadbd6 py: Compress first part of bytecode prelude. 5 years ago
Damien George 81d04a0200 py: Add n_state to mp_code_state_t struct. 5 years ago
Damien George 4c5e1a0368 py/bc: Change mp_code_state_t.exc_sp to exc_sp_idx. 5 years ago
Damien George 973c87d8fa py/objgenerator: Move defn of mp_const_GeneratorExit_obj here. 5 years ago
Laurens Valk a73859d5af py/objgenerator: Add missing #if guard for PY_GENERATOR_PEND_THROW. 5 years ago
Damien George 4268d0e1ac py/objgenerator: Remove unneeded forward decl and clean up white space. 6 years ago
Damien George dac9d47671 py/objgenerator: Fix handling of None passed as 2nd arg to throw(). 6 years ago
Damien George eee1e8841a py: Downcase all MP_OBJ_IS_xxx macros to make a more consistent C API. 6 years ago
Damien George cc2bd63c57 py/emitnative: Implement yield and yield-from in native emitter. 6 years ago
Damien George d95947b48a py/vm: When VM raises exception put exc obj at beginning of func state. 6 years ago
Damien George fc1bb51af5 py/objgenerator: Remove TODO about returning gen being called again. 6 years ago
Damien George 3f6ffe059f py/objgenerator: Implement PEP479, StopIteration convs to RuntimeError. 6 years ago
Damien George e2e22e3d7e py/objgenerator: Implement __name__ with normal fun attr accessor code. 6 years ago
Damien George b488a4a848 py/objgenerator: Eliminate need for mp_obj_gen_wrap wrapper instances. 6 years ago
Damien George 400273a799 py/objgenerator: Protect against reentering a generator. 7 years ago
Damien George 771cb359af py/objgenerator: Save state in old_globals instead of local variable. 7 years ago
Jeff Epler cbf981f330 py/objgenerator: Check stack before resuming a generator. 7 years ago
Paul Sokolovsky 6364401666 py/objgenerator: Allow to pend an exception for next execution. 7 years ago
Damien George 64f11470be py/objgenerator: Remove unreachable code for STOP_ITERATION case. 7 years ago
Damien George a3dc1b1957 all: Remove inclusion of internal py header files. 7 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 7 years ago
Damien George f69ab79ec8 py/objgenerator: Allow to hash generators and generator instances. 7 years ago
Damien George a8a5d1e8c8 py: Provide mp_decode_uint_skip() to help reduce stack usage. 8 years ago
Damien George 94c41bb06f py: Use mp_raise_TypeError/mp_raise_ValueError helpers where possible. 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 ae8d867586 py: Add iter_buf to getiter type method. 9 years ago
Damien George 239f920299 py/objgenerator: Don't raise RuntimeError if GeneratorExit ignored. 8 years ago
Damien George 681994638b py/objgenerator: When throwing an object, don't make an exc instance. 8 years ago
Damien George 7d0d7215d2 py: Use mp_raise_msg helper function where appropriate. 8 years ago
Damien George 581a59a456 py: Rename struct mp_code_state to mp_code_state_t. 8 years ago
Paul Sokolovsky c4a8004933 py: Get rid of assert() in method argument checking functions. 8 years ago
Paul Sokolovsky eff85bb1dc py/vm: "yield from" didn't handle MP_OBJ_STOP_ITERATION optimization. 9 years ago
Damien George 4b72b3a133 py: Change type signature of builtin funs that take variable or kw args. 9 years ago
Damien George a0c97814df py: Change type of .make_new and .call args: mp_uint_t becomes size_t. 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 cbf7674025 py: Add MP_ROM_* macros and mp_rom_* types and use them. 9 years ago
Damien George 713ea1800d py: Add constant table to bytecode. 9 years ago
Damien George 9b7f583b0c py: Reorganise bytecode layout so it's more structured, easier to edit. 10 years ago
Paul Sokolovsky d5e629ad0e objgenerator: Can optimize StopIteration to STOP_ITERATION only if arg is None. 10 years ago
Paul Sokolovsky aa9dbb1b03 objgenerator: If generator yielded STOP_ITERATION value, it's stopped. 10 years ago
Damien George 044c473de2 py: Add %q format support to mp_[v]printf, and use it. 10 years ago
Damien George 7f9d1d6ab9 py: Overhaul and simplify printf/pfenv mechanism. 10 years ago