]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-98831: Use opcode metadata for stack_effect() (#101704)
authorGuido van Rossum <guido@python.org>
Thu, 9 Feb 2023 00:23:19 +0000 (16:23 -0800)
committerGitHub <noreply@github.com>
Thu, 9 Feb 2023 00:23:19 +0000 (16:23 -0800)
commit65b7b6bd23ea789357777f3a0a6f25a79bb04177
treec7b79edb1ff56ab27034ca1d70ad2516cce65ad1
parent0e0c5d8baaa6aa91f4221c5aa57d5586e58e8652
gh-98831: Use opcode metadata for stack_effect() (#101704)

* 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
Makefile.pre.in
Python/compile.c
Python/opcode_metadata.h
Tools/cases_generator/generate_cases.py