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("Max locals: %d\n", cd->maxlocals);
189 printf("Max stack: %d\n", cd->maxstack);
190 printf("Line number table length: %d\n", m->linenumbercount);
192 if (stage >= SHOW_PARSE) {
193 printf("Exceptions (Number: %d):\n", jd->exceptiontablelength);
194 for (ex = jd->exceptiontable; ex != NULL; ex = ex->down) {
195 printf(" L%03d ... ", ex->start->nr );
196 printf("L%03d = ", ex->end->nr);
197 printf("L%03d", ex->handler->nr);
198 printf(" (catchtype: ");
199 if (ex->catchtype.any)
200 if (IS_CLASSREF(ex->catchtype))
201 class_classref_print(ex->catchtype.ref);
203 class_print(ex->catchtype.cls);
210 if (irstage >= SHOW_PARSE && rd && jd->localcount > 0) {
211 printf("Local Table:\n");
212 for (i = 0; i < jd->localcount; i++) {
215 #if defined(ENABLE_JIT) && defined(ENABLE_DISASSEMBLER)
216 # if defined(ENABLE_INTRP)
219 printf(" (%s) ", show_jit_type_names[VAR(i)->type]);
220 if (irstage >= SHOW_REGS)
221 show_allocation(VAR(i)->type, VAR(i)->flags, VAR(i)->vv.regoff);
223 # if defined(ENABLE_INTRP)
226 #endif /* defined(ENABLE_JIT) && defined(ENABLE_DISASSEMBLER) */
231 if (cd->maxlocals > 0) {
232 printf("Local Map:\n");
234 for (j = 0; j < cd->maxlocals; j++) {
238 for (i = 0; i < 5; i++) {
239 printf(" %5s ",show_jit_type_names[i]);
240 for (j = 0; j < cd->maxlocals; j++) {
241 if (jd->local_map[j*5+i] == UNUSED)
244 printf("%4i ",jd->local_map[j*5+i]);
251 if (cd->maxstack > 0 && jd->interface_map && irstage >= SHOW_STACK) {
253 interface_info *mapptr = jd->interface_map;
255 /* look if there exist any INOUTS */
256 for (i = 0; (i < (5 * cd->maxstack)) && !exist; i++, mapptr++)
257 exist = (mapptr->flags != UNUSED);
260 printf("Interface Table: (In/Outvars)\n");
262 for (j = 0; j < cd->maxstack; j++) {
267 for (i = 0; i < 5; i++) {
268 printf(" %5s ",show_jit_type_names[i]);
269 for (j = 0; j < cd->maxstack; j++) {
270 s4 flags = jd->interface_map[j*5+i].flags;
271 s4 regoff = jd->interface_map[j*5+i].regoff;
277 if (irstage >= SHOW_REGS) {
278 if (flags & SAVEDVAR) {
279 if (flags & INMEMORY)
285 if (flags & INMEMORY)
290 printf("%c%03d(", ch, regoff);
291 show_allocation(i, flags, regoff);
295 if (flags & SAVEDVAR)
308 if (rd->memuse && irstage >= SHOW_REGS) {
312 printf("Stack slots: (memuse=%d", rd->memuse);
313 if (irstage >= SHOW_CODE) {
314 printf(", stackframesize=%d", cd->stackframesize);
315 max = cd->stackframesize;
318 for (i=0; i<max; ++i) {
319 #if defined(HAS_4BYTE_STACKSLOT)
320 printf(" M%02d = 0x%02x(sp): ", i, i * 4);
322 printf(" M%02d = 0x%02x(sp): ", i, i * 8);
324 for (j=0; j<jd->varcount; ++j) {
326 if ((v->flags & INMEMORY) && (v->vv.regoff == i)) {
327 show_variable(jd, j, irstage);
338 if (code->rplpoints) {
339 printf("Replacement Points:\n");
340 replace_show_replacement_points(code);
344 #if defined(ENABLE_DISASSEMBLER)
345 /* show code before first basic block */
347 if ((stage >= SHOW_CODE) && JITDATA_HAS_FLAG_SHOWDISASSEMBLE(jd)) {
348 u1ptr = (u1 *) ((ptrint) code->mcode + cd->dseglen);
350 for (; u1ptr < (u1 *) ((ptrint) code->mcode + cd->dseglen + jd->basicblocks[0].mpc);)
357 /* show code of all basic blocks */
359 for (bptr = jd->basicblocks; bptr != NULL; bptr = bptr->next)
360 show_basicblock(jd, bptr, stage);
362 #if defined(ENABLE_DISASSEMBLER)
363 /* show stubs code */
365 if (stage >= SHOW_CODE && opt_showdisassemble && opt_showexceptionstubs) {
366 printf("\nStubs code:\n");
367 printf("Length: %d\n\n", (s4) (code->mcodelength -
368 ((ptrint) cd->dseglen + lastbptr->mpc)));
370 u1ptr = (u1 *) ((ptrint) code->mcode + cd->dseglen + lastbptr->mpc);
372 for (; (ptrint) u1ptr < ((ptrint) code->mcode + code->mcodelength);)
379 LOCK_MONITOR_EXIT(show_global_lock);
381 /* finally flush the output */
385 #endif /* !defined(NDEBUG) */
388 /* show_basicblock *************************************************************
390 Print the intermediate representation of a basic block.
392 NOTE: Currently this function may only be called after register allocation!
394 *******************************************************************************/
397 void show_basicblock(jitdata *jd, basicblock *bptr, int stage)
406 #if defined(ENABLE_DISASSEMBLER)
410 /* get required compiler data */
416 if (bptr->flags != BBDELETED) {
417 #if defined(ENABLE_INTRP)
420 irstage = SHOW_PARSE;
425 deadcode = (bptr->flags < BBREACHED);
429 printf("======== %sL%03d ======== %s(flags: %d, bitflags: %01x, next: %d, type: ",
430 (bptr->bitflags & BBFLAG_REPLACEMENT) ? "<REPLACE> " : "",
432 (deadcode && stage >= SHOW_STACK) ? "DEADCODE! " : "",
433 bptr->flags, bptr->bitflags,
434 (bptr->next) ? (bptr->next->nr) : -1);
436 switch (bptr->type) {
448 printf(", icount: %d", bptr->icount);
450 if (irstage >= SHOW_CFG) {
451 printf(", preds: %d [ ", bptr->predecessorcount);
453 for (i = 0; i < bptr->predecessorcount; i++)
454 printf("%d ", bptr->predecessors[i]->nr);
462 printf(" (clone of L%03d)", bptr->original->nr);
464 basicblock *b = bptr->copied_to;
466 printf(" (copied to ");
467 for (; b; b = b->copied_to)
468 printf("L%03d ", b->nr);
475 if (irstage >= SHOW_STACK) {
477 show_variable_array(jd, bptr->invars, bptr->indepth, irstage);
483 for (i = 0; i < bptr->icount; i++, iptr++) {
484 printf("%4d: ", iptr->line);
486 show_icmd(jd, iptr, deadcode, irstage);
490 if (irstage >= SHOW_STACK) {
492 show_variable_array(jd, bptr->outvars, bptr->outdepth, irstage);
496 #if defined(ENABLE_DISASSEMBLER)
497 if ((stage >= SHOW_CODE) && JITDATA_HAS_FLAG_SHOWDISASSEMBLE(jd) &&
501 u1ptr = (u1 *) (code->mcode + cd->dseglen + bptr->mpc);
503 if (bptr->next != NULL) {
504 for (; u1ptr < (u1 *) (code->mcode + cd->dseglen + bptr->next->mpc);)
509 for (; u1ptr < (u1 *) (code->mcode + code->mcodelength);)
517 #endif /* !defined(NDEBUG) */
520 /* show_icmd *******************************************************************
522 Print the intermediate representation of an instruction.
524 NOTE: Currently this function may only be called after register allocation!
526 *******************************************************************************/
530 #define SHOW_TARGET(target) \
531 if (stage >= SHOW_STACK) { \
532 printf("--> L%03d ", (target).block->nr); \
534 else if (stage >= SHOW_PARSE) { \
535 printf("--> insindex %d (L%03d) ", (target).insindex, \
536 jd->basicblocks[jd->basicblockindex[ \
537 (target).insindex]].nr); \
540 printf("--> insindex %d ", (target).insindex); \
543 #define SHOW_INT_CONST(val) \
544 if (stage >= SHOW_PARSE) { \
545 printf("%ld ", (long) (val)); \
551 #define SHOW_LNG_CONST(val) \
552 if (stage >= SHOW_PARSE) { \
553 printf("%lld ", (long long)(val)); \
559 #define SHOW_FLT_CONST(val) \
560 if (stage >= SHOW_PARSE) { \
561 printf("%g ", (val)); \
567 #define SHOW_DBL_CONST(val) \
568 if (stage >= SHOW_PARSE) { \
569 printf("%g ", (val)); \
575 #define SHOW_INDEX(index) \
576 if (stage >= SHOW_PARSE) { \
577 printf("%d ", index); \
583 #define SHOW_STRING(val) \
584 if (stage >= SHOW_PARSE) { \
586 utf_display_printable_ascii( \
587 javastring_toutf((java_lang_String *)(val), false)); \
594 #define SHOW_CLASSREF_OR_CLASSINFO(c) \
595 if (stage >= SHOW_PARSE) { \
596 if (IS_CLASSREF(c)) \
597 class_classref_print(c.ref); \
599 class_print(c.cls); \
606 #define SHOW_FIELD(fmiref) \
607 if (stage >= SHOW_PARSE) { \
608 field_fieldref_print(fmiref); \
615 #define SHOW_VARIABLE(v) \
616 show_variable(jd, (v), stage)
618 #define SHOW_S1(iptr) \
619 if (stage >= SHOW_STACK) { \
620 SHOW_VARIABLE(iptr->s1.varindex); \
623 #define SHOW_S2(iptr) \
624 if (stage >= SHOW_STACK) { \
625 SHOW_VARIABLE(iptr->sx.s23.s2.varindex); \
628 #define SHOW_S3(iptr) \
629 if (stage >= SHOW_STACK) { \
630 SHOW_VARIABLE(iptr->sx.s23.s3.varindex); \
633 #define SHOW_DST(iptr) \
634 if (stage >= SHOW_STACK) { \
636 SHOW_VARIABLE(iptr->dst.varindex); \
639 #define SHOW_S1_LOCAL(iptr) \
640 if (stage >= SHOW_STACK) { \
641 printf("L%d ", iptr->s1.varindex); \
644 printf("JavaL%d ", iptr->s1.varindex); \
647 #define SHOW_DST_LOCAL(iptr) \
648 if (stage >= SHOW_STACK) { \
649 printf("=> L%d ", iptr->dst.varindex); \
652 printf("=> JavaL%d ", iptr->dst.varindex); \
655 static void show_allocation(s4 type, s4 flags, s4 regoff)
657 if (flags & INMEMORY) {
658 printf("M%02d", regoff);
662 #ifdef HAS_ADDRESS_REGISTER_FILE
663 if (type == TYPE_ADR) {
664 printf("R%02d", regoff);
669 if (IS_FLT_DBL_TYPE(type)) {
670 printf("F%02d", regoff);
674 #if defined(SUPPORT_COMBINE_INTEGER_REGISTERS)
675 if (IS_2_WORD_TYPE(type)) {
676 # if defined(ENABLE_JIT) && defined(ENABLE_DISASSEMBLER)
677 # if defined(ENABLE_INTRP)
679 printf("%3d/%3d", GET_LOW_REG(regoff),
680 GET_HIGH_REG(regoff));
683 printf("%3s/%3s", regs[GET_LOW_REG(regoff)],
684 regs[GET_HIGH_REG(regoff)]);
686 printf("%3d/%3d", GET_LOW_REG(regoff),
687 GET_HIGH_REG(regoff));
691 #endif /* defined(SUPPORT_COMBINE_INTEGER_REGISTERS) */
693 #if defined(ENABLE_JIT) && defined(ENABLE_DISASSEMBLER)
694 # if defined(ENABLE_INTRP)
696 printf("%3d", regoff);
699 printf("%3s", regs[regoff]);
701 printf("%3d", regoff);
705 void show_variable(jitdata *jd, s4 index, int stage)
714 case TYPE_INT: type = 'i'; break;
715 case TYPE_LNG: type = 'l'; break;
716 case TYPE_FLT: type = 'f'; break;
717 case TYPE_DBL: type = 'd'; break;
718 case TYPE_ADR: type = 'a'; break;
719 case TYPE_RET: type = 'r'; break;
723 if (index < jd->localcount) {
725 if (v->flags & (PREALLOC | INOUT))
726 printf("<INVALID FLAGS!>");
729 if (v->flags & PREALLOC) {
731 if (v->flags & INOUT)
732 printf("<INVALID FLAGS!>");
734 else if (v->flags & INOUT)
740 printf("%c%c%d", kind, type, index);
742 if (v->flags & SAVEDVAR)
745 if (stage >= SHOW_REGS) {
747 show_allocation(v->type, v->flags, v->vv.regoff);
754 void show_variable_array(jitdata *jd, s4 *vars, int n, int stage)
759 for (i=0; i<n; ++i) {
762 show_variable(jd, vars[i], stage);
767 void show_icmd(jitdata *jd, instruction *iptr, bool deadcode, int stage)
770 branch_target_t *table;
771 lookup_target_t *lookup;
772 constant_FMIref *fmiref;
776 /* get the opcode and the condition */
780 printf("%s ", icmd_table[opcode].name);
782 if (stage < SHOW_PARSE)
788 /* Print the condition for conditional instructions. */
790 /* XXX print condition from flags */
792 if (iptr->flags.bits & INS_FLAG_UNRESOLVED)
793 printf("(UNRESOLVED) ");
799 case ICMD_CHECKNULL_POP:
804 case ICMD_ARRAYLENGTH:
871 /* binary/const INT */
883 case ICMD_IUSHRCONST:
886 case ICMD_LUSHRCONST:
888 SHOW_INT_CONST(iptr->sx.val.i);
892 /* ?ASTORECONST (trinary/const INT) */
893 case ICMD_IASTORECONST:
894 case ICMD_BASTORECONST:
895 case ICMD_CASTORECONST:
896 case ICMD_SASTORECONST:
899 SHOW_INT_CONST(iptr->sx.s23.s3.constval);
904 SHOW_INT_CONST(iptr->sx.val.i);
908 /* binary/const LNG */
919 SHOW_LNG_CONST(iptr->sx.val.l);
923 /* trinary/const LNG (<= pointer size) */
924 case ICMD_LASTORECONST:
927 SHOW_LNG_CONST(iptr->sx.s23.s3.constval);
932 SHOW_LNG_CONST(iptr->sx.val.l);
938 SHOW_FLT_CONST(iptr->sx.val.f);
944 SHOW_DBL_CONST(iptr->sx.val.d);
950 if (iptr->flags.bits & INS_FLAG_CLASS) {
951 SHOW_CLASSREF_OR_CLASSINFO(iptr->sx.val.c);
953 else if (iptr->sx.val.anyptr == NULL) {
957 SHOW_STRING(iptr->sx.val.stringconst);
962 case ICMD_AASTORECONST:
965 printf("%p ", (void*) iptr->sx.s23.s3.constval);
968 case ICMD_GETFIELD: /* 1 -> 1 */
969 case ICMD_PUTFIELD: /* 2 -> 0 */
970 case ICMD_PUTSTATIC: /* 1 -> 0 */
971 case ICMD_GETSTATIC: /* 0 -> 1 */
972 case ICMD_PUTSTATICCONST: /* 0 -> 0 */
973 case ICMD_PUTFIELDCONST: /* 1 -> 0 */
974 if (opcode != ICMD_GETSTATIC && opcode != ICMD_PUTSTATICCONST) {
976 if (opcode == ICMD_PUTFIELD) {
980 INSTRUCTION_GET_FIELDREF(iptr, fmiref);
983 if (opcode == ICMD_GETSTATIC || opcode == ICMD_GETFIELD) {
990 SHOW_INT_CONST(iptr->sx.val.i);
991 SHOW_DST_LOCAL(iptr);
1021 SHOW_S1_LOCAL(iptr);
1022 if (stage >= SHOW_STACK) {
1023 printf(" ---> L%03d", iptr->dst.block->nr);
1032 SHOW_S1_LOCAL(iptr);
1042 SHOW_DST_LOCAL(iptr);
1053 case ICMD_ANEWARRAY:
1057 case ICMD_MULTIANEWARRAY:
1058 if (stage >= SHOW_STACK) {
1059 argp = iptr->sx.s23.s2.args;
1060 i = iptr->s1.argcount;
1062 SHOW_VARIABLE(*(argp++));
1066 printf("argcount=%d ", iptr->s1.argcount);
1071 case ICMD_CHECKCAST:
1074 class_classref_or_classinfo_print(iptr->sx.s23.s3.c);
1078 case ICMD_INSTANCEOF:
1083 case ICMD_INLINE_START:
1084 case ICMD_INLINE_END:
1088 if (stage >= SHOW_STACK) {
1089 argp = iptr->sx.s23.s2.args;
1090 i = iptr->s1.argcount;
1092 if ((iptr->s1.argcount - 1 - i) == iptr->sx.s23.s3.bte->md->paramcount)
1093 printf(" pass-through: ");
1094 SHOW_VARIABLE(*(argp++));
1097 printf("%s ", iptr->sx.s23.s3.bte->cname);
1098 if (iptr->sx.s23.s3.bte->md->returntype.type != TYPE_VOID) {
1103 case ICMD_INVOKEVIRTUAL:
1104 case ICMD_INVOKESPECIAL:
1105 case ICMD_INVOKESTATIC:
1106 case ICMD_INVOKEINTERFACE:
1107 if (stage >= SHOW_STACK) {
1109 INSTRUCTION_GET_METHODDESC(iptr, md);
1110 argp = iptr->sx.s23.s2.args;
1111 i = iptr->s1.argcount;
1113 if ((iptr->s1.argcount - 1 - i) == md->paramcount)
1114 printf(" pass-through: ");
1115 SHOW_VARIABLE(*(argp++));
1118 INSTRUCTION_GET_METHODREF(iptr, fmiref);
1119 method_methodref_print(fmiref);
1120 if (fmiref->parseddesc.md->returntype.type != TYPE_VOID) {
1133 SHOW_INT_CONST(iptr->sx.val.i);
1134 SHOW_TARGET(iptr->dst);
1144 SHOW_LNG_CONST(iptr->sx.val.l);
1145 SHOW_TARGET(iptr->dst);
1149 case ICMD_INLINE_GOTO:
1150 SHOW_TARGET(iptr->dst);
1154 SHOW_TARGET(iptr->sx.s23.s3.jsrtarget);
1159 case ICMD_IFNONNULL:
1161 SHOW_TARGET(iptr->dst);
1164 case ICMD_IF_ICMPEQ:
1165 case ICMD_IF_ICMPNE:
1166 case ICMD_IF_ICMPLT:
1167 case ICMD_IF_ICMPGE:
1168 case ICMD_IF_ICMPGT:
1169 case ICMD_IF_ICMPLE:
1171 case ICMD_IF_LCMPEQ:
1172 case ICMD_IF_LCMPNE:
1173 case ICMD_IF_LCMPLT:
1174 case ICMD_IF_LCMPGE:
1175 case ICMD_IF_LCMPGT:
1176 case ICMD_IF_LCMPLE:
1178 case ICMD_IF_FCMPEQ:
1179 case ICMD_IF_FCMPNE:
1181 case ICMD_IF_FCMPL_LT:
1182 case ICMD_IF_FCMPL_GE:
1183 case ICMD_IF_FCMPL_GT:
1184 case ICMD_IF_FCMPL_LE:
1186 case ICMD_IF_FCMPG_LT:
1187 case ICMD_IF_FCMPG_GE:
1188 case ICMD_IF_FCMPG_GT:
1189 case ICMD_IF_FCMPG_LE:
1191 case ICMD_IF_DCMPEQ:
1192 case ICMD_IF_DCMPNE:
1194 case ICMD_IF_DCMPL_LT:
1195 case ICMD_IF_DCMPL_GE:
1196 case ICMD_IF_DCMPL_GT:
1197 case ICMD_IF_DCMPL_LE:
1199 case ICMD_IF_DCMPG_LT:
1200 case ICMD_IF_DCMPG_GE:
1201 case ICMD_IF_DCMPG_GT:
1202 case ICMD_IF_DCMPG_LE:
1204 case ICMD_IF_ACMPEQ:
1205 case ICMD_IF_ACMPNE:
1208 SHOW_TARGET(iptr->dst);
1211 case ICMD_TABLESWITCH:
1213 table = iptr->dst.table;
1215 i = iptr->sx.s23.s3.tablehigh - iptr->sx.s23.s2.tablelow + 1;
1217 printf("high=%d low=%d count=%d\n", iptr->sx.s23.s3.tablehigh, iptr->sx.s23.s2.tablelow, i);
1219 printf("\t\t%d --> ", (int) table - iptr->dst.table);
1220 if (stage >= SHOW_STACK) {
1221 printf("L%03d\n", table->block->nr);
1224 printf("insindex %d (L%03d)\n", table->insindex, BLOCK_OF(table->insindex)->nr);
1231 case ICMD_LOOKUPSWITCH:
1234 printf("count=%d, default=", iptr->sx.s23.s2.lookupcount);
1235 if (stage >= SHOW_STACK) {
1236 printf("L%03d\n", iptr->sx.s23.s3.lookupdefault.block->nr);
1239 printf("insindex %d (L%03d)\n", iptr->sx.s23.s3.lookupdefault.insindex, BLOCK_OF(iptr->sx.s23.s3.lookupdefault.insindex)->nr);
1242 lookup = iptr->dst.lookup;
1243 i = iptr->sx.s23.s2.lookupcount;
1245 printf("\t\t%d --> ", lookup->value);
1246 if (stage >= SHOW_STACK) {
1247 printf("L%03d\n", lookup->target.block->nr);
1250 printf("insindex %d (L%03d)\n", lookup->target.insindex, BLOCK_OF(lookup->target.insindex)->nr);
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: