interpret.cc (continue1): Implement explicit dispatch table.
[gcc.git] / libjava / include / java-insns.h
1 // java-insns.h - Instruction encodings. This is -*- c++ -*-
2
3 /* Copyright (C) 1999 Cygnus Solutions
4
5 This file is part of libgcj.
6
7 This software is copyrighted work licensed under the terms of the
8 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
9 details. */
10
11 static const int op_nop = 0x00;
12 static const int op_aconst_null = 0x01;
13 static const int op_iconst_m1 = 0x02;
14 static const int op_iconst_0 = 0x03;
15 static const int op_iconst_1 = 0x04;
16 static const int op_iconst_2 = 0x05;
17 static const int op_iconst_3 = 0x06;
18 static const int op_iconst_4 = 0x07;
19 static const int op_iconst_5 = 0x08;
20 static const int op_lconst_0 = 0x09;
21 static const int op_lconst_1 = 0x0a;
22 static const int op_fconst_0 = 0x0b;
23 static const int op_fconst_1 = 0x0c;
24 static const int op_fconst_2 = 0x0d;
25 static const int op_dconst_0 = 0x0e;
26 static const int op_dconst_1 = 0x0f;
27 static const int op_bipush = 0x10;
28 static const int op_sipush = 0x11;
29 static const int op_ldc = 0x12;
30 static const int op_ldc_w = 0x13;
31 static const int op_ldc2_w = 0x14;
32 static const int op_iload = 0x15;
33 static const int op_lload = 0x16;
34 static const int op_fload = 0x17;
35 static const int op_dload = 0x18;
36 static const int op_aload = 0x19;
37 static const int op_iload_0 = 0x1a;
38 static const int op_iload_1 = 0x1b;
39 static const int op_iload_2 = 0x1c;
40 static const int op_iload_3 = 0x1d;
41 static const int op_lload_0 = 0x1e;
42 static const int op_lload_1 = 0x1f;
43 static const int op_lload_2 = 0x20;
44 static const int op_lload_3 = 0x21;
45 static const int op_fload_0 = 0x22;
46 static const int op_fload_1 = 0x23;
47 static const int op_fload_2 = 0x24;
48 static const int op_fload_3 = 0x25;
49 static const int op_dload_0 = 0x26;
50 static const int op_dload_1 = 0x27;
51 static const int op_dload_2 = 0x28;
52 static const int op_dload_3 = 0x29;
53 static const int op_aload_0 = 0x2a;
54 static const int op_aload_1 = 0x2b;
55 static const int op_aload_2 = 0x2c;
56 static const int op_aload_3 = 0x2d;
57 static const int op_iaload = 0x2e;
58 static const int op_laload = 0x2f;
59 static const int op_faload = 0x30;
60 static const int op_daload = 0x31;
61 static const int op_aaload = 0x32;
62 static const int op_baload = 0x33;
63 static const int op_caload = 0x34;
64 static const int op_saload = 0x35;
65 static const int op_istore = 0x36;
66 static const int op_lstore = 0x37;
67 static const int op_fstore = 0x38;
68 static const int op_dstore = 0x39;
69 static const int op_astore = 0x3a;
70 static const int op_istore_0 = 0x3b;
71 static const int op_istore_1 = 0x3c;
72 static const int op_istore_2 = 0x3d;
73 static const int op_istore_3 = 0x3e;
74 static const int op_lstore_0 = 0x3f;
75 static const int op_lstore_1 = 0x40;
76 static const int op_lstore_2 = 0x41;
77 static const int op_lstore_3 = 0x42;
78 static const int op_fstore_0 = 0x43;
79 static const int op_fstore_1 = 0x44;
80 static const int op_fstore_2 = 0x45;
81 static const int op_fstore_3 = 0x46;
82 static const int op_dstore_0 = 0x47;
83 static const int op_dstore_1 = 0x48;
84 static const int op_dstore_2 = 0x49;
85 static const int op_dstore_3 = 0x4a;
86 static const int op_astore_0 = 0x4b;
87 static const int op_astore_1 = 0x4c;
88 static const int op_astore_2 = 0x4d;
89 static const int op_astore_3 = 0x4e;
90 static const int op_iastore = 0x4f;
91 static const int op_lastore = 0x50;
92 static const int op_fastore = 0x51;
93 static const int op_dastore = 0x52;
94 static const int op_aastore = 0x53;
95 static const int op_bastore = 0x54;
96 static const int op_castore = 0x55;
97 static const int op_sastore = 0x56;
98 static const int op_pop = 0x57;
99 static const int op_pop2 = 0x58;
100 static const int op_dup = 0x59;
101 static const int op_dup_x1 = 0x5a;
102 static const int op_dup_x2 = 0x5b;
103 static const int op_dup2 = 0x5c;
104 static const int op_dup2_x1 = 0x5d;
105 static const int op_dup2_x2 = 0x5e;
106 static const int op_swap = 0x5f;
107 static const int op_iadd = 0x60;
108 static const int op_ladd = 0x61;
109 static const int op_fadd = 0x62;
110 static const int op_dadd = 0x63;
111 static const int op_isub = 0x64;
112 static const int op_lsub = 0x65;
113 static const int op_fsub = 0x66;
114 static const int op_dsub = 0x67;
115 static const int op_imul = 0x68;
116 static const int op_lmul = 0x69;
117 static const int op_fmul = 0x6a;
118 static const int op_dmul = 0x6b;
119 static const int op_idiv = 0x6c;
120 static const int op_ldiv = 0x6d;
121 static const int op_fdiv = 0x6e;
122 static const int op_ddiv = 0x6f;
123 static const int op_irem = 0x70;
124 static const int op_lrem = 0x71;
125 static const int op_frem = 0x72;
126 static const int op_drem = 0x73;
127 static const int op_ineg = 0x74;
128 static const int op_lneg = 0x75;
129 static const int op_fneg = 0x76;
130 static const int op_dneg = 0x77;
131 static const int op_ishl = 0x78;
132 static const int op_lshl = 0x79;
133 static const int op_ishr = 0x7a;
134 static const int op_lshr = 0x7b;
135 static const int op_iushr = 0x7c;
136 static const int op_lushr = 0x7d;
137 static const int op_iand = 0x7e;
138 static const int op_land = 0x7f;
139 static const int op_ior = 0x80;
140 static const int op_lor = 0x81;
141 static const int op_ixor = 0x82;
142 static const int op_lxor = 0x83;
143 static const int op_iinc = 0x84;
144 static const int op_i2l = 0x85;
145 static const int op_i2f = 0x86;
146 static const int op_i2d = 0x87;
147 static const int op_l2i = 0x88;
148 static const int op_l2f = 0x89;
149 static const int op_l2d = 0x8a;
150 static const int op_f2i = 0x8b;
151 static const int op_f2l = 0x8c;
152 static const int op_f2d = 0x8d;
153 static const int op_d2i = 0x8e;
154 static const int op_d2l = 0x8f;
155 static const int op_d2f = 0x90;
156 static const int op_i2b = 0x91;
157 static const int op_i2c = 0x92;
158 static const int op_i2s = 0x93;
159 static const int op_lcmp = 0x94;
160 static const int op_fcmpl = 0x95;
161 static const int op_fcmpg = 0x96;
162 static const int op_dcmpl = 0x97;
163 static const int op_dcmpg = 0x98;
164 static const int op_ifeq = 0x99;
165 static const int op_ifne = 0x9a;
166 static const int op_iflt = 0x9b;
167 static const int op_ifge = 0x9c;
168 static const int op_ifgt = 0x9d;
169 static const int op_ifle = 0x9e;
170 static const int op_if_icmpeq = 0x9f;
171 static const int op_if_icmpne = 0xa0;
172 static const int op_if_icmplt = 0xa1;
173 static const int op_if_icmpge = 0xa2;
174 static const int op_if_icmpgt = 0xa3;
175 static const int op_if_icmple = 0xa4;
176 static const int op_if_acmpeq = 0xa5;
177 static const int op_if_acmpne = 0xa6;
178 static const int op_goto = 0xa7;
179 static const int op_jsr = 0xa8;
180 static const int op_ret = 0xa9;
181 static const int op_tableswitch = 0xaa;
182 static const int op_lookupswitch = 0xab;
183 static const int op_ireturn = 0xac;
184 static const int op_lreturn = 0xad;
185 static const int op_freturn = 0xae;
186 static const int op_dreturn = 0xaf;
187 static const int op_areturn = 0xb0;
188 static const int op_return = 0xb1;
189 static const int op_getstatic = 0xb2;
190 static const int op_putstatic = 0xb3;
191 static const int op_getfield = 0xb4;
192 static const int op_putfield = 0xb5;
193 static const int op_invokevirtual = 0xb6;
194 static const int op_invokespecial = 0xb7;
195 static const int op_invokestatic = 0xb8;
196 static const int op_invokeinterface = 0xb9;
197 static const int op_xxxunusedxxx1 = 0xba;
198 static const int op_new = 0xbb;
199 static const int op_newarray = 0xbc;
200 static const int op_anewarray = 0xbd;
201 static const int op_arraylength = 0xbe;
202 static const int op_athrow = 0xbf;
203 static const int op_checkcast = 0xc0;
204 static const int op_instanceof = 0xc1;
205 static const int op_monitorenter = 0xc2;
206 static const int op_monitorexit = 0xc3;
207 static const int op_wide = 0xc4;
208 static const int op_multianewarray = 0xc5;
209 static const int op_ifnull = 0xc6;
210 static const int op_ifnonnull = 0xc7;
211 static const int op_goto_w = 0xc8;
212 static const int op_jsr_w = 0xc9;
213
214 // new opcodes
215
216 static const int op_putfield_1 = 0xca;
217 static const int op_putfield_2 = 0xcb;
218 static const int op_putfield_4 = 0xcc;
219 static const int op_putfield_8 = 0xcd;
220 static const int op_putfield_a = 0xce;
221
222 static const int op_putstatic_1 = 0xcf;
223 static const int op_putstatic_2 = 0xd0;
224 static const int op_putstatic_4 = 0xd1;
225 static const int op_putstatic_8 = 0xd2;
226 static const int op_putstatic_a = 0xd3;
227
228 static const int op_getfield_1 = 0xd4;
229 static const int op_getfield_2s = 0xd5;
230 static const int op_getfield_2u = 0xd6;
231 static const int op_getfield_4 = 0xd7;
232 static const int op_getfield_8 = 0xd8;
233 static const int op_getfield_a = 0xd9;
234
235 static const int op_getstatic_1 = 0xda;
236 static const int op_getstatic_2s = 0xdb;
237 static const int op_getstatic_2u = 0xdc;
238 static const int op_getstatic_4 = 0xdd;
239 static const int op_getstatic_8 = 0xde;
240 static const int op_getstatic_a = 0xdf;
241
242
243
244
245