From cdac0fa2cbd3f610159330bd8c5a36ea53b631d7 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Sat, 11 Dec 2010 19:32:12 +0100 Subject: FFI: Add IR_CNEW/IR_CNEWI to allocate/init cdata objects. --- lib/dump.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/dump.lua') diff --git a/lib/dump.lua b/lib/dump.lua index f476f3f0..4e794498 100644 --- a/lib/dump.lua +++ b/lib/dump.lua @@ -418,10 +418,16 @@ local function dump_ir(tr, dumpsnap, dumpreg) band(ot, 64) == 0 and " " or "+", irtype[t], op)) local m1 = band(m, 3) - if sub(op, 1, 4) == "CALL" then + local op4 = sub(op, 1, 4) + if op4 == "CALL" then out:write(format("%-10s (", vmdef.ircall[op2])) if op1 ~= -1 then dumpcallargs(tr, op1) end out:write(")") + elseif op4 == "CNEW" then + out:write(formatk(tr, op2)) + if op1 ~= -1 then + out:write(" ("); dumpcallargs(tr, op1); out:write(")") + end elseif m1 ~= 3 then -- op1 != IRMnone if op1 < 0 then out:write(formatk(tr, op1)) -- cgit v1.2.3-55-g6feb