Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit128e856

Browse files
committed
fix jit ci
1 parent4810510 commit128e856

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

‎Python/ceval.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,6 @@ static void monitor_throw(PyThreadState *tstate,
275275
_Py_CODEUNIT*instr);
276276

277277
staticintget_exception_handler(PyCodeObject*,int,int*,int*,int*);
278-
staticvoiddtrace_function_entry(_PyInterpreterFrame*);
279-
staticvoiddtrace_function_return(_PyInterpreterFrame*);
280278
static_PyInterpreterFrame*
281279
_PyEvalFramePushAndInit_Ex(PyThreadState*tstate,_PyStackReffunc,
282280
PyObject*locals,Py_ssize_tnargs,PyObject*callargs,PyObject*kwargs,_PyInterpreterFrame*previous);
@@ -825,6 +823,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
825823
DTRACE_FUNCTION_ENTRY();
826824
gotoresume_with_error;
827825
}
826+
828827
/* Local "register" variables.
829828
* These are cached values from the frame and code object. */
830829
_Py_CODEUNIT*next_instr;

‎Python/ceval_macros.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
* the CFG.
4242
*/
4343

44+
#include"pycore_frame.h"
45+
4446
#ifdefWITH_DTRACE
4547
#defineOR_DTRACE_LINE | (PyDTrace_LINE_ENABLED() ? 255 : 0)
4648
#else
@@ -290,6 +292,9 @@ GETITEM(PyObject *v, Py_ssize_t i) {
290292
#defineCONSTS() _PyFrame_GetCode(frame)->co_consts
291293
#defineNAMES() _PyFrame_GetCode(frame)->co_names
292294

295+
staticvoiddtrace_function_entry(_PyInterpreterFrame*);
296+
staticvoiddtrace_function_return(_PyInterpreterFrame*);
297+
293298
#defineDTRACE_FUNCTION_EXIT() \
294299
if (PyDTrace_FUNCTION_RETURN_ENABLED()) { \
295300
dtrace_function_return(frame); \

‎Tools/jit/template.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include"pycore_sliceobject.h"
1919
#include"pycore_descrobject.h"
2020
#include"pycore_stackref.h"
21+
#include"pydtrace.h"
2122

2223
#include"ceval_macros.h"
2324

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp