Home
last modified time | relevance | path

Searched refs:func_code (Results 1 - 16 of 16) sorted by relevance

/third_party/python/Lib/lib2to3/tests/data/
H A Dpy2_test_grammar.py157 self.assertEquals(f2.func_code.co_varnames, ('one_argument',))
158 self.assertEquals(f3.func_code.co_varnames, ('two', 'arguments'))
160 self.assertEquals(f4.func_code.co_varnames,
163 self.assertEquals(f5.func_code.co_varnames,
166 self.assertEquals(f4.func_code.co_varnames,
168 self.assertEquals(f5.func_code.co_varnames,
204 self.assertEquals(v3.func_code.co_varnames, ('a', '(b, c)', 'rest', 'b', 'c'))
206 self.assertEquals(v3.func_code.co_varnames, ('a', '.1', 'rest', 'b', 'c'))
/third_party/python/Objects/
H A Dfuncobject.c29 op->func_code = constr->fc_code; in _PyFunction_FromConstructor()
109 op->func_code = (PyObject*)code_obj; in PyFunction_NewWithQualName()
160 return ((PyFunctionObject *) op) -> func_code; in PyFunction_GetCode()
361 Py_INCREF(op->func_code); in func_get_code()
362 return op->func_code; in func_get_code()
371 /* Not legal to del f.func_code or to set it to anything in func_set_code()
397 Py_XSETREF(op->func_code, value); in func_set_code()
696 // Don't Py_CLEAR(op->func_code), since code is always required in func_clear()
715 Py_DECREF(op->func_code); in func_dealloc()
731 Py_VISIT(f->func_code); in func_traverse()
[all...]
H A Dgenobject.c895 PyCodeObject *code = (PyCodeObject *)func->func_code; in make_gen()
902 gen->gi_code = (PyCodeObject *)func->func_code; in make_gen()
921 int coro_flags = ((PyCodeObject *)func->func_code)->co_flags & in _Py_MakeCoro()
H A Dcall.c392 if (((PyCodeObject *)f->func_code)->co_flags & CO_OPTIMIZED) { in _PyFunction_Vectorcall()
H A Dframeobject.c1011 PyCodeObject *code = (PyCodeObject *)func->func_code; in init_frame()
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
H A Dlp_bld_init.c711 void *func_code = LLVMGetPointerToGlobal(gallivm->engine, llvm_func); in gallivm_compile_module() local
712 lp_disassemble(llvm_func, func_code); in gallivm_compile_module()
724 void *func_code = LLVMGetPointerToGlobal(gallivm->engine, llvm_func); in gallivm_compile_module() local
725 lp_profile(llvm_func, func_code); in gallivm_compile_module()
/third_party/mbedtls/tests/scripts/
H A Dgenerate_test_code.py712 func_name, args, func_code, func_dispatch =\
714 suite_functions += func_code
725 func_code = (suite_helpers +
727 return suite_dependencies, dispatch_code, func_code, func_info
1127 suite_dependencies, dispatch_code, func_code, func_info = \
1129 snippets['functions_code'] = func_code
H A Dtest_generate_test_code.py1058 suite_dependencies, dispatch_code, func_code, func_info = \
1069 self.assertEqual(func_code, in_func_code)
1101 suite_dependencies, dispatch_code, func_code, func_info = \
1163 self.assertEqual(func_code, expected_func_code)
/third_party/python/Include/cpython/
H A Dfuncobject.h55 * func_closure contains the bindings for func_code->co_freevars, so
56 * PyTuple_Size(func_closure) == PyCode_GetNumFree(func_code)
57 * (func_closure may be NULL if PyCode_GetNumFree(func_code) == 0).
88 (((PyFunctionObject *)func) -> func_code)
/third_party/python/Python/
H A Dframe.c153 PyCodeObject *code = (PyCodeObject *)func->func_code; in _PyFrame_Push()
H A Dspecialize.c1224 PyCodeObject *fcode = (PyCodeObject *)func->func_code; in _Py_Specialize_BinarySubscr()
1344 PyCodeObject *code = (PyCodeObject *)func->func_code; in _Py_Specialize_StoreSubscr()
1486 PyCodeObject *code = (PyCodeObject *)func->func_code; in specialize_py_call()
H A Dceval.c2248 PyCodeObject *code = (PyCodeObject *)getitem->func_code;
4851 PyCodeObject *code = (PyCodeObject *)func->func_code;
4885 PyCodeObject *code = (PyCodeObject *)func->func_code;
6141 PyCodeObject *co = (PyCodeObject*)func->func_code;
6368 PyCodeObject * code = (PyCodeObject *)func->func_code;
/third_party/python/Lib/
H A Dinspect.py2353 func_code = func.__code__
2354 pos_count = func_code.co_argcount
2355 arg_names = func_code.co_varnames
2356 posonly_count = func_code.co_posonlyargcount
2358 keyword_only_count = func_code.co_kwonlyargcount
2394 if func_code.co_flags & CO_VARARGS:
2411 if func_code.co_flags & CO_VARKEYWORDS:
2413 if func_code.co_flags & CO_VARARGS:
/third_party/python/Include/internal/
H A Dpycore_frame.h107 frame->f_code = (PyCodeObject *)Py_NewRef(func->func_code); in _PyFrame_InitializeSpecials()
/third_party/node/test/fixtures/wpt/resources/
H A Dtestharness.js573 var func_code = func.toString();
576 var arrow = func_code.match(/^\(\)\s*=>\s*(?:{(.*)}\s*|(.*))$/);
579 if (arrow !== null && !/[\u000A\u000D\u2028\u2029]/.test(func_code)) {
/third_party/backends/sanei/
H A Dsanei_scsi.c3371 cdm.ccb_h.func_code = XPT_DEV_MATCH; in cam_compare_inquiry()
3457 cdm.ccb_h.func_code = XPT_DEV_MATCH; in sanei_scsi_find_devices()

Completed in 40 milliseconds