Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(14770)

Side by Side Diff: Lib/opcode.py

Issue 11682: PEP 380 reference implementation for 3.3
Patch Set: Created 7 years, 4 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 1
2 """ 2 """
3 opcode module - potentially shared between dis and other modules which 3 opcode module - potentially shared between dis and other modules which
4 operate on bytecodes (e.g. peephole optimizers). 4 operate on bytecodes (e.g. peephole optimizers).
5 """ 5 """
6 6
7 __all__ = ["cmp_op", "hasconst", "hasname", "hasjrel", "hasjabs", 7 __all__ = ["cmp_op", "hasconst", "hasname", "hasjrel", "hasjabs",
8 "haslocal", "hascompare", "hasfree", "opname", "opmap", 8 "haslocal", "hascompare", "hasfree", "opname", "opmap",
9 "HAVE_ARGUMENT", "EXTENDED_ARG"] 9 "HAVE_ARGUMENT", "EXTENDED_ARG"]
10 10
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 def_op('BINARY_RSHIFT', 63) 80 def_op('BINARY_RSHIFT', 63)
81 def_op('BINARY_AND', 64) 81 def_op('BINARY_AND', 64)
82 def_op('BINARY_XOR', 65) 82 def_op('BINARY_XOR', 65)
83 def_op('BINARY_OR', 66) 83 def_op('BINARY_OR', 66)
84 def_op('INPLACE_POWER', 67) 84 def_op('INPLACE_POWER', 67)
85 def_op('GET_ITER', 68) 85 def_op('GET_ITER', 68)
86 def_op('STORE_LOCALS', 69) 86 def_op('STORE_LOCALS', 69)
87 87
88 def_op('PRINT_EXPR', 70) 88 def_op('PRINT_EXPR', 70)
89 def_op('LOAD_BUILD_CLASS', 71) 89 def_op('LOAD_BUILD_CLASS', 71)
90 def_op('YIELD_FROM', 72)
90 91
91 def_op('INPLACE_LSHIFT', 75) 92 def_op('INPLACE_LSHIFT', 75)
92 def_op('INPLACE_RSHIFT', 76) 93 def_op('INPLACE_RSHIFT', 76)
93 def_op('INPLACE_AND', 77) 94 def_op('INPLACE_AND', 77)
94 def_op('INPLACE_XOR', 78) 95 def_op('INPLACE_XOR', 78)
95 def_op('INPLACE_OR', 79) 96 def_op('INPLACE_OR', 79)
96 def_op('BREAK_LOOP', 80) 97 def_op('BREAK_LOOP', 80)
97 def_op('WITH_CLEANUP', 81) 98 def_op('WITH_CLEANUP', 81)
98 99
99 def_op('RETURN_VALUE', 83) 100 def_op('RETURN_VALUE', 83)
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 jrel_op('SETUP_WITH', 143) 171 jrel_op('SETUP_WITH', 143)
171 172
172 def_op('LIST_APPEND', 145) 173 def_op('LIST_APPEND', 145)
173 def_op('SET_ADD', 146) 174 def_op('SET_ADD', 146)
174 def_op('MAP_ADD', 147) 175 def_op('MAP_ADD', 147)
175 176
176 def_op('EXTENDED_ARG', 144) 177 def_op('EXTENDED_ARG', 144)
177 EXTENDED_ARG = 144 178 EXTENDED_ARG = 144
178 179
179 del def_op, name_op, jrel_op, jabs_op 180 del def_op, name_op, jrel_op, jabs_op
OLDNEW
« no previous file with comments | « Include/Python-ast.h ('k') | Lib/test/test_ast.py » ('j') | Modules/parsermodule.c » ('J')

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+