Home
last modified time | relevance | path

Searched refs:opmap (Results 1 – 25 of 26) sorted by relevance

12

/external/python/cpython3/Lib/test/
Dtest__opcode.py12 self.assertEqual(stack_effect(dis.opmap['POP_TOP']), -1)
13 self.assertEqual(stack_effect(dis.opmap['DUP_TOP_TWO']), 2)
14 self.assertEqual(stack_effect(dis.opmap['BUILD_SLICE'], 0), -1)
15 self.assertEqual(stack_effect(dis.opmap['BUILD_SLICE'], 1), -1)
16 self.assertEqual(stack_effect(dis.opmap['BUILD_SLICE'], 3), -2)
18 self.assertRaises(ValueError, stack_effect, dis.opmap['BUILD_SLICE'])
19 self.assertRaises(ValueError, stack_effect, dis.opmap['POP_TOP'], 0)
21 for name, code in dis.opmap.items():
30 for code in set(range(256)) - set(dis.opmap.values()):
36 JUMP_IF_TRUE_OR_POP = dis.opmap['JUMP_IF_TRUE_OR_POP']
[all …]
Dtest_richcmp.py87 opmap = { variable
99 for op in opmap[opname]:
103 for op in opmap[opname]:
118 for opname in opmap:
133 for ops in opmap.values():
152 for ops in opmap.values():
163 for op in opmap[opname]:
303 for op in opmap[opname]:
337 for op in opmap["eq"]:
350 for op in opmap["lt"]:
Dtest_dis.py494 self.assertEqual(dis.opmap["NOP"], 9)
495 self.assertIn(dis.opmap["LOAD_CONST"], dis.hasconst)
496 self.assertIn(dis.opmap["STORE_NAME"], dis.hasname)
499 self.assertEqual(dis.opname[dis.opmap["LOAD_FAST"]], "LOAD_FAST")
502 self.assertEqual(dis.opmap["EXTENDED_ARG"], dis.EXTENDED_ARG)
503 self.assertEqual(dis.opmap["STORE_NAME"], dis.HAVE_ARGUMENT)
/external/python/cpython2/Lib/test/
Dtest_dis.py106 self.assertEqual(dis.opmap["STOP_CODE"], 0)
107 self.assertIn(dis.opmap["LOAD_CONST"], dis.hasconst)
108 self.assertIn(dis.opmap["STORE_NAME"], dis.hasname)
111 self.assertEqual(dis.opname[dis.opmap["LOAD_FAST"]], "LOAD_FAST")
114 self.assertEqual(dis.opmap["EXTENDED_ARG"], dis.EXTENDED_ARG)
115 self.assertEqual(dis.opmap["STORE_NAME"], dis.HAVE_ARGUMENT)
Dtest_richcmp.py87 opmap = { variable
99 for op in opmap[opname]:
103 for op in opmap[opname]:
118 for opname in opmap:
133 for ops in opmap.itervalues():
152 for ops in opmap.itervalues():
163 for op in opmap[opname]:
279 for op in opmap[opname]:
313 for op in opmap["eq"]:
326 for op in opmap["lt"]:
/external/python/cpython3/Tools/scripts/
Dgenerate_opcode_h.py43 opmap = opcode['opmap']
47 if name in opmap:
48 fobj.write("#define %-23s %3s\n" % (name, opmap[name]))
/external/python/cpython3/Lib/lib2to3/pgen2/
Dgrammar.py184 opmap = {} variable
188 opmap[op] = getattr(token, name)
Ddriver.py67 type = grammar.opmap[value]
Dpgen.py99 itoken = grammar.opmap[value] # Fails if unknown token
/external/python/cpython2/Lib/lib2to3/pgen2/
Dgrammar.py208 opmap = {} variable
212 opmap[op] = getattr(token, name)
Ddriver.py68 type = grammar.opmap[value]
Dpgen.py99 itoken = grammar.opmap[value] # Fails if unknown token
/external/python/cpython2/Lib/
Dopcode.py22 opmap = {} variable
29 opmap[name] = op
Dmodulefinder.py18 LOAD_CONST = dis.opmap['LOAD_CONST']
19 IMPORT_NAME = dis.opmap['IMPORT_NAME']
20 STORE_NAME = dis.opmap['STORE_NAME']
21 STORE_GLOBAL = dis.opmap['STORE_GLOBAL']
/external/python/cpython3/Lib/
Dopcode.py35 opmap = {} variable
40 opmap[name] = op
Dmodulefinder.py12 LOAD_CONST = dis.opmap['LOAD_CONST']
13 IMPORT_NAME = dis.opmap['IMPORT_NAME']
14 STORE_NAME = dis.opmap['STORE_NAME']
15 STORE_GLOBAL = dis.opmap['STORE_GLOBAL']
Ddis.py19 FORMAT_VALUE = opmap['FORMAT_VALUE']
26 MAKE_FUNCTION = opmap['MAKE_FUNCTION']
/external/python/cpython3/Parser/pgen/
Dpgen.py139 self.opmap = dict(token.generate_opmap(token_lines))
141 self.opmap["<>"] = "NOTEQUAL"
258 tok_name = self.opmap[value] # Fails if unknown token
/external/python/cpython2/Python/
Dmakeopcodetargets.py25 for opname, op in opcode.opmap.items():
/external/python/cpython3/Python/
Dmakeopcodetargets.py35 for opname, op in opcode.opmap.items():
/external/python/cpython3/Lib/lib2to3/
Dpatcomp.py188 elif value in grammar.opmap:
189 return grammar.opmap[value]
Dbtm_utils.py9 tokens = grammar.opmap
/external/python/cpython2/Lib/lib2to3/
Dpatcomp.py188 elif value in grammar.opmap:
189 return grammar.opmap[value]
Dbtm_utils.py9 tokens = grammar.opmap
/external/python/cpython2/Doc/library/
Ddis.rst98 .. data:: opmap

12