aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/assemble.c
Commit message (Collapse)AuthorAge
* GH-123044: Give the `POP_TOP` after a case test a location in the body, not ↵Mark Shannon2025-03-10
| | | | the pattern. (GH-130627)
* GH-128534: Fix behavior of branch monitoring for `async for` (GH-130847)Mark Shannon2025-03-07
| | | * Both branches in a pair now have a common source and are included in co_branches
* docs: internal notes have moved, correct references (#130762)Ned Batchelder2025-03-03
|
* Postpone <stdbool.h> inclusion after Python.h (#130641)Hugo Beauzée-Luyssen2025-02-28
| | | | | | | Remove inclusions prior to Python.h. <stdbool.h> will cause <features.h> to be included before Python.h can define some macros to enable some additional features, causing multiple types not to be defined down the line.
* gh-121040: Use __attribute__((fallthrough)) (#121044)Victor Stinner2024-06-27
| | | | | | | | | | | | | 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>
* gh-117494: extract the Instruction Sequence data structure into a separate ↵Irit Katriel2024-04-04
| | | | file (#117496)
* gh-117411: move PyFutureFeatures to pycore_symtable.h and make it private ↵Irit Katriel2024-04-02
| | | | (#117412)
* gh-117288: Allocate fewer label IDs in _PyCfg_ToInstructionSequence (#117290)Irit Katriel2024-03-27
|
* GH-111485: Generate instruction and uop metadata (GH-113287)Mark Shannon2023-12-20
|
* gh-108444: Replace _PyLong_AsInt() with PyLong_AsInt() (#108459)Victor Stinner2023-08-25
| | | | | | Change generated by the command: sed -i -e 's!_PyLong_AsInt!PyLong_AsInt!g' \ $(find -name "*.c" -o -name "*.h")
* gh-105481: remove regen-opcode. Generated _PyOpcode_Caches in regen-cases. ↵Irit Katriel2023-08-23
| | | | (#108367)
* gh-108308: Replace PyDict_GetItem() with PyDict_GetItemRef() (#108309)Victor Stinner2023-08-23
| | | | | | | | | Replace PyDict_GetItem() calls with PyDict_GetItemRef() or PyDict_GetItemWithError() to handle errors. * Replace PyLong_AS_LONG() with _PyLong_AsInt() and check for errors. * Check for PyDict_Contains() error. * pycore_init_builtins() checks for _PyType_Lookup() failure.
* gh-105481: move Python/opcode_metadata.h to ↵Irit Katriel2023-07-12
| | | | Include/internal/pycore_opcode_metadata.h (#106673)
* gh-106149: move unconditional jump direction resolution from optimizer to ↵Irit Katriel2023-07-01
| | | | assembler (#106291)
* gh-106149: move jump target resolution from optimizer to assembler (#106150)Irit Katriel2023-06-27
|
* gh-105481: remove HAS_ARG, HAS_CONST, IS_JUMP_OPCODE, IS_PSEUDO_OPCODE and ↵Irit Katriel2023-06-17
| | | | replace by their new versions (#105865)
* gh-105481: add pseudo-instructions to the bytecodes DSL (#105506)Irit Katriel2023-06-11
|
* gh-87092: avoid gcc warning on uninitialized struct field in assemble… ↵Dong-hee Na2023-06-02
| | | | | (gh-105243) gh-87092: avoid gcc warning on uninitialized struct field in assemble.c (part2)
* remove unused #includes of pycore_pymem.h (#105166)Irit Katriel2023-06-01
|
* gh-87092: avoid gcc warning on uninitialized struct field in assemble.c ↵Dong-hee Na2023-05-14
| | | | (#104460)
* gh-97933: (PEP 709) inline list/dict/set comprehensions (#101441)Carl Meyer2023-05-09
| | | | Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-87092: change assembler to use instruction sequence instead of CFG (#103933)Irit Katriel2023-04-29
|
* gh-87092: move assembler related code from compile.c to assemble.c (#103277)Irit Katriel2023-04-11