X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=rts%2FDisassembler.c;h=19c121f2f1ad8c97da89fd1e8cf037da7512f526;hp=8777b81c4326fda4baba7365df204ba55d65308f;hb=c004ec62b41aa2137b5b5e298ca562609b0de92e;hpb=ab0e778ccfde61aed4c22679b24d175fc6cc9bf3 diff --git a/rts/Disassembler.c b/rts/Disassembler.c index 8777b81..19c121f 100644 --- a/rts/Disassembler.c +++ b/rts/Disassembler.c @@ -16,7 +16,6 @@ #include "RtsUtils.h" #include "Closures.h" #include "TSO.h" -#include "Storage.h" #include "Schedule.h" #include "Bytecodes.h" @@ -42,11 +41,13 @@ disInstr ( StgBCO *bco, int pc ) StgMutArrPtrs* ptrs_arr = bco->ptrs; StgPtr* ptrs = (StgPtr*)(&ptrs_arr->payload[0]); - StgArrWords* itbls_arr = bco->itbls; - StgInfoTable** itbls = (StgInfoTable**)(&itbls_arr->payload[0]); - instr = instrs[pc++]; switch (instr) { + case bci_BRK_FUN: + debugBelch ("BRK_FUN " ); printPtr( ptrs[instrs[pc]] ); + debugBelch (" %d ", instrs[pc+1]); printPtr( ptrs[instrs[pc+2]] ); debugBelch("\n" ); + pc += 3; + break; case bci_SWIZZLE: debugBelch("SWIZZLE stkoff %d by %d\n", instrs[pc], (signed int)instrs[pc+1]); @@ -147,6 +148,9 @@ disInstr ( StgBCO *bco, int pc ) case bci_ALLOC_AP: debugBelch("ALLOC_AP %d words\n", instrs[pc] ); pc += 1; break; + case bci_ALLOC_AP_NOUPD: + debugBelch("ALLOC_AP_NOUPD %d words\n", instrs[pc] ); + pc += 1; break; case bci_ALLOC_PAP: debugBelch("ALLOC_PAP %d arity, %d words\n", instrs[pc], instrs[pc+1] ); @@ -164,7 +168,7 @@ disInstr ( StgBCO *bco, int pc ) pc += 1; break; case bci_PACK: debugBelch("PACK %d words with itbl ", instrs[pc+1] ); - printPtr( (StgPtr)itbls[instrs[pc]] ); + printPtr( (StgPtr)literals[instrs[pc]] ); debugBelch("\n"); pc += 2; break;