Home
last modified time | relevance | path

Searched refs:co_code (Results 1 – 25 of 33) sorted by relevance

12

/external/python/cpython2/Include/
Dcode.h16 PyObject *co_code; /* instruction opcodes */ member
87 ((*Py_TYPE((co)->co_code)->tp_as_buffer->bf_getreadbuffer) \
88 ((co)->co_code, 0, (void **)(pp)))
/external/python/setuptools/setuptools/
Dpy33compat.py24 bytes = array.array('b', self.code.co_code)
25 eof = len(self.code.co_code)
/external/python/cpython2/Objects/
Dcodeobject.c127 co->co_code = code; in PyCode_New()
205 {"co_code", T_OBJECT, OFF(co_code), READONLY},
347 Py_XDECREF(co->co_code); in code_dealloc()
397 cmp = PyObject_Compare(co->co_code, cp->co_code); in code_compare()
582 eq = PyObject_RichCompareBool(co->co_code, cp->co_code, Py_EQ); in code_richcompare()
633 h1 = PyObject_Hash(co->co_code); in code_hash()
Dframeobject.c199 PyString_AsStringAndSize(f->f_code->co_code, (char **)&code, &code_len); in frame_setlineno()
/external/python/cpython3/Objects/
Dcodeobject.c199 co->co_code = code; in PyCode_New()
280 {"co_code", T_OBJECT, OFF(co_code), READONLY},
445 Py_XDECREF(co->co_code); in code_dealloc()
650 eq = PyObject_RichCompareBool(co->co_code, cp->co_code, Py_EQ); in code_richcompare()
701 h1 = PyObject_Hash(co->co_code); in code_hash()
Dframeobject.c187 PyBytes_AsStringAndSize(f->f_code->co_code, (char **)&code, &code_len); in frame_setlineno()
Dgenobject.c336 PyObject *bytecode = f->f_code->co_code; in _PyGen_yf()
/external/python/cpython3/Lib/
Ddis.py269 return _get_instructions_bytes(co.co_code, co.co_varnames, co.co_names,
356 _disassemble_bytes(co.co_code, lasti, co.co_varnames, co.co_names,
484 return _get_instructions_bytes(co.co_code, co.co_varnames, co.co_names,
512 _disassemble_bytes(co.co_code, varnames=co.co_varnames,
Dmodulefinder.py341 code = co.co_code
361 code = co.co_code
564 co.co_code, tuple(consts), co.co_names,
Dtypes.py262 co.co_code,
/external/python/cpython2/Lib/
Dmodulefinder.py363 code = co.co_code
380 code = co.co_code
402 code = co.co_code
610 co.co_flags, co.co_code, tuple(consts), co.co_names,
Dinspect.py769 while step < len(co.co_code):
770 op = ord(co.co_code[step])
774 value = ord(co.co_code[step]) + ord(co.co_code[step+1])*256
Ddis.py63 code = co.co_code
/external/libchrome/third_party/jinja2/
Ddebug.py273 code.co_flags, code.co_code, code.co_consts,
280 code.co_flags, code.co_code, code.co_consts,
/external/python/cpython3/Include/
Dcode.h29 PyObject *co_code; /* instruction opcodes */ member
/external/python/cpython2/Lib/test/
Dtest_new.py115 codestring = c.co_code
Dtest_compile.py600 max_size = math.ceil(math.log(len(code.co_code)))
Dtest_import.py506 code.co_flags, code.co_code, tuple(constants),
/external/python/cpython3/Lib/test/
Dtest_code.py161 c.co_stacksize, c.co_flags, c.co_code, c.co_consts, c.co_names,
Dtest_dis.py527 self.do_disassembly_test(_f.__code__.co_code, dis_f_co_code)
536 method_bytecode = _C(1).__init__.__code__.co_code
Dtest_compile.py704 max_size = math.ceil(math.log(len(code.co_code)))
/external/python/cpython3/Python/
Dceval.c882 assert(PyBytes_Check(co->co_code)); in _PyEval_EvalFrameDefault()
883 assert(PyBytes_GET_SIZE(co->co_code) <= INT_MAX); 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()
886 first_instr = (_Py_CODEUNIT *) PyBytes_AS_STRING(co->co_code); in _PyEval_EvalFrameDefault()
Dmarshal.c556 w_object(co->co_code, p); in w_complex_object()
/external/python/cpython2/Python/
Dmarshal.c435 w_object(co->co_code, p); in w_object()
/external/python/cpython3/Lib/test/test_import/
D__init__.py610 code.co_flags, code.co_code, tuple(constants),

12