Commit Graph

314 Commits (de5a9d72dcdaacdd5048195cd5bab007f4b2baef)

Author SHA1 Message Date
Scott Shawcroft de5a9d72dc
Compress all translated strings with Huffman coding. 4 years ago
Scott Shawcroft 96ebf5bc3f
Two fixes and translate more strings. 4 years ago
Damien George 25ae98f07c py/compile: Combine expr, xor_expr and and_expr into one function. 5 years ago
Damien George 36e474e83f py/compile: Combine or_test and and_test compile functions. 5 years ago
Damien George 1a7109d65a py/compile: Combine global and nonlocal statement compile functions. 5 years ago
Damien George d23bec3fc8 py/compile: Combine subscript_2 and subscript_3 into one function. 5 years ago
Damien George c149197928 py/compile: Combine break and continue compile functions. 5 years ago
Damien George 18e6358480 py/emit: Combine setup with/except/finally into one emit function. 5 years ago
Damien George 436e0d4c54 py/emit: Merge build set/slice into existing build emit function. 5 years ago
Damien George d97906ca9a py/emit: Combine import from/name/star into one emit function. 5 years ago
Damien George 8a513da5a5 py/emit: Combine break_loop and continue_loop into one emit function. 5 years ago
Damien George 6211d979ee py/emit: Combine load/store/delete attr into one emit function. 5 years ago
Damien George a4941a8ba4 py/emit: Combine load/store/delete subscr into one emit function. 5 years ago
Damien George d298013939 py/emit: Combine name and global into one func for load/store/delete. 5 years ago
Damien George 26b5754092 py/emit: Combine build tuple/list/map emit funcs into one. 5 years ago
Damien George e686c94052 py/emit: Combine yield value and yield-from emit funcs into one. 5 years ago
Damien George 0a25fff956 py/emit: Combine fast and deref into one function for load/store/delete. 5 years ago
Damien George 828ce16dc8 py/compile: Change comment about ITER_BUF_NSLOTS to a static assertion. 5 years ago
Damien George 7dfa56e40e py/compile: Adjust c_assign_atom_expr() to use return instead of goto. 5 years ago
Damien George 253f2bd7be py/compile: Combine compiler-opt of 2 and 3 tuple-to-tuple assignment. 5 years ago
Damien George 1e5a33df41 py: Convert all uses of alloca() to use new scoped allocation API. 5 years ago
Damien George 487dbdb267 py/compile: Use alloca instead of qstr_build when compiling import name. 5 years ago
Damien George ad6aae13a4 py/compile: Remove unused pn_colon code when compiling func params. 5 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 5 years ago
Damien George 0291a624cb py/compile: Fix enum variable declaration. 5 years ago
Krzysztof Blazewicz 91a385db98 py/compile: Use switch-case to match token and operator. 5 years ago
Krzysztof Blazewicz a040fb89e7 py/compile: Combine arith and bit-shift ops into 1 compile routine. 5 years ago
Damien George d94bc675e8 py/compile: Optimise emitter label indices to save a word of heap. 6 years ago
Damien George 4c5f108321 py/compile: Fix bug with break/continue in else of optimised for-range. 6 years ago
Damien George 1e70fda69f py/compile: Raise SyntaxError if positional args are given after */**. 6 years ago
Ville Skyttä ca16c38210 various: Spelling fixes 6 years ago
Damien George dd11af209d py: Add LOAD_SUPER_METHOD bytecode to allow heap-free super meth calls. 6 years ago
Damien George 5335942b59 py/compile: Refactor handling of special super() call. 6 years ago
Damien George 0dd6a59c89 py/compile: Don't do unnecessary check if iter parse node is a struct. 6 years ago
Damien George ae54fbf166 py/compile: Add COMP_RETURN_IF_EXPR option to enable return-if-else opt. 6 years ago
Damien George 40b40ffc98 py/compile: Extract parse-node kind at start of func for efficiency. 6 years ago
Damien George fa03bbf0fd py/compile: Don't do unnecessary check if parse node is a struct. 6 years ago
Damien George de9b53695d py: Raise a ValueError if range() step is zero. 6 years ago
Damien George f9b0e644e5 py/compile: Provide terse error message for invalid dict/set literals. 6 years ago
Damien George 18c059febf py: Shorten a couple of error messages. 6 years ago
Damien George f55a059e7a py/compile: Simplify syntax-error messages for illegal assignments. 6 years ago
Damien George 40c1272e55 py/compile: When compiling super(), handle closed-over self variable. 6 years ago
Damien George 60656eaea4 py: Define and use MP_OBJ_ITER_BUF_NSLOTS to get size of stack iter buf. 6 years ago
Damien George 5255255fb9 py: Create str/bytes objects in the parser, not the compiler. 6 years ago
Damien George 534b7c368d py: Do adjacent str/bytes literal concatenation in lexer, not compiler. 6 years ago
Damien George 71019ae4f5 py/grammar: Group no-compile grammar rules together to shrink tables. 6 years ago
Damien George 4d2bab1444 py/compile: Optimise list/dict/set comprehensions to use stack iter. 6 years ago
Damien George 30b42dd72d py: Remove unused "use_stack" argument from for_iter_end emit function. 6 years ago
Damien George 088740ecc4 py: Optimise storage of iterator so it takes only 4 slots on Py stack. 6 years ago
Damien George 6e769da0da py: Make FOR_ITER opcode pop 1+4 slots from the stack when finished. 6 years ago