| LEFT | RIGHT |
| (no file at all) | |
| 1 /* Frame object implementation */ | 1 /* Frame object implementation */ |
| 2 | 2 |
| 3 #include "Python.h" | 3 #include "Python.h" |
| 4 | 4 |
| 5 #include "code.h" | 5 #include "code.h" |
| 6 #include "frameobject.h" | 6 #include "frameobject.h" |
| 7 #include "opcode.h" | 7 #include "opcode.h" |
| 8 #include "structmember.h" | 8 #include "structmember.h" |
| 9 | 9 |
| 10 #undef MIN | 10 #undef MIN |
| (...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 707 locals = globals; | 707 locals = globals; |
| 708 Py_INCREF(locals); | 708 Py_INCREF(locals); |
| 709 f->f_locals = locals; | 709 f->f_locals = locals; |
| 710 } | 710 } |
| 711 f->f_tstate = tstate; | 711 f->f_tstate = tstate; |
| 712 | 712 |
| 713 f->f_lasti = -1; | 713 f->f_lasti = -1; |
| 714 f->f_lineno = code->co_firstlineno; | 714 f->f_lineno = code->co_firstlineno; |
| 715 f->f_iblock = 0; | 715 f->f_iblock = 0; |
| 716 | 716 |
| 717 #ifdef WITH_DTRACE |
| 718 /* |
| 719 ** Cache UTF8 internally, available |
| 720 ** for the pythonframe stack walker. |
| 721 */ |
| 722 PyUnicode_AsUTF8(f->f_code->co_filename); |
| 723 PyUnicode_AsUTF8(f->f_code->co_name); |
| 724 #endif |
| 725 |
| 717 _PyObject_GC_TRACK(f); | 726 _PyObject_GC_TRACK(f); |
| 718 return f; | 727 return f; |
| 719 } | 728 } |
| 720 | 729 |
| 721 /* Block management */ | 730 /* Block management */ |
| 722 | 731 |
| 723 void | 732 void |
| 724 PyFrame_BlockSetup(PyFrameObject *f, int type, int handler, int level) | 733 PyFrame_BlockSetup(PyFrameObject *f, int type, int handler, int level) |
| 725 { | 734 { |
| 726 PyTryBlock *b; | 735 PyTryBlock *b; |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 958 | 967 |
| 959 /* Print summary info about the state of the optimized allocator */ | 968 /* Print summary info about the state of the optimized allocator */ |
| 960 void | 969 void |
| 961 _PyFrame_DebugMallocStats(FILE *out) | 970 _PyFrame_DebugMallocStats(FILE *out) |
| 962 { | 971 { |
| 963 _PyDebugAllocatorStats(out, | 972 _PyDebugAllocatorStats(out, |
| 964 "free PyFrameObject", | 973 "free PyFrameObject", |
| 965 numfree, sizeof(PyFrameObject)); | 974 numfree, sizeof(PyFrameObject)); |
| 966 } | 975 } |
| 967 | 976 |
| LEFT | RIGHT |