Home
last modified time | relevance | path

Searched refs:_Py_CODEUNIT (Results 1 – 7 of 7) sorted by relevance

/external/python/cpython3/Python/
Dpeephole.c20 #define GETJUMPTGT(arr, i) (get_arg(arr, i) / sizeof(_Py_CODEUNIT) + \
31 lastn_const_start(const _Py_CODEUNIT *codestr, Py_ssize_t i, Py_ssize_t n) in lastn_const_start()
53 find_op(const _Py_CODEUNIT *codestr, Py_ssize_t codelen, Py_ssize_t i) in find_op()
64 get_arg(const _Py_CODEUNIT *codestr, Py_ssize_t i) in get_arg()
66 _Py_CODEUNIT word; in get_arg()
82 fill_nops(_Py_CODEUNIT *codestr, Py_ssize_t start, Py_ssize_t end) in fill_nops()
84 memset(codestr + start, NOP, (end - start) * sizeof(_Py_CODEUNIT)); in fill_nops()
91 set_arg(_Py_CODEUNIT *codestr, Py_ssize_t i, unsigned int oparg) in set_arg()
112 copy_op_arg(_Py_CODEUNIT *codestr, Py_ssize_t i, unsigned char op, in copy_op_arg()
131 fold_tuple_on_constants(_Py_CODEUNIT *codestr, Py_ssize_t codelen, in fold_tuple_on_constants()
[all …]
Dwordcode_helpers.h6 # 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()
Dceval.c68 PyFrameObject *, const _Py_CODEUNIT *);
557 const _Py_CODEUNIT *next_instr; in _PyEval_EvalFrameDefault()
575 const _Py_CODEUNIT *first_instr; in _PyEval_EvalFrameDefault()
698 (sizeof(_Py_CODEUNIT) * (int)(next_instr - first_instr)) in _PyEval_EvalFrameDefault()
700 _Py_CODEUNIT word = *next_instr; \ in _PyEval_EvalFrameDefault()
705 #define JUMPTO(x) (next_instr = first_instr + (x) / sizeof(_Py_CODEUNIT)) in _PyEval_EvalFrameDefault()
706 #define JUMPBY(x) (next_instr += (x) / sizeof(_Py_CODEUNIT)) in _PyEval_EvalFrameDefault()
739 _Py_CODEUNIT word = *next_instr; \ in _PyEval_EvalFrameDefault()
884 assert(PyBytes_GET_SIZE(co->co_code) % sizeof(_Py_CODEUNIT) == 0); in _PyEval_EvalFrameDefault()
885 assert(_Py_IS_ALIGNED(PyBytes_AS_STRING(co->co_code), sizeof(_Py_CODEUNIT))); in _PyEval_EvalFrameDefault()
[all …]
Dcompile.c5134 d_bytecode = (a->a_offset - a->a_lineno_off) * sizeof(_Py_CODEUNIT); in assemble_lnotab()
5241 _Py_CODEUNIT *code; in assemble_emit()
5247 if (a->a_offset + size >= len / (int)sizeof(_Py_CODEUNIT)) { in assemble_emit()
5253 code = (_Py_CODEUNIT *)PyBytes_AS_STRING(a->a_bytecode) + a->a_offset; in assemble_emit()
5292 instr->i_oparg *= sizeof(_Py_CODEUNIT); in assemble_jump_offsets()
5529 if (_PyBytes_Resize(&a.a_bytecode, a.a_offset * sizeof(_Py_CODEUNIT)) < 0) in assemble()
/external/python/cpython3/Include/
Dcode.h10 typedef uint16_t _Py_CODEUNIT; typedef
/external/python/cpython3/Objects/
Dframeobject.c231 for (addr = 0; addr < code_len; addr += sizeof(_Py_CODEUNIT)) { in frame_setlineno()
315 for (addr = min_addr; addr < max_addr; addr += sizeof(_Py_CODEUNIT)) { in frame_setlineno()
Dgenobject.c347 if (code[f->f_lasti + sizeof(_Py_CODEUNIT)] != YIELD_FROM) in _PyGen_yf()
454 gen->gi_frame->f_lasti += sizeof(_Py_CODEUNIT); in _gen_throw()