Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
GH-98831: Implement super-instruction generation#99084
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
55816fd0d746d279988779072291b84ee0ab5fe9faFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,9 @@ | ||
| Add new tooling, in ``Tools/cases_generator``, | ||
| to generate the interpreter switch statement from a list of opcode definitions. | ||
| This only affects adding, modifying or removing instruction definitions. | ||
| The instruction definitions now live in ``Python/bytecodes.c``, | ||
| in the form of a `custom DSL (under development) | ||
| <https://github.com/faster-cpython/ideas/blob/main/3.12/interpreter_definition.md>`__. | ||
| The tooling reads this file and writes ``Python/generated_cases.c.h``, | ||
| which is then included by ``Python/ceval.c`` to provide most of the cases | ||
| of the main interpreter switch. |
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.