extensions
Volodymyr Shymanskyy 3 years ago
parent 9ec20457b0
commit 0b69623b32

@ -2341,7 +2341,7 @@ M3Result Compile_Function (IM3Function io_function)
IM3FuncType ft = io_function->funcType;
M3Result result = m3Err_none; m3log (compile, "compiling: '%s'; wasm-size: %d; numArgs: %d; return: %s",
GetFunctionName(io_function), (u32) (io_function->wasmEnd - io_function->wasm), GetFunctionNumArgs (io_function), c_waTypes [GetSingleRetType(ft)]);
m3_GetFunctionName(io_function), (u32) (io_function->wasmEnd - io_function->wasm), GetFunctionNumArgs (io_function), c_waTypes [GetSingleRetType(ft)]);
IM3Runtime runtime = io_function->module->runtime;
IM3Compilation o = & runtime->compilation;

@ -656,7 +656,7 @@ _ (m3ReallocArray (& io_module->table0, IM3Function, endElement, io_mo
u32 functionIndex;
_ (ReadLEB_u32 (& functionIndex, & bytes, end));
_throwif ("function index out of range", functionIndex >= io_module->numFunctions);
IM3Function function = & io_module->functions [functionIndex]; d_m3Assert (function); //printf ("table: %s\n", GetFunctionName(function));
IM3Function function = & io_module->functions [functionIndex]; d_m3Assert (function); //printf ("table: %s\n", m3_GetFunctionName(function));
io_module->table0 [e + offset] = function;
}
}

@ -708,7 +708,7 @@ d_m3Op (Entry)
if ((void *) ((m3slot_t *) _sp + function->maxStackSlots) < _mem->maxStack)
#endif
{
m3log (exec, " enter %p > %s %s", _pc - 2, GetFunctionName(function), SPrintFunctionArgList (function, _sp));
m3log (exec, " enter %p > %s %s", _pc - 2, m3_GetFunctionName(function), SPrintFunctionArgList (function, _sp));
#if defined(DEBUG)
function->hits++;
@ -733,10 +733,10 @@ d_m3Op (Entry)
if (not r)
SPrintArg (str, 99, _sp, GetSingleRetType(function->funcType));
m3log (exec, " exit < %s %s %s %s", GetFunctionName(function), function->funcType->numRets ? "->" : "", str, r ? (cstr_t)r : "");
m3log (exec, " exit < %s %s %s %s", m3_GetFunctionName(function), function->funcType->numRets ? "->" : "", str, r ? (cstr_t)r : "");
# elif d_m3LogStackTrace
if (r)
printf (" ** %s %p\n", GetFunctionName(function), _sp);
printf (" ** %s %p\n", m3_GetFunctionName(function), _sp);
# endif
if (r)
@ -903,7 +903,7 @@ d_m3Op (DumpStack)
u32 stackHeight = immediate (u32);
IM3Function function = immediate (IM3Function);
cstr_t funcName = (function) ? GetFunctionName(function) : "";
cstr_t funcName = (function) ? m3_GetFunctionName(function) : "";
printf (" %4d ", opcodeIndex);
printf (" %-25s r0: 0x%016" PRIx64 " i:%" PRIi64 " u:%" PRIu64 "\n", funcName, _r0, _r0, _r0);

Loading…
Cancel
Save