77 Commits (77089bebd4888ab35fcda3d02460ac8304426bff)

Author SHA1 Message Date
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
Damien George 89f94b51ab py: Rename mp_exc_stack to mp_exc_stack_t. 11 years ago
Damien George 3e1a5c10c5 py: Rename old const type objects to mp_type_* for consistency. 11 years ago
Damien George 07ddab529c py: Change mp_const_* objects to macros. 11 years ago
Paul Sokolovsky c4d589e2bb objgenerator: close(): Throw instance of GeneratorExit (not type). 11 years ago
Damien George bee17b00e3 py: Put n_state for bytecode in the bytecode prelude. 11 years ago
Damien George 8dcc0c7924 py: Calculate maximum exception stack size in compiler. 11 years ago
Damien George 9b196cddab Remove mp_obj_type_t.methods entry and use .locals_dict instead. 11 years ago
Damien George c12b2213c1 Change mp_method_t.name from const char * to qstr. 11 years ago
Damien George 69b3ba0df3 py: Swap around the double return value of mp_obj_gen_resume. 11 years ago
Damien George 66eaf84b8c py: Replace mp_const_stop_iteration object with MP_OBJ_NULL. 11 years ago
Damien George 548e76cfd6 py: Use _is_subclass_fast instead of _exception_match. 11 years ago
Paul Sokolovsky 962b1cd1b1 objgenerator: Implement return with value and .close() method. 11 years ago
Paul Sokolovsky 8dc768b96f objgenerator: Add comments for latest mp_obj_gen_instance_t refactors. 11 years ago