Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-127637: add tests for `dis` command-line interface (#127759) | Bénédikt Tran | 2024-12-09 | 1 | -2/+2 |
| | |||||
* | gh-127413: allow to show specialized bytecode via `dis` CLI (#127414) | Bénédikt Tran | 2024-12-05 | 1 | -1/+4 |
| | |||||
* | gh-126072: do not add `None` to `co_consts` if there is no docstring (GH-126101) | Xuanteng Huang | 2024-10-30 | 1 | -10/+11 |
| | |||||
* | GH-125837: Split `LOAD_CONST` into three. (GH-125972) | Mark Shannon | 2024-10-29 | 1 | -4/+6 |
| | | | | | | | | * Add LOAD_CONST_IMMORTAL opcode * Add LOAD_SMALL_INT opcode * Remove RETURN_CONST opcode | ||||
* | GH-125868: Fix STORE_ATTR_WITH_HINT specialization (GH-125876) | Mark Shannon | 2024-10-24 | 1 | -1/+3 |
| | |||||
* | Add "annotate" SET_FUNCTION_ATTRIBUTE bit to dis. (#124566) | larryhastings | 2024-09-26 | 1 | -1/+1 |
| | |||||
* | gh-123363: Show string value of CONTAINS_OP oparg in dis (#123387) | Alexandr Mitin | 2024-08-28 | 1 | -0/+3 |
| | | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> | ||||
* | gh-123340: Show string value of `IS_OP` oparg in `dis` (#123348) | sobolevn | 2024-08-26 | 1 | -0/+3 |
| | |||||
* | gh-123165: make `dis` functions render positions on demand (#123168) | Bénédikt Tran | 2024-08-21 | 1 | -29/+72 |
| | |||||
* | gh-120780: Show attribute name for LOAD_SPECIAL in dis output (#120781) | Jelle Zijlstra | 2024-06-20 | 1 | -0/+4 |
| | |||||
* | gh-119180: Add LOAD_COMMON_CONSTANT opcode (#119321) | Jelle Zijlstra | 2024-05-22 | 1 | -0/+8 |
| | | | | | | | | | | 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-118335: Configure Tier 2 interpreter at build time (#118339) | Guido van Rossum | 2024-05-01 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | The code for Tier 2 is now only compiled when configured with `--enable-experimental-jit[=yes|interpreter]`. We drop support for `PYTHON_UOPS` and -`Xuops`, but you can disable the interpreter or JIT at runtime by setting `PYTHON_JIT=0`. You can also build it without enabling it by default using `--enable-experimental-jit=yes-off`; enable with `PYTHON_JIT=1`. On Windows, the `build.bat` script supports `--experimental-jit`, `--experimental-jit-off`, `--experimental-interpreter`. In the C code, `_Py_JIT` is defined as before when the JIT is enabled; the new variable `_Py_TIER2` is defined when the JIT *or* the interpreter is enabled. It is actually a bitmask: 1: JIT; 2: default-off; 4: interpreter. | ||||
* | gh-112383: teach dis how to interpret ENTER_EXECUTOR (#117171) | Irit Katriel | 2024-03-23 | 1 | -5/+24 |
| | |||||
* | gh-112720: make it easier to subclass and modify dis.ArgResolver's jump arg ↵ | Irit Katriel | 2024-02-16 | 1 | -11/+19 |
| | | | | resolution (#115564) | ||||
* | gh-58032: Do not use argparse.FileType in module CLIs and scripts (GH-113649) | Serhiy Storchaka | 2024-01-10 | 1 | -4/+9 |
| | | | | | Open and close files manually. It prevents from leaking files, preliminary creation of output files, and accidental closing of stdin and stdout. | ||||
* | gh-112720: Move dis's cache output code to the Formatter, labels lookup to ↵ | Irit Katriel | 2023-12-15 | 1 | -77/+91 |
| | | | | the arg_resolver. Reduce the number of parameters passed around. (#113108) | ||||
* | gh-112962: in dis module, put cache information in the Instruction instead ↵ | Irit Katriel | 2023-12-13 | 1 | -30/+43 |
| | | | | of creating fake Instructions to represent it (#113016) | ||||
* | gh-112720: Move instruction formatting from the dis.Instruction class to a ↵ | Irit Katriel | 2023-12-09 | 1 | -201/+221 |
| | | | | new class dis.InstructionFormatter. Add the ArgResolver class. (#112722) | ||||
* | gh-112620: Fix dis error on show_cache with labels (#112621) | Irit Katriel | 2023-12-03 | 1 | -6/+11 |
| | |||||
* | gh-112355: fix calculation of jump target of ENTER_EXECUTOR in dis (#112377) | Irit Katriel | 2023-11-24 | 1 | -1/+6 |
| | |||||
* | gh-112137: change dis output to show no-lineno as -- instead of None (#112335) | Irit Katriel | 2023-11-23 | 1 | -1/+2 |
| | |||||
* | gh-112137: change dis output to display labels instead of offsets (#112138) | Irit Katriel | 2023-11-22 | 1 | -52/+104 |
| | |||||
* | gh-111969: refactor to make it easier to construct a dis.Instruction object ↵ | Irit Katriel | 2023-11-12 | 1 | -64/+84 |
| | | | | (#111970) | ||||
* | gh-108826: Document `dis` module CLI and rename `_test` function to `main` ↵ | Radislav Chugunov | 2023-10-10 | 1 | -3/+2 |
| | | | | | | | (#108827) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> | ||||
* | Add --inline-caches flag to dis command line (#110249) | Guido van Rossum | 2023-10-03 | 1 | -1/+3 |
| | |||||
* | gh-107932: Fix dis module for bytecode that does not have an associated ↵ | Corvin | 2023-08-25 | 1 | -16/+37 |
| | | | | source line (GH-107988) | ||||
* | gh-105481: generate op IDs from bytecode.c instead of hard coding them in ↵ | Irit Katriel | 2023-08-16 | 1 | -5/+5 |
| | | | | opcode.py (#107971) | ||||
* | GH-105848: Simplify the arrangement of CALL's stack (GH-107788) | Brandt Bucher | 2023-08-09 | 1 | -3/+3 |
| | |||||
* | gh-105481: remove dependency of _inline_cache_entries on opname (#107339) | Irit Katriel | 2023-07-27 | 1 | -5/+8 |
| | |||||
* | GH-104584: Miscellaneous fixes for -Xuops (GH-106908) | Brandt Bucher | 2023-07-20 | 1 | -10/+19 |
| | |||||
* | GH-106008: Make implicit boolean conversions explicit (GH-106003) | Brandt Bucher | 2023-06-29 | 1 | -1/+3 |
| | |||||
* | GH-77273: Better bytecodes for f-strings (GH-6132) | Mark Shannon | 2023-06-14 | 1 | -14/+5 |
| | |||||
* | GH-105678: Split MAKE_FUNCTION into MAKE_FUNCTION and SET_FUNCTION_ATTRIBUTE ↵ | Mark Shannon | 2023-06-13 | 1 | -4/+4 |
| | | | | (GH-105680) | ||||
* | gh-102676: Add more convenience properties to `dis.Instruction` (#103969) | Tomas R | 2023-06-11 | 1 | -20/+90 |
| | | | | | | | | Adds start_offset, cache_offset, end_offset, baseopcode, baseopname, jump_target and oparg to dis.Instruction. Also slightly improves the disassembly output by allowing opnames to overflow into the space reserved for opargs. | ||||
* | GH-105229: Replace some superinstructions with single instruction ↵ | Mark Shannon | 2023-06-05 | 1 | -0/+10 |
| | | | | equivalent. (GH-105230) | ||||
* | GH-103963: Make dis display names of args for intrinsics opcodes (#104029) | Juhi Chandalia | 2023-05-03 | 1 | -0/+8 |
| | |||||
* | GH-99944: Make dis display the value of oparg of KW_NAMES (#103856) | Juhi Chandalia | 2023-04-26 | 1 | -3/+2 |
| | | | | Co-authored-by: chilaxan <chilaxan@gmail.com> | ||||
* | gh-87729: add LOAD_SUPER_ATTR instruction for faster super() (#103497) | Carl Meyer | 2023-04-24 | 1 | -0/+5 |
| | | | | | This speeds up `super()` (by around 85%, for a simple one-level `super().meth()` microbenchmark) by avoiding allocation of a new single-use `super()` object on each use. | ||||
* | gh-102114: Make dis print more concise tracebacks for syntax errors in str ↵ | chgnrdv | 2023-04-15 | 1 | -3/+3 |
| | | | | inputs (#102115) | ||||
* | gh-103046: Display current line correctly for `dis.disco()` with CACHE ↵ | gaogaotiantian | 2023-03-27 | 1 | -1/+6 |
| | | | | entries (#103047) | ||||
* | gh-102778: Add sys.last_exc, deprecate sys.last_type, ↵ | Irit Katriel | 2023-03-18 | 1 | -1/+4 |
| | | | | sys.last_value,sys.last_traceback (#102779) | ||||
* | GH-87849: Simplify stack effect of SEND and specialize it for generators and ↵ | Mark Shannon | 2023-02-13 | 1 | -4/+5 |
| | | | | coroutines. (GH-101788) | ||||
* | gh-101632: Add the new RETURN_CONST opcode (#101633) | penguin_wwy | 2023-02-07 | 1 | -1/+2 |
| | |||||
* | GH-100923: Embed jump mask in `COMPARE_OP` oparg (GH-100924) | Mark Shannon | 2023-01-11 | 1 | -1/+1 |
| | |||||
* | Remove unused variable from `dis._find_imports` (#100396) | Nikita Sobolev | 2022-12-21 | 1 | -1/+0 |
| | |||||
* | GH-98686: Get rid of "adaptive" and "quick" instructions (GH-99182) | Brandt Bucher | 2022-11-09 | 1 | -3/+2 |
| | |||||
* | bpo-40222: Mark exception table function in the dis module as private (#95961) | Pablo Galindo Salgado | 2022-08-14 | 1 | -8/+8 |
| | |||||
* | gh-94216: add pseudo instructions to the dis/opcodes modules (GH-94241) | Irit Katriel | 2022-07-01 | 1 | -1/+1 |
| | |||||
* | GH-91432: Specialize FOR_ITER (GH-91713) | Dennis Sweeney | 2022-06-21 | 1 | -3/+9 |
| | | | | | * Adds FOR_ITER_LIST and FOR_ITER_RANGE specializations. * Adds _PyLong_AssignValue() internal function to avoid temporary boxing of ints. | ||||
* | GH-91389: Fix dis position information for CACHEs (GH-93663) | Brandt Bucher | 2022-06-16 | 1 | -10/+22 |
| |