File: c1switch.h

package info (click to toggle)
entity 0.7.2-6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 5,352 kB
  • ctags: 5,272
  • sloc: ansic: 61,707; sh: 7,921; makefile: 732; perl: 399
file content (543 lines) | stat: -rw-r--r-- 7,459 bytes parent folder | download | duplicates (3)
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
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
/* operand halt (0) */
case 0:
  SAVE_OP (0);
  cp += 0;
  break;

/* operand done (1) */
case 1:
  SAVE_OP (1);
  cp += 0;
  break;

/* operand nop (2) */
case 2:
  SAVE_OP (2);
  cp += 0;
  break;

/* operand dup (3) */
case 3:
  SAVE_OP (3);
  cp += 0;
  break;

/* operand pop (4) */
case 4:
  SAVE_OP (4);
  cp += 0;
  break;

/* operand pop_n (5) */
case 5:
  SAVE_OP (5);
  JS_BC_READ_INT8 (cp, i);
  SAVE_INT8 (i);
  cp += 1;
  break;

/* operand apop (6) */
case 6:
  SAVE_OP (6);
  JS_BC_READ_INT8 (cp, i);
  SAVE_INT8 (i);
  cp += 1;
  break;

/* operand swap (7) */
case 7:
  SAVE_OP (7);
  cp += 0;
  break;

/* operand roll (8) */
case 8:
  SAVE_OP (8);
  JS_BC_READ_INT8 (cp, i);
  SAVE_INT8 (i);
  cp += 1;
  break;

/* operand const (9) */
case 9:
  SAVE_OP (9);
  JS_BC_READ_INT32 (cp, i);
  i += consts_offset;
  SAVE_INT32 (i);
  cp += 4;
  break;

/* operand const_null (10) */
case 10:
  SAVE_OP (10);
  cp += 0;
  break;

/* operand const_true (11) */
case 11:
  SAVE_OP (11);
  cp += 0;
  break;

/* operand const_false (12) */
case 12:
  SAVE_OP (12);
  cp += 0;
  break;

/* operand const_undefined (13) */
case 13:
  SAVE_OP (13);
  cp += 0;
  break;

/* operand const_i0 (14) */
case 14:
  SAVE_OP (14);
  cp += 0;
  break;

/* operand const_i1 (15) */
case 15:
  SAVE_OP (15);
  cp += 0;
  break;

/* operand const_i2 (16) */
case 16:
  SAVE_OP (16);
  cp += 0;
  break;

/* operand const_i3 (17) */
case 17:
  SAVE_OP (17);
  cp += 0;
  break;

/* operand const_i (18) */
case 18:
  SAVE_OP (18);
  JS_BC_READ_INT32 (cp, i);
  SAVE_INT32 (i);
  cp += 4;
  break;

/* operand load_global (19) */
case 19:
  SAVE_OP (19);
  JS_BC_READ_INT32 (cp, i);
  i += consts_offset;
  i = vm->consts[i].u.vsymbol;
  SAVE_INT32 (i);
  cp += 4;
  break;

/* operand store_global (20) */
case 20:
  SAVE_OP (20);
  JS_BC_READ_INT32 (cp, i);
  i += consts_offset;
  i = vm->consts[i].u.vsymbol;
  SAVE_INT32 (i);
  cp += 4;
  break;

/* operand load_arg (21) */
case 21:
  SAVE_OP (21);
  JS_BC_READ_INT8 (cp, i);
  SAVE_INT8 (i);
  cp += 1;
  break;

/* operand store_arg (22) */
case 22:
  SAVE_OP (22);
  JS_BC_READ_INT8 (cp, i);
  SAVE_INT8 (i);
  cp += 1;
  break;

/* operand load_local (23) */
case 23:
  SAVE_OP (23);
  JS_BC_READ_INT16 (cp, i);
  SAVE_INT16 (i);
  cp += 2;
  break;

