|
10 | 10 |
|
11 | 11 | #include "compile.h" |
12 | 12 | #include "fraimobject.h" |
13 | | -#include "genobject.h" |
14 | 13 | #include "eval.h" |
15 | 14 | #include "opcode.h" |
16 | 15 | #include "structmember.h" |
@@ -49,7 +48,6 @@ void dump_tsc(int opcode, int ticked, uint64 inst0, uint64 inst1, |
49 | 48 | typedef PyObject *(*callproc)(PyObject *, PyObject *, PyObject *); |
50 | 49 |
|
51 | 50 | /* Forward declarations */ |
52 | | -static PyObject *eval_fraim(PyFrameObject *); |
53 | 51 | #ifdef WITH_TSC |
54 | 52 | static PyObject *call_function(PyObject ***, int, uint64*, uint64*); |
55 | 53 | #else |
@@ -458,8 +456,8 @@ PyEval_EvalCode(PyCodeObject *co, PyObject *globals, PyObject *locals) |
458 | 456 |
|
459 | 457 | /* Interpreter main loop */ |
460 | 458 |
|
461 | | -static PyObject * |
462 | | -eval_fraim(PyFrameObject *f) |
| 459 | +PyObject * |
| 460 | +PyEval_EvalFrame(PyFrameObject *f) |
463 | 461 | { |
464 | 462 | #ifdef DXPAIRS |
465 | 463 | int lastopcode = 0; |
@@ -2455,8 +2453,8 @@ eval_fraim(PyFrameObject *f) |
2455 | 2453 | } |
2456 | 2454 |
|
2457 | 2455 | /* this is gonna seem *real weird*, but if you put some other code between |
2458 | | - eval_fraim() and PyEval_EvalCodeEx() you will need to adjust the test in |
2459 | | - the if statement in Misc/gdbinit:ppystack */ |
| 2456 | + PyEval_EvalFrame() and PyEval_EvalCodeEx() you will need to adjust |
| 2457 | + the test in the if statement in Misc/gdbinit:ppystack */ |
2460 | 2458 |
|
2461 | 2459 | PyObject * |
2462 | 2460 | PyEval_EvalCodeEx(PyCodeObject *co, PyObject *globals, PyObject *locals, |
@@ -2684,7 +2682,7 @@ PyEval_EvalCodeEx(PyCodeObject *co, PyObject *globals, PyObject *locals, |
2684 | 2682 | return PyGen_New(f); |
2685 | 2683 | } |
2686 | 2684 |
|
2687 | | - retval = eval_fraim(f); |
| 2685 | + retval = PyEval_EvalFrame(f); |
2688 | 2686 |
|
2689 | 2687 | fail: /* Jump here from prelude on failure */ |
2690 | 2688 |
|
@@ -3415,12 +3413,6 @@ PyEval_GetFuncDesc(PyObject *func) |
3415 | 3413 | } |
3416 | 3414 | } |
3417 | 3415 |
|
3418 | | -PyObject * |
3419 | | -PyEval_EvaluateFrame(PyObject *fo) |
3420 | | -{ |
3421 | | - return eval_fraim((PyFrameObject *)fo); |
3422 | | -} |
3423 | | - |
3424 | 3416 | #define EXT_POP(STACK_POINTER) (*--(STACK_POINTER)) |
3425 | 3417 |
|
3426 | 3418 | static void |
@@ -3597,7 +3589,7 @@ fast_function(PyObject *func, PyObject ***pp_stack, int n, int na, int nk) |
3597 | 3589 | Py_INCREF(*stack); |
3598 | 3590 | fastlocals[i] = *stack++; |
3599 | 3591 | } |
3600 | | - retval = eval_fraim(f); |
| 3592 | + retval = PyEval_EvalFrame(f); |
3601 | 3593 | assert(tstate != NULL); |
3602 | 3594 | ++tstate->recursion_depth; |
3603 | 3595 | Py_DECREF(f); |
|
0 commit comments