33#include "Python.h"
44#include "pycore_code.h" // write_location_entry_start()
55#include "pycore_compile.h"
6+ #include "pycore_instruction_sequence.h"
67#include "pycore_opcode_utils.h" // IS_BACKWARDS_JUMP_OPCODE
78#include "pycore_opcode_metadata.h" // is_pseudo_target, _PyOpcode_Caches
89#include "pycore_symtable.h" // _Py_SourceLocation
2324 }
2425
2526typedef _Py_SourceLocation location ;
26- typedef _PyCompile_Instruction instruction ;
27- typedef _PyCompile_InstructionSequence instr_sequence ;
27+ typedef _PyInstruction instruction ;
28+ typedef _PyInstructionSequence instr_sequence ;
2829
2930static inline bool
3031same_location (location a , location b )
@@ -132,7 +133,7 @@ assemble_emit_exception_table_item(struct assembler *a, int value, int msb)
132133static int
133134assemble_emit_exception_table_entry (struct assembler * a , int start , int end ,
134135 int handler_offset ,
135- _PyCompile_ExceptHandlerInfo * handler )
136+ _PyExceptHandlerInfo * handler )
136137{
137138 Py_ssize_t len = PyBytes_GET_SIZE (a -> a_except_table );
138139 if (a -> a_except_table_off + MAX_SIZE_OF_ENTRY >= len ) {
@@ -158,7 +159,7 @@ static int
158159assemble_exception_table (struct assembler * a , instr_sequence * instrs )
159160{
160161 int ioffset = 0 ;
161- _PyCompile_ExceptHandlerInfo handler ;
162+ _PyExceptHandlerInfo handler ;
162163 handler .h_label = -1 ;
163164 handler .h_startdepth = -1 ;
164165 handler .h_preserve_lasti = -1 ;
@@ -736,8 +737,7 @@ _PyAssemble_MakeCodeObject(_PyCompile_CodeUnitMetadata *umd, PyObject *const_cac
736737 PyObject * consts , int maxdepth , instr_sequence * instrs ,
737738 int nlocalsplus , int code_flags , PyObject * filename )
738739{
739-
740- if (_PyCompile_InstructionSequence_ApplyLabelMap (instrs ) < 0 ) {
740+ if (_PyInstructionSequence_ApplyLabelMap (instrs ) < 0 ) {
741741 return NULL ;
742742 }
743743 if (resolve_unconditional_jumps (instrs ) < 0 ) {
0 commit comments