01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: TypesOpcode.java 3810 2007-06-25 13:36:58Z gbevin $
07: */
08: package com.uwyn.rife.continuations.instrument;
09:
10: abstract class TypesOpcode {
11: static final byte SET = 1;
12: static final byte GET = 2;
13: static final byte IINC = 3;
14: static final byte POP = 4;
15: static final byte POP2 = 5;
16: static final byte PUSH = 6;
17: static final byte AALOAD = 7;
18: static final byte DUP = 8;
19: static final byte DUPX1 = 9;
20: static final byte DUPX2 = 10;
21: static final byte DUP2 = 11;
22: static final byte DUP2_X1 = 12;
23: static final byte DUP2_X2 = 13;
24: static final byte SWAP = 14;
25: static final byte PAUSE = 15;
26: static final byte LABEL = 16;
27:
28: static String toString(byte opcode) {
29: switch (opcode) {
30: case SET:
31: return "SET";
32: case GET:
33: return "GET";
34: case IINC:
35: return "IINC";
36: case POP:
37: return "POP";
38: case POP2:
39: return "POP2";
40: case PUSH:
41: return "PUSH";
42: case AALOAD:
43: return "AALOAD";
44: case DUP:
45: return "DUP";
46: case DUPX1:
47: return "DUPX1";
48: case DUPX2:
49: return "DUPX2";
50: case DUP2:
51: return "DUP2";
52: case DUP2_X1:
53: return "DUP2_X1";
54: case DUP2_X2:
55: return "DUP2_X2";
56: case SWAP:
57: return "SWAP";
58: case PAUSE:
59: return "PAUSE";
60: case LABEL:
61: return "LABEL";
62: }
63:
64: return null;
65: }
66: }
|