Source

hotpy_2 / Include / trace_opcode.h

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
/* Opcode 0 unused */
/* Non-trace opcode POP_TOP = 1 */
/* Non-trace opcode ROT_TWO = 2 */
/* Non-trace opcode ROT_THREE = 3 */
/* Non-trace opcode DUP_TOP = 4 */
/* Non-trace opcode DUP_TOP_TWO = 5 */
#define MAKE_FRAME 6
#define LEAVE_FRAME 7
/* Non-trace opcode VALUE_NOP = 8 */
/* Non-trace opcode NOP = 9 */
/* Non-trace opcode UNARY_POSITIVE = 10 */
/* Non-trace opcode UNARY_NEGATIVE = 11 */
/* Non-trace opcode UNARY_NOT = 12 */
#define AS_TUPLE 13
#define RERAISE 14
/* Non-trace opcode UNARY_INVERT = 15 */
#define STOP_ITERATION_OR_RERAISE 16
#define SUB_TYPE 17
#define KW_DICT_MERGE 18
#define MAKE_GENERATOR 19
#define ENTER_FRAME 20
#define NEW_FUNCTION 21
#define NEW_CLOSURE 22
#define TRACE_END 23
#define GET_GLOBAL_AND_BUILTINS 24
#define SAVE_EXC_STATE 25
#define SWAP_EXC_STATE 26
#define RESTORE_CLEAR_EXC_STATE 27
#define SETUP_EXCEPT_HANDLER 28
#define CLEAR_FRAME 29
#define GET_GLOBALS_FROM_FUNCTION 30
/* Opcode 31 unused */
/* Opcode 32 unused */
/* Non-trace opcode GET_CLASS_ATTR = 33 */
/* Non-trace opcode HAS_CLASS_ATTR = 34 */
/* Non-trace opcode OVERRIDES_GENERIC_GETATTRIBUTE = 35 */
/* Non-trace opcode HAS_DICT = 36 */
/* Non-trace opcode GET_TYPE = 37 */
/* Non-trace opcode POP_CALLER_BLOCK = 38 */
/* Non-trace opcode RETURN_VALUE_IF_IN_OBJECT_DICT = 39 */
/* Non-trace opcode SET_IN_OBJECT_DICT = 40 */
/* Non-trace opcode GEN_ENTER = 41 */
/* Non-trace opcode GEN_SEND = 42 */
/* Non-trace opcode GEN_STARTED = 43 */
/* Non-trace opcode GEN_EXIT = 44 */
/* Non-trace opcode OVERRIDES = 45 */
/* Non-trace opcode GEN_CLEAR = 46 */
/* Non-trace opcode OVERRIDES_GENERIC_SETATTR = 47 */
/* Non-trace opcode DESCRIPTOR_GET = 48 */
/* Non-trace opcode DESCRIPTOR_SET = 49 */
/* Opcode 50 unused */
/* Opcode 51 unused */
/* Opcode 52 unused */
/* Opcode 53 unused */
/* Non-trace opcode STORE_MAP = 54 */
/* Opcode 55 unused */
/* Opcode 56 unused */
/* Opcode 57 unused */
/* Opcode 58 unused */
/* Opcode 59 unused */
/* Non-trace opcode STORE_SUBSCR = 60 */
/* Non-trace opcode DELETE_SUBSCR = 61 */
/* Opcode 62 unused */
/* Opcode 63 unused */
/* Opcode 64 unused */
/* Opcode 65 unused */
/* Opcode 66 unused */
/* Opcode 67 unused */
/* Non-trace opcode GET_ITER = 68 */
/* Non-trace opcode STORE_LOCALS = 69 */
/* Non-trace opcode PRINT_EXPR = 70 */
/* Non-trace opcode LOAD_BUILD_CLASS = 71 */
/* Non-trace opcode YIELD_FROM = 72 */
/* Opcode 73 unused */
/* Opcode 74 unused */
/* Opcode 75 unused */
/* Opcode 76 unused */
/* Opcode 77 unused */
/* Opcode 78 unused */
/* Opcode 79 unused */
/* Non-trace opcode BREAK_LOOP = 80 */
/* Non-trace opcode WITH_CLEANUP = 81 */
/* Non-trace opcode ALLOCATE = 82 */
/* Non-trace opcode RETURN_VALUE = 83 */
/* Non-trace opcode IMPORT_STAR = 84 */
/* Non-trace opcode SIZE = 85 */
/* Non-trace opcode YIELD_VALUE = 86 */
/* Non-trace opcode POP_BLOCK = 87 */
/* Non-trace opcode END_FINALLY = 88 */
/* Non-trace opcode POP_EXCEPT = 89 */
/* Non-trace opcode STORE_NAME = 90 */
/* Non-trace opcode DELETE_NAME = 91 */
/* Non-trace opcode UNPACK_SEQUENCE = 92 */
/* Non-trace opcode FOR_ITER = 93 */
/* Non-trace opcode UNPACK_EX = 94 */
/* Non-trace opcode STORE_ATTR = 95 */
/* Non-trace opcode DELETE_ATTR = 96 */
/* Non-trace opcode STORE_GLOBAL = 97 */
/* Non-trace opcode DELETE_GLOBAL = 98 */
#define BINARY_OP 99
/* Non-trace opcode LOAD_CONST = 100 */
/* Non-trace opcode LOAD_NAME = 101 */
/* Non-trace opcode BUILD_TUPLE = 102 */
/* Non-trace opcode BUILD_LIST = 103 */
/* Non-trace opcode BUILD_SET = 104 */
/* Non-trace opcode BUILD_MAP = 105 */
/* Non-trace opcode LOAD_ATTR = 106 */
/* Non-trace opcode COMPARE_OP = 107 */
/* Non-trace opcode IMPORT_NAME = 108 */
/* Non-trace opcode IMPORT_FROM = 109 */
/* Non-trace opcode JUMP_FORWARD = 110 */
/* Non-trace opcode JUMP_IF_FALSE_OR_POP = 111 */
/* Non-trace opcode JUMP_IF_TRUE_OR_POP = 112 */
/* Non-trace opcode JUMP_ABSOLUTE = 113 */
/* Non-trace opcode POP_JUMP_IF_FALSE = 114 */
/* Non-trace opcode POP_JUMP_IF_TRUE = 115 */
/* Non-trace opcode LOAD_GLOBAL = 116 */
/* Non-trace opcode LOAD_SPECIAL = 117 */
/* Non-trace opcode HAS_SPECIAL = 118 */
/* Non-trace opcode CONTINUE_LOOP = 119 */
/* Non-trace opcode SETUP_LOOP = 120 */
/* Non-trace opcode SETUP_EXCEPT = 121 */
/* Non-trace opcode SETUP_FINALLY = 122 */
#define ENSURE_TYPE_TOS 123
/* Non-trace opcode LOAD_FAST = 124 */
/* Non-trace opcode STORE_FAST = 125 */
/* Non-trace opcode DELETE_FAST = 126 */
#define ENSURE_TYPE_NOS 127
#define JUMP_BACK 128
#define FAST_FRAME 129
/* Non-trace opcode RAISE_VARARGS = 130 */
/* Non-trace opcode CALL_FUNCTION = 131 */
/* Non-trace opcode MAKE_FUNCTION = 132 */
/* Non-trace opcode BUILD_SLICE = 133 */
/* Non-trace opcode MAKE_CLOSURE = 134 */
/* Non-trace opcode LOAD_CLOSURE = 135 */
/* Non-trace opcode LOAD_DEREF = 136 */
/* Non-trace opcode STORE_DEREF = 137 */
/* Non-trace opcode DELETE_DEREF = 138 */
#define SET_LASTI 139
/* Non-trace opcode CALL_FUNCTION_VAR = 140 */
/* Non-trace opcode CALL_FUNCTION_KW = 141 */
/* Non-trace opcode CALL_FUNCTION_VAR_KW = 142 */
/* Non-trace opcode SETUP_WITH = 143 */
/* Non-trace opcode EXTENDED_ARG = 144 */
/* Non-trace opcode LIST_APPEND = 145 */
/* Non-trace opcode SET_ADD = 146 */
/* Non-trace opcode MAP_ADD = 147 */
#define TRACE_LOAD_CONSTANT 148
#define PICK 149
#define SETUP_FOR_ITER 150
/* Non-trace opcode JUMP_ABSOLUTE_1 = 151 */
/* Non-trace opcode JUMP_ABSOLUTE_2 = 152 */
/* Non-trace opcode JUMP_ABSOLUTE_3 = 153 */
/* Non-trace opcode STORE_ATTR_NONE = 154 */
/* Non-trace opcode DELETE_ATTR_NONE = 155 */
/* Non-trace opcode STORE_SUBSCR_NONE = 156 */
/* Non-trace opcode DELETE_SUBSCR_NONE = 157 */
#define LOAD_AND_CLEAR_REGISTER 158
#define CALL_OBJECT 159
#define POP_EXIT_IF_TRUE 160
#define EXIT 161
#define POLY_EXIT 162
#define POP_EXIT_IF_FALSE 163
#define EXIT_IF_DIFFERENT 164
#define LOAD_REGISTER 165
#define STORE_REGISTER 166
#define CALL_CFUNC_0 167
#define CALL_CFUNC_1 168
#define CALL_CFUNC_2 169
#define CALL_CMETH_0 170
#define CALL_CMETH_1 171
#define CALL_CMETH_2 172
#define NO_KEYWORDS 173
#define NO_ARGS 174
#define ONE_ARG 175
#define TWO_ARGS 176
#define THREE_ARGS 177
#define CALL_WRAPPER_UNARY 178
#define CALL_WRAPPER_NEXT 179
#define CALL_WRAPPER_BINARY 180
#define CALL_WRAPPER_TRINARY_PROC 181
#define EXIT_IF_NOT_BOOL_OR_INT 182
#define VALUE_FROM_OBJECT_DICT_OR_EXIT 183
#define GEN_CHECK_OR_EXIT 184
#define EXIT_IF_VALUE_IN_OBJECT_DICT 185
#define LOAD_SLOT 186
#define STORE_SLOT 187
#define LOAD_SLOT_EX 188
#define STORE_MEMBER 189
#define CALL_WRAPPER_BINARY_NULL_PROC 190
#define VALUE_FROM_OBJECT_DICT_AND_JUMP 191
#define LOAD_FROM_GLOBAL_AND_BUILTINS 192
#define STORE_TO_GLOBALS 193
#define ONE_PLUS_ARGS 194
#define MATERIALISE_FRAME 195
#define SET_IN_OBJECT_DICT_CONST 196
#define TRACE_DESCRIPTOR_GET 197
#define TRACE_DESCRIPTOR_SET 198
#define NEW_FRAME 199
#define PUSH_REGISTER_TO_STACK 200
#define MOVE 201
#define POP_STACK_TO_REGISTER 202
#define TUPLE_SET_ITEM 203
#define LIST_SET_ITEM 204
#define CONST_TO_REGISTER 205
#define EXIT_IF_FALSE 206
#define EXIT_IF_TRUE 207
#define ENSURE_TYPE 208
#define ENSURE_VALUE 209
#define ENSURE_SLOT 210
#define VALUE_FROM_OBJECT_DICT_OR_EXIT_CONST 211
#define SETUP_BLOCK 212
#define POLY_TYPE_EXIT 213
#define TWO_MOVE 214
#define COPY_MOVE 215
#define FAST_LOAD_GLOBAL 216
#define BINARY_OP_KV 217
#define BINARY_OP_VK 218
#define LOAD_MEMBER 219
/* Opcode 220 unused */
/* Opcode 221 unused */
/* Opcode 222 unused */
/* Opcode 223 unused */
/* Opcode 224 unused */
/* Opcode 225 unused */
/* Opcode 226 unused */
/* Opcode 227 unused */
/* Opcode 228 unused */
/* Opcode 229 unused */
/* Opcode 230 unused */
/* Opcode 231 unused */
/* Opcode 232 unused */
/* Opcode 233 unused */
/* Opcode 234 unused */
/* Opcode 235 unused */
/* Opcode 236 unused */
/* Opcode 237 unused */
/* Opcode 238 unused */
/* Opcode 239 unused */
/* Opcode 240 unused */
/* Opcode 241 unused */
/* Opcode 242 unused */
/* Opcode 243 unused */
/* Opcode 244 unused */
/* Opcode 245 unused */
/* Opcode 246 unused */
/* Opcode 247 unused */
/* Opcode 248 unused */
/* Opcode 249 unused */
/* Opcode 250 unused */
/* Opcode 251 unused */
/* Opcode 252 unused */
/* Opcode 253 unused */
/* Opcode 254 unused */
/* Opcode 255 unused */

