64 Commits (3dfa76cb85faa92a7301de686ec8d6b7666027f7)

Author SHA1 Message Date
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
Paul Sokolovsky 48caa09a9d objgenerator: Implement .throw() method to throw exceptions into generator. 11 years ago
Paul Sokolovsky 61fd20f168 objgenerator: Implement throwing exceptions out of generator. 11 years ago
Paul Sokolovsky c0abc28aa1 objgenerator: Keep exception stack within generator object, like value stack. 11 years ago
xbe efe3422394 py: Clean up includes. 11 years ago
Damien George c8f78bc280 py: VM never throws an exception, instead returns a status and value. 11 years ago
Damien George c5966128c7 Implement proper exception type hierarchy. 11 years ago
Damien George a71c83a1d1 Change mp_obj_type_t.name from const char * to qstr. 11 years ago
Damien George 099a9cb575 Remove mp_obj_new_exception_msg_1_arg and _2_arg. 11 years ago
Paul Sokolovsky d5df6cd44a Replace global "static" -> "STATIC", to allow "analysis builds". Part 1. 11 years ago
Damien George d0691ccaec py: Simplify fastn in VM; reduce size of unique code struct. 11 years ago
Paul Sokolovsky 14d28be344 gen.send(): Throw StopIteration. Also, explicitly shutdown finished gen. 11 years ago
Paul Sokolovsky bf38e2a03a Implement send() method for generators. 11 years ago
Damien George 55baff4c9b Revamp qstrs: they now include length and hash. 11 years ago