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

Side by Side Diff: Lib/opcode.py

Issue 11682: PEP 380 reference implementation for 3.3
Patch Set: Created 8 years, 1 month 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 def_op('BINARY_RSHIFT', 63) 81 def_op('BINARY_RSHIFT', 63)
82 def_op('BINARY_AND', 64) 82 def_op('BINARY_AND', 64)
83 def_op('BINARY_XOR', 65) 83 def_op('BINARY_XOR', 65)
84 def_op('BINARY_OR', 66) 84 def_op('BINARY_OR', 66)
85 def_op('INPLACE_POWER', 67) 85 def_op('INPLACE_POWER', 67)
86 def_op('GET_ITER', 68) 86 def_op('GET_ITER', 68)
87 def_op('STORE_LOCALS', 69) 87 def_op('STORE_LOCALS', 69)
88 88
89 def_op('PRINT_EXPR', 70) 89 def_op('PRINT_EXPR', 70)
90 def_op('LOAD_BUILD_CLASS', 71) 90 def_op('LOAD_BUILD_CLASS', 71)
91 def_op('YIELD_FROM', 72)
91 92
92 def_op('INPLACE_LSHIFT', 75) 93 def_op('INPLACE_LSHIFT', 75)
93 def_op('INPLACE_RSHIFT', 76) 94 def_op('INPLACE_RSHIFT', 76)
94 def_op('INPLACE_AND', 77) 95 def_op('INPLACE_AND', 77)
95 def_op('INPLACE_XOR', 78) 96 def_op('INPLACE_XOR', 78)
96 def_op('INPLACE_OR', 79) 97 def_op('INPLACE_OR', 79)
97 def_op('BREAK_LOOP', 80) 98 def_op('BREAK_LOOP', 80)
98 def_op('WITH_CLEANUP', 81) 99 def_op('WITH_CLEANUP', 81)
99 100
100 def_op('RETURN_VALUE', 83) 101 def_op('RETURN_VALUE', 83)
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 jrel_op('SETUP_WITH', 143) 172 jrel_op('SETUP_WITH', 143)
172 173
173 def_op('LIST_APPEND', 145) 174 def_op('LIST_APPEND', 145)
174 def_op('SET_ADD', 146) 175 def_op('SET_ADD', 146)
175 def_op('MAP_ADD', 147) 176 def_op('MAP_ADD', 147)
176 177
177 def_op('EXTENDED_ARG', 144) 178 def_op('EXTENDED_ARG', 144)
178 EXTENDED_ARG = 144 179 EXTENDED_ARG = 144
179 180
180 del def_op, name_op, jrel_op, jabs_op 181 del def_op, name_op, jrel_op, jabs_op
OLDNEW

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