Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-123142: fix too wide source location of GET_ITER/GET_AITER (#123420) | Irit Katriel | 2024-08-28 | 1 | -8/+7 |
| | |||||
* | gh-121404: split compiler_nameop into a codegen part and a compiler part ↵ | Irit Katriel | 2024-08-27 | 1 | -89/+101 |
| | | | | (#123398) | ||||
* | gh-121404: compiler_visit_* --> codegen_visit_* (#123382) | Irit Katriel | 2024-08-27 | 1 | -61/+49 |
| | |||||
* | gh-121404: more compiler_* -> codegen_*, class_body and comprehensions (#123262) | Irit Katriel | 2024-08-23 | 1 | -59/+82 |
| | |||||
* | gh-121404: compiler_annassign --> codegen_annassign (#123245) | Irit Katriel | 2024-08-23 | 1 | -63/+100 |
| | |||||
* | gh-121404: remove redundant c_nestlevel. more compiler abstractions. more ↵ | Irit Katriel | 2024-08-22 | 1 | -118/+111 |
| | | | | macro usage consistency (#123225) | ||||
* | gh-123142: Fix too wide source locations in tracebacks of exceptions from ↵ | Irit Katriel | 2024-08-21 | 1 | -2/+3 |
| | | | | broken iterables in comprehensions (#123173) | ||||
* | gh-121404: split fblock handling into compiler_* and codegen_* parts (#123199) | Irit Katriel | 2024-08-21 | 1 | -15/+24 |
| | |||||
* | gh-123048: Fix missing source location in pattern matching code (#123167) | Irit Katriel | 2024-08-20 | 1 | -1/+1 |
| | |||||
* | gh-121404: rename functions to use codegen_* prefix. Use macros more ↵ | Irit Katriel | 2024-08-19 | 1 | -349/+303 |
| | | | | consistently. (#123139) | ||||
* | gh-121404: pass metadata to compiler_enter_scope (optionally) so that ↵ | Irit Katriel | 2024-08-19 | 1 | -58/+82 |
| | | | | codegen functions don't need to set it on the code unit (#123078) | ||||
* | gh-121404: rename compiler_addop* to codegen_addop*, and replace direct ↵ | Irit Katriel | 2024-08-16 | 1 | -96/+102 |
| | | | | usages by the macros (#123043) | ||||
* | gh-121404: split compiler's push/pop_inlined_comprehension_state into ↵ | Irit Katriel | 2024-08-15 | 1 | -63/+102 |
| | | | | codegen and compiler parts (#123021) | ||||
* | gh-122985: add SYMBOL_TO_SCOPE macro in symtable (#122986) | Irit Katriel | 2024-08-14 | 1 | -7/+4 |
| | |||||
* | GH-122821: Simplify compilation of while statements to ensure consistency of ↵ | Mark Shannon | 2024-08-13 | 1 | -3/+1 |
| | | | | offsets for sys.monitoring (GH-122934) | ||||
* | gh-122595: Add more error checks in the compiler (GH-122596) | Serhiy Storchaka | 2024-08-06 | 1 | -22/+56 |
| | |||||
* | gh-122445: populate only modified fields in __static_attributes__ (#122446) | Irit Katriel | 2024-08-02 | 1 | -7/+11 |
| | |||||
* | gh-119180: Add evaluate functions for type params and type aliases (#122212) | Jelle Zijlstra | 2024-07-27 | 1 | -5/+8 |
| | |||||
* | gh-122245: move checks for writes and shadowing of __debug__ to symtable ↵ | Irit Katriel | 2024-07-26 | 1 | -76/+0 |
| | | | | (#122246) | ||||
* | GH-122160: Remove BUILD_CONST_KEY_MAP opcode. (GH-122164) | Mark Shannon | 2024-07-25 | 1 | -58/+5 |
| | |||||
* | gh-121404: extract compiler_lookup_arg out of compiler_make_closure (#122181) | Irit Katriel | 2024-07-24 | 1 | -41/+49 |
| | |||||
* | gh-121637: Syntax error for optimized-away incorrect await (#121656) | Jelle Zijlstra | 2024-07-22 | 1 | -23/+14 |
| | | | Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> | ||||
* | gh-121404: move calculation of module start location from compiler_body up ↵ | Irit Katriel | 2024-07-22 | 1 | -20/+28 |
| | | | | to compiler_codegen (#122127) | ||||
* | gh-121657: Display correct error message for yield from outside of a ↵ | Gregor | 2024-07-13 | 1 | -1/+1 |
| | | | | | | function (GH-121680) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> | ||||
* | gh-121554: remove unnecessary internal functions in compile.c (#121555) | Irit Katriel | 2024-07-10 | 1 | -48/+0 |
| | | | Co-authored-by: Erlend E. Aasland <erlend@python.org> | ||||
* | gh-121404: remove some accesses to compiler internals from codegen functions ↵ | Irit Katriel | 2024-07-10 | 1 | -101/+120 |
| | | | | (#121538) | ||||
* | gh-121547: deduplicate the code of const_cache update functions (#121548) | Irit Katriel | 2024-07-10 | 1 | -25/+22 |
| | |||||
* | gh-121404: remove direct accesses to u_private from codegen functions (#121500) | Irit Katriel | 2024-07-08 | 1 | -27/+42 |
| | |||||
* | gh-121272: move async for/with validation from compiler to symtable (#121361) | Irit Katriel | 2024-07-04 | 1 | -13/+0 |
| | |||||
* | gh-121272: set ste_coroutine during symtable construction (#121297) | Irit Katriel | 2024-07-03 | 1 | -3/+3 |
| | | | compiler no longer modifies the symtable after this. | ||||
* | gh-121272: move __future__ import validation from compiler to symtable (#121273) | Irit Katriel | 2024-07-02 | 1 | -16/+0 |
| | |||||
* | gh-121040: Use __attribute__((fallthrough)) (#121044) | Victor Stinner | 2024-06-27 | 1 | -2/+2 |
| | | | | | | | | | | | | | Fix warnings when using -Wimplicit-fallthrough compiler flag. Annotate explicitly "fall through" switch cases with a new _Py_FALLTHROUGH macro which uses __attribute__((fallthrough)) if available. Replace "fall through" comments with _Py_FALLTHROUGH. Add _Py__has_attribute() macro. No longer define __has_attribute() macro if it's not defined. Move also _Py__has_builtin() at the top of pyport.h. Co-Authored-By: Nikita Sobolev <mail@sobolevn.me> | ||||
* | Fixes loop variables to be the same types as their limit (GH-120958) | Steve Dower | 2024-06-24 | 1 | -1/+1 |
| | |||||
* | gh-113993: Allow interned strings to be mortal, and fix related issues ↵ | Petr Viktorin | 2024-06-21 | 1 | -2/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-120520) * Add an InternalDocs file describing how interning should work and how to use it. * Add internal functions to *explicitly* request what kind of interning is done: - `_PyUnicode_InternMortal` - `_PyUnicode_InternImmortal` - `_PyUnicode_InternStatic` * Switch uses of `PyUnicode_InternInPlace` to those. * Disallow using `_Py_SetImmortal` on strings directly. You should use `_PyUnicode_InternImmortal` instead: - Strings should be interned before immortalization, otherwise you're possibly interning a immortalizing copy. - `_Py_SetImmortal` doesn't handle the `SSTATE_INTERNED_MORTAL` to `SSTATE_INTERNED_IMMORTAL` update, and those flags can't be changed in backports, as they are now part of public API and version-specific ABI. * Add private `_only_immortal` argument for `sys.getunicodeinternedsize`, used in refleak test machinery. * Make sure the statically allocated string singletons are unique. This means these sets are now disjoint: - `_Py_ID` - `_Py_STR` (including the empty string) - one-character latin-1 singletons Now, when you intern a singleton, that exact singleton will be interned. * Add a `_Py_LATIN1_CHR` macro, use it instead of `_Py_ID`/`_Py_STR` for one-character latin-1 singletons everywhere (including Clinic). * Intern `_Py_STR` singletons at startup. * For free-threaded builds, intern `_Py_LATIN1_CHR` singletons at startup. * Beef up the tests. Cover internal details (marked with `@cpython_only`). * Add lots of assertions Co-Authored-By: Eric Snow <ericsnowcurrently@gmail.com> | ||||
* | gh-98442: fix locations of with statement's cleanup instructions (#120763) | Irit Katriel | 2024-06-20 | 1 | -1/+3 |
| | | | gh-98442: fix location of with statement's cleanup instructions | ||||
* | gh-120733: rename internal compiler functions according to naming convention ↵ | Irit Katriel | 2024-06-19 | 1 | -30/+23 |
| | | | | (#120734) | ||||
* | gh-120722: Set position on RETURN_VALUE in lambda (#120724) | Jelle Zijlstra | 2024-06-19 | 1 | -1/+1 |
| | |||||
* | GH-120507: Lower the `BEFORE_WITH` and `BEFORE_ASYNC_WITH` instructions. ↵ | Mark Shannon | 2024-06-18 | 1 | -3/+15 |
| | | | | | | | | | (#120640) * Remove BEFORE_WITH and BEFORE_ASYNC_WITH instructions. * Add LOAD_SPECIAL instruction * Reimplement `with` and `async with` statements using LOAD_SPECIAL | ||||
* | gh-93691: fix too broad source locations of for statement iterators (#120330) | Irit Katriel | 2024-06-12 | 1 | -0/+7 |
| | |||||
* | gh-119180: PEP 649 compiler changes (#119361) | Jelle Zijlstra | 2024-06-11 | 1 | -149/+208 |
| | |||||
* | gh-93691: fix too broad source locations of with-statement instructions ↵ | Irit Katriel | 2024-06-07 | 1 | -3/+2 |
| | | | | (#120125) | ||||
* | gh-119744: move a few functions from compile.c to flowgraph.c (#119745) | Irit Katriel | 2024-05-30 | 1 | -147/+8 |
| | |||||
* | gh-119689: generate stack effect metadata for pseudo instructions (#119691) | Irit Katriel | 2024-05-29 | 1 | -43/+14 |
| | |||||
* | gh-119676: remove several pseudo instructions which are use only in codegen ↵ | Irit Katriel | 2024-05-28 | 1 | -13/+5 |
| | | | | (#119677) | ||||
* | gh-119311: Fix name mangling with PEP 695 generic classes (#119464) | Jelle Zijlstra | 2024-05-28 | 1 | -6/+6 |
| | | | | Fixes #119311. Fixes #119395. | ||||
* | gh-119180: Add LOAD_COMMON_CONSTANT opcode (#119321) | Jelle Zijlstra | 2024-05-22 | 1 | -1/+1 |
| | | | | | | | | | | The PEP 649 implementation will require a way to load NotImplementedError from the bytecode. @markshannon suggested implementing this by converting LOAD_ASSERTION_ERROR into a more general mechanism for loading constants. This PR adds this new opcode. I will work on the rest of the implementation of the PEP separately. Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | ||||
* | gh-118465: Add __firstlineno__ attribute to class (GH-118475) | Serhiy Storchaka | 2024-05-06 | 1 | -0/+5 |
| | | | | It is set by compiler with the line number of the first line of the class definition. | ||||
* | gh-118513: Fix sibling comprehensions with a name bound in one and global in ↵ | Carl Meyer | 2024-05-03 | 1 | -39/+42 |
| | | | | | | the other (#118526) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru> | ||||
* | gh-116126: Implement PEP 696 (#116129) | Jelle Zijlstra | 2024-05-03 | 1 | -14/+75 |
| | | | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> | ||||
* | gh-118216: Don't consider dotted `__future__` imports (#118267) | Crowthebird | 2024-05-02 | 1 | -1/+1 |
| |