compact wasm stack logs

extensions
Steven Massey 5 years ago
parent f3ff62667e
commit 813924c54b

@ -193,7 +193,8 @@ M3CodePageHeader;
#define c_externalKind_memory 2
#define c_externalKind_global 3
static const char * const c_waTypes [] = { "nil", "i32", "i64", "f32", "f64", "void", "void *" };
static const char * const c_waTypes [] = { "nil", "i32", "i64", "f32", "f64", "void", "void *" };
static const char * const c_waCompactTypes [] = { "0", "i", "I", "f", "F", "v", "v*" };
#define m3Alloc(OPTR, STRUCT, NUM) m3Malloc ((void **) OPTR, sizeof (STRUCT) * (NUM))

@ -314,7 +314,7 @@ void dump_type_stack (IM3Compilation o)
printf (" | "); // divide the static & dynamic portion of the stack
// printf (" %d:%s.", i, c_waTypes [o->typeStack [i]]);
printf (" %s.", c_waTypes [o->typeStack [i]]);
printf (" %s", c_waCompactTypes [o->typeStack [i]]);
if (i < o->firstConstSlotIndex)
{
u16 writeCount = o->wasmStack [i];

Loading…
Cancel
Save