summaryrefslogtreecommitdiffstats
path: root/Tools
Commit message (Collapse)AuthorAgeFilesLines
* gh-101849: Add upgrade codes for old versions of launcher that ended up with ↵Steve Dower2023-02-132-1/+22
| | | | later version numbers (GH-101877)
* gh-89792: Limit test_tools freeze test build parallelism based on the number ↵Gregory P. Smith2023-02-121-3/+12
| | | | | of cores (#101841) unhardcode freeze test build parallelism. base it on the number of cpus, don't use more than max(2, os.cpu_count()/3).
* gh-89792: Prevent test_tools from copying 1000M of "source" in freeze test ↵Gregory P. Smith2023-02-121-1/+13
| | | | | | | | | (#101837) Prevent test_tools from copying 1000M of "source" It doesn't need a git repo, just the checkout. We skip .git metadata, Doc/build, Doc/venv, and `__pycache__` subdirs, that developers often have in their clients to reduce the size of the source tree copy ten-fold. This should significantly reduce IO and presumably time on buildbots during this long test.
* gh-101277: Finalise isolating itertools (GH-101305)Erlend E. Aasland2023-02-101-22/+0
| | | | | Add repeat, islice, chain, tee, teedataobject, and batched types to module state. Automerge-Triggered-By: GH:erlend-aasland
* gh-101726: Update the OpenSSL version to 1.1.1t (GH-101727)Gregory P. Smith2023-02-091-2/+2
| | | | Fixes CVE-2023-0286 (High) and a couple of Medium security issues. https://www.openssl.org/news/secadv/20230207.txt
* gh-98831: Use opcode metadata for stack_effect() (#101704)Guido van Rossum2023-02-091-19/+25
| | | | | | | | | | * Write output and metadata in a single run This halves the time to run the cases generator (most of the time goes into parsing the input). * Declare or define opcode metadata based on NEED_OPCODE_TABLES * Use generated metadata for stack_effect() * compile.o depends on opcode_metadata.h * Return -1 from _PyOpcode_num_popped/pushed for unknown opcode
* gh-98831: Modernize CALL and family (#101508)Guido van Rossum2023-02-081-5/+16
| | | Includes a slight improvement to `DECREF_INPUTS()`.
* gh-98831: Modernize CALL_FUNCTION_EX (#101627)Guido van Rossum2023-02-082-5/+19
| | | New generator feature: Move CHECK_EVAL_BREAKER() call to just before DISPATCH().
* gh-98831: Modernize FORMAT_VALUE (#101628)Guido van Rossum2023-02-082-5/+12
| | | Generator update: support balanced parentheses and brackets in conditions and size expressions.
* gh-98831: Finish the UNPACK_SEQUENCE family (#101666)Guido van Rossum2023-02-072-18/+26
| | | New generator feature: Generate useful glue for output arrays, so you can just write values to the output array (no bounds checking). Rewrote UNPACK_SEQUENCE_TWO_TUPLE to use this, and also UNPACK_SEQUENCE_{TUPLE,LIST}.
* gh-98831: Move DSL documentation here from ideas repo (#101629)Guido van Rossum2023-02-072-3/+415
|
* gh-101524: Split Up the _xxsubinterpreters Module (gh-101526)Eric Snow2023-02-041-0/+1
| | | | | This is step 1 in potentially dropping all the "channel"-related code. Channels have already been removed from PEP 554. https://github.com/python/cpython/issues/101524
* gh-98831: rewrite PUSH_EXC_INFO and conditional jumps in the instruction ↵Irit Katriel2023-02-011-1/+1
| | | | definition DSL (#101481)
* gh-101409: Improve generated clinic code for self type checks (#101411)Erlend E. Aasland2023-01-311-10/+12
|
* gh-98831: Clean up and add cache size static_assert to macro (#101442)Guido van Rossum2023-01-312-4/+24
|
* GH-101369: Allow macros as family members (#101399)Guido van Rossum2023-01-302-36/+93
| | | | Also check for instructions straddling families (this includes macro parts).
* GH-101291: Refactor the `PyLongObject` struct into object header and ↵Mark Shannon2023-01-301-1/+1
| | | | PyLongValue struct. (GH-101292)
* gh-98831: Support conditional effects; use for LOAD_ATTR (#101333)Guido van Rossum2023-01-303-69/+159
|
* gh-99834: Update bundled copy of Tcl/Tk to 8.6.13.0 on Windows (GH-101307)Steve Dower2023-01-261-0/+3
|
* gh-98831: Fix two bugs in case generator (#101349)Guido van Rossum2023-01-262-5/+8
| | | | | | Fix two bugs in case generator - UndefinedLocalError when generating metadata for an 'op' - Accidental newline inserted in test_generator.py
* gh-98831: rewrite RAISE_VARARGS in the instruction definition DSL (#101306)Irit Katriel2023-01-251-2/+4
|
* gh-98831: add variable stack effect support to cases generator (#101309)Irit Katriel2023-01-251-18/+60
|
* Add advice how to freeze fewer modules (#101298)Guido van Rossum2023-01-251-1/+6
| | | (And fix a bug that only occurs when you follow the advice.)
* GH-98831: Elaborate some cases_generator tests (#101299)Guido van Rossum2023-01-251-13/+41
| | | | * Make macro test more elaborate * Add test for 'register inst()'
* gh-98831: rewrite pattern matching opcodes in the instruction definition DSL ↵Irit Katriel2023-01-242-4/+18
| | | | (#101287)
* GH-91375: Purge `asyncio` static variables from globals-to-fix list (#101288)Erlend E. Aasland2023-01-241-23/+0
|
* GH-92123: Move _elementtree heap types to module state (#101187)Erlend E. Aasland2023-01-211-4/+0
|
* gh-98831: register instructions have 0 pushes and pops (#101163)Irit Katriel2023-01-191-0/+1
|
* gh-100712: make it possible to disable specialization (for debugging) (#100713)Irit Katriel2023-01-191-0/+5
|
* gh-100340: Allows -Wno-int-conversion for wasm (#100341)Kushal Das2023-01-181-0/+3
| | | Fixes #100340 allows -Wno-int-conversion for wasm
* Fix typo and old link in wasm readme (#101096)Zac Hatfield-Dodds2023-01-181-2/+2
|
* GH-98831: Implement array support in cases generator (#100912)Guido van Rossum2023-01-173-56/+303
| | | | | | | | You can now write things like this: ``` inst(BUILD_STRING, (pieces[oparg] -- str)) { ... } inst(LIST_APPEND, (list, unused[oparg-1], v -- list, unused[oparg-1])) { ... } ``` Note that array output effects are only partially supported (they must be named `unused` or correspond to an input effect).
* gh-101046: Fix a potential memory leak in the parser when raising ↵Pablo Galindo Salgado2023-01-161-1/+1
| | | | MemoryError (#101051)
* GH-100982: Add `COMPARE_AND_BRANCH` instruction (GH-100983)Mark Shannon2023-01-161-0/+2
|
* GH-98831: Identify instructions that don't use oparg (#100957)Guido van Rossum2023-01-142-3/+13
| | | | | | | For these the instr_format field uses IX instead of IB. Register instructions use IX, IB, IBBX, IBBB, etc. Also: Include the closing '}' in Block.tokens, for completeness
* Don't double count misses. (GH-100984)Mark Shannon2023-01-131-0/+3
|
* GH-100997: Implement Multi-Phase Init for the _testinternalcapi Module ↵Eric Snow2023-01-122-3/+0
| | | | | | | (gh-100998) _testinternalcapi is an internal module used for testing. https://github.com/python/cpython/issues/100997
* GH-98831: Refactor instr format code and change to enum (#100895)Guido van Rossum2023-01-091-51/+53
|
* GH-98831: Add some tests for generate_cases.py (#100763)Guido van Rossum2023-01-061-0/+310
| | | | | | - This doesn't cover everything (far from it) but it's a start. - This uses pytest, which isn't ideal, but was quickest to get started. Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* GH-98831: Update generate_cases.py: register inst, opcode_metadata.h (#100735)Guido van Rossum2023-01-052-36/+231
| | | | | | | | (These aren't used yet, but may be coming soon, and it's easier to keep this tool the same between branches.) Added a sanity check for all this to compile.c. Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
* GH-100719: Remove the `co_nplaincellvars` field from code objects. (GH-100721)Mark Shannon2023-01-041-6/+2
|
* gh-100720: refactor calculation of number of frame slots for a code object ↵Irit Katriel2023-01-041-0/+1
| | | | into the new function _PyFrame_NumSlotsForCodeObject (#100722)
* gh-89419: gdb: fix bug causing `AttributeError` in py-locals when no frame ↵Eli Schwartz2023-01-031-0/+1
| | | | is available (#100611)
* gh-100540: Remove obsolete Modules/_ctypes/darwin/ dlfcn shim (GH-100541)Zachary Ware2022-12-291-1/+0
| | | As far as I can tell, this hasn't been actually used since Mac OS X 10.2.
* gh-100540: Remove unused Modules/_ctypes/libffi_osx/ (GH-100543)Zachary Ware2022-12-282-6/+5
| | | | It was an ancient, modified copy of libffi that has not been in use since GH-22855.
* Fix copy-paste error in `Tools/clinic.py` (#100560)Nikita Sobolev2022-12-281-1/+1
|
* GH-100342: check for allocation failure in AC `*args` parsing (#100343)Kumar Aditya2022-12-281-0/+4
|
* GH-98831: Modernize a ton of simpler instructions (#100545)Guido van Rossum2022-12-281-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * load_const and load_fast aren't families for now * Don't decref unmoved names * Modernize GET_ANEXT * Modernize GET_AWAITABLE * Modernize ASYNC_GEN_WRAP * Modernize YIELD_VALUE * Modernize POP_EXCEPT (in more than one way) * Modernize PREP_RERAISE_STAR * Modernize LOAD_ASSERTION_ERROR * Modernize LOAD_BUILD_CLASS * Modernize STORE_NAME * Modernize LOAD_NAME * Modernize LOAD_CLASSDEREF * Modernize LOAD_DEREF * Modernize STORE_DEREF * Modernize COPY_FREE_VARS (mark it as done) * Modernize LIST_TO_TUPLE * Modernize LIST_EXTEND * Modernize SET_UPDATE * Modernize SETUP_ANNOTATIONS * Modernize DICT_UPDATE * Modernize DICT_MERGE * Modernize MAP_ADD * Modernize IS_OP * Modernize CONTAINS_OP * Modernize CHECK_EXC_MATCH * Modernize IMPORT_NAME * Modernize IMPORT_STAR * Modernize IMPORT_FROM * Modernize JUMP_FORWARD (mark it as done) * Modernize JUMP_BACKWARD (mark it as done)
* Remove `NoneType` redefinition from `clinic.py` (#100551)Nikita Sobolev2022-12-271-2/+0
|
* gh-100454: Start running SSL tests with OpenSSL 3.1.0-beta1 (#100456)Illia Volochii2022-12-241-4/+4
|