Home
last modified time | relevance | path

Searched refs:co_code (Results 1 – 25 of 34) 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/cpython3/Objects/clinic/
Dcodeobject.c.h23 int co_firstlineno, PyBytesObject *co_code,
44 PyBytesObject *co_code = (PyBytesObject *)self->co_code; in code_replace() local
164 co_code = (PyBytesObject *)args[7]; in code_replace()
251 …, co_kwonlyargcount, co_nlocals, co_stacksize, co_flags, co_firstlineno, co_code, co_consts, co_na… in code_replace()
/external/python/setuptools/setuptools/
Dpy33compat.py24 bytes = array.array('b', self.code.co_code)
25 eof = len(self.code.co_code)
/external/python/cpython3/Objects/
Dcodeobject.c236 co->co_code = code; in PyCode_NewWithPosOnlyArgs()
283 Py_ssize_t co_size = PyBytes_Size(co->co_code) / sizeof(_Py_CODEUNIT); in _PyCode_InitOpcache()
289 _Py_CODEUNIT *opcodes = (_Py_CODEUNIT*)PyBytes_AS_STRING(co->co_code); in _PyCode_InitOpcache()
382 {"co_code", T_OBJECT, OFF(co_code), READONLY},
572 Py_XDECREF(co->co_code); in code_dealloc()
606 res += PyBytes_GET_SIZE(co->co_code) / sizeof(_Py_CODEUNIT); in code_sizeof()
641 int co_firstlineno, PyBytesObject *co_code, in code_replace_impl() argument
666 co_code, co_filename, co_name, co_argcount, in code_replace_impl()
674 co_stacksize, co_flags, (PyObject*)co_code, co_consts, co_names, in code_replace_impl()
859 eq = PyObject_RichCompareBool(co->co_code, cp->co_code, Py_EQ); in code_richcompare()
[all …]
Dframeobject.c105 (const _Py_CODEUNIT *)PyBytes_AS_STRING(code_obj->co_code); in markblocks()
400 int len = PyBytes_GET_SIZE(f->f_code->co_code)/sizeof(_Py_CODEUNIT); in frame_setlineno()
Dgenobject.c330 PyObject *bytecode = f->f_code->co_code; in _PyGen_yf()
/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/Lib/
Ddis.py279 return _get_instructions_bytes(co.co_code, co.co_varnames, co.co_names,
369 _disassemble_bytes(co.co_code, lasti, co.co_varnames, co.co_names,
457 bytecode_len = len(code.co_code)
502 return _get_instructions_bytes(co.co_code, co.co_varnames, co.co_names,
530 _disassemble_bytes(co.co_code, varnames=co.co_varnames,
Dmodulefinder.py397 code = co.co_code
417 code = co.co_code
/external/tensorflow/tensorflow/python/platform/
Dbenchmark.py62 func_code.co_code, func_code.co_consts,
73 func_code.co_code, func_code.co_consts,
81 func_code.co_code, func_code.co_consts,
/external/python/cpython3/Include/cpython/
Dcode.h27 PyObject *co_code; /* instruction opcodes */ member
/external/python/cpython3/Lib/test/
Dtest_code.py222 co.co_code,
253 ("co_code", code2.co_code),
Dtest_peepholer.py52 self.assertLess(max_bytecode, len(code.co_code))
Dtest_dis.py590 self.do_disassembly_test(_f.__code__.co_code, dis_f_co_code)
599 method_bytecode = _C(1).__init__.__code__.co_code
Dtest_compile.py774 max_size = math.ceil(math.log(len(code.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/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/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/Python/
Dceval.c1303 assert(PyBytes_Check(co->co_code)); in _PyEval_EvalFrameDefault()
1304 assert(PyBytes_GET_SIZE(co->co_code) <= INT_MAX); in _PyEval_EvalFrameDefault()
1305 assert(PyBytes_GET_SIZE(co->co_code) % sizeof(_Py_CODEUNIT) == 0); in _PyEval_EvalFrameDefault()
1306 assert(_Py_IS_ALIGNED(PyBytes_AS_STRING(co->co_code), sizeof(_Py_CODEUNIT))); in _PyEval_EvalFrameDefault()
1307 first_instr = (_Py_CODEUNIT *) PyBytes_AS_STRING(co->co_code); in _PyEval_EvalFrameDefault()
1342 PyBytes_Size(co->co_code) / sizeof(_Py_CODEUNIT) + in _PyEval_EvalFrameDefault()
/external/python/cpython2/Python/
Dmarshal.c435 w_object(co->co_code, p); in w_object()

12