Searched refs:_Py_CODEUNIT (Results 1 – 8 of 8) sorted by relevance
/third_party/python/Python/ |
D | wordcode_helpers.h | 6 # define PACKOPARG(opcode, oparg) ((_Py_CODEUNIT)(((opcode) << 8) | (oparg))) 8 # define PACKOPARG(opcode, oparg) ((_Py_CODEUNIT)(((oparg) << 8) | (opcode))) 25 write_op_arg(_Py_CODEUNIT *codestr, unsigned char opcode, in write_op_arg()
|
D | ceval.c | 92 PyFrameObject *, const _Py_CODEUNIT *); 1334 _Py_CODEUNIT word = *next_instr; \ 1375 _Py_CODEUNIT word = *next_instr; \ 1590 const _Py_CODEUNIT *next_instr; in _PyEval_EvalFrameDefault() 1598 const _Py_CODEUNIT *first_instr; in _PyEval_EvalFrameDefault() 1673 assert(PyBytes_GET_SIZE(co->co_code) % sizeof(_Py_CODEUNIT) == 0); in _PyEval_EvalFrameDefault() 1674 assert(_Py_IS_ALIGNED(PyBytes_AS_STRING(co->co_code), sizeof(_Py_CODEUNIT))); in _PyEval_EvalFrameDefault() 1675 first_instr = (_Py_CODEUNIT *) PyBytes_AS_STRING(co->co_code); in _PyEval_EvalFrameDefault() 1711 PyBytes_Size(co->co_code) / sizeof(_Py_CODEUNIT) + in _PyEval_EvalFrameDefault() 5464 …frame->f_lineno = _PyCode_CheckLineNumber(frame->f_lasti*sizeof(_Py_CODEUNIT), &trace_info->bounds… in call_trace() [all …]
|
D | traceback.c | 237 return tb_create_raw((PyTracebackObject *)tb_next, frame, frame->f_lasti*sizeof(_Py_CODEUNIT), in _PyTraceBack_FromFrame()
|
D | compile.c | 6624 bdelta = (a->a_offset - a->a_lineno_start) * sizeof(_Py_CODEUNIT); in assemble_line_range() 6686 _Py_CODEUNIT *code; in assemble_emit() 6692 if (a->a_offset + size >= len / (int)sizeof(_Py_CODEUNIT)) { in assemble_emit() 6698 code = (_Py_CODEUNIT *)PyBytes_AS_STRING(a->a_bytecode) + a->a_offset; in assemble_emit() 7159 if (_PyBytes_Resize(&a.a_bytecode, a.a_offset * sizeof(_Py_CODEUNIT)) < 0) { in assemble()
|
/third_party/python/Objects/ |
D | frameobject.c | 49 return PyCode_Addr2Line(f->f_code, f->f_lasti*sizeof(_Py_CODEUNIT)); in PyFrame_GetLineNumber() 71 return PyLong_FromLong(f->f_lasti*sizeof(_Py_CODEUNIT)); in frame_getlasti() 78 get_arg(const _Py_CODEUNIT *codestr, Py_ssize_t i) in get_arg() 80 _Py_CODEUNIT word; in get_arg() 126 const _Py_CODEUNIT *code = in markblocks() 127 (const _Py_CODEUNIT *)PyBytes_AS_STRING(code_obj->co_code); in markblocks() 278 assert(bounds.ar_start/(int)sizeof(_Py_CODEUNIT) < len); in marklines() 279 linestarts[bounds.ar_start/sizeof(_Py_CODEUNIT)] = bounds.ar_line; in marklines() 416 int len = (int)(PyBytes_GET_SIZE(f->f_code->co_code) / sizeof(_Py_CODEUNIT)); in frame_setlineno()
|
D | codeobject.c | 291 Py_ssize_t co_size = PyBytes_Size(co->co_code) / sizeof(_Py_CODEUNIT); in _PyCode_InitOpcache() 297 const _Py_CODEUNIT *opcodes = (_Py_CODEUNIT*)PyBytes_AS_STRING(co->co_code); in _PyCode_InitOpcache() 691 res += PyBytes_GET_SIZE(co->co_code) / sizeof(_Py_CODEUNIT); in code_sizeof()
|
D | genobject.c | 358 if (code[(f->f_lasti+1)*sizeof(_Py_CODEUNIT)] != YIELD_FROM) in _PyGen_yf()
|
/third_party/python/Include/cpython/ |
D | code.h | 5 typedef uint16_t _Py_CODEUNIT; typedef
|