From 77267bc5384b4211418a05f0897ff336c4e1279e Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Wed, 15 Sep 2010 00:51:43 +0200 Subject: Show names of IR calls in disassembler output. --- lib/dump.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/dump.lua b/lib/dump.lua index a00862d0..b0a334e6 100644 --- a/lib/dump.lua +++ b/lib/dump.lua @@ -59,8 +59,8 @@ local jutil = require("jit.util") local vmdef = require("jit.vmdef") local funcinfo, funcbc = jutil.funcinfo, jutil.funcbc local traceinfo, traceir, tracek = jutil.traceinfo, jutil.traceir, jutil.tracek -local tracemc, traceexitstub = jutil.tracemc, jutil.traceexitstub -local tracesnap = jutil.tracesnap +local tracemc, tracesnap = jutil.tracemc, jutil.tracesnap +local traceexitstub, ircalladdr = jutil.traceexitstub, jutil.ircalladdr local bit = require("bit") local band, shl, shr = bit.band, bit.lshift, bit.rshift local sub, gsub, format = string.sub, string.gsub, string.format @@ -82,6 +82,10 @@ local nexitsym = 0 -- Fill symbol table with trace exit addresses. local function fillsymtab(nexit) local t = symtab + if nexitsym == 0 then + local ircall = vmdef.ircall + for i=0,#ircall do t[ircalladdr(i)] = ircall[i] end + end if nexit > nexitsym then for i=nexitsym,nexit-1 do t[traceexitstub(i)] = tostring(i) end nexitsym = nexit -- cgit v1.2.3-55-g6feb