/* operand store_local (24) */
case 24:
  SAVE_OP (24);
  JS_BC_READ_INT16 (cp, i);
  SAVE_INT16 (i);
  cp += 2;
  break;

/* operand load_property (25) */
case 25:
  SAVE_OP (25);
  JS_BC_READ_INT32 (cp, i);
  i += consts_offset;
  i = vm->consts[i].u.vsymbol;
  SAVE_INT32 (i);
  cp += 4;
  break;

/* operand store_property (26) */
case 26:
  SAVE_OP (26);
  JS_BC_READ_INT32 (cp, i);
  i += consts_offset;
  i = vm->consts[i].u.vsymbol;
  SAVE_INT32 (i);
  cp += 4;
  break;

/* operand load_array (27) */
case 27:
  SAVE_OP (27);
  cp += 0;
  break;

/* operand store_array (28) */
case 28:
  SAVE_OP (28);
  cp += 0;
  break;

/* operand nth (29) */
case 29:
  SAVE_OP (29);
  cp += 0;
  break;

/* operand cmp_eq (30) */
case 30:
  SAVE_OP (30);
  cp += 0;
  break;

/* operand cmp_ne (31) */
case 31:
  SAVE_OP (31);
  cp += 0;
  break;

/* operand cmp_lt (32) */
case 32:
  SAVE_OP (32);
  cp += 0;
  break;

/* operand cmp_gt (33) */
case 33:
  SAVE_OP (33);
  cp += 0;
  break;

/* operand cmp_le (34) */
case 34:
  SAVE_OP (34);
  cp += 0;
  break;

/* operand cmp_ge (35) */
case 35:
  SAVE_OP (35);
  cp += 0;
  break;

/* operand cmp_seq (36) */
case 36:
  SAVE_OP (36);
  cp += 0;
  break;

/* operand cmp_sne (37) */
case 37:
  SAVE_OP (37);
  cp += 0;
  break;

/* operand sub (38) */
case 38:
  SAVE_OP (38);
  cp += 0;
  break;

/* operand add (39) */
case 39:
  SAVE_OP (39);
  cp += 0;
  break;

/* operand mul (40) */
case 40:
  SAVE_OP (40);
  cp += 0;
  break;

/* operand div (41) */
case 41:
  SAVE_OP (41);
  cp += 0;
  break;

/* operand mod (42) */
case 42:
  SAVE_OP (42);
  cp += 0;
  break;

/* operand neg (43) */
case 43:
  SAVE_OP (43);
  cp += 0;
  break;

/* operand and (44) */
case 44:
  SAVE_OP (44);
  cp += 0;
  break;

/* operand not (45) */
case 45:
  SAVE_OP (45);
  cp += 0;
  break;

/* operand or (46) */
case 46:
  SAVE_OP (46);
  cp += 0;
  break;

/* operand xor (47) */
case 47:
  SAVE_OP (47);
  cp += 0;
  break;

/* operand shift_left (48) */
case 48:
  SAVE_OP (48);
  cp += 0;
  break;

/* operand shift_right (49) */
case 49:
  SAVE_OP (49);
  cp += 0;
  break;

/* operand shift_rright (50) */
case 50:
  SAVE_OP (50);
  cp += 0;
  break;

/* operand iffalse (51) */
case 51:
  SAVE_OP (51);
  JS_BC_READ_INT32 (cp, i);
  SAVE_INT32 (i);
  cp += 4;
  break;

/* operand iftrue (52) */
case 52:
  SAVE_OP (52);
  JS_BC_READ_INT32 (cp, i);
  SAVE_INT32 (i);
  cp += 4;
  break;

/* operand call_method (53) */
case 53:
  SAVE_OP (53);
  JS_BC_READ_INT32 (cp, i);
  i += consts_offset;
  i = vm->consts[i].u.vsymbol;
  SAVE_INT32 (i);
  cp += 4;
  break;

