* src/vm/jit/show.c (new_show_icmd): Separate real arguments and
[cacao.git] / src / vm / jit / show.c
1 /* src/vm/jit/show.c - showing the intermediate representation
2
3    Copyright (C) 1996-2005, 2006 R. Grafl, A. Krall, C. Kruegel,
4    C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
5    E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
6    J. Wenninger, Institut f. Computersprachen - TU Wien
7
8    This file is part of CACAO.
9
10    This program is free software; you can redistribute it and/or
11    modify it under the terms of the GNU General Public License as
12    published by the Free Software Foundation; either version 2, or (at
13    your option) any later version.
14
15    This program is distributed in the hope that it will be useful, but
16    WITHOUT ANY WARRANTY; without even the implied warranty of
17    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18    General Public License for more details.
19
20    You should have received a copy of the GNU General Public License
21    along with this program; if not, write to the Free Software
22    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23    02110-1301, USA.
24
25    Contact: cacao@cacaojvm.org
26
27    Authors: Andreas Krall
28
29    Changes: Edwin Steiner
30             Christian Thalinger
31             Christian Ullrich
32
33    $Id$
34
35 */
36
37
38 #include "config.h"
39 #include "vm/types.h"
40
41 #include <assert.h>
42
43 #include "mm/memory.h"
44
45 #if defined(ENABLE_THREADS)
46 # include "threads/native/lock.h"
47 #else
48 # include "threads/none/lock.h"
49 #endif
50
51 #include "vm/global.h"
52 #include "vm/options.h"
53 #include "vm/builtin.h"
54 #include "vm/stringlocal.h"
55 #include "vm/jit/jit.h"
56 #include "vm/jit/show.h"
57 #include "vm/jit/disass.h"
58 #include "vm/jit/stack.h"
59
60
61 /* global variables ***********************************************************/
62
63 #if defined(ENABLE_THREADS) && !defined(NDEBUG)
64 static java_objectheader *show_global_lock;
65 #endif
66
67
68 /* forward declarations *******************************************************/
69
70 #if !defined(NDEBUG)
71 static void new_show_variable_array(jitdata *jd, stackptr *vars, int n, int stage);
72 #endif
73
74
75 /* show_init *******************************************************************
76
77    Initialized the show subsystem (called by jit_init).
78
79 *******************************************************************************/
80
81 #if !defined(NDEBUG)
82 bool show_init(void)
83 {
84 #if defined(ENABLE_THREADS)
85         /* initialize the show lock */
86
87         show_global_lock = NEW(java_objectheader);
88
89         lock_init_object_lock(show_global_lock);
90 #endif
91
92         /* everything's ok */
93
94         return true;
95 }
96 #endif
97
98
99 #if !defined(NDEBUG)
100 static char *jit_type[] = {
101         "int",
102         "lng",
103         "flt",
104         "dbl",
105         "adr"
106 };
107 #endif
108
109
110 /* show_method *****************************************************************
111
112    Print the intermediate representation of a method.
113
114    NOTE: Currently this function may only be called after register allocation!
115
116 *******************************************************************************/
117
118 #if !defined(NDEBUG)
119 void new_show_method(jitdata *jd, int stage)
120 {
121         methodinfo     *m;
122         codeinfo       *code;
123         codegendata    *cd;
124         registerdata   *rd;
125         basicblock     *bptr;
126         basicblock     *lastbptr;
127         exceptiontable *ex;
128         s4              i, j;
129         u1             *u1ptr;
130
131         /* get required compiler data */
132
133         m    = jd->m;
134         code = jd->code;
135         cd   = jd->cd;
136         rd   = jd->rd;
137
138         /* We need to enter a lock here, since the binutils disassembler
139            is not reentrant-able and we could not read functions printed
140            at the same time. */
141
142         LOCK_MONITOR_ENTER(show_global_lock);
143
144         /* get the last basic block */
145
146         for (lastbptr = jd->new_basicblocks; lastbptr->next != NULL; lastbptr = lastbptr->next);
147
148         printf("\n");
149
150         method_println(m);
151
152         printf("\n(NEW INSTRUCTION FORMAT)\n");
153         printf("\nBasic blocks: %d\n", jd->new_basicblockcount);
154         if (stage >= SHOW_CODE) {
155                 printf("Code length:  %d\n", (lastbptr->mpc - jd->new_basicblocks[0].mpc));
156                 printf("Data length:  %d\n", cd->dseglen);
157                 printf("Stub length:  %d\n", (s4) (code->mcodelength -
158                                                                                    ((ptrint) cd->dseglen + lastbptr->mpc)));
159         }
160         printf("Max locals:   %d\n", cd->maxlocals);
161         printf("Max stack:    %d\n", cd->maxstack);
162         printf("Line number table length: %d\n", m->linenumbercount);
163
164         if (stage >= SHOW_PARSE) {
165                 printf("Exceptions (Number: %d):\n", cd->exceptiontablelength);
166                 for (ex = cd->exceptiontable; ex != NULL; ex = ex->down) {
167                         printf("    L%03d ... ", ex->start->nr );
168                         printf("L%03d  = ", ex->end->nr);
169                         printf("L%03d", ex->handler->nr);
170                         printf("  (catchtype: ");
171                         if (ex->catchtype.any)
172                                 if (IS_CLASSREF(ex->catchtype))
173                                         utf_display_printable_ascii_classname(ex->catchtype.ref->name);
174                                 else
175                                         utf_display_printable_ascii_classname(ex->catchtype.cls->name);
176                         else
177                                 printf("ANY");
178                         printf(")\n");
179                 }
180         }
181         
182         if (stage >= SHOW_PARSE && rd) {
183         printf("Local Table:\n");
184         for (i = 0; i < cd->maxlocals; i++) {
185                 printf("   %3d: ", i);
186
187 #if defined(ENABLE_JIT) && defined(ENABLE_DISASSEMBLER)
188                 for (j = TYPE_INT; j <= TYPE_ADR; j++) {
189 # if defined(ENABLE_INTRP)
190                         if (!opt_intrp) {
191 # endif
192                                 if (rd->locals[i][j].type >= 0) {
193                                         printf("   (%s) ", jit_type[j]);
194                                         if (stage >= SHOW_REGS) {
195                                                 if (rd->locals[i][j].flags & INMEMORY)
196                                                         printf("m%2d", rd->locals[i][j].regoff);
197 # ifdef HAS_ADDRESS_REGISTER_FILE
198                                                 else if (j == TYPE_ADR)
199                                                         printf("r%02d", rd->locals[i][j].regoff);
200 # endif
201                                                 else if ((j == TYPE_FLT) || (j == TYPE_DBL))
202                                                         printf("f%02d", rd->locals[i][j].regoff);
203                                                 else {
204 # if defined(SUPPORT_COMBINE_INTEGER_REGISTERS)
205                                                         if (IS_2_WORD_TYPE(j))
206                                                                 printf(" %3s/%3s",
207                                                                            regs[GET_LOW_REG(rd->locals[i][j].regoff)],
208                                                                            regs[GET_HIGH_REG(rd->locals[i][j].regoff)]);
209                                                         else
210 # endif
211                                                                 printf("%3s", regs[rd->locals[i][j].regoff]);
212                                                 }
213                                         }
214                                 }
215 # if defined(ENABLE_INTRP)
216                         }
217 # endif
218                 }
219 #endif /* defined(ENABLE_JIT) && defined(ENABLE_DISASSEMBLER) */
220
221                 printf("\n");
222         }
223         printf("\n");
224         }
225
226         if (stage >= SHOW_STACK && rd) {
227 #if defined(ENABLE_LSRA) || defined(ENABLE_SSA)
228         if (!opt_lsra) {
229 #endif
230 #if defined(ENABLE_INTRP)
231                 if (!opt_intrp) {
232 #endif
233         printf("Interface Table:\n");
234         for (i = 0; i < cd->maxstack; i++) {
235                 if ((rd->interfaces[i][0].type >= 0) ||
236                         (rd->interfaces[i][1].type >= 0) ||
237                     (rd->interfaces[i][2].type >= 0) ||
238                         (rd->interfaces[i][3].type >= 0) ||
239                     (rd->interfaces[i][4].type >= 0)) {
240                         printf("   %3d: ", i);
241
242 #if defined(ENABLE_JIT) && defined(ENABLE_DISASSEMBLER)
243 # if defined(ENABLE_INTRP)
244                         if (!opt_intrp) {
245 # endif
246                                 for (j = TYPE_INT; j <= TYPE_ADR; j++) {
247                                         if (rd->interfaces[i][j].type >= 0) {
248                                                 printf("   (%s) ", jit_type[j]);
249                                                 if (stage >= SHOW_REGS) {
250                                                         if (rd->interfaces[i][j].flags & SAVEDVAR) {
251                                                                 if (rd->interfaces[i][j].flags & INMEMORY)
252                                                                         printf("M%2d", rd->interfaces[i][j].regoff);
253 #ifdef HAS_ADDRESS_REGISTER_FILE
254                                                                 else if (j == TYPE_ADR)
255                                                                         printf("R%02d", rd->interfaces[i][j].regoff);
256 #endif
257                                                                 else if ((j == TYPE_FLT) || (j == TYPE_DBL))
258                                                                         printf("F%02d", rd->interfaces[i][j].regoff);
259                                                                 else {
260 #if defined(SUPPORT_COMBINE_INTEGER_REGISTERS)
261                                                                         if (IS_2_WORD_TYPE(j))
262                                                                                 printf(" %3s/%3s",
263                                                                                            regs[GET_LOW_REG(rd->interfaces[i][j].regoff)],
264                                                                                            regs[GET_HIGH_REG(rd->interfaces[i][j].regoff)]);
265                                                                         else
266 #endif
267                                                                                 printf("%3s",regs[rd->interfaces[i][j].regoff]);
268                                                                 }
269                                                         }
270                                                         else {
271                                                                 if (rd->interfaces[i][j].flags & INMEMORY)
272                                                                         printf("m%2d", rd->interfaces[i][j].regoff);
273 #ifdef HAS_ADDRESS_REGISTER_FILE
274                                                                 else if (j == TYPE_ADR)
275                                                                         printf("r%02d", rd->interfaces[i][j].regoff);
276 #endif
277                                                                 else if ((j == TYPE_FLT) || (j == TYPE_DBL))
278                                                                         printf("f%02d", rd->interfaces[i][j].regoff);
279                                                                 else {
280 #if defined(SUPPORT_COMBINE_INTEGER_REGISTERS)
281                                                                         if (IS_2_WORD_TYPE(j))
282                                                                                 printf(" %3s/%3s",
283                                                                                            regs[GET_LOW_REG(rd->interfaces[i][j].regoff)],
284                                                                                            regs[GET_HIGH_REG(rd->interfaces[i][j].regoff)]);
285                                                                         else
286 #endif
287                                                                                 printf("%3s",regs[rd->interfaces[i][j].regoff]);
288                                                                 }
289                                                         }
290                                                 }
291                                         }
292                                 }
293                                 printf("\n");
294 # if defined(ENABLE_INTRP)
295                         }
296 # endif
297 #endif /* defined(ENABLE_JIT) && defined(ENABLE_DISASSEMBLER) */
298
299                 }
300         }
301         printf("\n");
302
303 #if defined(ENABLE_INTRP)
304                 }
305 #endif
306 #if defined(ENABLE_LSRA) || defined(ENABLE_SSA)
307         }
308 #endif
309         } /* if >= SHOW_STACK */
310
311         if (code->rplpoints) {
312                 printf("Replacement Points:\n");
313                 replace_show_replacement_points(code);
314                 printf("\n");
315         }
316
317 #if defined(ENABLE_DISASSEMBLER)
318         /* show code before first basic block */
319
320         if ((stage >= SHOW_CODE) && JITDATA_HAS_FLAG_SHOWDISASSEMBLE(jd)) {
321                 u1ptr = (u1 *) ((ptrint) code->mcode + cd->dseglen);
322
323                 for (; u1ptr < (u1 *) ((ptrint) code->mcode + cd->dseglen + jd->new_basicblocks[0].mpc);)
324                         DISASSINSTR(u1ptr);
325
326                 printf("\n");
327         }
328 #endif
329
330         /* show code of all basic blocks */
331
332         for (bptr = jd->new_basicblocks; bptr != NULL; bptr = bptr->next)
333                 new_show_basicblock(jd, bptr, stage);
334
335 #if defined(ENABLE_DISASSEMBLER)
336         /* show stubs code */
337
338         if (stage >= SHOW_CODE && opt_showdisassemble && opt_showexceptionstubs) {
339                 printf("\nStubs code:\n");
340                 printf("Length: %d\n\n", (s4) (code->mcodelength -
341                                                                            ((ptrint) cd->dseglen + lastbptr->mpc)));
342
343                 u1ptr = (u1 *) ((ptrint) code->mcode + cd->dseglen + lastbptr->mpc);
344
345                 for (; (ptrint) u1ptr < ((ptrint) code->mcode + code->mcodelength);)
346                         DISASSINSTR(u1ptr);
347
348                 printf("\n");
349         }
350 #endif
351
352         LOCK_MONITOR_EXIT(show_global_lock);
353
354         /* finally flush the output */
355
356         fflush(stdout);
357 }
358 #endif /* !defined(NDEBUG) */
359
360
361 /* show_basicblock *************************************************************
362
363    Print the intermediate representation of a basic block.
364
365    NOTE: Currently this function may only be called after register allocation!
366
367 *******************************************************************************/
368
369 #if !defined(NDEBUG)
370 void new_show_basicblock(jitdata *jd, basicblock *bptr, int stage)
371 {
372         methodinfo  *m;
373         codeinfo    *code;
374         codegendata *cd;
375         s4           i;
376         bool         deadcode;
377         instruction *iptr;
378         u1          *u1ptr;
379
380         /* get required compiler data */
381
382         m    = jd->m;
383         code = jd->code;
384         cd   = jd->cd;
385
386         if (bptr->flags != BBDELETED) {
387                 deadcode = bptr->flags <= BBREACHED;
388
389                 printf("======== %sL%03d ======== (flags: %d, bitflags: %01x, next: %d, type: ",
390                                 (bptr->bitflags & BBFLAG_REPLACEMENT) ? "<REPLACE> " : "",
391                            bptr->nr, bptr->flags, bptr->bitflags, 
392                            (bptr->next) ? (bptr->next->nr) : -1);
393
394                 switch (bptr->type) {
395                 case BBTYPE_STD:
396                         printf("STD");
397                         break;
398                 case BBTYPE_EXH:
399                         printf("EXH");
400                         break;
401                 case BBTYPE_SBR:
402                         printf("SBR");
403                         break;
404                 }
405
406                 printf(", instruction count: %d, predecessors: %d [ ",
407                            bptr->icount, bptr->predecessorcount);
408
409                 for (i = 0; i < bptr->predecessorcount; i++)
410                         printf("%d ", bptr->predecessors[i]->nr);
411
412                 printf("]):\n");
413
414                 if (stage >= SHOW_STACK) {
415                         printf("IN:  ");
416                         new_show_variable_array(jd, bptr->invars, bptr->indepth, stage);
417                         printf("\n");
418                 }
419
420                 iptr = bptr->iinstr;
421
422                 for (i = 0; i < bptr->icount; i++, iptr++) {
423                         printf("%4d:  ", iptr->line);
424
425                         new_show_icmd(jd, iptr, deadcode, stage);
426                         printf("\n");
427                 }
428
429                 if (stage >= SHOW_STACK) {
430                         printf("OUT: ");
431                         new_show_variable_array(jd, bptr->outvars, bptr->outdepth, stage);
432                         printf("\n");
433                 }
434
435 #if defined(ENABLE_DISASSEMBLER)
436                 if ((stage >= SHOW_CODE) && JITDATA_HAS_FLAG_SHOWDISASSEMBLE(jd) &&
437                         (!deadcode)) 
438                 {
439                         printf("\n");
440                         u1ptr = (u1 *) (code->mcode + cd->dseglen + bptr->mpc);
441
442                         if (bptr->next != NULL) {
443                                 for (; u1ptr < (u1 *) (code->mcode + cd->dseglen + bptr->next->mpc);)
444                                         DISASSINSTR(u1ptr);
445
446                         } 
447                         else {
448                                 for (; u1ptr < (u1 *) (code->mcode + code->mcodelength);)
449                                         DISASSINSTR(u1ptr); 
450                         }
451                         printf("\n");
452                 }
453 #endif
454         }
455 }
456 #endif /* !defined(NDEBUG) */
457
458
459 /* show_icmd *******************************************************************
460
461    Print the intermediate representation of an instruction.
462
463    NOTE: Currently this function may only be called after register allocation!
464
465 *******************************************************************************/
466
467 #if !defined(NDEBUG)
468
469 #define SHOW_TARGET(target)                                          \
470         if (stage >= SHOW_STACK) {                                   \
471             printf("--> L%03d ", (target).block->nr);                \
472         }                                                            \
473         else if (stage >= SHOW_PARSE) {                              \
474             printf("--> insindex %d (L%03d) ", (target).insindex,    \
475                 jd->new_basicblocks[jd->new_basicblockindex[         \
476                 (target).insindex]].nr);                             \
477         }                                                            \
478         else {                                                       \
479             printf("--> insindex %d ", (target).insindex);           \
480         }
481
482 #define SHOW_INT_CONST(val)                                          \
483         if (stage >= SHOW_PARSE) {                                   \
484             printf("%ld ", (long) (val));                            \
485         }                                                            \
486         else {                                                       \
487             printf("iconst ");                                       \
488         }
489
490 #define SHOW_LNG_CONST(val)                                          \
491         if (stage >= SHOW_PARSE) {                                   \
492             printf("%lld ", (long long)(val));                       \
493         }                                                            \
494         else {                                                       \
495             printf("lconst ");                                       \
496         }
497
498 #define SHOW_FLT_CONST(val)                                          \
499         if (stage >= SHOW_PARSE) {                                   \
500             printf("%g ", (val));                                    \
501         }                                                            \
502         else {                                                       \
503             printf("fconst ");                                       \
504         }
505
506 #define SHOW_DBL_CONST(val)                                          \
507         if (stage >= SHOW_PARSE) {                                   \
508             printf("%g ", (val));                                    \
509         }                                                            \
510         else {                                                       \
511             printf("dconst ");                                       \
512         }
513
514 #define SHOW_INDEX(index)                                            \
515         if (stage >= SHOW_PARSE) {                                   \
516             printf("%d ", index);                                    \
517         }                                                            \
518         else {                                                       \
519             printf("index");                                         \
520         }
521
522 #define SHOW_STRING(val)                                             \
523         if (stage >= SHOW_PARSE) {                                   \
524             putchar('"');                                            \
525             utf_display_printable_ascii(                             \
526                 javastring_toutf((java_lang_String *)(val), false)); \
527             printf("\" ");                                           \
528         }                                                            \
529         else {                                                       \
530             printf("string ");                                       \
531         }
532
533 #define SHOW_CLASSREF_OR_CLASSINFO(c)                                \
534         if (stage >= SHOW_PARSE) {                                   \
535             if (IS_CLASSREF(c))                                      \
536                 class_classref_print(c.ref);                         \
537             else                                                     \
538                 class_print(c.cls);                                  \
539             putchar(' ');                                            \
540         }                                                            \
541         else {                                                       \
542             printf("class ");                                        \
543         }
544
545 #define SHOW_FIELD(fmiref)                                           \
546         if (stage >= SHOW_PARSE) {                                   \
547             field_fieldref_print(fmiref);                            \
548             putchar(' ');                                            \
549         }                                                            \
550         else {                                                       \
551             printf("field ");                                        \
552         }
553
554 #define SHOW_STACKVAR(sp)                                            \
555         new_show_stackvar(jd, (sp), stage)
556
557 #define SHOW_S1(iptr)                                                \
558         if (stage >= SHOW_STACK) {                                   \
559             SHOW_STACKVAR(iptr->s1.var);                             \
560         }
561
562 #define SHOW_S2(iptr)                                                \
563         if (stage >= SHOW_STACK) {                                   \
564             SHOW_STACKVAR(iptr->sx.s23.s2.var);                      \
565         }
566
567 #define SHOW_S3(iptr)                                                \
568         if (stage >= SHOW_STACK) {                                   \
569             SHOW_STACKVAR(iptr->sx.s23.s3.var);                      \
570         }
571
572 #define SHOW_DST(iptr)                                               \
573         if (stage >= SHOW_STACK) {                                   \
574             printf("=> ");                                           \
575             SHOW_STACKVAR(iptr->dst.var);                            \
576         }
577
578 #define SHOW_S1_LOCAL(iptr)                                          \
579         if (stage >= SHOW_STACK) {                                   \
580             printf("L%d ", iptr->s1.localindex);                     \
581         }
582
583 #define SHOW_DST_LOCAL(iptr)                                         \
584         if (stage >= SHOW_STACK) {                                   \
585             printf("=> L%d ", iptr->dst.localindex);                 \
586         }
587
588 static void new_show_stackvar(jitdata *jd, stackptr sp, int stage)
589 {
590         char type;
591
592         switch (sp->type) {
593                 case TYPE_INT: type = 'i'; break;
594                 case TYPE_LNG: type = 'l'; break;
595                 case TYPE_FLT: type = 'f'; break;
596                 case TYPE_DBL: type = 'd'; break;
597                 case TYPE_ADR: type = 'a'; break;
598                 default:       type = '?';
599         }
600
601         switch (sp->varkind) {
602                 case TEMPVAR: printf("T%c%d", type, (int) (sp - jd->new_stack)); break;
603                 case LOCALVAR: printf("L%c%d(T%d)", type, sp->varnum, (int) (sp - jd->new_stack)); break;
604                 case STACKVAR: printf("I%c%d(T%d)", type, sp->varnum, (int) (sp - jd->new_stack)); break;
605                 case ARGVAR: printf("A%c%d(T%d)", type, sp->varnum, (int) (sp - jd->new_stack)); break;
606                 default: printf("?%c%d(T%d)", type, sp->varnum, (int) (sp - jd->new_stack)); break;
607         }
608
609         if (stage >= SHOW_REGS) {
610                 putchar('(');
611
612                 if (sp->flags & SAVEDVAR) {
613                         switch (sp->varkind) {
614                         case TEMPVAR:
615                                 if (sp->flags & INMEMORY)
616                                         printf("M%02d", sp->regoff);
617 #ifdef HAS_ADDRESS_REGISTER_FILE
618                                 else if (sp->type == TYPE_ADR)
619                                         printf("R%02d", sp->regoff);
620 #endif
621                                 else if (IS_FLT_DBL_TYPE(sp->type))
622                                         printf("F%02d", sp->regoff);
623                                 else {
624 #if defined(SUPPORT_COMBINE_INTEGER_REGISTERS)
625                                         if (IS_2_WORD_TYPE(sp->type)) {
626 # if defined(ENABLE_JIT) && defined(ENABLE_DISASSEMBLER)
627 #  if defined(ENABLE_INTRP)
628                                                 if (opt_intrp)
629                                                         printf("%3d/%3d", GET_LOW_REG(sp->regoff),
630                                                                    GET_HIGH_REG(sp->regoff));
631                                                 else
632 #  endif
633                                                         printf("%3s/%3s", regs[GET_LOW_REG(sp->regoff)],
634                                                                    regs[GET_HIGH_REG(sp->regoff)]);
635 # else
636                                                 printf("%3d/%3d", GET_LOW_REG(sp->regoff),
637                                                            GET_HIGH_REG(sp->regoff));
638 # endif
639                                         } 
640                                         else 
641 #endif /* defined(SUPPORT_COMBINE_INTEGER_REGISTERS) */
642                                                 {
643 #if defined(ENABLE_JIT) && defined(ENABLE_DISASSEMBLER)
644 # if defined(ENABLE_INTRP)
645                                                         if (opt_intrp)
646                                                                 printf("%3d", sp->regoff);
647                                                         else
648 # endif
649                                                                 printf("%3s", regs[sp->regoff]);
650 #else
651                                                         printf("%3d", sp->regoff);
652 #endif
653                                                 }
654                                 }
655                                 break;
656                         case STACKVAR:
657                                 printf("I%02d", sp->varnum);
658                                 break;
659                         case LOCALVAR:
660                                 printf("L%02d", sp->varnum);
661                                 break;
662                         case ARGVAR:
663                                 if (sp->varnum == -1) {
664                                         /* Return Value                                  */
665                                         /* varkind ARGVAR "misused for this special case */
666                                         printf(" V0");
667                                 } 
668                                 else /* "normal" Argvar */
669                                         printf("A%02d", sp->varnum);
670                                 break;
671                         default:
672                                 printf("!xx {kind=%d, num=%d}", sp->varkind, sp->varnum);
673                         }
674                 }
675                 else { /* not SAVEDVAR */
676                         switch (sp->varkind) {
677                         case TEMPVAR:
678                                 if (sp->flags & INMEMORY)
679                                         printf("m%02d", sp->regoff);
680 #ifdef HAS_ADDRESS_REGISTER_FILE
681                                 else if (sp->type == TYPE_ADR)
682                                         printf("r%02d", sp->regoff);
683 #endif
684                                 else if (IS_FLT_DBL_TYPE(sp->type))
685                                         printf("f%02d", sp->regoff);
686                                 else {
687 #if defined(SUPPORT_COMBINE_INTEGER_REGISTERS)
688                                         if (IS_2_WORD_TYPE(sp->type)) {
689 # if defined(ENABLE_JIT) && defined(ENABLE_DISASSEMBLER)
690 #  if defined(ENABLE_INTRP)
691                                                 if (opt_intrp)
692                                                         printf("%3d/%3d", GET_LOW_REG(sp->regoff),
693                                                                    GET_HIGH_REG(sp->regoff));
694                                                 else
695 #  endif
696                                                         printf("%3s/%3s", regs[GET_LOW_REG(sp->regoff)],
697                                                                    regs[GET_HIGH_REG(sp->regoff)]);
698 # else
699                                                 printf("%3d/%3d", GET_LOW_REG(sp->regoff),
700                                                            GET_HIGH_REG(sp->regoff));
701 # endif
702                                         } 
703                                         else
704 #endif /* defined(SUPPORT_COMBINE_INTEGER_REGISTERS) */
705                                                 {
706 #if defined(ENABLE_JIT) && defined(ENABLE_DISASSEMBLER)
707 # if defined(ENABLE_INTRP)
708                                                         if (opt_intrp)
709                                                                 printf("%3d", sp->regoff);
710                                                         else
711 # endif
712                                                                 printf("%3s", regs[sp->regoff]);
713 #else
714                                                         printf("%3d", sp->regoff);
715 #endif
716                                                 }
717                                 }
718                                 break;
719                         case STACKVAR:
720                                 printf("i%02d", sp->varnum);
721                                 break;
722                         case LOCALVAR:
723                                 printf("l%02d", sp->varnum);
724                                 break;
725                         case ARGVAR:
726                                 if (sp->varnum == -1) {
727                                         /* Return Value                                  */
728                                         /* varkind ARGVAR "misused for this special case */
729                                         printf(" v0");
730                                 } 
731                                 else /* "normal" Argvar */
732                                 printf("a%02d", sp->varnum);
733                                 break;
734                         default:
735                                 printf("?xx {kind=%d, num=%d}", sp->varkind, sp->varnum);
736                         }
737                 }
738
739                 putchar(')');
740         }
741         putchar(' ');
742 }
743
744 static void new_show_variable_array(jitdata *jd, stackptr *vars, int n, int stage)
745 {
746         int i;
747
748         printf("[");
749         for (i=0; i<n; ++i) {
750                 if (i)
751                         printf(" ");
752                 new_show_stackvar(jd, vars[i], stage);
753         }
754         printf("]");
755 }
756
757 void new_show_icmd(jitdata *jd, instruction *iptr, bool deadcode, int stage)
758 {
759         u2                 opcode;
760         branch_target_t   *table;
761         lookup_target_t   *lookup;
762         constant_FMIref   *fmiref;
763         stackptr          *argp;
764         s4                 i;
765
766         /* get the opcode and the condition */
767
768         opcode    =  iptr->opc;
769
770         printf("%s ", icmd_names[opcode]);
771
772         if (stage < SHOW_PARSE)
773                 return;
774
775         if (deadcode)
776                 stage = SHOW_PARSE;
777
778         /* Print the condition for conditional instructions. */
779
780         /* XXX print condition from flags */
781
782         if (iptr->flags.bits & INS_FLAG_UNRESOLVED)
783                 printf("(UNRESOLVED) ");
784
785         switch (opcode) {
786
787         case ICMD_POP:
788         case ICMD_CHECKNULL:
789         case ICMD_CHECKNULL_POP:
790                 SHOW_S1(iptr);
791                 break;
792
793                 /* unary */
794         case ICMD_ARRAYLENGTH:
795         case ICMD_INEG:
796         case ICMD_LNEG:
797         case ICMD_FNEG:
798         case ICMD_DNEG:
799         case ICMD_I2L:
800         case ICMD_I2F:
801         case ICMD_I2D:
802         case ICMD_L2I:
803         case ICMD_L2F:
804         case ICMD_L2D:
805         case ICMD_F2I:
806         case ICMD_F2L:
807         case ICMD_F2D:
808         case ICMD_D2I:
809         case ICMD_D2L:
810         case ICMD_D2F:
811         case ICMD_INT2BYTE:
812         case ICMD_INT2CHAR:
813         case ICMD_INT2SHORT:
814                 SHOW_S1(iptr);
815                 SHOW_DST(iptr);
816                 break;
817
818                 /* binary */
819         case ICMD_IADD:
820         case ICMD_LADD:
821         case ICMD_FADD:
822         case ICMD_DADD:
823         case ICMD_ISUB:
824         case ICMD_LSUB:
825         case ICMD_FSUB:
826         case ICMD_DSUB:
827         case ICMD_IMUL:
828         case ICMD_LMUL:
829         case ICMD_FMUL:
830         case ICMD_DMUL:
831         case ICMD_IDIV:
832         case ICMD_LDIV:
833         case ICMD_FDIV:
834         case ICMD_DDIV:
835         case ICMD_IREM:
836         case ICMD_LREM:
837         case ICMD_FREM:
838         case ICMD_DREM:
839         case ICMD_ISHL:
840         case ICMD_LSHL:
841         case ICMD_ISHR:
842         case ICMD_LSHR:
843         case ICMD_IUSHR:
844         case ICMD_LUSHR:
845         case ICMD_IAND:
846         case ICMD_LAND:
847         case ICMD_IOR:
848         case ICMD_LOR:
849         case ICMD_IXOR:
850         case ICMD_LXOR:
851         case ICMD_LCMP:
852         case ICMD_FCMPL:
853         case ICMD_FCMPG:
854         case ICMD_DCMPL:
855         case ICMD_DCMPG:
856                 SHOW_S1(iptr);
857                 SHOW_S2(iptr);
858                 SHOW_DST(iptr);
859                 break;
860
861                 /* binary/const INT */
862         case ICMD_IADDCONST:
863         case ICMD_ISUBCONST:
864         case ICMD_IMULCONST:
865         case ICMD_IMULPOW2:
866         case ICMD_IDIVPOW2:
867         case ICMD_IREMPOW2:
868         case ICMD_IANDCONST:
869         case ICMD_IORCONST:
870         case ICMD_IXORCONST:
871         case ICMD_ISHLCONST:
872         case ICMD_ISHRCONST:
873         case ICMD_IUSHRCONST:
874         case ICMD_LSHLCONST:
875         case ICMD_LSHRCONST:
876         case ICMD_LUSHRCONST:
877                 SHOW_S1(iptr);
878                 SHOW_INT_CONST(iptr->sx.val.i); 
879                 SHOW_DST(iptr);
880                 break;
881
882                 /* ?ASTORECONST (trinary/const INT) */
883         case ICMD_IASTORECONST:
884         case ICMD_BASTORECONST:
885         case ICMD_CASTORECONST:
886         case ICMD_SASTORECONST:
887                 SHOW_S1(iptr);
888                 SHOW_S2(iptr);
889                 SHOW_INT_CONST(iptr->sx.s23.s3.constval);
890                 break;
891
892                 /* const INT */
893         case ICMD_ICONST:
894                 SHOW_INT_CONST(iptr->sx.val.i); 
895                 SHOW_DST(iptr);
896                 break;
897
898                 /* binary/const LNG */
899         case ICMD_LADDCONST:
900         case ICMD_LSUBCONST:
901         case ICMD_LMULCONST:
902         case ICMD_LMULPOW2:
903         case ICMD_LDIVPOW2:
904         case ICMD_LREMPOW2:
905         case ICMD_LANDCONST:
906         case ICMD_LORCONST:
907         case ICMD_LXORCONST:
908                 SHOW_S1(iptr);
909                 SHOW_LNG_CONST(iptr->sx.val.l); 
910                 SHOW_DST(iptr);
911                 break;
912
913                 /* trinary/const LNG (<= pointer size) */
914         case ICMD_LASTORECONST:
915                 SHOW_S1(iptr);
916                 SHOW_S2(iptr);
917                 SHOW_LNG_CONST(iptr->sx.s23.s3.constval);
918                 break;
919
920                 /* const LNG */
921         case ICMD_LCONST:
922                 SHOW_LNG_CONST(iptr->sx.val.l); 
923                 SHOW_DST(iptr);
924                 break;
925
926                 /* const FLT */
927         case ICMD_FCONST:
928                 SHOW_FLT_CONST(iptr->sx.val.f); 
929                 SHOW_DST(iptr);
930                 break;
931
932                 /* const DBL */
933         case ICMD_DCONST:
934                 SHOW_DBL_CONST(iptr->sx.val.d); 
935                 SHOW_DST(iptr);
936                 break;
937
938                 /* const ADR */
939         case ICMD_ACONST:
940                 if (iptr->flags.bits & INS_FLAG_CLASS) {
941                         SHOW_CLASSREF_OR_CLASSINFO(iptr->sx.val.c);
942                 }
943                 else if (iptr->sx.val.anyptr == NULL) {
944                         printf("NULL ");
945                 }
946                 else {
947                         SHOW_STRING(iptr->sx.val.stringconst);
948                 }
949                 SHOW_DST(iptr);
950                 break;
951
952         case ICMD_AASTORECONST:
953                 SHOW_S1(iptr);
954                 SHOW_S2(iptr);
955                 printf("%p ", (void*) iptr->sx.s23.s3.constval);
956                 break;
957
958         case ICMD_GETFIELD:        /* 1 -> 1 */
959         case ICMD_PUTFIELD:        /* 2 -> 0 */
960         case ICMD_PUTSTATIC:       /* 1 -> 0 */
961         case ICMD_GETSTATIC:       /* 0 -> 1 */
962         case ICMD_PUTSTATICCONST:  /* 0 -> 0 */
963         case ICMD_PUTFIELDCONST:   /* 1 -> 0 */
964                 if (opcode != ICMD_GETSTATIC && opcode != ICMD_PUTSTATICCONST) {
965                         SHOW_S1(iptr);
966                         if (opcode == ICMD_PUTFIELD) {
967                                 SHOW_S2(iptr);
968                         }
969                 }
970                 INSTRUCTION_GET_FIELDREF(iptr, fmiref);
971                 SHOW_FIELD(fmiref);
972
973                 if (opcode == ICMD_GETSTATIC || opcode == ICMD_GETFIELD) {
974                         SHOW_DST(iptr);
975                 }
976                 break;
977
978         case ICMD_IINC:
979                 SHOW_S1_LOCAL(iptr);
980                 SHOW_INT_CONST(iptr->sx.val.i);
981                 SHOW_DST_LOCAL(iptr);
982                 break;
983
984         case ICMD_IASTORE:
985         case ICMD_SASTORE:
986         case ICMD_BASTORE:
987         case ICMD_CASTORE:
988         case ICMD_LASTORE:
989         case ICMD_DASTORE:
990         case ICMD_FASTORE:
991         case ICMD_AASTORE:
992                 SHOW_S1(iptr);
993                 SHOW_S2(iptr);
994                 SHOW_S3(iptr);
995                 break;
996
997         case ICMD_IALOAD:
998         case ICMD_SALOAD:
999         case ICMD_BALOAD:
1000         case ICMD_CALOAD:
1001         case ICMD_LALOAD:
1002         case ICMD_DALOAD:
1003         case ICMD_FALOAD:
1004         case ICMD_AALOAD:
1005                 SHOW_S1(iptr);
1006                 SHOW_S2(iptr);
1007                 SHOW_DST(iptr);
1008                 break;
1009
1010         case ICMD_RET:
1011                 SHOW_S1_LOCAL(iptr);
1012                 break;
1013
1014         case ICMD_ILOAD:
1015         case ICMD_LLOAD:
1016         case ICMD_FLOAD:
1017         case ICMD_DLOAD:
1018         case ICMD_ALOAD:
1019                 SHOW_S1_LOCAL(iptr);
1020                 SHOW_DST(iptr);
1021                 break;
1022
1023         case ICMD_ISTORE:
1024         case ICMD_LSTORE:
1025         case ICMD_FSTORE:
1026         case ICMD_DSTORE:
1027         case ICMD_ASTORE:
1028                 SHOW_S1(iptr);
1029                 SHOW_DST_LOCAL(iptr);
1030                 break;
1031
1032         case ICMD_NEW:
1033                 SHOW_DST(iptr);
1034                 break;
1035
1036         case ICMD_NEWARRAY:
1037                 SHOW_DST(iptr);
1038                 break;
1039
1040         case ICMD_ANEWARRAY:
1041                 SHOW_DST(iptr);
1042                 break;
1043
1044         case ICMD_MULTIANEWARRAY:
1045                 if (stage >= SHOW_STACK) {
1046                         argp = iptr->sx.s23.s2.args;
1047                         i = iptr->s1.argcount;
1048                         while (i--) {
1049                                 SHOW_STACKVAR(*(argp++));
1050                         }
1051                 }
1052                 else {
1053                         printf("argcount=%d ", iptr->s1.argcount);
1054                 }
1055                 SHOW_DST(iptr);
1056                 break;
1057
1058         case ICMD_CHECKCAST:
1059                 SHOW_S1(iptr);
1060                 SHOW_DST(iptr);
1061                 break;
1062
1063         case ICMD_INSTANCEOF:
1064                 SHOW_S1(iptr);
1065                 SHOW_DST(iptr);
1066                 break;
1067
1068         case ICMD_INLINE_START:
1069         case ICMD_INLINE_END:
1070                 break;
1071
1072         case ICMD_BUILTIN:
1073                 if (stage >= SHOW_STACK) {
1074                         argp = iptr->sx.s23.s2.args;
1075                         i = iptr->s1.argcount;
1076                         while (i--) {
1077                                 if ((iptr->s1.argcount - 1 - i) == iptr->sx.s23.s3.bte->md->paramcount)
1078                                         printf(" pass-through: ");
1079                                 SHOW_STACKVAR(*(argp++));
1080                         }
1081                 }
1082                 printf("%s ", iptr->sx.s23.s3.bte->cname);
1083                 if (iptr->sx.s23.s3.bte->md->returntype.type != TYPE_VOID) {
1084                         SHOW_DST(iptr);
1085                 }
1086                 break;
1087
1088         case ICMD_INVOKEVIRTUAL:
1089         case ICMD_INVOKESPECIAL:
1090         case ICMD_INVOKESTATIC:
1091         case ICMD_INVOKEINTERFACE:
1092                 if (stage >= SHOW_STACK) {
1093                         argp = iptr->sx.s23.s2.args;
1094                         i = iptr->s1.argcount;
1095                         while (i--) {
1096                                 SHOW_STACKVAR(*(argp++));
1097                         }
1098                 }
1099                 INSTRUCTION_GET_METHODREF(iptr, fmiref);
1100                 method_methodref_print(fmiref);
1101                 if (fmiref->parseddesc.md->returntype.type != TYPE_VOID) {
1102                         SHOW_DST(iptr);
1103                 }
1104                 break;
1105
1106         case ICMD_IFEQ:
1107         case ICMD_IFNE:
1108         case ICMD_IFLT:
1109         case ICMD_IFGE:
1110         case ICMD_IFGT:
1111         case ICMD_IFLE:
1112                 SHOW_S1(iptr);
1113                 SHOW_TARGET(iptr->dst);
1114                 break;
1115
1116         case ICMD_IF_LEQ:
1117         case ICMD_IF_LNE:
1118         case ICMD_IF_LLT:
1119         case ICMD_IF_LGE:
1120         case ICMD_IF_LGT:
1121         case ICMD_IF_LLE:
1122                 SHOW_S1(iptr);
1123                 SHOW_TARGET(iptr->dst);
1124                 break;
1125
1126         case ICMD_GOTO:
1127         case ICMD_INLINE_GOTO:
1128                 SHOW_TARGET(iptr->dst);
1129                 break;
1130
1131         case ICMD_JSR:
1132                 SHOW_TARGET(iptr->sx.s23.s3.jsrtarget);
1133                 SHOW_DST(iptr);
1134                 break;
1135
1136         case ICMD_IFNULL:
1137         case ICMD_IFNONNULL:
1138                 SHOW_S1(iptr);
1139                 SHOW_TARGET(iptr->dst);
1140                 break;
1141
1142         case ICMD_IF_ICMPEQ:
1143         case ICMD_IF_ICMPNE:
1144         case ICMD_IF_ICMPLT:
1145         case ICMD_IF_ICMPGE:
1146         case ICMD_IF_ICMPGT:
1147         case ICMD_IF_ICMPLE:
1148
1149         case ICMD_IF_LCMPEQ:
1150         case ICMD_IF_LCMPNE:
1151         case ICMD_IF_LCMPLT:
1152         case ICMD_IF_LCMPGE:
1153         case ICMD_IF_LCMPGT:
1154         case ICMD_IF_LCMPLE:
1155
1156         case ICMD_IF_FCMPEQ:
1157         case ICMD_IF_FCMPNE:
1158
1159         case ICMD_IF_FCMPL_LT:
1160         case ICMD_IF_FCMPL_GE:
1161         case ICMD_IF_FCMPL_GT:
1162         case ICMD_IF_FCMPL_LE:
1163
1164         case ICMD_IF_FCMPG_LT:
1165         case ICMD_IF_FCMPG_GE:
1166         case ICMD_IF_FCMPG_GT:
1167         case ICMD_IF_FCMPG_LE:
1168
1169         case ICMD_IF_DCMPEQ:
1170         case ICMD_IF_DCMPNE:
1171
1172         case ICMD_IF_DCMPL_LT:
1173         case ICMD_IF_DCMPL_GE:
1174         case ICMD_IF_DCMPL_GT:
1175         case ICMD_IF_DCMPL_LE:
1176
1177         case ICMD_IF_DCMPG_LT:
1178         case ICMD_IF_DCMPG_GE:
1179         case ICMD_IF_DCMPG_GT:
1180         case ICMD_IF_DCMPG_LE:
1181
1182         case ICMD_IF_ACMPEQ:
1183         case ICMD_IF_ACMPNE:
1184                 SHOW_S1(iptr);
1185                 SHOW_S2(iptr);
1186                 SHOW_TARGET(iptr->dst);
1187                 break;
1188
1189         case ICMD_TABLESWITCH:
1190                 SHOW_S1(iptr);
1191                 table = iptr->dst.table;
1192
1193                 i = iptr->sx.s23.s3.tablehigh
1194                         - iptr->sx.s23.s2.tablelow + 1;
1195
1196                 printf("high=%d low=%d count=%d\n", iptr->sx.s23.s3.tablehigh, iptr->sx.s23.s2.tablelow, i);
1197                 while (--i >= 0) {
1198                         printf("\t\t%d --> ", table - iptr->dst.table);
1199                         if (stage >= SHOW_STACK) {
1200                                 printf("L%03d\n", table->block->nr);
1201                         }
1202                         else {
1203                                 printf("insindex %d (L%03d)\n", table->insindex, BLOCK_OF(table->insindex)->nr);
1204                         }
1205                         table++;
1206                 }
1207
1208                 break;
1209
1210         case ICMD_LOOKUPSWITCH:
1211                 SHOW_S1(iptr);
1212
1213                 printf("count=%d, default=", iptr->sx.s23.s2.lookupcount);
1214                 if (stage >= SHOW_STACK) {
1215                         printf("L%03d\n", iptr->sx.s23.s3.lookupdefault.block->nr);
1216                 }
1217                 else {
1218                         printf("insindex %d (L%03d)\n", iptr->sx.s23.s3.lookupdefault.insindex, BLOCK_OF(iptr->sx.s23.s3.lookupdefault.insindex)->nr);
1219                 }
1220
1221                 lookup = iptr->dst.lookup;
1222                 i = iptr->sx.s23.s2.lookupcount;
1223                 while (--i >= 0) {
1224                         printf("\t\t%d --> ", lookup->value);
1225                         if (stage >= SHOW_STACK) {
1226                                 printf("L%03d\n", lookup->target.block->nr);
1227                         }
1228                         else {
1229                                 printf("insindex %d (L%03d)\n", lookup->target.insindex, BLOCK_OF(lookup->target.insindex)->nr);
1230                         }
1231                         lookup++;
1232                 }
1233                 break;
1234
1235         case ICMD_ARETURN:
1236                 SHOW_S1(iptr);
1237                 break;
1238
1239         case ICMD_ATHROW:
1240                 SHOW_S1(iptr);
1241                 break;
1242
1243         case ICMD_DUP:
1244         case ICMD_COPY:
1245         case ICMD_MOVE:
1246                 SHOW_S1(iptr);
1247                 SHOW_DST(iptr);
1248                 break;
1249
1250         case ICMD_DUP2:
1251                 if (stage >= SHOW_STACK) {
1252                         SHOW_STACKVAR(iptr->dst.dupslots[0]);
1253                         SHOW_STACKVAR(iptr->dst.dupslots[1]);
1254                         printf("=> ");
1255                         SHOW_STACKVAR(iptr->dst.dupslots[2+0]);
1256                         SHOW_STACKVAR(iptr->dst.dupslots[2+1]);
1257                 }
1258                 break;
1259
1260         case ICMD_DUP_X1:
1261                 if (stage >= SHOW_STACK) {
1262                         SHOW_STACKVAR(iptr->dst.dupslots[0]);
1263                         SHOW_STACKVAR(iptr->dst.dupslots[1]);
1264                         printf("=> ");
1265                         SHOW_STACKVAR(iptr->dst.dupslots[2+0]);
1266                         SHOW_STACKVAR(iptr->dst.dupslots[2+1]);
1267                         SHOW_STACKVAR(iptr->dst.dupslots[2+2]);
1268                 }
1269                 break;
1270
1271         case ICMD_DUP2_X1:
1272                 if (stage >= SHOW_STACK) {
1273                         SHOW_STACKVAR(iptr->dst.dupslots[0]);
1274                         SHOW_STACKVAR(iptr->dst.dupslots[1]);
1275                         SHOW_STACKVAR(iptr->dst.dupslots[2]);
1276                         printf("=> ");
1277                         SHOW_STACKVAR(iptr->dst.dupslots[3+0]);
1278                         SHOW_STACKVAR(iptr->dst.dupslots[3+1]);
1279                         SHOW_STACKVAR(iptr->dst.dupslots[3+2]);
1280                         SHOW_STACKVAR(iptr->dst.dupslots[3+3]);
1281                         SHOW_STACKVAR(iptr->dst.dupslots[3+4]);
1282                 }
1283                 break;
1284
1285         case ICMD_DUP_X2:
1286                 if (stage >= SHOW_STACK) {
1287                         SHOW_STACKVAR(iptr->dst.dupslots[0]);
1288                         SHOW_STACKVAR(iptr->dst.dupslots[1]);
1289                         SHOW_STACKVAR(iptr->dst.dupslots[2]);
1290                         printf("=> ");
1291                         SHOW_STACKVAR(iptr->dst.dupslots[3+0]);
1292                         SHOW_STACKVAR(iptr->dst.dupslots[3+1]);
1293                         SHOW_STACKVAR(iptr->dst.dupslots[3+2]);
1294                         SHOW_STACKVAR(iptr->dst.dupslots[3+3]);
1295                 }
1296                 break;
1297
1298         case ICMD_DUP2_X2:
1299                 if (stage >= SHOW_STACK) {
1300                         SHOW_STACKVAR(iptr->dst.dupslots[0]);
1301                         SHOW_STACKVAR(iptr->dst.dupslots[1]);
1302                         SHOW_STACKVAR(iptr->dst.dupslots[2]);
1303                         SHOW_STACKVAR(iptr->dst.dupslots[4]);
1304                         printf("=> ");
1305                         SHOW_STACKVAR(iptr->dst.dupslots[4+0]);
1306                         SHOW_STACKVAR(iptr->dst.dupslots[4+1]);
1307                         SHOW_STACKVAR(iptr->dst.dupslots[4+2]);
1308                         SHOW_STACKVAR(iptr->dst.dupslots[4+3]);
1309                         SHOW_STACKVAR(iptr->dst.dupslots[4+4]);
1310                         SHOW_STACKVAR(iptr->dst.dupslots[4+5]);
1311                 }
1312                 break;
1313
1314         case ICMD_SWAP:
1315                 if (stage >= SHOW_STACK) {
1316                         SHOW_STACKVAR(iptr->dst.dupslots[0]);
1317                         SHOW_STACKVAR(iptr->dst.dupslots[1]);
1318                         printf("=> ");
1319                         SHOW_STACKVAR(iptr->dst.dupslots[2+0]);
1320                         SHOW_STACKVAR(iptr->dst.dupslots[2+1]);
1321                 }
1322                 break;
1323
1324         }
1325 }
1326 #endif /* !defined(NDEBUG) */
1327
1328
1329 /*
1330  * These are local overrides for various environment variables in Emacs.
1331  * Please do not remove this and leave it at the end of the file, where
1332  * Emacs will automagically detect them.
1333  * ---------------------------------------------------------------------
1334  * Local variables:
1335  * mode: c
1336  * indent-tabs-mode: t
1337  * c-basic-offset: 4
1338  * tab-width: 4
1339  * End:
1340  * vim:noexpandtab:sw=4:ts=4:
1341  */