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"
58 #include "vm/jit/stack.h"
59 #include "vm/jit/parse.h"
62 /* global variables ***********************************************************/
64 #if defined(ENABLE_THREADS) && !defined(NDEBUG)
65 static java_objectheader *show_global_lock;
69 /* forward declarations *******************************************************/
72 static void show_allocation(s4 type, s4 flags, s4 regoff);
76 /* show_init *******************************************************************
78 Initialized the show subsystem (called by jit_init).
80 *******************************************************************************/
85 #if defined(ENABLE_THREADS)
86 /* initialize the show lock */
88 show_global_lock = NEW(java_objectheader);
90 lock_init_object_lock(show_global_lock);
101 char *show_jit_type_names[] = {
112 char show_jit_type_letters[] = {
126 /* show_method *****************************************************************
128 Print the intermediate representation of a method.
130 NOTE: Currently this function may only be called after register allocation!
132 *******************************************************************************/
135 void show_method(jitdata *jd, int stage)
142 basicblock *lastbptr;
146 #if defined(ENABLE_DISASSEMBLER)
150 /* get required compiler data */
157 /* We need to enter a lock here, since the binutils disassembler
158 is not reentrant-able and we could not read functions printed
161 LOCK_MONITOR_ENTER(show_global_lock);
163 #if defined(ENABLE_INTRP)
165 irstage = SHOW_PARSE;
170 /* get the last basic block */
172 for (lastbptr = jd->basicblocks; lastbptr->next != NULL; lastbptr = lastbptr->next);
178 printf("\n(NEW INSTRUCTION FORMAT)\n");
179 if (jd->isleafmethod)
180 printf("LEAFMETHOD\n");
181 printf("\nBasic blocks: %d\n", jd->basicblockcount);
182 if (stage >= SHOW_CODE) {
183 printf("Code length: %d\n", (lastbptr->mpc - jd->basicblocks[0].mpc));
184 printf("Data length: %d\n", cd->dseglen);
185 printf("Stub length: %d\n", (s4) (code->mcodelength -
186 ((ptrint) cd->dseglen + lastbptr->mpc)));
188 printf("Variables: %d (%d used)\n", jd->varcount, jd->vartop);
189 printf("Max locals: %d\n", cd->maxlocals);
190 printf("Max stack: %d\n", cd->maxstack);
191 printf("Line number table length: %d\n", m->linenumbercount);
193 if (stage >= SHOW_PARSE) {
194 printf("Exceptions (Number: %d):\n", jd->exceptiontablelength);
195 for (ex = jd->exceptiontable; ex != NULL; ex = ex->down) {
196 printf(" L%03d ... ", ex->start->nr );
197 printf("L%03d = ", ex->end->nr);
198 printf("L%03d", ex->handler->nr);
199 printf(" (catchtype: ");
200 if (ex->catchtype.any)
201 if (IS_CLASSREF(ex->catchtype))
202 class_classref_print(ex->catchtype.ref);
204 class_print(ex->catchtype.cls);
211 if (irstage >= SHOW_PARSE && rd && jd->localcount > 0) {
212 printf("Local Table:\n");
213 for (i = 0; i < jd->localcount; i++) {
216 #if defined(ENABLE_JIT) && defined(ENABLE_DISASSEMBLER)
217 # if defined(ENABLE_INTRP)
220 printf(" (%s) ", show_jit_type_names[VAR(i)->type]);
221 if (irstage >= SHOW_REGS)
222 show_allocation(VAR(i)->type, VAR(i)->flags, VAR(i)->vv.regoff);
224 # if defined(ENABLE_INTRP)
227 #endif /* defined(ENABLE_JIT) && defined(ENABLE_DISASSEMBLER) */
232 if (cd->maxlocals > 0) {
233 printf("Local Map:\n");
235 for (j = 0; j < cd->maxlocals; j++) {
239 for (i = 0; i < 5; i++) {
240 printf(" %5s ",show_jit_type_names[i]);
241 for (j = 0; j < cd->maxlocals; j++) {
242 if (jd->local_map[j*5+i] == UNUSED)
245 printf("%4i ",jd->local_map[j*5+i]);
252 if (cd->maxstack > 0 && jd->interface_map && irstage >= SHOW_STACK) {
254 interface_info *mapptr = jd->interface_map;
256 /* look if there exist any INOUTS */
257 for (i = 0; (i < (5 * cd->maxstack)) && !exist; i++, mapptr++)
258 exist = (mapptr->flags != UNUSED);
261 printf("Interface Table: (In/Outvars)\n");
263 for (j = 0; j < cd->maxstack; j++) {
268 for (i = 0; i < 5; i++) {
269 printf(" %5s ",show_jit_type_names[i]);
270 for (j = 0; j < cd->maxstack; j++) {
271 s4 flags = jd->interface_map[j*5+i].flags;
272 s4 regoff = jd->interface_map[j*5+i].regoff;
278 if (irstage >= SHOW_REGS) {
279 if (flags & SAVEDVAR) {
280 if (flags & INMEMORY)
286 if (flags & INMEMORY)
291 printf("%c%03d(", ch, regoff);
292 show_allocation(i, flags, regoff);
296 if (flags & SAVEDVAR)
309 if (rd->memuse && irstage >= SHOW_REGS) {
313 printf("Stack slots: (memuse=%d", rd->memuse);
314 if (irstage >= SHOW_CODE) {
315 printf(", stackframesize=%d", cd->stackframesize);
316 max = cd->stackframesize;
319 for (i=0; i<max; ++i) {
320 #if defined(HAS_4BYTE_STACKSLOT)
321 printf(" M%02d = 0x%02x(sp): ", i, i * 4);
323 printf(" M%02d = 0x%02x(sp): ", i, i * 8);
325 for (j=0; j<jd->varcount; ++j) {
327 if ((v->flags & INMEMORY) && (v->vv.regoff == i)) {
328 show_variable(jd, j, irstage);
339 if (code->rplpoints) {
340 printf("Replacement Points:\n");
341 replace_show_replacement_points(code);
345 #if defined(ENABLE_DISASSEMBLER)
346 /* show code before first basic block */
348 if ((stage >= SHOW_CODE) && JITDATA_HAS_FLAG_SHOWDISASSEMBLE(jd)) {
349 u1ptr = (u1 *) ((ptrint) code->mcode + cd->dseglen);
351 for (; u1ptr < (u1 *) ((ptrint) code->mcode + cd->dseglen + jd->basicblocks[0].mpc);)
358 /* show code of all basic blocks */
360 for (bptr = jd->basicblocks; bptr != NULL; bptr = bptr->next)
361 show_basicblock(jd, bptr, stage);
363 #if defined(ENABLE_DISASSEMBLER)
364 /* show stubs code */
366 if (stage >= SHOW_CODE && opt_showdisassemble && opt_showexceptionstubs) {
367 printf("\nStubs code:\n");
368 printf("Length: %d\n\n", (s4) (code->mcodelength -
369 ((ptrint) cd->dseglen + lastbptr->mpc)));
371 u1ptr = (u1 *) ((ptrint) code->mcode + cd->dseglen + lastbptr->mpc);
373 for (; (ptrint) u1ptr < ((ptrint) code->mcode + code->mcodelength);)
380 LOCK_MONITOR_EXIT(show_global_lock);
382 /* finally flush the output */
386 #endif /* !defined(NDEBUG) */
389 /* show_basicblock *************************************************************
391 Print the intermediate representation of a basic block.
393 NOTE: Currently this function may only be called after register allocation!
395 *******************************************************************************/
398 void show_basicblock(jitdata *jd, basicblock *bptr, int stage)
407 #if defined(ENABLE_DISASSEMBLER)
411 /* get required compiler data */
417 if (bptr->flags != BBDELETED) {
418 #if defined(ENABLE_INTRP)
421 irstage = SHOW_PARSE;
426 deadcode = (bptr->flags < BBREACHED);
430 printf("======== %sL%03d ======== %s(flags: %d, bitflags: %01x, next: %d, type: ",
431 (bptr->bitflags & BBFLAG_REPLACEMENT) ? "<REPLACE> " : "",
433 (deadcode && stage >= SHOW_STACK) ? "DEADCODE! " : "",
434 bptr->flags, bptr->bitflags,
435 (bptr->next) ? (bptr->next->nr) : -1);
437 switch (bptr->type) {
449 printf(", icount: %d", bptr->icount);
451 if (irstage >= SHOW_CFG) {
452 printf(", preds: %d [ ", bptr->predecessorcount);
454 for (i = 0; i < bptr->predecessorcount; i++)
455 printf("%d ", bptr->predecessors[i]->nr);
463 printf(" (clone of L%03d)", bptr->original->nr);
465 basicblock *b = bptr->copied_to;
467 printf(" (copied to ");
468 for (; b; b = b->copied_to)
469 printf("L%03d ", b->nr);
476 if (irstage >= SHOW_STACK) {
478 show_variable_array(jd, bptr->invars, bptr->indepth, irstage);
484 for (i = 0; i < bptr->icount; i++, iptr++) {
485 printf("%4d: ", iptr->line);
487 show_icmd(jd, iptr, deadcode, irstage);
491 if (irstage >= SHOW_STACK) {
493 show_variable_array(jd, bptr->outvars, bptr->outdepth, irstage);
497 #if defined(ENABLE_DISASSEMBLER)
498 if ((stage >= SHOW_CODE) && JITDATA_HAS_FLAG_SHOWDISASSEMBLE(jd) &&
502 u1ptr = (u1 *) (code->mcode + cd->dseglen + bptr->mpc);
504 if (bptr->next != NULL) {
505 for (; u1ptr < (u1 *) (code->mcode + cd->dseglen + bptr->next->mpc);)
510 for (; u1ptr < (u1 *) (code->mcode + code->mcodelength);)
518 #endif /* !defined(NDEBUG) */
521 /* show_icmd *******************************************************************
523 Print the intermediate representation of an instruction.
525 NOTE: Currently this function may only be called after register allocation!
527 *******************************************************************************/
531 #define SHOW_TARGET(target) \
532 if (stage >= SHOW_STACK) { \
533 printf("--> L%03d ", (target).block->nr); \
535 else if (stage >= SHOW_PARSE) { \
536 printf("--> insindex %d (L%03d) ", (target).insindex, \
537 jd->basicblocks[jd->basicblockindex[ \
538 (target).insindex]].nr); \
541 printf("--> insindex %d ", (target).insindex); \
544 #define SHOW_INT_CONST(val) \
545 if (stage >= SHOW_PARSE) { \
546 printf("%ld ", (long) (val)); \
552 #define SHOW_LNG_CONST(val) \
553 if (stage >= SHOW_PARSE) { \
554 printf("%lld ", (long long)(val)); \
560 #define SHOW_FLT_CONST(val) \
561 if (stage >= SHOW_PARSE) { \
562 printf("%g ", (val)); \
568 #define SHOW_DBL_CONST(val) \
569 if (stage >= SHOW_PARSE) { \
570 printf("%g ", (val)); \
576 #define SHOW_INDEX(index) \
577 if (stage >= SHOW_PARSE) { \
578 printf("%d ", index); \
584 #define SHOW_STRING(val) \
585 if (stage >= SHOW_PARSE) { \
587 utf_display_printable_ascii( \
588 javastring_toutf((java_lang_String *)(val), false)); \
595 #define SHOW_CLASSREF_OR_CLASSINFO(c) \
596 if (stage >= SHOW_PARSE) { \
597 if (IS_CLASSREF(c)) \
598 class_classref_print(c.ref); \
600 class_print(c.cls); \
607 #define SHOW_FIELD(fmiref) \
608 if (stage >= SHOW_PARSE) { \
609 field_fieldref_print(fmiref); \
616 #define SHOW_VARIABLE(v) \
617 show_variable(jd, (v), stage)
619 #define SHOW_S1(iptr) \
620 if (stage >= SHOW_STACK) { \
621 SHOW_VARIABLE(iptr->s1.varindex); \
624 #define SHOW_S2(iptr) \
625 if (stage >= SHOW_STACK) { \
626 SHOW_VARIABLE(iptr->sx.s23.s2.varindex); \
629 #define SHOW_S3(iptr) \
630 if (stage >= SHOW_STACK) { \
631 SHOW_VARIABLE(iptr->sx.s23.s3.varindex); \
634 #define SHOW_DST(iptr) \
635 if (stage >= SHOW_STACK) { \
637 SHOW_VARIABLE(iptr->dst.varindex); \
640 #define SHOW_S1_LOCAL(iptr) \
641 if (stage >= SHOW_STACK) { \
642 printf("L%d ", iptr->s1.varindex); \
645 printf("JavaL%d ", iptr->s1.varindex); \
648 #define SHOW_DST_LOCAL(iptr) \
649 if (stage >= SHOW_STACK) { \
650 printf("=> L%d ", iptr->dst.varindex); \
653 printf("=> JavaL%d ", iptr->dst.varindex); \
656 static void show_allocation(s4 type, s4 flags, s4 regoff)
658 if (flags & INMEMORY) {
659 printf("M%02d", regoff);
663 #ifdef HAS_ADDRESS_REGISTER_FILE
664 if (type == TYPE_ADR) {
665 printf("R%02d", regoff);
670 if (IS_FLT_DBL_TYPE(type)) {
671 printf("F%02d", regoff);
675 #if defined(SUPPORT_COMBINE_INTEGER_REGISTERS)
676 if (IS_2_WORD_TYPE(type)) {
677 # if defined(ENABLE_JIT) && defined(ENABLE_DISASSEMBLER)
678 # if defined(ENABLE_INTRP)
680 printf("%3d/%3d", GET_LOW_REG(regoff),
681 GET_HIGH_REG(regoff));
684 printf("%3s/%3s", regs[GET_LOW_REG(regoff)],
685 regs[GET_HIGH_REG(regoff)]);
687 printf("%3d/%3d", GET_LOW_REG(regoff),
688 GET_HIGH_REG(regoff));
692 #endif /* defined(SUPPORT_COMBINE_INTEGER_REGISTERS) */
694 #if defined(ENABLE_JIT) && defined(ENABLE_DISASSEMBLER)
695 # if defined(ENABLE_INTRP)
697 printf("%3d", regoff);
700 printf("%3s", regs[regoff]);
702 printf("%3d", regoff);
706 void show_variable(jitdata *jd, s4 index, int stage)
715 case TYPE_INT: type = 'i'; break;
716 case TYPE_LNG: type = 'l'; break;
717 case TYPE_FLT: type = 'f'; break;
718 case TYPE_DBL: type = 'd'; break;
719 case TYPE_ADR: type = 'a'; break;
720 case TYPE_RET: type = 'r'; break;
724 if (index < jd->localcount) {
726 if (v->flags & (PREALLOC | INOUT))
727 printf("<INVALID FLAGS!>");
730 if (v->flags & PREALLOC) {
732 if (v->flags & INOUT)
733 printf("<INVALID FLAGS!>");
735 else if (v->flags & INOUT)
741 printf("%c%c%d", kind, type, index);
743 if (v->flags & SAVEDVAR)
746 if (stage >= SHOW_REGS) {
748 show_allocation(v->type, v->flags, v->vv.regoff);
755 void show_variable_array(jitdata *jd, s4 *vars, int n, int stage)
760 for (i=0; i<n; ++i) {
763 show_variable(jd, vars[i], stage);
768 void show_icmd(jitdata *jd, instruction *iptr, bool deadcode, int stage)
771 branch_target_t *table;
772 lookup_target_t *lookup;
773 constant_FMIref *fmiref;
777 /* get the opcode and the condition */
781 printf("%s ", icmd_table[opcode].name);
783 if (stage < SHOW_PARSE)
789 /* Print the condition for conditional instructions. */
791 /* XXX print condition from flags */
793 if (iptr->flags.bits & INS_FLAG_UNRESOLVED)
794 printf("(UNRESOLVED) ");
800 case ICMD_CHECKNULL_POP:
805 case ICMD_ARRAYLENGTH:
872 /* binary/const INT */
884 case ICMD_IUSHRCONST:
887 case ICMD_LUSHRCONST:
889 SHOW_INT_CONST(iptr->sx.val.i);
893 /* ?ASTORECONST (trinary/const INT) */
894 case ICMD_IASTORECONST:
895 case ICMD_BASTORECONST:
896 case ICMD_CASTORECONST:
897 case ICMD_SASTORECONST:
900 SHOW_INT_CONST(iptr->sx.s23.s3.constval);
905 SHOW_INT_CONST(iptr->sx.val.i);
909 /* binary/const LNG */
920 SHOW_LNG_CONST(iptr->sx.val.l);
924 /* trinary/const LNG (<= pointer size) */
925 case ICMD_LASTORECONST:
928 SHOW_LNG_CONST(iptr->sx.s23.s3.constval);
933 SHOW_LNG_CONST(iptr->sx.val.l);
939 SHOW_FLT_CONST(iptr->sx.val.f);
945 SHOW_DBL_CONST(iptr->sx.val.d);
951 if (iptr->flags.bits & INS_FLAG_CLASS) {
952 SHOW_CLASSREF_OR_CLASSINFO(iptr->sx.val.c);
954 else if (iptr->sx.val.anyptr == NULL) {
958 SHOW_STRING(iptr->sx.val.stringconst);
963 case ICMD_AASTORECONST:
966 printf("%p ", (void*) iptr->sx.s23.s3.constval);
969 case ICMD_GETFIELD: /* 1 -> 1 */
970 case ICMD_PUTFIELD: /* 2 -> 0 */
971 case ICMD_PUTSTATIC: /* 1 -> 0 */
972 case ICMD_GETSTATIC: /* 0 -> 1 */
973 case ICMD_PUTSTATICCONST: /* 0 -> 0 */
974 case ICMD_PUTFIELDCONST: /* 1 -> 0 */
975 if (opcode != ICMD_GETSTATIC && opcode != ICMD_PUTSTATICCONST) {
977 if (opcode == ICMD_PUTFIELD) {
981 INSTRUCTION_GET_FIELDREF(iptr, fmiref);
984 if (opcode == ICMD_GETSTATIC || opcode == ICMD_GETFIELD) {
991 SHOW_INT_CONST(iptr->sx.val.i);
992 SHOW_DST_LOCAL(iptr);
1022 SHOW_S1_LOCAL(iptr);
1023 if (stage >= SHOW_STACK) {
1024 printf(" ---> L%03d", iptr->dst.block->nr);
1033 SHOW_S1_LOCAL(iptr);
1043 SHOW_DST_LOCAL(iptr);
1054 case ICMD_ANEWARRAY:
1058 case ICMD_MULTIANEWARRAY:
1059 if (stage >= SHOW_STACK) {
1060 argp = iptr->sx.s23.s2.args;
1061 i = iptr->s1.argcount;
1063 SHOW_VARIABLE(*(argp++));
1067 printf("argcount=%d ", iptr->s1.argcount);
1072 case ICMD_CHECKCAST:
1075 class_classref_or_classinfo_print(iptr->sx.s23.s3.c);
1079 case ICMD_INSTANCEOF:
1084 case ICMD_INLINE_START:
1085 case ICMD_INLINE_END:
1089 if (stage >= SHOW_STACK) {
1090 argp = iptr->sx.s23.s2.args;
1091 i = iptr->s1.argcount;
1093 if ((iptr->s1.argcount - 1 - i) == iptr->sx.s23.s3.bte->md->paramcount)
1094 printf(" pass-through: ");
1095 SHOW_VARIABLE(*(argp++));
1098 printf("%s ", iptr->sx.s23.s3.bte->cname);
1099 if (iptr->sx.s23.s3.bte->md->returntype.type != TYPE_VOID) {
1104 case ICMD_INVOKEVIRTUAL:
1105 case ICMD_INVOKESPECIAL:
1106 case ICMD_INVOKESTATIC:
1107 case ICMD_INVOKEINTERFACE:
1108 if (stage >= SHOW_STACK) {
1110 INSTRUCTION_GET_METHODDESC(iptr, md);
1111 argp = iptr->sx.s23.s2.args;
1112 i = iptr->s1.argcount;
1114 if ((iptr->s1.argcount - 1 - i) == md->paramcount)
1115 printf(" pass-through: ");
1116 SHOW_VARIABLE(*(argp++));
1119 INSTRUCTION_GET_METHODREF(iptr, fmiref);
1120 method_methodref_print(fmiref);
1121 if (fmiref->parseddesc.md->returntype.type != TYPE_VOID) {
1134 SHOW_INT_CONST(iptr->sx.val.i);
1135 SHOW_TARGET(iptr->dst);
1145 SHOW_LNG_CONST(iptr->sx.val.l);
1146 SHOW_TARGET(iptr->dst);
1150 case ICMD_INLINE_GOTO:
1151 SHOW_TARGET(iptr->dst);
1155 SHOW_TARGET(iptr->sx.s23.s3.jsrtarget);
1160 case ICMD_IFNONNULL:
1162 SHOW_TARGET(iptr->dst);
1165 case ICMD_IF_ICMPEQ:
1166 case ICMD_IF_ICMPNE:
1167 case ICMD_IF_ICMPLT:
1168 case ICMD_IF_ICMPGE:
1169 case ICMD_IF_ICMPGT:
1170 case ICMD_IF_ICMPLE:
1172 case ICMD_IF_LCMPEQ:
1173 case ICMD_IF_LCMPNE:
1174 case ICMD_IF_LCMPLT:
1175 case ICMD_IF_LCMPGE:
1176 case ICMD_IF_LCMPGT:
1177 case ICMD_IF_LCMPLE:
1179 case ICMD_IF_FCMPEQ:
1180 case ICMD_IF_FCMPNE:
1182 case ICMD_IF_FCMPL_LT:
1183 case ICMD_IF_FCMPL_GE:
1184 case ICMD_IF_FCMPL_GT:
1185 case ICMD_IF_FCMPL_LE:
1187 case ICMD_IF_FCMPG_LT:
1188 case ICMD_IF_FCMPG_GE:
1189 case ICMD_IF_FCMPG_GT:
1190 case ICMD_IF_FCMPG_LE:
1192 case ICMD_IF_DCMPEQ:
1193 case ICMD_IF_DCMPNE:
1195 case ICMD_IF_DCMPL_LT:
1196 case ICMD_IF_DCMPL_GE:
1197 case ICMD_IF_DCMPL_GT:
1198 case ICMD_IF_DCMPL_LE:
1200 case ICMD_IF_DCMPG_LT:
1201 case ICMD_IF_DCMPG_GE:
1202 case ICMD_IF_DCMPG_GT:
1203 case ICMD_IF_DCMPG_LE:
1205 case ICMD_IF_ACMPEQ:
1206 case ICMD_IF_ACMPNE:
1209 SHOW_TARGET(iptr->dst);
1212 case ICMD_TABLESWITCH:
1214 table = iptr->dst.table;
1216 i = iptr->sx.s23.s3.tablehigh - iptr->sx.s23.s2.tablelow + 1;
1218 printf("high=%d low=%d count=%d\n", iptr->sx.s23.s3.tablehigh, iptr->sx.s23.s2.tablelow, i);
1220 printf("\t\t%d --> ", (int) (table - iptr->dst.table));
1221 if (stage >= SHOW_STACK) {
1222 printf("L%03d\n", table->block->nr);
1225 printf("insindex %d (L%03d)\n", table->insindex, BLOCK_OF(table->insindex)->nr);
1232 case ICMD_LOOKUPSWITCH:
1235 printf("count=%d, default=", iptr->sx.s23.s2.lookupcount);
1236 if (stage >= SHOW_STACK) {
1237 printf("L%03d\n", iptr->sx.s23.s3.lookupdefault.block->nr);
1240 printf("insindex %d (L%03d)\n", iptr->sx.s23.s3.lookupdefault.insindex, BLOCK_OF(iptr->sx.s23.s3.lookupdefault.insindex)->nr);
1243 lookup = iptr->dst.lookup;
1244 i = iptr->sx.s23.s2.lookupcount;
1246 printf("\t\t%d --> ", lookup->value);
1247 if (stage >= SHOW_STACK) {
1248 printf("L%03d\n", lookup->target.block->nr);
1251 printf("insindex %d (L%03d)\n", lookup->target.insindex, BLOCK_OF(lookup->target.insindex)->nr);
1277 #endif /* !defined(NDEBUG) */
1281 * These are local overrides for various environment variables in Emacs.
1282 * Please do not remove this and leave it at the end of the file, where
1283 * Emacs will automagically detect them.
1284 * ---------------------------------------------------------------------
1287 * indent-tabs-mode: t
1291 * vim:noexpandtab:sw=4:ts=4: