1 /* src/vm/jit/show.c - showing the intermediate representation
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
8 This file is part of CACAO.
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.
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.
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
25 Contact: cacao@cacaojvm.org
27 Authors: Andreas Krall
29 Changes: Edwin Steiner
43 #include "mm/memory.h"
45 #if defined(ENABLE_THREADS)
46 # include "threads/native/lock.h"
48 # include "threads/none/lock.h"
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"
60 /* global variables ***********************************************************/
62 #if defined(ENABLE_THREADS) && !defined(NDEBUG)
63 static java_objectheader *show_global_lock;
67 /* forward declarations *******************************************************/
70 static void new_show_variable_array(jitdata *jd, stackptr *vars, int n, int stage);
74 /* show_init *******************************************************************
76 Initialized the show subsystem (called by jit_init).
78 *******************************************************************************/
83 #if defined(ENABLE_THREADS)
84 /* initialize the show lock */
86 show_global_lock = NEW(java_objectheader);
88 lock_init_object_lock(show_global_lock);
99 static char *jit_type[] = {
109 /* show_method *****************************************************************
111 Print the intermediate representation of a method.
113 NOTE: Currently this function may only be called after register allocation!
115 *******************************************************************************/
118 void new_show_method(jitdata *jd, int stage)
125 basicblock *lastbptr;
130 /* get required compiler data */
137 /* We need to enter a lock here, since the binutils disassembler
138 is not reentrant-able and we could not read functions printed
141 LOCK_MONITOR_ENTER(show_global_lock);
143 /* get the last basic block */
145 for (lastbptr = jd->new_basicblocks; lastbptr->next != NULL; lastbptr = lastbptr->next);
151 printf("\n(NEW INSTRUCTION FORMAT)\n");
152 printf("\nBasic blocks: %d\n", jd->new_basicblockcount);
153 if (stage >= SHOW_CODE) {
154 printf("Code length: %d\n", (lastbptr->mpc - jd->new_basicblocks[0].mpc));
155 printf("Data length: %d\n", cd->dseglen);
156 printf("Stub length: %d\n", (s4) (code->mcodelength -
157 ((ptrint) cd->dseglen + lastbptr->mpc)));
159 printf("Max locals: %d\n", cd->maxlocals);
160 printf("Max stack: %d\n", cd->maxstack);
161 printf("Line number table length: %d\n", m->linenumbercount);
163 if (stage >= SHOW_PARSE) {
164 printf("Exceptions (Number: %d):\n", cd->exceptiontablelength);
165 for (ex = cd->exceptiontable; ex != NULL; ex = ex->down) {
166 printf(" L%03d ... ", ex->start->nr );
167 printf("L%03d = ", ex->end->nr);
168 printf("L%03d", ex->handler->nr);
169 printf(" (catchtype: ");
170 if (ex->catchtype.any)
171 if (IS_CLASSREF(ex->catchtype))
172 utf_display_printable_ascii_classname(ex->catchtype.ref->name);
174 utf_display_printable_ascii_classname(ex->catchtype.cls->name);
181 if (stage >= SHOW_PARSE && rd) {
182 printf("Local Table:\n");
183 for (i = 0; i < cd->maxlocals; i++) {
186 #if defined(ENABLE_JIT) && defined(ENABLE_DISASSEMBLER)
187 for (j = TYPE_INT; j <= TYPE_ADR; j++) {
188 # if defined(ENABLE_INTRP)
191 if (rd->locals[i][j].type >= 0) {
192 printf(" (%s) ", jit_type[j]);
193 if (stage >= SHOW_REGS) {
194 if (rd->locals[i][j].flags & INMEMORY)
195 printf("m%2d", rd->locals[i][j].regoff);
196 # ifdef HAS_ADDRESS_REGISTER_FILE
197 else if (j == TYPE_ADR)
198 printf("r%02d", rd->locals[i][j].regoff);
200 else if ((j == TYPE_FLT) || (j == TYPE_DBL))
201 printf("f%02d", rd->locals[i][j].regoff);
203 # if defined(SUPPORT_COMBINE_INTEGER_REGISTERS)
204 if (IS_2_WORD_TYPE(j))
206 regs[GET_LOW_REG(rd->locals[i][j].regoff)],
207 regs[GET_HIGH_REG(rd->locals[i][j].regoff)]);
210 printf("%3s", regs[rd->locals[i][j].regoff]);
214 # if defined(ENABLE_INTRP)
218 #endif /* defined(ENABLE_JIT) && defined(ENABLE_DISASSEMBLER) */
225 if (stage >= SHOW_STACK && rd) {
226 #if defined(ENABLE_LSRA) || defined(ENABLE_SSA)
229 #if defined(ENABLE_INTRP)
232 printf("Interface Table:\n");
233 for (i = 0; i < cd->maxstack; i++) {
234 if ((rd->interfaces[i][0].type >= 0) ||
235 (rd->interfaces[i][1].type >= 0) ||
236 (rd->interfaces[i][2].type >= 0) ||
237 (rd->interfaces[i][3].type >= 0) ||
238 (rd->interfaces[i][4].type >= 0)) {
241 #if defined(ENABLE_JIT) && defined(ENABLE_DISASSEMBLER)
242 # if defined(ENABLE_INTRP)
245 for (j = TYPE_INT; j <= TYPE_ADR; j++) {
246 if (rd->interfaces[i][j].type >= 0) {
247 printf(" (%s) ", jit_type[j]);
248 if (stage >= SHOW_REGS) {
249 if (rd->interfaces[i][j].flags & SAVEDVAR) {
250 if (rd->interfaces[i][j].flags & INMEMORY)
251 printf("M%2d", rd->interfaces[i][j].regoff);
252 #ifdef HAS_ADDRESS_REGISTER_FILE
253 else if (j == TYPE_ADR)
254 printf("R%02d", rd->interfaces[i][j].regoff);
256 else if ((j == TYPE_FLT) || (j == TYPE_DBL))
257 printf("F%02d", rd->interfaces[i][j].regoff);
259 #if defined(SUPPORT_COMBINE_INTEGER_REGISTERS)
260 if (IS_2_WORD_TYPE(j))
262 regs[GET_LOW_REG(rd->interfaces[i][j].regoff)],
263 regs[GET_HIGH_REG(rd->interfaces[i][j].regoff)]);
266 printf("%3s",regs[rd->interfaces[i][j].regoff]);
270 if (rd->interfaces[i][j].flags & INMEMORY)
271 printf("m%2d", rd->interfaces[i][j].regoff);
272 #ifdef HAS_ADDRESS_REGISTER_FILE
273 else if (j == TYPE_ADR)
274 printf("r%02d", rd->interfaces[i][j].regoff);
276 else if ((j == TYPE_FLT) || (j == TYPE_DBL))
277 printf("f%02d", rd->interfaces[i][j].regoff);
279 #if defined(SUPPORT_COMBINE_INTEGER_REGISTERS)
280 if (IS_2_WORD_TYPE(j))
282 regs[GET_LOW_REG(rd->interfaces[i][j].regoff)],
283 regs[GET_HIGH_REG(rd->interfaces[i][j].regoff)]);
286 printf("%3s",regs[rd->interfaces[i][j].regoff]);
293 # if defined(ENABLE_INTRP)
296 #endif /* defined(ENABLE_JIT) && defined(ENABLE_DISASSEMBLER) */
302 #if defined(ENABLE_INTRP)
305 #if defined(ENABLE_LSRA) || defined(ENABLE_SSA)
308 } /* if >= SHOW_STACK */
310 if (code->rplpoints) {
311 printf("Replacement Points:\n");
312 replace_show_replacement_points(code);
316 #if defined(ENABLE_DISASSEMBLER)
317 /* show code before first basic block */
319 if ((stage >= SHOW_CODE) && JITDATA_HAS_FLAG_SHOWDISASSEMBLE(jd)) {
320 u1ptr = (u1 *) ((ptrint) code->mcode + cd->dseglen);
322 for (; u1ptr < (u1 *) ((ptrint) code->mcode + cd->dseglen + jd->new_basicblocks[0].mpc);)
329 /* show code of all basic blocks */
331 for (bptr = jd->new_basicblocks; bptr != NULL; bptr = bptr->next)
332 new_show_basicblock(jd, bptr, stage);
334 #if defined(ENABLE_DISASSEMBLER)
335 /* show stubs code */
337 if (stage >= SHOW_CODE && opt_showdisassemble && opt_showexceptionstubs) {
338 printf("\nStubs code:\n");
339 printf("Length: %d\n\n", (s4) (code->mcodelength -
340 ((ptrint) cd->dseglen + lastbptr->mpc)));
342 u1ptr = (u1 *) ((ptrint) code->mcode + cd->dseglen + lastbptr->mpc);
344 for (; (ptrint) u1ptr < ((ptrint) code->mcode + code->mcodelength);)
351 LOCK_MONITOR_EXIT(show_global_lock);
353 /* finally flush the output */
357 #endif /* !defined(NDEBUG) */
360 /* show_basicblock *************************************************************
362 Print the intermediate representation of a basic block.
364 NOTE: Currently this function may only be called after register allocation!
366 *******************************************************************************/
369 void new_show_basicblock(jitdata *jd, basicblock *bptr, int stage)
376 new_instruction *iptr;
379 /* get required compiler data */
385 if (bptr->flags != BBDELETED) {
386 deadcode = bptr->flags <= BBREACHED;
388 printf("======== %sL%03d ======== (flags: %d, bitflags: %01x, next: %d, type: ",
389 (bptr->bitflags & BBFLAG_REPLACEMENT) ? "<REPLACE> " : "",
390 bptr->nr, bptr->flags, bptr->bitflags,
391 (bptr->next) ? (bptr->next->nr) : -1);
393 switch (bptr->type) {
405 printf(", instruction count: %d, predecessors: %d [ ",
406 bptr->icount, bptr->predecessorcount);
408 for (i = 0; i < bptr->predecessorcount; i++)
409 printf("%d ", bptr->predecessors[i]->nr);
413 iptr = /*XXX*/ (new_instruction *) bptr->iinstr;
415 for (i = 0; i < bptr->icount; i++, iptr++) {
416 printf("%4d: ", iptr->line);
418 new_show_icmd(jd, iptr, deadcode, stage);
422 #if defined(ENABLE_DISASSEMBLER)
423 if ((stage >= SHOW_CODE) && JITDATA_HAS_FLAG_SHOWDISASSEMBLE(jd) &&
426 u1ptr = (u1 *) (code->mcode + cd->dseglen + bptr->mpc);
428 if (bptr->next != NULL) {
429 for (; u1ptr < (u1 *) (code->mcode + cd->dseglen + bptr->next->mpc);)
434 for (; u1ptr < (u1 *) (code->mcode + code->mcodelength);)
442 #endif /* !defined(NDEBUG) */
445 /* show_icmd *******************************************************************
447 Print the intermediate representation of an instruction.
449 NOTE: Currently this function may only be called after register allocation!
451 *******************************************************************************/
455 #define SHOW_TARGET(target) \
456 if (stage >= SHOW_STACK) { \
457 printf("--> L%03d ", (target).block->nr); \
459 else if (stage >= SHOW_PARSE) { \
460 printf("--> insindex %d (L%03d) ", (target).insindex, \
461 jd->new_basicblocks[jd->new_basicblockindex[ \
462 (target).insindex]].nr); \
465 printf("--> insindex %d ", (target).insindex); \
468 #define SHOW_INT_CONST(val) \
469 if (stage >= SHOW_PARSE) { \
470 printf("%ld ", (long) (val)); \
476 #define SHOW_LNG_CONST(val) \
477 if (stage >= SHOW_PARSE) { \
478 printf("%lld ", (long long)(val)); \
484 #define SHOW_FLT_CONST(val) \
485 if (stage >= SHOW_PARSE) { \
486 printf("%g ", (val)); \
492 #define SHOW_DBL_CONST(val) \
493 if (stage >= SHOW_PARSE) { \
494 printf("%g ", (val)); \
500 #define SHOW_INDEX(index) \
501 if (stage >= SHOW_PARSE) { \
502 printf("%d ", index); \
508 #define SHOW_STRING(val) \
509 if (stage >= SHOW_PARSE) { \
511 utf_display_printable_ascii( \
512 javastring_toutf((java_lang_String *)(val), false)); \
519 #define SHOW_CLASSREF_OR_CLASSINFO(c) \
520 if (stage >= SHOW_PARSE) { \
521 if (IS_CLASSREF(c)) \
522 class_classref_print(c.ref); \
524 class_print(c.cls); \
531 #define SHOW_FIELD(fmiref) \
532 if (stage >= SHOW_PARSE) { \
533 field_fieldref_print(fmiref); \
540 #define SHOW_STACKVAR(sp) \
541 new_show_stackvar(jd, (sp), stage)
543 #define SHOW_S1(iptr) \
544 if (stage >= SHOW_STACK) { \
545 SHOW_STACKVAR(iptr->s1.var); \
548 #define SHOW_S2(iptr) \
549 if (stage >= SHOW_STACK) { \
550 SHOW_STACKVAR(iptr->sx.s23.s2.var); \
553 #define SHOW_S3(iptr) \
554 if (stage >= SHOW_STACK) { \
555 SHOW_STACKVAR(iptr->sx.s23.s3.var); \
558 #define SHOW_DST(iptr) \
559 if (stage >= SHOW_STACK) { \
561 SHOW_STACKVAR(iptr->dst.var); \
564 #define SHOW_S1_LOCAL(iptr) \
565 if (stage >= SHOW_STACK) { \
566 printf("L%d ", iptr->s1.localindex); \
569 #define SHOW_DST_LOCAL(iptr) \
570 if (stage >= SHOW_STACK) { \
571 printf("=> L%d ", iptr->dst.localindex); \
574 static void new_show_stackvar(jitdata *jd, stackptr sp, int stage)
579 case TYPE_INT: type = 'i'; break;
580 case TYPE_LNG: type = 'l'; break;
581 case TYPE_FLT: type = 'f'; break;
582 case TYPE_DBL: type = 'd'; break;
583 case TYPE_ADR: type = 'a'; break;
586 printf("S%c%d", type, (int) (sp - jd->new_stack));
588 if (stage >= SHOW_REGS) {
591 if (sp->flags & SAVEDVAR) {
592 switch (sp->varkind) {
594 if (sp->flags & INMEMORY)
595 printf("M%02d", sp->regoff);
596 #ifdef HAS_ADDRESS_REGISTER_FILE
597 else if (sp->type == TYPE_ADR)
598 printf("R%02d", sp->regoff);
600 else if (IS_FLT_DBL_TYPE(sp->type))
601 printf("F%02d", sp->regoff);
603 #if defined(SUPPORT_COMBINE_INTEGER_REGISTERS)
604 if (IS_2_WORD_TYPE(sp->type)) {
605 # if defined(ENABLE_JIT) && defined(ENABLE_DISASSEMBLER)
606 # if defined(ENABLE_INTRP)
608 printf("%3d/%3d", GET_LOW_REG(sp->regoff),
609 GET_HIGH_REG(sp->regoff));
612 printf("%3s/%3s", regs[GET_LOW_REG(sp->regoff)],
613 regs[GET_HIGH_REG(sp->regoff)]);
615 printf("%3d/%3d", GET_LOW_REG(sp->regoff),
616 GET_HIGH_REG(sp->regoff));
620 #endif /* defined(SUPPORT_COMBINE_INTEGER_REGISTERS) */
622 #if defined(ENABLE_JIT) && defined(ENABLE_DISASSEMBLER)
623 # if defined(ENABLE_INTRP)
625 printf("%3d", sp->regoff);
628 printf("%3s", regs[sp->regoff]);
630 printf("%3d", sp->regoff);
636 printf("I%02d", sp->varnum);
639 printf("L%02d", sp->varnum);
642 if (sp->varnum == -1) {
644 /* varkind ARGVAR "misused for this special case */
647 else /* "normal" Argvar */
648 printf("A%02d", sp->varnum);
651 printf("!xx {kind=%d, num=%d}", sp->varkind, sp->varnum);
654 else { /* not SAVEDVAR */
655 switch (sp->varkind) {
657 if (sp->flags & INMEMORY)
658 printf("m%02d", sp->regoff);
659 #ifdef HAS_ADDRESS_REGISTER_FILE
660 else if (sp->type == TYPE_ADR)
661 printf("r%02d", sp->regoff);
663 else if (IS_FLT_DBL_TYPE(sp->type))
664 printf("f%02d", sp->regoff);
666 #if defined(SUPPORT_COMBINE_INTEGER_REGISTERS)
667 if (IS_2_WORD_TYPE(sp->type)) {
668 # if defined(ENABLE_JIT) && defined(ENABLE_DISASSEMBLER)
669 # if defined(ENABLE_INTRP)
671 printf("%3d/%3d", GET_LOW_REG(sp->regoff),
672 GET_HIGH_REG(sp->regoff));
675 printf("%3s/%3s", regs[GET_LOW_REG(sp->regoff)],
676 regs[GET_HIGH_REG(sp->regoff)]);
678 printf("%3d/%3d", GET_LOW_REG(sp->regoff),
679 GET_HIGH_REG(sp->regoff));
683 #endif /* defined(SUPPORT_COMBINE_INTEGER_REGISTERS) */
685 #if defined(ENABLE_JIT) && defined(ENABLE_DISASSEMBLER)
686 # if defined(ENABLE_INTRP)
688 printf("%3d", sp->regoff);
691 printf("%3s", regs[sp->regoff]);
693 printf("%3d", sp->regoff);
699 printf("i%02d", sp->varnum);
702 printf("l%02d", sp->varnum);
705 if (sp->varnum == -1) {
707 /* varkind ARGVAR "misused for this special case */
710 else /* "normal" Argvar */
711 printf("a%02d", sp->varnum);
714 printf("?xx {kind=%d, num=%d}", sp->varkind, sp->varnum);
723 static void new_show_variable_array(jitdata *jd, stackptr *vars, int n, int stage)
728 for (i=0; i<n; ++i) {
731 new_show_stackvar(jd, vars[i], stage);
736 void new_show_icmd(jitdata *jd, new_instruction *iptr, bool deadcode, int stage)
739 branch_target_t *table;
740 lookup_target_t *lookup;
741 constant_FMIref *fmiref;
745 /* get the opcode and the condition */
749 printf("%s ", icmd_names[opcode]);
751 if (stage < SHOW_PARSE)
757 /* Print the condition for conditional instructions. */
759 /* XXX print condition from flags */
761 if (iptr->flags.bits & INS_FLAG_UNRESOLVED)
762 printf("(UNRESOLVED) ");
768 case ICMD_CHECKNULL_POP:
773 case ICMD_ARRAYLENGTH:
840 /* binary/const INT */
852 case ICMD_IUSHRCONST:
855 case ICMD_LUSHRCONST:
857 SHOW_INT_CONST(iptr->sx.val.i);
861 /* ?ASTORECONST (trinary/const INT) */
862 case ICMD_IASTORECONST:
863 case ICMD_BASTORECONST:
864 case ICMD_CASTORECONST:
865 case ICMD_SASTORECONST:
868 SHOW_INT_CONST(iptr->sx.s23.s3.constval);
873 SHOW_INT_CONST(iptr->sx.val.i);
877 /* binary/const LNG */
888 SHOW_LNG_CONST(iptr->sx.val.l);
892 /* trinary/const LNG (<= pointer size) */
893 case ICMD_LASTORECONST:
896 SHOW_LNG_CONST(iptr->sx.s23.s3.constval);
901 SHOW_LNG_CONST(iptr->sx.val.l);
907 SHOW_FLT_CONST(iptr->sx.val.f);
913 SHOW_DBL_CONST(iptr->sx.val.d);
919 if (iptr->flags.bits & INS_FLAG_CLASS) {
920 SHOW_CLASSREF_OR_CLASSINFO(iptr->sx.val.c);
922 else if (iptr->sx.val.anyptr == NULL) {
926 SHOW_STRING(iptr->sx.val.stringconst);
931 case ICMD_AASTORECONST:
934 printf("%p ", (void*) iptr->sx.s23.s3.constval);
937 case ICMD_GETFIELD: /* 1 -> 1 */
938 case ICMD_PUTFIELD: /* 2 -> 0 */
939 case ICMD_PUTSTATIC: /* 1 -> 0 */
940 case ICMD_GETSTATIC: /* 0 -> 1 */
941 case ICMD_PUTSTATICCONST: /* 0 -> 0 */
942 case ICMD_PUTFIELDCONST: /* 1 -> 0 */
943 if (opcode != ICMD_GETSTATIC && opcode != ICMD_PUTSTATICCONST) {
945 if (opcode == ICMD_PUTFIELD) {
949 NEW_INSTRUCTION_GET_FIELDREF(iptr, fmiref);
952 if (opcode == ICMD_GETSTATIC || opcode == ICMD_GETFIELD) {
959 SHOW_INT_CONST(iptr->sx.val.i);
960 SHOW_DST_LOCAL(iptr);
1008 SHOW_DST_LOCAL(iptr);
1019 case ICMD_ANEWARRAY:
1023 case ICMD_MULTIANEWARRAY:
1024 if (stage >= SHOW_STACK) {
1025 argp = iptr->sx.s23.s2.args;
1026 i = iptr->s1.argcount;
1028 SHOW_STACKVAR(*(argp++));
1032 printf("argcount=%d ", iptr->s1.argcount);
1037 case ICMD_CHECKCAST:
1042 case ICMD_INSTANCEOF:
1047 case ICMD_INLINE_START:
1048 case ICMD_INLINE_END:
1052 if (stage >= SHOW_STACK) {
1053 argp = iptr->sx.s23.s2.args;
1054 i = iptr->s1.argcount;
1056 SHOW_STACKVAR(*(argp++));
1059 printf("%s ", iptr->sx.s23.s3.bte->cname);
1060 if (iptr->sx.s23.s3.bte->md->returntype.type != TYPE_VOID) {
1065 case ICMD_INVOKEVIRTUAL:
1066 case ICMD_INVOKESPECIAL:
1067 case ICMD_INVOKESTATIC:
1068 case ICMD_INVOKEINTERFACE:
1069 if (stage >= SHOW_STACK) {
1070 argp = iptr->sx.s23.s2.args;
1071 i = iptr->s1.argcount;
1073 SHOW_STACKVAR(*(argp++));
1076 NEW_INSTRUCTION_GET_METHODREF(iptr, fmiref);
1077 method_methodref_print(fmiref);
1078 if (fmiref->parseddesc.md->returntype.type != TYPE_VOID) {
1090 SHOW_TARGET(iptr->dst);
1100 SHOW_TARGET(iptr->dst);
1104 case ICMD_INLINE_GOTO:
1105 SHOW_TARGET(iptr->dst);
1109 SHOW_TARGET(iptr->sx.s23.s3.jsrtarget);
1114 case ICMD_IFNONNULL:
1116 SHOW_TARGET(iptr->dst);
1119 case ICMD_IF_ICMPEQ:
1120 case ICMD_IF_ICMPNE:
1121 case ICMD_IF_ICMPLT:
1122 case ICMD_IF_ICMPGE:
1123 case ICMD_IF_ICMPGT:
1124 case ICMD_IF_ICMPLE:
1126 case ICMD_IF_LCMPEQ:
1127 case ICMD_IF_LCMPNE:
1128 case ICMD_IF_LCMPLT:
1129 case ICMD_IF_LCMPGE:
1130 case ICMD_IF_LCMPGT:
1131 case ICMD_IF_LCMPLE:
1133 case ICMD_IF_FCMPEQ:
1134 case ICMD_IF_FCMPNE:
1136 case ICMD_IF_FCMPL_LT:
1137 case ICMD_IF_FCMPL_GE:
1138 case ICMD_IF_FCMPL_GT:
1139 case ICMD_IF_FCMPL_LE:
1141 case ICMD_IF_FCMPG_LT:
1142 case ICMD_IF_FCMPG_GE:
1143 case ICMD_IF_FCMPG_GT:
1144 case ICMD_IF_FCMPG_LE:
1146 case ICMD_IF_DCMPEQ:
1147 case ICMD_IF_DCMPNE:
1149 case ICMD_IF_DCMPL_LT:
1150 case ICMD_IF_DCMPL_GE:
1151 case ICMD_IF_DCMPL_GT:
1152 case ICMD_IF_DCMPL_LE:
1154 case ICMD_IF_DCMPG_LT:
1155 case ICMD_IF_DCMPG_GE:
1156 case ICMD_IF_DCMPG_GT:
1157 case ICMD_IF_DCMPG_LE:
1159 case ICMD_IF_ACMPEQ:
1160 case ICMD_IF_ACMPNE:
1163 SHOW_TARGET(iptr->dst);
1166 case ICMD_TABLESWITCH:
1170 case ICMD_LOOKUPSWITCH:
1188 if (stage >= SHOW_STACK) {
1189 SHOW_STACKVAR(iptr->dst.dupslots[0]);
1190 SHOW_STACKVAR(iptr->dst.dupslots[1]);
1192 SHOW_STACKVAR(iptr->dst.dupslots[2+0]);
1193 SHOW_STACKVAR(iptr->dst.dupslots[2+1]);
1198 if (stage >= SHOW_STACK) {
1199 SHOW_STACKVAR(iptr->dst.dupslots[0]);
1200 SHOW_STACKVAR(iptr->dst.dupslots[1]);
1202 SHOW_STACKVAR(iptr->dst.dupslots[2+0]);
1203 SHOW_STACKVAR(iptr->dst.dupslots[2+1]);
1204 SHOW_STACKVAR(iptr->dst.dupslots[2+2]);
1209 if (stage >= SHOW_STACK) {
1210 SHOW_STACKVAR(iptr->dst.dupslots[0]);
1211 SHOW_STACKVAR(iptr->dst.dupslots[1]);
1212 SHOW_STACKVAR(iptr->dst.dupslots[2]);
1214 SHOW_STACKVAR(iptr->dst.dupslots[3+0]);
1215 SHOW_STACKVAR(iptr->dst.dupslots[3+1]);
1216 SHOW_STACKVAR(iptr->dst.dupslots[3+2]);
1217 SHOW_STACKVAR(iptr->dst.dupslots[3+3]);
1218 SHOW_STACKVAR(iptr->dst.dupslots[3+4]);
1223 if (stage >= SHOW_STACK) {
1224 SHOW_STACKVAR(iptr->dst.dupslots[0]);
1225 SHOW_STACKVAR(iptr->dst.dupslots[1]);
1226 SHOW_STACKVAR(iptr->dst.dupslots[2]);
1228 SHOW_STACKVAR(iptr->dst.dupslots[3+0]);
1229 SHOW_STACKVAR(iptr->dst.dupslots[3+1]);
1230 SHOW_STACKVAR(iptr->dst.dupslots[3+2]);
1231 SHOW_STACKVAR(iptr->dst.dupslots[3+3]);
1236 if (stage >= SHOW_STACK) {
1237 SHOW_STACKVAR(iptr->dst.dupslots[0]);
1238 SHOW_STACKVAR(iptr->dst.dupslots[1]);
1239 SHOW_STACKVAR(iptr->dst.dupslots[2]);
1240 SHOW_STACKVAR(iptr->dst.dupslots[4]);
1242 SHOW_STACKVAR(iptr->dst.dupslots[4+0]);
1243 SHOW_STACKVAR(iptr->dst.dupslots[4+1]);
1244 SHOW_STACKVAR(iptr->dst.dupslots[4+2]);
1245 SHOW_STACKVAR(iptr->dst.dupslots[4+3]);
1246 SHOW_STACKVAR(iptr->dst.dupslots[4+4]);
1247 SHOW_STACKVAR(iptr->dst.dupslots[4+5]);
1252 if (stage >= SHOW_STACK) {
1253 SHOW_STACKVAR(iptr->dst.dupslots[0]);
1254 SHOW_STACKVAR(iptr->dst.dupslots[1]);
1256 SHOW_STACKVAR(iptr->dst.dupslots[2+0]);
1257 SHOW_STACKVAR(iptr->dst.dupslots[2+1]);
1263 #endif /* !defined(NDEBUG) */
1267 * These are local overrides for various environment variables in Emacs.
1268 * Please do not remove this and leave it at the end of the file, where
1269 * Emacs will automagically detect them.
1270 * ---------------------------------------------------------------------
1273 * indent-tabs-mode: t
1277 * vim:noexpandtab:sw=4:ts=4: