66 Commits (d2e33fe3096eec60d7017b0f17c4ddb6910a4d0b)

Author SHA1 Message Date
Jim Mussared d694ac6e1b py/makeqstrdata.py: Ensure that scope names get low qstr values. 8 months ago
Angus Gratton decf8e6a8b all: Remove the "STATIC" macro and just use "static" instead. 8 months ago
Jim Mussared 7ea503929a py/qstr: Add support for MICROPY_QSTR_BYTES_IN_HASH=0. 2 years ago
Jim Mussared 4212799fd8 py/qstr: Special case qstr_find_strn for empty string. 1 year ago
Jim Mussared 64c79a5423 py/qstr: Add support for sorted qstr pools. 2 years ago
Damien George 82b3500724 py/qstr: Change qstr hash type from mp_uint_t to size_t. 2 years ago
Artyom Skrobov f46a7140f5 py/qstr: Use `const` consistently to avoid a cast. 4 years ago
Artyom Skrobov 18b1ba086c py/qstr: Separate hash and len from string data. 4 years ago
Emilie Feral 58b56b91c4 py/qstr: Reset mpstate.qstr_last_chunk before raising an error. 3 years ago
Jim Mussared def76fe4d9 all: Use MP_ERROR_TEXT for all error messages. 5 years ago
Jim Mussared 154b4eb354 py: Implement "common word" compression scheme for error messages. 5 years ago
Damien George 69661f3343 all: Reformat C and Python source code with tools/codeformat.py. 5 years ago
David Lechner edbb73a411 py/qstr: Don't include or init qstr_mutex when GIL is enabled. 5 years ago
Léa Saviot bc129f1b84 py/qstr: Raise exception in qstr_from_strn if str to intern is too long. 5 years ago
Damien George 2b575418b6 py/qstr: Evaluate find_qstr only once then pass to Q_GET_HASH macro. 6 years ago
Damien George 0d165fec9c py/qstr: Put a lower bound on new qstr pool allocation. 6 years ago
Damien George 8e323b8fa8 py/qstr: Rewrite find_qstr to make manifest that it returns a valid ptr. 7 years ago
Damien George 487dbdb267 py/compile: Use alloca instead of qstr_build when compiling import name. 7 years ago
Stefan Naumann ace9fb5405 py: Add verbose debug compile-time flag MICROPY_DEBUG_VERBOSE. 7 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 7 years ago
Colin Hogben f9b6b37cf6 py: Fix wrong assumption that m_renew will not move if shrinking 8 years ago
Damien George e60835bac5 py/qstr: Remove a comment. 8 years ago
Damien George a1c93a62b1 py: Don't use gc or qstr mutex when the GIL is enabled. 9 years ago
Damien George 1f54ad2aed py: Make interning of qstrs thread safe. 9 years ago
Paul Sokolovsky f469c76442 py: Rename __QSTR_EXTRACT flag to NO_QSTR. 9 years ago
Paul Sokolovsky c618f91e22 py: Rework QSTR extraction to work in simple and obvious way. 9 years ago
Damien George 0a2e9650f5 py: Add ability to have frozen persistent bytecode from .mpy files. 9 years ago
Damien George 257848587f py/qstr: Use size_t instead of mp_uint_t when counting allocated bytes. 9 years ago
Damien George c3f64d9799 py: Change qstr_* functions to use size_t as the type for str len arg. 9 years ago
Damien George 59a41e8fcd py/qstr: Fix calc of qstr memory usage, due to new qstr chunk allocation. 9 years ago
Damien George c3bd9415cc py: Make qstr hash size configurable, defaults to 2 bytes. 9 years ago
Damien George ade9a05236 py: Improve allocation policy of qstr data. 10 years ago
Damien George e72cda99fd py: Convert occurrences of non-debug printf to mp_printf. 10 years ago
Damien George ea0461dcd3 py: Add option to micropython.qstr_info() to dump actual qstrs. 10 years ago
Damien George 963a5a3e82 py, unix: Allow to compile with -Wsign-compare. 10 years ago
Damien George 4c81ba8015 py: Never intern data of large string/bytes object; add relevant tests. 10 years ago
Damien George 95836f8439 py: Add MICROPY_QSTR_BYTES_IN_LEN config option, defaulting to 1. 10 years ago
Damien George 6942f80a8f py: Add qstr cfg capability; generate QSTR_NULL and QSTR_ from script. 10 years ago
Damien George 01418e9690 py: Fix hard-coded hash for empty qstr (was 0x0000 now 0x1505). 10 years ago
Damien George b4b10fd350 py: Put all global state together in state structures. 10 years ago
Damien George 51dfcb4bb7 py: Move to guarded includes, everywhere in py/ core. 10 years ago
Damien George 109c1de015 py: Make gc.enable/disable just control auto-GC; alloc is still allowed. 10 years ago
Damien George 0b13f3e026 py: Improve memory usage debugging; better GC AT dumping. 10 years ago
Damien George 39dc145478 py: Change [u]int to mp_[u]int_t in qstr.[ch], and some other places. 10 years ago
Damien George 40f3c02682 Rename machine_(u)int_t to mp_(u)int_t. 11 years ago
Paul Sokolovsky 59c675a64c py: Include mpconfig.h before all other includes. 11 years ago
Damien George 73c98d8709 py: Fix static defn in qstr; include mpconfigport.h with "" (not <>). 11 years ago
Damien George 2617eebf2f Change const byte* to const char* where sensible. 11 years ago
Damien George 04b9147e15 Add license header to (almost) all files. 11 years ago
Damien George d553be5982 build: Simplify build directory layout by putting all headers in genhdr. 11 years ago