Home
last modified time | relevance | path

Searched refs:varnames (Results 1 – 25 of 31) sorted by relevance

12

/external/python/cpython2/Lib/test/
Dtest_new.py118 varnames = c.co_varnames
127 constants, names, varnames, filename, name,
132 constants, names, varnames, filename, name,
138 constants, names, varnames, filename, name, firstlineno, lnotab)
143 constants, names, varnames, filename, name, firstlineno, lnotab)
148 constants, (5,), varnames, filename, name, firstlineno, lnotab)
155 constants, t, varnames, filename, name,
Dtest_scope.py508 varnames = f(1).z
509 self.assertNotIn("x", varnames)
510 self.assertIn("y", varnames)
/external/python/cpython2/Lib/compiler/
Dpyassem.py280 self.varnames = list(args) or []
281 for i in range(len(self.varnames)):
282 var = self.varnames[i]
284 self.varnames[i] = var.getName()
425 self.cellvars = [name for name in self.varnames
457 return self._lookupName(arg, self.varnames)
463 self._lookupName(arg, self.varnames)
468 self._lookupName(arg, self.varnames)
483 self._lookupName(arg, self.varnames)
489 self._lookupName(arg, self.varnames)
[all …]
/external/python/cpython3/Objects/
Dcodeobject.c100 PyObject *varnames, PyObject *freevars, PyObject *cellvars, in PyCode_New() argument
113 varnames == NULL || !PyTuple_Check(varnames) || in PyCode_New()
128 intern_strings(varnames); in PyCode_New()
141 n_varnames = PyTuple_GET_SIZE(varnames); in PyCode_New()
169 PyObject *arg = PyTuple_GET_ITEM(varnames, j); in PyCode_New()
204 Py_INCREF(varnames); in PyCode_New()
205 co->co_varnames = varnames; in PyCode_New()
354 PyObject *varnames, *ourvarnames = NULL; in code_new() local
368 &PyTuple_Type, &varnames, in code_new()
398 ourvarnames = validate_and_copy_tuple(varnames); in code_new()
/external/python/cpython2/Objects/
Dcodeobject.c95 PyObject *varnames, PyObject *freevars, PyObject *cellvars, in PyCode_New() argument
105 varnames == NULL || !PyTuple_Check(varnames) || in PyCode_New()
116 intern_strings(varnames); in PyCode_New()
132 Py_INCREF(varnames); in PyCode_New()
133 co->co_varnames = varnames; in PyCode_New()
279 PyObject *varnames, *ourvarnames = NULL; in code_new() local
292 &PyTuple_Type, &varnames, in code_new()
316 ourvarnames = validate_and_copy_tuple(varnames); in code_new()
/external/python/cpython2/Lib/
Ddis.py110 def disassemble_string(code, lasti=-1, varnames=None, names=None, argument
142 if varnames:
143 print '(' + varnames[oparg] + ')',
/external/python/cpython3/Lib/
Ddis.py301 def _get_instructions_bytes(code, varnames=None, names=None, constants=None, argument
335 argval, argrepr = _get_name_info(arg, varnames)
370 def _disassemble_bytes(code, lasti=-1, varnames=None, names=None, argument
388 for instr in _get_instructions_bytes(code, varnames, names,
512 _disassemble_bytes(co.co_code, varnames=co.co_varnames,
/external/python/cpython3/Lib/test/
Dtest_scope.py497 varnames = f(1).z
498 self.assertNotIn("x", varnames)
499 self.assertIn("y", varnames)
/external/python/cpython2/Python/
Dmarshal.c1012 PyObject *varnames = NULL; in r_object() local
1036 varnames = r_object(p); in r_object()
1037 if (varnames == NULL) in r_object()
1058 code, consts, names, varnames, in r_object()
1066 Py_XDECREF(varnames); in r_object()
Dcompile.c2396 ADDOP_N(c, op, mangled, varnames); in compiler_nameop()
3811 PyObject *varnames = NULL; in makecode() local
3826 varnames = dict_keys_inorder(c->u->u_varnames, 0); in makecode()
3827 if (!consts || !names || !varnames) in makecode()
3856 bytecode, consts, names, varnames, in makecode()
3864 Py_XDECREF(varnames); in makecode()
/external/python/cpython3/Doc/c-api/
Dcode.rst36 …int flags, PyObject *code, PyObject *consts, PyObject *names, PyObject *varnames, PyObject *freeva…
/external/python/cpython2/Doc/c-api/
Dcode.rst36 …int flags, PyObject *code, PyObject *consts, PyObject *names, PyObject *varnames, PyObject *freeva…
/external/python/cpython3/Python/
Dmarshal.c1369 PyObject *varnames = NULL; in r_object() local
1408 varnames = r_object(p); in r_object()
1409 if (varnames == NULL) in r_object()
1433 code, consts, names, varnames, in r_object()
1442 Py_XDECREF(varnames); in r_object()
/external/syzkaller/vendor/golang.org/x/text/unicode/norm/
Dmaketables.go677 varnames := []string{"nfc", "nfkc"}
679 trie := triegen.NewTrie(varnames[i])
701 sz, err := trie.Gen(w, triegen.Compact(&normCompacter{name: varnames[i]}))
/external/python/cpython2/Doc/library/
Dnew.rst49 .. function:: code(argcount, nlocals, stacksize, flags, codestring, constants, names, varnames, fil…
/external/llvm/examples/Kaleidoscope/MCJIT/lazy/
Dtoy-jit.cpp190 VarExprAST(const std::vector<std::pair<std::string, ExprAST*> > &varnames, in VarExprAST() argument
192 : VarNames(varnames), Body(body) {} in VarExprAST()
Dtoy.cpp191 VarExprAST(const std::vector<std::pair<std::string, ExprAST*> > &varnames, in VarExprAST() argument
193 : VarNames(varnames), Body(body) {} in VarExprAST()
/external/swiftshader/third_party/LLVM/examples/Kaleidoscope/Chapter7/
Dtoy.cpp187 VarExprAST(const std::vector<std::pair<std::string, ExprAST*> > &varnames, in VarExprAST() argument
189 : VarNames(varnames), Body(body) {} in VarExprAST()
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/MCJIT/cached/
Dtoy-jit.cpp205 VarExprAST(const std::vector<std::pair<std::string, ExprAST*> > &varnames, in VarExprAST() argument
207 : VarNames(varnames), Body(body) {} in VarExprAST()
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/MCJIT/lazy/
Dtoy-jit.cpp190 VarExprAST(const std::vector<std::pair<std::string, ExprAST*> > &varnames, in VarExprAST() argument
192 : VarNames(varnames), Body(body) {} in VarExprAST()
Dtoy.cpp191 VarExprAST(const std::vector<std::pair<std::string, ExprAST*> > &varnames, in VarExprAST() argument
193 : VarNames(varnames), Body(body) {} in VarExprAST()
/external/llvm/examples/Kaleidoscope/MCJIT/cached/
Dtoy-jit.cpp205 VarExprAST(const std::vector<std::pair<std::string, ExprAST*> > &varnames, in VarExprAST() argument
207 : VarNames(varnames), Body(body) {} in VarExprAST()
/external/llvm/examples/Kaleidoscope/MCJIT/initial/
Dtoy.cpp189 VarExprAST(const std::vector<std::pair<std::string, ExprAST*> > &varnames, in VarExprAST() argument
191 : VarNames(varnames), Body(body) {} in VarExprAST()
/external/swiftshader/third_party/llvm-7.0/llvm/examples/Kaleidoscope/MCJIT/initial/
Dtoy.cpp189 VarExprAST(const std::vector<std::pair<std::string, ExprAST*> > &varnames, in VarExprAST() argument
191 : VarNames(varnames), Body(body) {} in VarExprAST()
/external/llvm/examples/Kaleidoscope/MCJIT/complete/
Dtoy.cpp231 VarExprAST(const std::vector<std::pair<std::string, ExprAST*> > &varnames, in VarExprAST() argument
233 : VarNames(varnames), Body(body) {} in VarExprAST()

12