66#include "compile.h"
77#include "opcode.h"
88#include "internal/pycore_code.h"
9+ #include "internal/pycore_compile.h"
910#include "internal/pycore_intrinsics.h"
1011
1112/*[clinic input]
@@ -78,7 +79,7 @@ static int
7879_opcode_is_valid_impl (PyObject * module , int opcode )
7980/*[clinic end generated code: output=b0d918ea1d073f65 input=fe23e0aa194ddae0]*/
8081{
81- return PyUnstable_OpcodeIsValid (opcode );
82+ return _PyCompile_OpcodeIsValid (opcode );
8283}
8384
8485/*[clinic input]
@@ -94,8 +95,8 @@ static int
9495_opcode_has_arg_impl (PyObject * module , int opcode )
9596/*[clinic end generated code: output=7a062d3b2dcc0815 input=93d878ba6361db5f]*/
9697{
97- return PyUnstable_OpcodeIsValid (opcode ) &&
98- PyUnstable_OpcodeHasArg (opcode );
98+ return _PyCompile_OpcodeIsValid (opcode ) &&
99+ _PyCompile_OpcodeHasArg (opcode );
99100}
100101
101102/*[clinic input]
@@ -111,8 +112,8 @@ static int
111112_opcode_has_const_impl (PyObject * module , int opcode )
112113/*[clinic end generated code: output=c646d5027c634120 input=a6999e4cf13f9410]*/
113114{
114- return PyUnstable_OpcodeIsValid (opcode ) &&
115- PyUnstable_OpcodeHasConst (opcode );
115+ return _PyCompile_OpcodeIsValid (opcode ) &&
116+ _PyCompile_OpcodeHasConst (opcode );
116117}
117118
118119/*[clinic input]
@@ -128,8 +129,8 @@ static int
128129_opcode_has_name_impl (PyObject * module , int opcode )
129130/*[clinic end generated code: output=b49a83555c2fa517 input=448aa5e4bcc947ba]*/
130131{
131- return PyUnstable_OpcodeIsValid (opcode ) &&
132- PyUnstable_OpcodeHasName (opcode );
132+ return _PyCompile_OpcodeIsValid (opcode ) &&
133+ _PyCompile_OpcodeHasName (opcode );
133134}
134135
135136/*[clinic input]
@@ -145,8 +146,8 @@ static int
145146_opcode_has_jump_impl (PyObject * module , int opcode )
146147/*[clinic end generated code: output=e9c583c669f1c46a input=35f711274357a0c3]*/
147148{
148- return PyUnstable_OpcodeIsValid (opcode ) &&
149- PyUnstable_OpcodeHasJump (opcode );
149+ return _PyCompile_OpcodeIsValid (opcode ) &&
150+ _PyCompile_OpcodeHasJump (opcode );
150151
151152}
152153
@@ -168,8 +169,8 @@ static int
168169_opcode_has_free_impl (PyObject * module , int opcode )
169170/*[clinic end generated code: output=d81ae4d79af0ee26 input=117dcd5c19c1139b]*/
170171{
171- return PyUnstable_OpcodeIsValid (opcode ) &&
172- PyUnstable_OpcodeHasFree (opcode );
172+ return _PyCompile_OpcodeIsValid (opcode ) &&
173+ _PyCompile_OpcodeHasFree (opcode );
173174
174175}
175176
@@ -186,8 +187,8 @@ static int
186187_opcode_has_local_impl (PyObject * module , int opcode )
187188/*[clinic end generated code: output=da5a8616b7a5097b input=9a798ee24aaef49d]*/
188189{
189- return PyUnstable_OpcodeIsValid (opcode ) &&
190- PyUnstable_OpcodeHasLocal (opcode );
190+ return _PyCompile_OpcodeIsValid (opcode ) &&
191+ _PyCompile_OpcodeHasLocal (opcode );
191192}
192193
193194/*[clinic input]
@@ -203,8 +204,8 @@ static int
203204_opcode_has_exc_impl (PyObject * module , int opcode )
204205/*[clinic end generated code: output=41b68dff0ec82a52 input=db0e4bdb9bf13fa5]*/
205206{
206- return PyUnstable_OpcodeIsValid (opcode ) &&
207- PyUnstable_OpcodeHasExc (opcode );
207+ return _PyCompile_OpcodeIsValid (opcode ) &&
208+ _PyCompile_OpcodeHasExc (opcode );
208209}
209210
210211/*[clinic input]
@@ -309,7 +310,7 @@ _opcode_get_intrinsic1_descs_impl(PyObject *module)
309310 return NULL ;
310311 }
311312 for (int i = 0 ; i <= MAX_INTRINSIC_1 ; i ++ ) {
312- PyObject * name = PyUnstable_GetUnaryIntrinsicName (i );
313+ PyObject * name = _PyCompile_GetUnaryIntrinsicName (i );
313314 if (name == NULL ) {
314315 Py_DECREF (list );
315316 return NULL ;
@@ -336,7 +337,7 @@ _opcode_get_intrinsic2_descs_impl(PyObject *module)
336337 return NULL ;
337338 }
338339 for (int i = 0 ; i <= MAX_INTRINSIC_2 ; i ++ ) {
339- PyObject * name = PyUnstable_GetBinaryIntrinsicName (i );
340+ PyObject * name = _PyCompile_GetBinaryIntrinsicName (i );
340341 if (name == NULL ) {
341342 Py_DECREF (list );
342343 return NULL ;
0 commit comments