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

Side by Side Diff: Lib/opcode.py

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 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
« no previous file with comments | « Lib/multiprocessing/util.py ('k') | Lib/packaging/command/register.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 25 matching lines...) Expand all
36 def_op(name, op) 36 def_op(name, op)
37 hasjrel.append(op) 37 hasjrel.append(op)
38 38
39 def jabs_op(name, op): 39 def jabs_op(name, op):
40 def_op(name, op) 40 def_op(name, op)
41 hasjabs.append(op) 41 hasjabs.append(op)
42 42
43 # Instruction opcodes for compiled code 43 # Instruction opcodes for compiled code
44 # Blank lines correspond to available opcodes 44 # Blank lines correspond to available opcodes
45 45
46 def_op('STOP_CODE', 0)
46 def_op('POP_TOP', 1) 47 def_op('POP_TOP', 1)
47 def_op('ROT_TWO', 2) 48 def_op('ROT_TWO', 2)
48 def_op('ROT_THREE', 3) 49 def_op('ROT_THREE', 3)
49 def_op('DUP_TOP', 4) 50 def_op('DUP_TOP', 4)
50 def_op('DUP_TOP_TWO', 5) 51 def_op('DUP_TOP_TWO', 5)
51 52
52 def_op('NOP', 9) 53 def_op('NOP', 9)
53 def_op('UNARY_POSITIVE', 10) 54 def_op('UNARY_POSITIVE', 10)
54 def_op('UNARY_NEGATIVE', 11) 55 def_op('UNARY_NEGATIVE', 11)
55 def_op('UNARY_NOT', 12) 56 def_op('UNARY_NOT', 12)
(...skipping 114 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 | « Lib/multiprocessing/util.py ('k') | Lib/packaging/command/register.py » ('j') | no next file with comments »

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