| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
….c) to replace MIN_INSTRUMENTED_OPCODE (defined in opcode.py)
| " (((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 a problem hiding this comment.
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.
|
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.
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.