GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||
GeezerVison is showing github.com — gh-105481: add OPCODE_IS_INSTRUMENTED (generated from bytecodes.c) to replace MIN_INSTRUMENTED_OPCODE (defined in opcode.py) by iritkatriel · Pull Request #107276 · python/cpython Conversation
|
| " (((OP) >= 0) && ((OP) < OPCODE_METADATA_SIZE) && \\\n" | ||
| " (_PyOpcode_opcode_metadata[(OP)].valid_entry))" | ||
| " (_PyOpcode_opcode_metadata[(OP)].valid_entry)) || \\\n" | ||
| " ((OP) == INSTRUMENTED_LINE)" # implemented in ceval.c, not bytecodes.c |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I had to special-case INSTRUMENTED_LINE because it's implemented in ceval.c rather than bytecodes.c, so doesn't appear in the metadata. We could instead do something else like add it to the instr list after bytecode.c is parsed. I'm not sure which option is less bad.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
After speaking to @markshannon I decided not to add this metadata but to generate MIN_INSTRUMENTED_OPCODE to replicate what we have now. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.