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)
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 if (stage >= SHOW_STACK) {
415 new_show_variable_array(jd, bptr->invars, bptr->indepth, stage);
421 for (i = 0; i < bptr->icount; i++, iptr++) {
422 printf("%4d: ", iptr->line);
424 new_show_icmd(jd, iptr, deadcode, stage);
428 if (stage >= SHOW_STACK) {
430 new_show_variable_array(jd, bptr->outvars, bptr->outdepth, stage);
434 #if defined(ENABLE_DISASSEMBLER)
435 if ((stage >= SHOW_CODE) && JITDATA_HAS_FLAG_SHOWDISASSEMBLE(jd) &&
439 u1ptr = (u1 *) (code->mcode + cd->dseglen + bptr->mpc);
441 if (bptr->next != NULL) {
442 for (; u1ptr < (u1 *) (code->mcode + cd->dseglen + bptr->next->mpc);)
447 for (; u1ptr < (u1 *) (code->mcode + code->mcodelength);)
455 #endif /* !defined(NDEBUG) */
458 /* show_icmd *******************************************************************
460 Print the intermediate representation of an instruction.
462 NOTE: Currently this function may only be called after register allocation!
464 *******************************************************************************/
468 #define SHOW_TARGET(target) \
469 if (stage >= SHOW_STACK) { \
470 printf("--> L%03d ", (target).block->nr); \
472 else if (stage >= SHOW_PARSE) { \
473 printf("--> insindex %d (L%03d) ", (target).insindex, \
474 jd->new_basicblocks[jd->new_basicblockindex[ \
475 (target).insindex]].nr); \
478 printf("--> insindex %d ", (target).insindex); \
481 #define SHOW_INT_CONST(val) \
482 if (stage >= SHOW_PARSE) { \
483 printf("%ld ", (long) (val)); \
489 #define SHOW_LNG_CONST(val) \
490 if (stage >= SHOW_PARSE) { \
491 printf("%lld ", (long long)(val)); \
497 #define SHOW_FLT_CONST(val) \
498 if (stage >= SHOW_PARSE) { \
499 printf("%g ", (val)); \
505 #define SHOW_DBL_CONST(val) \
506 if (stage >= SHOW_PARSE) { \
507 printf("%g ", (val)); \
513 #define SHOW_INDEX(index) \
514 if (stage >= SHOW_PARSE) { \
515 printf("%d ", index); \
521 #define SHOW_STRING(val) \
522 if (stage >= SHOW_PARSE) { \
524 utf_display_printable_ascii( \
525 javastring_toutf((java_lang_String *)(val), false)); \
532 #define SHOW_CLASSREF_OR_CLASSINFO(c) \
533 if (stage >= SHOW_PARSE) { \
534 if (IS_CLASSREF(c)) \
535 class_classref_print(c.ref); \
537 class_print(c.cls); \
544 #define SHOW_FIELD(fmiref) \
545 if (stage >= SHOW_PARSE) { \
546 field_fieldref_print(fmiref); \
553 #define SHOW_STACKVAR(sp) \
554 new_show_stackvar(jd, (sp), stage)
556 #define SHOW_S1(iptr) \
557 if (stage >= SHOW_STACK) { \
558 SHOW_STACKVAR(iptr->s1.var); \
561 #define SHOW_S2(iptr) \
562 if (stage >= SHOW_STACK) { \
563 SHOW_STACKVAR(iptr->sx.s23.s2.var); \
566 #define SHOW_S3(iptr) \
567 if (stage >= SHOW_STACK) { \
568 SHOW_STACKVAR(iptr->sx.s23.s3.var); \
571 #define SHOW_DST(iptr) \
572 if (stage >= SHOW_STACK) { \
574 SHOW_STACKVAR(iptr->dst.var); \
577 #define SHOW_S1_LOCAL(iptr) \
578 if (stage >= SHOW_STACK) { \
579 printf("L%d ", iptr->s1.localindex); \
582 #define SHOW_DST_LOCAL(iptr) \
583 if (stage >= SHOW_STACK) { \
584 printf("=> L%d ", iptr->dst.localindex); \
587 static void new_show_stackvar(jitdata *jd, stackptr sp, int stage)
592 case TYPE_INT: type = 'i'; break;
593 case TYPE_LNG: type = 'l'; break;
594 case TYPE_FLT: type = 'f'; break;
595 case TYPE_DBL: type = 'd'; break;
596 case TYPE_ADR: type = 'a'; break;
599 printf("S%c%d", type, (int) (sp - jd->new_stack));
601 if (stage >= SHOW_REGS) {
604 if (sp->flags & SAVEDVAR) {
605 switch (sp->varkind) {
607 if (sp->flags & INMEMORY)
608 printf("M%02d", sp->regoff);
609 #ifdef HAS_ADDRESS_REGISTER_FILE
610 else if (sp->type == TYPE_ADR)
611 printf("R%02d", sp->regoff);
613 else if (IS_FLT_DBL_TYPE(sp->type))
614 printf("F%02d", sp->regoff);
616 #if defined(SUPPORT_COMBINE_INTEGER_REGISTERS)
617 if (IS_2_WORD_TYPE(sp->type)) {
618 # if defined(ENABLE_JIT) && defined(ENABLE_DISASSEMBLER)
619 # if defined(ENABLE_INTRP)
621 printf("%3d/%3d", GET_LOW_REG(sp->regoff),
622 GET_HIGH_REG(sp->regoff));
625 printf("%3s/%3s", regs[GET_LOW_REG(sp->regoff)],
626 regs[GET_HIGH_REG(sp->regoff)]);
628 printf("%3d/%3d", GET_LOW_REG(sp->regoff),
629 GET_HIGH_REG(sp->regoff));
633 #endif /* defined(SUPPORT_COMBINE_INTEGER_REGISTERS) */
635 #if defined(ENABLE_JIT) && defined(ENABLE_DISASSEMBLER)
636 # if defined(ENABLE_INTRP)
638 printf("%3d", sp->regoff);
641 printf("%3s", regs[sp->regoff]);
643 printf("%3d", sp->regoff);
649 printf("I%02d", sp->varnum);
652 printf("L%02d", sp->varnum);
655 if (sp->varnum == -1) {
657 /* varkind ARGVAR "misused for this special case */
660 else /* "normal" Argvar */
661 printf("A%02d", sp->varnum);
664 printf("!xx {kind=%d, num=%d}", sp->varkind, sp->varnum);
667 else { /* not SAVEDVAR */
668 switch (sp->varkind) {
670 if (sp->flags & INMEMORY)
671 printf("m%02d", sp->regoff);
672 #ifdef HAS_ADDRESS_REGISTER_FILE
673 else if (sp->type == TYPE_ADR)
674 printf("r%02d", sp->regoff);
676 else if (IS_FLT_DBL_TYPE(sp->type))
677 printf("f%02d", sp->regoff);
679 #if defined(SUPPORT_COMBINE_INTEGER_REGISTERS)
680 if (IS_2_WORD_TYPE(sp->type)) {
681 # if defined(ENABLE_JIT) && defined(ENABLE_DISASSEMBLER)
682 # if defined(ENABLE_INTRP)
684 printf("%3d/%3d", GET_LOW_REG(sp->regoff),
685 GET_HIGH_REG(sp->regoff));
688 printf("%3s/%3s", regs[GET_LOW_REG(sp->regoff)],
689 regs[GET_HIGH_REG(sp->regoff)]);
691 printf("%3d/%3d", GET_LOW_REG(sp->regoff),
692 GET_HIGH_REG(sp->regoff));
696 #endif /* defined(SUPPORT_COMBINE_INTEGER_REGISTERS) */
698 #if defined(ENABLE_JIT) && defined(ENABLE_DISASSEMBLER)
699 # if defined(ENABLE_INTRP)
701 printf("%3d", sp->regoff);
704 printf("%3s", regs[sp->regoff]);
706 printf("%3d", sp->regoff);
712 printf("i%02d", sp->varnum);
715 printf("l%02d", sp->varnum);
718 if (sp->varnum == -1) {
720 /* varkind ARGVAR "misused for this special case */
723 else /* "normal" Argvar */
724 printf("a%02d", sp->varnum);
727 printf("?xx {kind=%d, num=%d}", sp->varkind, sp->varnum);
736 static void new_show_variable_array(jitdata *jd, stackptr *vars, int n, int stage)
741 for (i=0; i<n; ++i) {
744 new_show_stackvar(jd, vars[i], stage);
749 void new_show_icmd(jitdata *jd, instruction *iptr, bool deadcode, int stage)
752 branch_target_t *table;
753 lookup_target_t *lookup;
754 constant_FMIref *fmiref;
758 /* get the opcode and the condition */
762 printf("%s ", icmd_names[opcode]);
764 if (stage < SHOW_PARSE)
770 /* Print the condition for conditional instructions. */
772 /* XXX print condition from flags */
774 if (iptr->flags.bits & INS_FLAG_UNRESOLVED)
775 printf("(UNRESOLVED) ");
781 case ICMD_CHECKNULL_POP:
786 case ICMD_ARRAYLENGTH:
853 /* binary/const INT */
865 case ICMD_IUSHRCONST:
868 case ICMD_LUSHRCONST:
870 SHOW_INT_CONST(iptr->sx.val.i);
874 /* ?ASTORECONST (trinary/const INT) */
875 case ICMD_IASTORECONST:
876 case ICMD_BASTORECONST:
877 case ICMD_CASTORECONST:
878 case ICMD_SASTORECONST:
881 SHOW_INT_CONST(iptr->sx.s23.s3.constval);
886 SHOW_INT_CONST(iptr->sx.val.i);
890 /* binary/const LNG */
901 SHOW_LNG_CONST(iptr->sx.val.l);
905 /* trinary/const LNG (<= pointer size) */
906 case ICMD_LASTORECONST:
909 SHOW_LNG_CONST(iptr->sx.s23.s3.constval);
914 SHOW_LNG_CONST(iptr->sx.val.l);
920 SHOW_FLT_CONST(iptr->sx.val.f);
926 SHOW_DBL_CONST(iptr->sx.val.d);
932 if (iptr->flags.bits & INS_FLAG_CLASS) {
933 SHOW_CLASSREF_OR_CLASSINFO(iptr->sx.val.c);
935 else if (iptr->sx.val.anyptr == NULL) {
939 SHOW_STRING(iptr->sx.val.stringconst);
944 case ICMD_AASTORECONST:
947 printf("%p ", (void*) iptr->sx.s23.s3.constval);
950 case ICMD_GETFIELD: /* 1 -> 1 */
951 case ICMD_PUTFIELD: /* 2 -> 0 */
952 case ICMD_PUTSTATIC: /* 1 -> 0 */
953 case ICMD_GETSTATIC: /* 0 -> 1 */
954 case ICMD_PUTSTATICCONST: /* 0 -> 0 */
955 case ICMD_PUTFIELDCONST: /* 1 -> 0 */
956 if (opcode != ICMD_GETSTATIC && opcode != ICMD_PUTSTATICCONST) {
958 if (opcode == ICMD_PUTFIELD) {
962 INSTRUCTION_GET_FIELDREF(iptr, fmiref);
965 if (opcode == ICMD_GETSTATIC || opcode == ICMD_GETFIELD) {
972 SHOW_INT_CONST(iptr->sx.val.i);
973 SHOW_DST_LOCAL(iptr);
1003 SHOW_S1_LOCAL(iptr);
1011 SHOW_S1_LOCAL(iptr);
1021 SHOW_DST_LOCAL(iptr);
1032 case ICMD_ANEWARRAY:
1036 case ICMD_MULTIANEWARRAY:
1037 if (stage >= SHOW_STACK) {
1038 argp = iptr->sx.s23.s2.args;
1039 i = iptr->s1.argcount;
1041 SHOW_STACKVAR(*(argp++));
1045 printf("argcount=%d ", iptr->s1.argcount);
1050 case ICMD_CHECKCAST:
1055 case ICMD_INSTANCEOF:
1060 case ICMD_INLINE_START:
1061 case ICMD_INLINE_END:
1065 if (stage >= SHOW_STACK) {
1066 argp = iptr->sx.s23.s2.args;
1067 i = iptr->s1.argcount;
1069 SHOW_STACKVAR(*(argp++));
1072 printf("%s ", iptr->sx.s23.s3.bte->cname);
1073 if (iptr->sx.s23.s3.bte->md->returntype.type != TYPE_VOID) {
1078 case ICMD_INVOKEVIRTUAL:
1079 case ICMD_INVOKESPECIAL:
1080 case ICMD_INVOKESTATIC:
1081 case ICMD_INVOKEINTERFACE:
1082 if (stage >= SHOW_STACK) {
1083 argp = iptr->sx.s23.s2.args;
1084 i = iptr->s1.argcount;
1086 SHOW_STACKVAR(*(argp++));
1089 INSTRUCTION_GET_METHODREF(iptr, fmiref);
1090 method_methodref_print(fmiref);
1091 if (fmiref->parseddesc.md->returntype.type != TYPE_VOID) {
1103 SHOW_TARGET(iptr->dst);
1113 SHOW_TARGET(iptr->dst);
1117 case ICMD_INLINE_GOTO:
1118 SHOW_TARGET(iptr->dst);
1122 SHOW_TARGET(iptr->sx.s23.s3.jsrtarget);
1127 case ICMD_IFNONNULL:
1129 SHOW_TARGET(iptr->dst);
1132 case ICMD_IF_ICMPEQ:
1133 case ICMD_IF_ICMPNE:
1134 case ICMD_IF_ICMPLT:
1135 case ICMD_IF_ICMPGE:
1136 case ICMD_IF_ICMPGT:
1137 case ICMD_IF_ICMPLE:
1139 case ICMD_IF_LCMPEQ:
1140 case ICMD_IF_LCMPNE:
1141 case ICMD_IF_LCMPLT:
1142 case ICMD_IF_LCMPGE:
1143 case ICMD_IF_LCMPGT:
1144 case ICMD_IF_LCMPLE:
1146 case ICMD_IF_FCMPEQ:
1147 case ICMD_IF_FCMPNE:
1149 case ICMD_IF_FCMPL_LT:
1150 case ICMD_IF_FCMPL_GE:
1151 case ICMD_IF_FCMPL_GT:
1152 case ICMD_IF_FCMPL_LE:
1154 case ICMD_IF_FCMPG_LT:
1155 case ICMD_IF_FCMPG_GE:
1156 case ICMD_IF_FCMPG_GT:
1157 case ICMD_IF_FCMPG_LE:
1159 case ICMD_IF_DCMPEQ:
1160 case ICMD_IF_DCMPNE:
1162 case ICMD_IF_DCMPL_LT:
1163 case ICMD_IF_DCMPL_GE:
1164 case ICMD_IF_DCMPL_GT:
1165 case ICMD_IF_DCMPL_LE:
1167 case ICMD_IF_DCMPG_LT:
1168 case ICMD_IF_DCMPG_GE:
1169 case ICMD_IF_DCMPG_GT:
1170 case ICMD_IF_DCMPG_LE:
1172 case ICMD_IF_ACMPEQ:
1173 case ICMD_IF_ACMPNE:
1176 SHOW_TARGET(iptr->dst);
1179 case ICMD_TABLESWITCH:
1183 case ICMD_LOOKUPSWITCH:
1201 if (stage >= SHOW_STACK) {
1202 SHOW_STACKVAR(iptr->dst.dupslots[0]);
1203 SHOW_STACKVAR(iptr->dst.dupslots[1]);
1205 SHOW_STACKVAR(iptr->dst.dupslots[2+0]);
1206 SHOW_STACKVAR(iptr->dst.dupslots[2+1]);
1211 if (stage >= SHOW_STACK) {
1212 SHOW_STACKVAR(iptr->dst.dupslots[0]);
1213 SHOW_STACKVAR(iptr->dst.dupslots[1]);
1215 SHOW_STACKVAR(iptr->dst.dupslots[2+0]);
1216 SHOW_STACKVAR(iptr->dst.dupslots[2+1]);
1217 SHOW_STACKVAR(iptr->dst.dupslots[2+2]);
1222 if (stage >= SHOW_STACK) {
1223 SHOW_STACKVAR(iptr->dst.dupslots[0]);
1224 SHOW_STACKVAR(iptr->dst.dupslots[1]);
1225 SHOW_STACKVAR(iptr->dst.dupslots[2]);
1227 SHOW_STACKVAR(iptr->dst.dupslots[3+0]);
1228 SHOW_STACKVAR(iptr->dst.dupslots[3+1]);
1229 SHOW_STACKVAR(iptr->dst.dupslots[3+2]);
1230 SHOW_STACKVAR(iptr->dst.dupslots[3+3]);
1231 SHOW_STACKVAR(iptr->dst.dupslots[3+4]);
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]);
1241 SHOW_STACKVAR(iptr->dst.dupslots[3+0]);
1242 SHOW_STACKVAR(iptr->dst.dupslots[3+1]);
1243 SHOW_STACKVAR(iptr->dst.dupslots[3+2]);
1244 SHOW_STACKVAR(iptr->dst.dupslots[3+3]);
1249 if (stage >= SHOW_STACK) {
1250 SHOW_STACKVAR(iptr->dst.dupslots[0]);
1251 SHOW_STACKVAR(iptr->dst.dupslots[1]);
1252 SHOW_STACKVAR(iptr->dst.dupslots[2]);
1253 SHOW_STACKVAR(iptr->dst.dupslots[4]);
1255 SHOW_STACKVAR(iptr->dst.dupslots[4+0]);
1256 SHOW_STACKVAR(iptr->dst.dupslots[4+1]);
1257 SHOW_STACKVAR(iptr->dst.dupslots[4+2]);
1258 SHOW_STACKVAR(iptr->dst.dupslots[4+3]);
1259 SHOW_STACKVAR(iptr->dst.dupslots[4+4]);
1260 SHOW_STACKVAR(iptr->dst.dupslots[4+5]);
1265 if (stage >= SHOW_STACK) {
1266 SHOW_STACKVAR(iptr->dst.dupslots[0]);
1267 SHOW_STACKVAR(iptr->dst.dupslots[1]);
1269 SHOW_STACKVAR(iptr->dst.dupslots[2+0]);
1270 SHOW_STACKVAR(iptr->dst.dupslots[2+1]);
1276 #endif /* !defined(NDEBUG) */
1280 * These are local overrides for various environment variables in Emacs.
1281 * Please do not remove this and leave it at the end of the file, where
1282 * Emacs will automagically detect them.
1283 * ---------------------------------------------------------------------
1286 * indent-tabs-mode: t
1290 * vim:noexpandtab:sw=4:ts=4: