291 Commits (ca0c75f5042cdf602585b08184f132d7ab4713f3)

Author SHA1 Message Date
Damien George d1e443d0bc py: Free unique_code slot for outer module. 11 years ago
Paul Sokolovsky 44307d5ef8 vm: Implement "with" statement (SETUP_WITH and WITH_CLEANUP bytecodes). 11 years ago
Paul Sokolovsky 682f9e639d vm: Make sure that exception triple is <type, instance, traceback>. 11 years ago
Paul Sokolovsky 4fff26a35c vm: Factor out exception block setup to a macro. 11 years ago
Paul Sokolovsky 55234f4617 py: yield from: Elaborate GeneratorExit (gen.close()) handling. 11 years ago
Paul Sokolovsky cf21a4e7f4 py: Core "yield from" implementation. 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
Paul Sokolovsky 2447a5b582 py: Support closures with default args. 11 years ago
Damien George 66eaf84b8c py: Replace mp_const_stop_iteration object with MP_OBJ_NULL. 11 years ago
Damien George 9e6e935df0 py: Add support for user-defined iterators via __iter__, __next__. 11 years ago
Paul Sokolovsky c403076ef8 vm: Implement raise statement w/o args (reraising last exception). 11 years ago
Paul Sokolovsky f909034400 py: Implement support for "except Exception as var" clause. 11 years ago
Paul Sokolovsky 1673420053 vm: Abstract working with tagged pointers in VM using macro accessors. 11 years ago
Damien George ffa37db5c5 py: Fix int -> machine_uint_t. 11 years ago
Paul Sokolovsky 48caa09a9d objgenerator: Implement .throw() method to throw exceptions into 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 4d79d5dd7c py: Fix type of integer in decoding int. 11 years ago
Paul Sokolovsky 047cd40313 Bytecode int varlen encoding: support arbitrary values for signed ints too. 11 years ago
Paul Sokolovsky 0f96ec8268 Bytecode uint varlen encoding: support arbitrary values. 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 aa9b74fead py: Fix IMPORT_STAR, needs to pop the stack. 11 years ago
Paul Sokolovsky da1ce93da8 Implement "from module import *" construct. 11 years ago
Damien George 9aa2a527b5 py: Tidy up BINARY_OPs; negation done by special NOT bytecode. 11 years ago
Damien George cbddb279bb py: Implement break/continue from an exception with finally. 11 years ago
Damien George fb083ea986 py: mp_execute_byte_code has 2 arg arrays, for more efficient default params. 11 years ago
Paul Sokolovsky 90750029df Implement default function arguments (for Python functions). 11 years ago
Paul Sokolovsky 6472dea146 Add exception stack unwind support for RETURN_VALUE. 11 years ago
Paul Sokolovsky 8519342c1a Update VM stacks comments. 11 years ago
Paul Sokolovsky c7a0b14df9 vm: Introduce structure for exception stack entry, record entry type. 11 years ago
Paul Sokolovsky 382e8eeea2 vm: Add basic implementation of END_FINALLY opcode. 11 years ago
Damien George d0691ccaec py: Simplify fastn in VM; reduce size of unique code struct. 11 years ago
Damien George 08d075592f py: Fix bug with LOAD_METHOD; fix int->machine_int_t for small int. 11 years ago
Paul Sokolovsky bf38e2a03a Implement send() method for generators. 11 years ago
Damien George 28eb57786d py: Optimise generated code for working out line numbers. 11 years ago
Paul Sokolovsky 91fb1c9b13 Add basic implementation of bytes type, piggybacking on str. 11 years ago
Damien George 600ae734cf py: Implement break and continue byte codes, and add tests. 11 years ago
Damien George 55baff4c9b Revamp qstrs: they now include length and hash. 11 years ago
Damien George 136b149e41 py: Add full traceback to exception printing. 11 years ago
Damien George cbd2f7482c py: Add module/function/class name to exceptions. 11 years ago
Damien George e02b2d4391 py: Temporary fix for bug where not enough VM state is allocated. 11 years ago
Damien George 932bf1c48f py: Fix VM/runtime unpack sequence bug, Issue #193. 11 years ago
Damien George 08335004cf Add source file name and line number to error messages. 11 years ago
Damien George 20006dbba9 Make VM stack grow upwards, and so no reversed args arrays. 11 years ago
Paul Sokolovsky a9f5abd48c Implement LOAD_CONST_INT (by dispatching to int object implementation). 11 years ago
John R. Lenton 5c76839559 sorted 11 years ago
Damien George 25042b19d2 py: Make arg to MP_BC_RAISE_VARARGS a byte. 11 years ago
John R. Lenton b8698fca75 unified the bops 11 years ago