Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | GH-93429: Merge `LOAD_METHOD` back into `LOAD_ATTR` (GH-93430) | Ken Jin | 2022-06-14 | 1 | -0/+5 |
| | |||||
* | gh-92932: dis._unpack_opargs should handle EXTENDED_ARG_QUICK (gh-92945) | Dong-hee Na | 2022-06-03 | 1 | -1/+1 |
| | |||||
* | gh-90997: Move `CACHE` handling into `_unpack_opargs` (#92409) | Brandt Bucher | 2022-05-06 | 1 | -7/+9 |
| | | | | | | | * Move CACHE handling into _unpack_opargs * Remove auto-added import * blurb add | ||||
* | gh-90997: Show cached inline values in `dis` output (#92360) | Brandt Bucher | 2022-05-06 | 1 | -5/+19 |
| | |||||
* | gh-91276: revert the increase of dis output width (GH-92126) | Irit Katriel | 2022-05-02 | 1 | -1/+1 |
| | |||||
* | gh-90997: bpo-46841: Disassembly of quickened code (GH-32099) | penguin_wwy | 2022-04-19 | 1 | -36/+63 |
| | |||||
* | gh-91276: make space for longer opcodes in dis output (GH-91444) | Irit Katriel | 2022-04-12 | 1 | -1/+1 |
| | |||||
* | bpo-47120: make POP_JUMP_IF_TRUE/FALSE/NONE/NOT_NONE relative (GH-32400) | Irit Katriel | 2022-04-11 | 1 | -2/+5 |
| | |||||
* | bpo-47120: Replace the JUMP_ABSOLUTE opcode by the relative JUMP_BACKWARD ↵ | Irit Katriel | 2022-03-31 | 1 | -1/+5 |
| | | | | (GH-32115) | ||||
* | Use low bit of LOAD_GLOBAL's oparg to indicate whether it should push an ↵ | Mark Shannon | 2022-03-17 | 1 | -1/+7 |
| | | | | additional NULL. (GH-31933) | ||||
* | bpo-46841: Use *inline* caching for `BINARY_OP` (GH-31543) | Brandt Bucher | 2022-02-25 | 1 | -24/+41 |
| | |||||
* | bpo-46724: Fix dis support for overflow args (GH-31285) | Saul Shanabrook | 2022-02-18 | 1 | -0/+11 |
| | |||||
* | bpo-46422: use `dis.Positions` in `dis.Instruction` (GH-30716) | Nikita Sobolev | 2022-01-24 | 1 | -4/+1 |
| | | | Co-authored-by: Batuhan Taskaya <isidentical@gmail.com> | ||||
* | bpo-45636: Merge all numeric operators (GH-29482) | Brandt Bucher | 2021-11-11 | 1 | -0/+4 |
| | |||||
* | bpo-45757: Fix bug where dis produced an incorrect oparg on EXTENDED_ARG ↵ | Irit Katriel | 2021-11-09 | 1 | -0/+1 |
| | | | | before a no-arg opcode (GH-29480) | ||||
* | bpo-45152: refactor the dis module to make handling of hasconst opcodes more ↵ | Irit Katriel | 2021-09-15 | 1 | -19/+35 |
| | | | | generic (GH-28258) | ||||
* | bpo-45168: change dis output to omit missing values rather than replacing ↵ | Irit Katriel | 2021-09-14 | 1 | -9/+16 |
| | | | | them by their index (GH-28313) | ||||
* | bpo-45017: move opcode-related logic from modulefinder to dis (GH-28246) | Irit Katriel | 2021-09-09 | 1 | -0/+36 |
| | |||||
* | bpo-43950: support positions for dis.Instructions created through ↵ | Batuhan Taskaya | 2021-09-03 | 1 | -1/+2 |
| | | | | dis.Bytecode (GH-28142) | ||||
* | bpo-43950: include position in dis.Instruction (GH-27015) | Batuhan Taskaya | 2021-07-04 | 1 | -9/+44 |
| | | | Automerge-Triggered-By: GH:isidentical | ||||
* | bpo-43693: Un-revert commits 2c1e258 and b2bf2bc. (gh-26577) | Eric Snow | 2021-06-07 | 1 | -26/+27 |
| | | | | | | | | | | These were reverted in gh-26530 (commit 17c4edc) due to refleaks. * 2c1e258 - Compute deref offsets in compiler (gh-25152) * b2bf2bc - Add new internal code objects fields: co_fastlocalnames and co_fastlocalkinds. (gh-26388) This change fixes the refleaks. https://bugs.python.org/issue43693 | ||||
* | bpo-43693: Revert commits 2c1e2583fdc4db6b43d163239ea42b0e8394171f and ↵ | Pablo Galindo | 2021-06-04 | 1 | -27/+26 |
| | | | | | | | | | | | | | b2bf2bc1ece673d387341e06c8d3c2bc6e259747 (GH-26530) * Revert "bpo-43693: Compute deref offsets in compiler (gh-25152)" This reverts commit b2bf2bc1ece673d387341e06c8d3c2bc6e259747. * Revert "bpo-43693: Add new internal code objects fields: co_fastlocalnames and co_fastlocalkinds. (gh-26388)" This reverts commit 2c1e2583fdc4db6b43d163239ea42b0e8394171f. These two commits are breaking the refleak buildbots. | ||||
* | bpo-43693: Compute deref offsets in compiler (gh-25152) | Mark Shannon | 2021-06-04 | 1 | -4/+1 |
| | | | | | | Merges locals and cells into a single array. Saves a pointer in the interpreter and means that we don't need the LOAD_CLOSURE opcode any more https://bugs.python.org/issue43693 | ||||
* | bpo-43693: Add new internal code objects fields: co_fastlocalnames and ↵ | Eric Snow | 2021-06-03 | 1 | -24/+28 |
| | | | | | | | | | | | | | | | | | co_fastlocalkinds. (gh-26388) A number of places in the code base (notably ceval.c and frameobject.c) rely on mapping variable names to indices in the frame "locals plus" array (AKA fast locals), and thus opargs. Currently the compiler indirectly encodes that information on the code object as the tuples co_varnames, co_cellvars, and co_freevars. At runtime the dependent code must calculate the proper mapping from those, which isn't ideal and impacts performance-sensitive sections. This is something we can easily address in the compiler instead. This change addresses the situation by replacing internal use of co_varnames, etc. with a single combined tuple of names in locals-plus order, along with a minimal array mapping each to its kind (local vs. cell vs. free). These two new PyCodeObject fields, co_fastlocalnames and co_fastllocalkinds, are not exposed to Python code for now, but co_varnames, etc. are still available with the same values as before (though computed lazily). Aside from the (mild) performance impact, there are a number of other benefits: * there's now a clear, direct relationship between locals-plus and variables * code that relies on the locals-plus-to-name mapping is simpler * marshaled code objects are smaller and serialize/de-serialize faster Also note that we can take this approach further by expanding the possible values in co_fastlocalkinds to include specific argument types (e.g. positional-only, kwargs). Doing so would allow further speed-ups in _PyEval_MakeFrameVector(), which is where args get unpacked into the locals-plus array. It would also allow us to shrink marshaled code objects even further. https://bugs.python.org/issue43693 |