Skip to content

Commit

Permalink
Show index of outer lexials in bytecode dump instead of ??
Browse files Browse the repository at this point in the history
  • Loading branch information
niner committed Jun 6, 2020
1 parent de89558 commit 9e12424
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/core/bytecodedump.c
Expand Up @@ -280,9 +280,15 @@ static void bytecode_dump_frame_internal(MVMThreadContext *tc, MVMStaticFrame *f
/* inefficient, I know. should use a hash. */
for (m = 0; m < cu->body.num_frames; m++) {
if (get_frame(tc, cu, m) == applicable_frame) {
char *lexname = frame_lexicals ? frame_lexicals[m][idx] : "lex??";
a("lex_Frame_%u_%s_%s", m, lexname,
get_typename(applicable_frame->body.lexical_types[idx]));
if (frame_lexicals) {
char *lexname = frame_lexicals[m][idx];
a("lex_Frame_%u_%s_%s", m, lexname,
get_typename(applicable_frame->body.lexical_types[idx]));
}
else {
a("lex_Frame_%u_lex%d_%s", m, idx,
get_typename(applicable_frame->body.lexical_types[idx]));
}
}
}
}
Expand Down

0 comments on commit 9e12424

Please sign in to comment.