90 Commits (92a342a0113292c93a04d04af106649bb3e51b79)

Author SHA1 Message Date
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
Damien George 9988618e0e py: Implement full func arg passing for native emitter. 10 years ago
stijn 3cc17c69ff py: Allow retrieving a function's __name__. 10 years ago
Damien George ff8dd3f486 py, unix: Allow to compile with -Wunused-parameter. 10 years ago
Damien George d2d64f00fb py: Add "default" to switches to allow better code flow analysis. 10 years ago
Damien George 51dfcb4bb7 py: Move to guarded includes, everywhere in py/ core. 10 years ago
Damien George 969a6b37bf py: Make functions static where appropriate. 10 years ago
Damien George 1084b0f9c2 py: Store bytecode arg names in bytecode (were in own array). 10 years ago
Damien George b534e1b9f1 py: Use variable length encoded uints in more places in bytecode. 10 years ago
Damien George ecc88e949c Change some parts of the core API to use mp_uint_t instead of uint/int. 10 years ago
Damien George 40f3c02682 Rename machine_(u)int_t to mp_(u)int_t. 11 years ago
Paul Sokolovsky 5f4a667ea4 objgenerator: Finish refactor to use mp_setup_code_state(). 11 years ago
Paul Sokolovsky f77d0c5bb3 objgenerator: First iteration of refactor to use mp_setup_code_state(). 11 years ago
Damien George aabd83ea20 py: Merge mp_execute_bytecode into fun_bc_call. 11 years ago
Paul Sokolovsky b4ebad3310 vm: Factor out structure with code execution state and pass it around. 11 years ago
Paul Sokolovsky 1f07b7e3c3 py: Reformat few long functions argument lists for clarity. 11 years ago
Paul Sokolovsky bf27140193 py: More mp_identity usage. 11 years ago
Paul Sokolovsky da9f0924ef py, unix: Add copyright for modules I worked closely on. 11 years ago
Damien George 3417bc2f25 py: Rename byte_code to bytecode everywhere. 11 years ago
stijn 912ca7701d py: Comment exc_state member from mp_obj_gen_instance_t as it gives trouble 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
Paul Sokolovsky c3103b55c1 objgenerator: .print(): Output real underlying function name. 11 years ago
Damien George ea8d06c39d py: Add MP_OBJ_STOP_ITERATION and make good use of it. 11 years ago
Damien George de7c425139 py: Simplify objfun/objgenerator connection, no need to call bc_get. 11 years ago
Paul Sokolovsky b7e90ea078 objgenerator: Generator must execute in its defining lexical context. 11 years ago
Damien George d99944acdd py: Clear state to MP_OBJ_NULL before executing byte code. 11 years ago
Damien George 13d6739cc7 py: Generators can have their locals closed over. 11 years ago
Damien George ea13f407a3 py: Change nlr_jump to nlr_raise, to aid in debugging. 11 years ago
Paul Sokolovsky 817e76a1a5 objgenerator.throw(GeneratorExit) is not equivalent to .close(). 11 years ago
Paul Sokolovsky 1eac05d541 objgenerator: Another obscure case of propagating MP_OBJ_NULL optimization. 11 years ago
Damien George 0997af932f py: Don't wrap necessary function calls in assert. 11 years ago
Paul Sokolovsky f39d3b93da py: Implement support for generalized generator protocol. 11 years ago
Paul Sokolovsky 7fafb28f6d objgenerator: Handle default args to generator functions. 11 years ago
Damien George df6567e634 Merge map.h into obj.h. 11 years ago
Damien George d17926db71 Rename rt_* to mp_*. 11 years ago
Paul Sokolovsky ee5ecc9de2 objgenerator.throw: Instantiate if exception type passed, just as "raise". 11 years ago
Paul Sokolovsky 9a54a22318 objgenerator.throw(): Throwing GeneratorExit is equivalent to .close(). 11 years ago
Paul Sokolovsky 6ae237d2bd objgenerator: Store proper code_info pointer. 11 years ago
Paul Sokolovsky aaff716189 objgenerator: mp_obj_gen_resume() suitable only for generators. 11 years ago