/* operand jmp (54) */
case 54:
  SAVE_OP (54);
  JS_BC_READ_INT32 (cp, i);
  SAVE_INT32 (i);
  cp += 4;
  break;

/* operand jsr (55) */
case 55:
  SAVE_OP (55);
  cp += 0;
  break;

/* operand return (56) */
case 56:
  SAVE_OP (56);
  cp += 0;
  break;

/* operand typeof (57) */
case 57:
  SAVE_OP (57);
  cp += 0;
  break;

/* operand new (58) */
case 58:
  SAVE_OP (58);
  cp += 0;
  break;

/* operand delete_property (59) */
case 59:
  SAVE_OP (59);
  JS_BC_READ_INT32 (cp, i);
  i += consts_offset;
  i = vm->consts[i].u.vsymbol;
  SAVE_INT32 (i);
  cp += 4;
  break;

/* operand delete_array (60) */
case 60:
  SAVE_OP (60);
  cp += 0;
  break;

/* operand locals (61) */
case 61:
  SAVE_OP (61);
  JS_BC_READ_INT16 (cp, i);
  SAVE_INT16 (i);
  cp += 2;
  break;

/* operand min_args (62) */
case 62:
  SAVE_OP (62);
  JS_BC_READ_INT8 (cp, i);
  SAVE_INT8 (i);
  cp += 1;
  break;

/* operand load_nth_arg (63) */
case 63:
  SAVE_OP (63);
  cp += 0;
  break;

/* operand with_push (64) */
case 64:
  SAVE_OP (64);
  cp += 0;
  break;

/* operand with_pop (65) */
case 65:
  SAVE_OP (65);
  JS_BC_READ_INT8 (cp, i);
  SAVE_INT8 (i);
  cp += 1;
  break;

/* operand try_push (66) */
case 66:
  SAVE_OP (66);
  JS_BC_READ_INT32 (cp, i);
  SAVE_INT32 (i);
  cp += 4;
  break;

/* operand try_pop (67) */
case 67:
  SAVE_OP (67);
  JS_BC_READ_INT8 (cp, i);
  SAVE_INT8 (i);
  cp += 1;
  break;

/* operand throw (68) */
case 68:
  SAVE_OP (68);
  cp += 0;
  break;

/* operand iffalse_b (69) */
case 69:
  SAVE_OP (69);
  JS_BC_READ_INT32 (cp, i);
  SAVE_INT32 (i);
  cp += 4;
  break;

/* operand iftrue_b (70) */
case 70:
  SAVE_OP (70);
  JS_BC_READ_INT32 (cp, i);
  SAVE_INT32 (i);
  cp += 4;
  break;

/* operand add_1_i (71) */
case 71:
  SAVE_OP (71);
  cp += 0;
  break;

/* operand add_2_i (72) */
case 72:
  SAVE_OP (72);
  cp += 0;
  break;

/* operand load_global_w (73) */
case 73:
  SAVE_OP (73);
  JS_BC_READ_INT32 (cp, i);
  i += consts_offset;
  i = vm->consts[i].u.vsymbol;
  SAVE_INT32 (i);
  cp += 4;
  break;

/* operand jsr_w (74) */
case 74:
  SAVE_OP (74);
  JS_BC_READ_INT32 (cp, i);
  i += consts_offset;
  i = vm->consts[i].u.vsymbol;
  SAVE_INT32 (i);
  cp += 4;
  break;

/* operand instanceof (75) */
case 75:
  SAVE_OP (75);
  cp += 0;
  break;

/* operand import_extension (76) */
case 76:
  SAVE_OP (76);
  JS_BC_READ_INT32 (cp, i);
  i += consts_offset;
  i = vm->consts[i].u.vsymbol;
  SAVE_INT32 (i);
  cp += 4;
  break;

/* operand has_property (77) */
case 77:
  SAVE_OP (77);
  cp += 0;
  break;