#ifdef WITH_INSTRUCTION_NAMES
char * _HotPy_Instruction_Names[] = {
"0",
"POP_TOP",
"ROT_TWO",
"ROT_THREE",
"DUP_TOP",
"DUP_TOP_TWO",
"MAKE_FRAME",
"LEAVE_FRAME",
"VALUE_NOP",
"NOP",
"UNARY_POSITIVE",
"UNARY_NEGATIVE",
"UNARY_NOT",
"AS_TUPLE",
"RERAISE",
"UNARY_INVERT",
"STOP_ITERATION_OR_RERAISE",
"SUB_TYPE",
"KW_DICT_MERGE",
"BINARY_POWER or MAKE_GENERATOR",
"BINARY_MULTIPLY or ENTER_FRAME",
"NEW_FUNCTION",
"BINARY_MODULO or NEW_CLOSURE",
"BINARY_ADD or TRACE_END",
"BINARY_SUBTRACT or GET_GLOBAL_AND_BUILTINS",
"BINARY_SUBSCR or SAVE_EXC_STATE",
"BINARY_FLOOR_DIVIDE or SWAP_EXC_STATE",
"BINARY_TRUE_DIVIDE or RESTORE_CLEAR_EXC_STATE",
"INPLACE_FLOOR_DIVIDE or SETUP_EXCEPT_HANDLER",
"INPLACE_TRUE_DIVIDE or CLEAR_FRAME",
"GET_GLOBALS_FROM_FUNCTION",
"31",
"32",
"GET_CLASS_ATTR",
"HAS_CLASS_ATTR",
"OVERRIDES_GENERIC_GETATTRIBUTE",
"HAS_DICT",
"GET_TYPE",
"POP_CALLER_BLOCK",
"RETURN_VALUE_IF_IN_OBJECT_DICT",
"SET_IN_OBJECT_DICT",
"GEN_ENTER",
"GEN_SEND",
"GEN_STARTED",
"GEN_EXIT",
"OVERRIDES",
"GEN_CLEAR",
"OVERRIDES_GENERIC_SETATTR",
"DESCRIPTOR_GET",
"DESCRIPTOR_SET",
"50",
"51",
"52",
"53",
"STORE_MAP",
"INPLACE_ADD",
"INPLACE_SUBTRACT",
"INPLACE_MULTIPLY",
"58",
"INPLACE_MODULO",
"STORE_SUBSCR",
"DELETE_SUBSCR",
"BINARY_LSHIFT",
"BINARY_RSHIFT",
"BINARY_AND",
"BINARY_XOR",
"BINARY_OR",
"INPLACE_POWER",
"GET_ITER",
"STORE_LOCALS",
"PRINT_EXPR",
"LOAD_BUILD_CLASS",
"YIELD_FROM",
"73",
"74",
"INPLACE_LSHIFT",
"INPLACE_RSHIFT",
"INPLACE_AND",
"INPLACE_XOR",
"INPLACE_OR",
"BREAK_LOOP",
"WITH_CLEANUP",
"ALLOCATE",
"RETURN_VALUE",
"IMPORT_STAR",
"SIZE",
"YIELD_VALUE",
"POP_BLOCK",
"END_FINALLY",
"POP_EXCEPT",
"STORE_NAME",
"DELETE_NAME",
"UNPACK_SEQUENCE",
"FOR_ITER",
"UNPACK_EX",
"STORE_ATTR",
"DELETE_ATTR",
"STORE_GLOBAL",
"DELETE_GLOBAL",
"BINARY_OP",
"LOAD_CONST",
"LOAD_NAME",
"BUILD_TUPLE",
"BUILD_LIST",
"BUILD_SET",
"BUILD_MAP",
"LOAD_ATTR",
"COMPARE_OP",
"IMPORT_NAME",
"IMPORT_FROM",
"JUMP_FORWARD",
"JUMP_IF_FALSE_OR_POP",
"JUMP_IF_TRUE_OR_POP",
"JUMP_ABSOLUTE",
"POP_JUMP_IF_FALSE",
"POP_JUMP_IF_TRUE",
"LOAD_GLOBAL",
"LOAD_SPECIAL",
"HAS_SPECIAL",
"CONTINUE_LOOP",
"SETUP_LOOP",
"SETUP_EXCEPT",
"SETUP_FINALLY",
"ENSURE_TYPE_TOS",
"LOAD_FAST",
"STORE_FAST",
"DELETE_FAST",
"ENSURE_TYPE_NOS",
"JUMP_BACK",
"FAST_FRAME",
"RAISE_VARARGS",
"CALL_FUNCTION",
"MAKE_FUNCTION",
"BUILD_SLICE",
"MAKE_CLOSURE",
"LOAD_CLOSURE",
"LOAD_DEREF",
"STORE_DEREF",
"DELETE_DEREF",
"SET_LASTI",
"CALL_FUNCTION_VAR",
"CALL_FUNCTION_KW",
"CALL_FUNCTION_VAR_KW",
"SETUP_WITH",
"EXTENDED_ARG",
"LIST_APPEND",
"SET_ADD",
"MAP_ADD",
"TRACE_LOAD_CONSTANT",
"PICK",
"SETUP_FOR_ITER",
"JUMP_ABSOLUTE_1",
"JUMP_ABSOLUTE_2",
"JUMP_ABSOLUTE_3",
"STORE_ATTR_NONE",
"DELETE_ATTR_NONE",
"STORE_SUBSCR_NONE",
"DELETE_SUBSCR_NONE",
"LOAD_AND_CLEAR_REGISTER",
"CALL_OBJECT",
"POP_EXIT_IF_TRUE",
"EXIT",
"POLY_EXIT",
"POP_EXIT_IF_FALSE",
"EXIT_IF_DIFFERENT",
"LOAD_REGISTER",
"STORE_REGISTER",
"CALL_CFUNC_0",
"CALL_CFUNC_1",
"CALL_CFUNC_2",
"CALL_CMETH_0",
"CALL_CMETH_1",
"CALL_CMETH_2",
"NO_KEYWORDS",
"NO_ARGS",
"ONE_ARG",
"TWO_ARGS",
"THREE_ARGS",
"CALL_WRAPPER_UNARY",
"CALL_WRAPPER_NEXT",
"CALL_WRAPPER_BINARY",
"CALL_WRAPPER_TRINARY_PROC",
"EXIT_IF_NOT_BOOL_OR_INT",
"VALUE_FROM_OBJECT_DICT_OR_EXIT",
"GEN_CHECK_OR_EXIT",
"EXIT_IF_VALUE_IN_OBJECT_DICT",
"LOAD_SLOT",
"STORE_SLOT",
"LOAD_SLOT_EX",
"STORE_MEMBER",
"CALL_WRAPPER_BINARY_NULL_PROC",
"VALUE_FROM_OBJECT_DICT_AND_JUMP",
"LOAD_FROM_GLOBAL_AND_BUILTINS",
"STORE_TO_GLOBALS",
"ONE_PLUS_ARGS",
"MATERIALISE_FRAME",
"SET_IN_OBJECT_DICT_CONST",
"TRACE_DESCRIPTOR_GET",
"TRACE_DESCRIPTOR_SET",
"NEW_FRAME",
"PUSH_REGISTER_TO_STACK",
"MOVE",
"POP_STACK_TO_REGISTER",
"TUPLE_SET_ITEM",
"LIST_SET_ITEM",
"CONST_TO_REGISTER",
"EXIT_IF_FALSE",
"EXIT_IF_TRUE",
"ENSURE_TYPE",
"ENSURE_VALUE",
"ENSURE_SLOT",
"VALUE_FROM_OBJECT_DICT_OR_EXIT_CONST",
"SETUP_BLOCK",
"POLY_TYPE_EXIT",
"TWO_MOVE",
"COPY_MOVE",
"FAST_LOAD_GLOBAL",
"BINARY_OP_KV",
"BINARY_OP_VK",
"LOAD_MEMBER",
"220",
"221",
"222",
"223",
"224",
"225",
"226",
"227",
"228",
"229",
"230",
"231",
"232",
"233",
"234",
"235",
"236",
"237",
"238",
"239",
"240",
"241",
"242",
"243",
"244",
"245",
"246",
"247",
"248",
"249",
"250",
"251",
"252",
"253",
"254",
"255",
};

#else
extern char *_HotPy_Instruction_Names[];
#endif

#define USED_OPCODES 220
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.