mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
gh-87092: Expose assembler to unit tests (#103988)
This commit is contained in:
parent
a474e04388
commit
80b714835d
11 changed files with 329 additions and 48 deletions
|
@ -223,6 +223,15 @@ dump_basicblock(const basicblock *b)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
_PyCfgBuilder_DumpGraph(const basicblock *entryblock)
|
||||
{
|
||||
for (const basicblock *b = entryblock; b != NULL; b = b->b_next) {
|
||||
dump_basicblock(b);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -592,6 +601,11 @@ translate_jump_labels_to_targets(basicblock *entryblock)
|
|||
return SUCCESS;
|
||||
}
|
||||
|
||||
int
|
||||
_PyCfg_JumpLabelsToTargets(basicblock *entryblock)
|
||||
{
|
||||
return translate_jump_labels_to_targets(entryblock);
|
||||
}
|
||||
|
||||
static int
|
||||
mark_except_handlers(basicblock *entryblock) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue