Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | bpo-46417: Use _PyType_CAST() in Python directory (GH-30769) | Victor Stinner | 2022-01-21 | 1 | -2/+1 | |
| | ||||||
* | bpo-46409: Make generators in bytecode (GH-30633) | Mark Shannon | 2022-01-20 | 1 | -4/+0 | |
| | | | | | | | | | | | | * Add RETURN_GENERATOR and JUMP_NO_INTERRUPT opcodes. * Trim frame and generator by word each. * Minor refactor of frame.c * Update test.test_sys to account for smaller frames. * Treat generator functions as normal functions when evaluating and specializing. | |||||
* | bpo-46405: fix msvc compiler warnings (GH-30627) | Kumar Aditya | 2022-01-17 | 1 | -1/+1 | |
| | ||||||
* | bpo-45609: More specialization stats for STORE_SUBSCR (GH-30193) | Dennis Sweeney | 2022-01-04 | 1 | -3/+68 | |
| | ||||||
* | bpo-46072: Add top level stats struct (GH-30169) | Mark Shannon | 2021-12-17 | 1 | -47/+51 | |
| | ||||||
* | Better randomization of stats filenames. (GH-30145) | Mark Shannon | 2021-12-16 | 1 | -2/+14 | |
| | ||||||
* | bpo-45829: Check `__getitem__`'s version for overflow before specializing ↵ | Brandt Bucher | 2021-12-16 | 1 | -1/+1 | |
| | | | | | | | (GH-30129) * Check __getitem__'s version for overflow. * Use SPEC_FAIL_OUT_OF_VERSIONS instead | |||||
* | bpo-46072: Add --with-pystats configure option to simplify gathering of VM ↵ | Mark Shannon | 2021-12-15 | 1 | -25/+22 | |
| | | | | | | | | | stats (GH-30116) * Simplify specialization stats collection macros. * Add --enable-pystats option to configure. * Update specialization summary script to handle larger number of kinds | |||||
* | bpo-44525: Specialize for calls to type and other builtin classes with 1 ↵ | Mark Shannon | 2021-12-15 | 1 | -2/+25 | |
| | | | | argument. (GH-29942) | |||||
* | bpo-44525: Split calls into PRECALL and CALL (GH-30011) | Mark Shannon | 2021-12-14 | 1 | -20/+79 | |
| | | | | | | | | | | * Add 3 new opcodes for calls: PRECALL_METHOD, CALL_NO_KW, CALL_KW. * Update specialization to handle new CALL opcodes. * Specialize call to method descriptors. * Remove old CALL opcodes: CALL_FUNCTION, CALL_METHOD, CALL_METHOD_KW, CALL_FUNCTION_KW. | |||||
* | bpo-45510: Check both types when specializing subtraction (GH-29995) | Brandt Bucher | 2021-12-09 | 1 | -0/+4 | |
| | ||||||
* | bpo-45947: Place dict and values pointer at fixed (negative) offset just ↵ | Mark Shannon | 2021-12-07 | 1 | -62/+34 | |
| | | | | | | | | | | | | | | | | | | | before GC header. (GH-29879) * Place __dict__ immediately before GC header for plain Python objects. * Fix up lazy dict creation logic to use managed dict pointers. * Manage values pointer, placing them directly before managed dict pointers. * Convert hint-based load/store attr specialization target managed dict classes. * Specialize LOAD_METHOD for managed dict objects. * Remove unsafe _PyObject_GC_Calloc function. * Remove unsafe _PyObject_GC_Malloc() function. * Add comment explaning use of Py_TPFLAGS_MANAGED_DICT. | |||||
* | bpo-45885: Specialize COMPARE_OP (GH-29734) | Dennis Sweeney | 2021-12-03 | 1 | -0/+79 | |
| | | | | | | | * Add COMPARE_OP_ADAPTIVE adaptive instruction. * Add COMPARE_OP_FLOAT_JUMP, COMPARE_OP_INT_JUMP and COMPARE_OP_STR_JUMP specialized instructions. * Introduce and use _PyUnicode_Equal | |||||
* | bpo-44525: Copy free variables in bytecode to allow calls to inner functions ↵ | Mark Shannon | 2021-11-23 | 1 | -4/+1 | |
| | | | | | | | | | | | to be specialized (GH-29595) * Make internal APIs that take PyFrameConstructor take a PyFunctionObject instead. * Add reference to function to frame, borrow references to builtins and globals. * Add COPY_FREE_VARS instruction to allow specialization of calls to inner functions. | |||||
* | bpo-45609: Specialize STORE_SUBSCR (GH-29242) | Dennis Sweeney | 2021-11-19 | 1 | -0/+51 | |
| | | | | | * Specialize STORE_SUBSCR for list[int], and dict[object] * Adds _PyDict_SetItem_Take2 which consumes references to the key and values. | |||||
* | bpo-45829: Specialize BINARY_SUBSCR for __getitem__ implemented in Python. ↵ | Mark Shannon | 2021-11-18 | 1 | -25/+61 | |
| | | | | (GH-29592) | |||||
* | bpo-45510: Specialize BINARY_SUBTRACT (GH-29523) | Dong-hee Na | 2021-11-18 | 1 | -0/+13 | |
| | ||||||
* | bpo-45636: Remove the old %-formatting fast-path (GH-29532) | Brandt Bucher | 2021-11-15 | 1 | -4/+8 | |
| | ||||||
* | bpo-45636: Merge all numeric operators (GH-29482) | Brandt Bucher | 2021-11-11 | 1 | -78/+65 | |
| | ||||||
* | bpo-45527: Don't count cache hits, just misses. (GH-29092) | Mark Shannon | 2021-10-20 | 1 | -14/+26 | |
| | ||||||
* | bpo-44525: Specialize simple Python calls. (GH-29033) | Mark Shannon | 2021-10-20 | 1 | -20/+87 | |
| | ||||||
* | bpo-44525: Specialize ``CALL_FUNCTION`` for C function calls (GH-26934) | Ken Jin | 2021-10-19 | 1 | -0/+147 | |
| | ||||||
* | bpo-45434: Include stdlib.h for specialize stat (GH-29015) | Dong-hee Na | 2021-10-18 | 1 | -1/+2 | |
| | ||||||
* | bpo-45367: Specialize BINARY_MULTIPLY (GH-28727) | Dennis Sweeney | 2021-10-14 | 1 | -0/+33 | |
| | ||||||
* | bpo-45340: Don't create object dictionaries unless actually needed (GH-28802) | Mark Shannon | 2021-10-13 | 1 | -74/+67 | |
| | | | | | | | | | | | | | | * Never change types' cached keys. It could invalidate inline attribute objects. * Lazily create object dictionaries. * Update specialization of LOAD/STORE_ATTR. * Don't update shared keys version for deletion of value. * Update gdb support to handle instance values. * Rename SPLIT_KEYS opcodes to INSTANCE_VALUE. | |||||
* | Fix typos in the Python directory (GH-28767) | Christian Clauss | 2021-10-06 | 1 | -1/+1 | |
| | ||||||
* | bpo-45219: Factor dictkey indexing (GH-28389) | Mark Shannon | 2021-09-17 | 1 | -20/+19 | |
| | ||||||
* | bpo-45107: Make LOAD_METHOD_CLASS safer and faster, clean up comments (GH-28177) | Ken Jin | 2021-09-17 | 1 | -8/+7 | |
| | | | | | * Improve comments * Check cls is a type, remove dict calculation | |||||
* | bpo-45203: fix compiler warnings (GH-28357) | Ken Jin | 2021-09-17 | 1 | -0/+1 | |
| | | | Co-authored-by: Mark Shannon <mark@hotpy.org> | |||||
* | bpo-45203: Cleanup stats gathering code for LOAD_METHOD (GH-28352) | Mark Shannon | 2021-09-15 | 1 | -41/+39 | |
| | ||||||
* | Refine specialization stats (GH-27992) | Mark Shannon | 2021-08-27 | 1 | -17/+89 | |
| | ||||||
* | bpo-44945: Specialize BINARY_ADD (GH-27967) | Mark Shannon | 2021-08-27 | 1 | -6/+56 | |
| | ||||||
* | bpo-44889: Specialize LOAD_METHOD with PEP 659 adaptive interpreter (GH-27722) | Ken Jin | 2021-08-17 | 1 | -10/+180 | |
| | | | | | | | | Adds four new instructions: * LOAD_METHOD_ADAPTIVE * LOAD_METHOD_CACHED * LOAD_METHOD_MODULE * LOAD_METHOD_CLASS | |||||
* | bpo-44900: Add five superinstructions. (GH-27741) | Mark Shannon | 2021-08-16 | 1 | -5/+24 | |
| | | | | | | | | * LOAD_FAST LOAD_FAST * STORE_FAST LOAD_FAST * LOAD_FAST LOAD_CONST * LOAD_CONST LOAD_FAST * STORE_FAST STORE_FAST | |||||
* | bpo-44890: collect specialization stats if Py_DEBUG (GH-27731) | Irit Katriel | 2021-08-12 | 1 | -6/+6 | |
| | ||||||
* | Update test__opcode and _Py_GetSpecializationStats with recent ↵ | Irit Katriel | 2021-08-11 | 1 | -0/+1 | |
| | | | | specialization stat changes (GH-27728) | |||||
* | Classify specialization failures. Provides more useful stats, with lower ↵ | Mark Shannon | 2021-08-10 | 1 | -96/+83 | |
| | | | | overhead. (GH-27701) | |||||
* | bpo-44826: Specialize STORE_ATTR (GH-27590) | Mark Shannon | 2021-08-09 | 1 | -70/+186 | |
| | | | | | | | * Generalize cache names for LOAD_ATTR to allow store and delete specializations. * Factor out specialization of attribute dictionary access. * Specialize STORE_ATTR. | |||||
* | Add option to write specialization stats to files and script to summarize. ↵ | Mark Shannon | 2021-08-04 | 1 | -12/+31 | |
| | | | | | | | (GH-27575) * Add option to write stats to random file in a directory. * Add script to summarize stats. | |||||
* | Minor fixes to specialization stats. (GH-27457) | Mark Shannon | 2021-07-29 | 1 | -5/+8 | |
| | | | | | * Use class, not value for fail stats for BINARY_SUBSCR. * Fix counts for unquickened instructions. | |||||
* | bpo-44725 : expose specialization stats in python (GH-27192) | Irit Katriel | 2021-07-29 | 1 | -0/+78 | |
| | ||||||
* | bpo-26280: Port BINARY_SUBSCR to PEP 659 adaptive interpreter (GH-27043) | Irit Katriel | 2021-07-15 | 1 | -1/+47 | |
| | ||||||
* | Add file describing how to add or modify specialized families of ↵ | Mark Shannon | 2021-07-01 | 1 | -0/+4 | |
| | | | | instructions. (GH-26954) | |||||
* | bpo-44337: Improve LOAD_ATTR specialization (GH-26759) | Mark Shannon | 2021-06-21 | 1 | -72/+176 | |
| | | | | | | | | * Specialize obj.__class__ with LOAD_ATTR_SLOT * Specialize instance attribute lookup with attribute on class, provided attribute on class is not an overriding descriptor. * Add stat for how many times the unquickened instruction has executed. | |||||
* | Add extra stats for attribute misses (GH-26732) | Mark Shannon | 2021-06-15 | 1 | -2/+85 | |
| | ||||||
* | bpo-44338: Port LOAD_GLOBAL to PEP 659 adaptive interpreter (GH-26638) | Mark Shannon | 2021-06-14 | 1 | -11/+89 | |
| | | | | | | | | | | * Add specializations of LOAD_GLOBAL. * Add more stats. * Remove old opcache; it is no longer used. * Add NEWS | |||||
* | Add more const modifiers. (GH-26691) | Serhiy Storchaka | 2021-06-12 | 1 | -1/+1 | |
| | ||||||
* | bpo-44337: Port LOAD_ATTR to PEP 659 adaptive interpreter (GH-26595) | Mark Shannon | 2021-06-10 | 1 | -2/+175 | |
| | | | | | | | | | | | | | | * Specialize LOAD_ATTR with LOAD_ATTR_SLOT and LOAD_ATTR_SPLIT_KEYS * Move dict-common.h to internal/pycore_dict.h * Add LOAD_ATTR_WITH_HINT specialized opcode. * Quicken in function if loopy * Specialize LOAD_ATTR for module attributes. * Add specialization stats | |||||
* | bpo-44187: Quickening infrastructure (GH-26264) | Mark Shannon | 2021-06-07 | 1 | -0/+197 | |
* Add co_firstinstr field to code object. * Implement barebones quickening. * Use non-quickened bytecode when tracing. * Add NEWS item * Add new file to Windows build. * Don't specialize instructions with EXTENDED_ARG. |