HomeSort by relevance Sort by last modified time
    Searched refs:codestr (Results 1 - 25 of 26) sorted by null

1 2

  /external/python/cpython3/Python/
wordcode_helpers.h 22 /* Spits out op/oparg pair using ilen bytes. codestr should be pointed at the
25 write_op_arg(_Py_CODEUNIT *codestr, unsigned char opcode,
30 *codestr++ = PACKOPARG(EXTENDED_ARG, (oparg >> 24) & 0xff);
32 *codestr++ = PACKOPARG(EXTENDED_ARG, (oparg >> 16) & 0xff);
34 *codestr++ = PACKOPARG(EXTENDED_ARG, (oparg >> 8) & 0xff);
36 *codestr++ = PACKOPARG(opcode, oparg & 0xff);
peephole.c 44 assert(_Py_OPCODE(codestr[i]) == LOAD_CONST); \
45 assert(PyList_GET_SIZE(consts) > (Py_ssize_t)get_arg(codestr, i)); \
46 _x = PyList_GET_ITEM(consts, get_arg(codestr, i)); \
76 lastn_const_start(const _Py_CODEUNIT *codestr, Py_ssize_t i, Py_ssize_t n)
82 if (_Py_OPCODE(codestr[i]) == LOAD_CONST) {
84 while (i > 0 && _Py_OPCODE(codestr[i-1]) == EXTENDED_ARG) {
91 assert(_Py_OPCODE(codestr[i]) == NOP ||
92 _Py_OPCODE(codestr[i]) == EXTENDED_ARG);
99 find_op(const _Py_CODEUNIT *codestr, Py_ssize_t i)
101 while (_Py_OPCODE(codestr[i]) == EXTENDED_ARG)
431 _Py_CODEUNIT *codestr = NULL; local
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
peephole.c 32 Called with codestr pointing to the first LOAD_CONST.
37 tuple_of_constants(unsigned char *codestr, Py_ssize_t n, PyObject *consts)
44 assert(codestr[n*3] == BUILD_TUPLE || codestr[n*3] == BUILD_LIST);
45 assert(GETARG(codestr, (n*3)) == n);
47 assert(codestr[i*3] == LOAD_CONST);
55 arg = GETARG(codestr, (i*3));
71 memset(codestr, NOP, n*3);
72 codestr[n*3] = LOAD_CONST;
73 SETARG(codestr, (n*3), len_consts);
305 unsigned char *codestr = NULL; local
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
peephole.c 32 Called with codestr pointing to the first LOAD_CONST.
37 tuple_of_constants(unsigned char *codestr, Py_ssize_t n, PyObject *consts)
44 assert(codestr[n*3] == BUILD_TUPLE || codestr[n*3] == BUILD_LIST);
45 assert(GETARG(codestr, (n*3)) == n);
47 assert(codestr[i*3] == LOAD_CONST);
55 arg = GETARG(codestr, (i*3));
71 memset(codestr, NOP, n*3);
72 codestr[n*3] = LOAD_CONST;
73 SETARG(codestr, (n*3), len_consts);
316 unsigned char *codestr = NULL; local
    [all...]
  /external/python/cpython2/Python/
peephole.c 32 Called with codestr pointing to the first LOAD_CONST.
37 tuple_of_constants(unsigned char *codestr, Py_ssize_t n, PyObject *consts)
44 assert(codestr[n*3] == BUILD_TUPLE || codestr[n*3] == BUILD_LIST);
45 assert(GETARG(codestr, (n*3)) == n);
47 assert(codestr[i*3] == LOAD_CONST);
55 arg = GETARG(codestr, (i*3));
71 memset(codestr, NOP, n*3);
72 codestr[n*3] = LOAD_CONST;
73 SETARG(codestr, (n*3), len_consts)
305 unsigned char *codestr = NULL; local
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
test_new.py 65 codestr = '''
72 codestr = "\n".join(l.strip() for l in codestr.splitlines())
74 ccode = compile(codestr, '<string>', 'exec')
test_decorators.py 161 codestr = "@%s\ndef f(): pass" % expr
162 self.assertRaises(SyntaxError, compile, codestr, "test", "exec")
179 codestr = "@%s\ndef f(): pass\nassert f() is None" % expr
180 code = compile(codestr, "test", "exec")
test_with.py 135 def assertRaisesSyntaxError(self, codestr):
138 self.assertRaises(SyntaxError, shouldRaiseSyntaxError, codestr)
  /external/python/cpython2/Lib/test/
test_new.py 65 codestr = '''
72 codestr = "\n".join(l.strip() for l in codestr.splitlines())
74 ccode = compile(codestr, '<string>', 'exec')
test_decorators.py 161 codestr = "@%s\ndef f(): pass" % expr
162 self.assertRaises(SyntaxError, compile, codestr, "test", "exec")
179 codestr = "@%s\ndef f(): pass\nassert f() is None" % expr
180 code = compile(codestr, "test", "exec")
test_with.py 133 def assertRaisesSyntaxError(self, codestr):
136 self.assertRaises(SyntaxError, shouldRaiseSyntaxError, codestr)
  /prebuilts/gdb/darwin-x86/lib/python2.7/test/
test_new.py 65 codestr = '''
72 codestr = "\n".join(l.strip() for l in codestr.splitlines())
74 ccode = compile(codestr, '<string>', 'exec')
test_decorators.py 161 codestr = "@%s\ndef f(): pass" % expr
162 self.assertRaises(SyntaxError, compile, codestr, "test", "exec")
179 codestr = "@%s\ndef f(): pass\nassert f() is None" % expr
180 code = compile(codestr, "test", "exec")
test_with.py 135 def assertRaisesSyntaxError(self, codestr):
138 self.assertRaises(SyntaxError, shouldRaiseSyntaxError, codestr)
  /prebuilts/gdb/linux-x86/lib/python2.7/test/
test_new.py 65 codestr = '''
72 codestr = "\n".join(l.strip() for l in codestr.splitlines())
74 ccode = compile(codestr, '<string>', 'exec')
test_decorators.py 161 codestr = "@%s\ndef f(): pass" % expr
162 self.assertRaises(SyntaxError, compile, codestr, "test", "exec")
179 codestr = "@%s\ndef f(): pass\nassert f() is None" % expr
180 code = compile(codestr, "test", "exec")
test_with.py 135 def assertRaisesSyntaxError(self, codestr):
138 self.assertRaises(SyntaxError, shouldRaiseSyntaxError, codestr)
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_new.py 65 codestr = '''
72 codestr = "\n".join(l.strip() for l in codestr.splitlines())
74 ccode = compile(codestr, '<string>', 'exec')
test_decorators.py 161 codestr = "@%s\ndef f(): pass" % expr
162 self.assertRaises(SyntaxError, compile, codestr, "test", "exec")
179 codestr = "@%s\ndef f(): pass\nassert f() is None" % expr
180 code = compile(codestr, "test", "exec")
test_with.py 135 def assertRaisesSyntaxError(self, codestr):
138 self.assertRaises(SyntaxError, shouldRaiseSyntaxError, codestr)
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_new.py 65 codestr = '''
72 codestr = "\n".join(l.strip() for l in codestr.splitlines())
74 ccode = compile(codestr, '<string>', 'exec')
test_decorators.py 161 codestr = "@%s\ndef f(): pass" % expr
162 self.assertRaises(SyntaxError, compile, codestr, "test", "exec")
179 codestr = "@%s\ndef f(): pass\nassert f() is None" % expr
180 code = compile(codestr, "test", "exec")
  /external/python/cpython3/Lib/test/
test_decorators.py 160 codestr = "@%s\ndef f(): pass" % expr
161 self.assertRaises(SyntaxError, compile, codestr, "test", "exec")
178 codestr = "@%s\ndef f(): pass\nassert f() is None" % expr
179 code = compile(codestr, "test", "exec")
test_keywordonlyarg.py 38 def assertRaisesSyntaxError(self, codestr):
41 self.assertRaises(SyntaxError, shouldRaiseSyntaxError, codestr)
test_with.py 141 def assertRaisesSyntaxError(self, codestr):
144 self.assertRaises(SyntaxError, shouldRaiseSyntaxError, codestr)

Completed in 915 milliseconds

1 2