mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Fix dump of bytecode instructions with missing operands.
This commit is contained in:
parent
b2067236c5
commit
2e5d3740ae
@ -74,12 +74,13 @@ local function bcline(func, pc, prefix)
|
|||||||
pc, prefix or " ", sub(bcnames, oidx+1, oidx+6), ma == 0 and "" or a)
|
pc, prefix or " ", sub(bcnames, oidx+1, oidx+6), ma == 0 and "" or a)
|
||||||
local d = shr(ins, 16)
|
local d = shr(ins, 16)
|
||||||
if mc == 13*128 then -- BCMjump
|
if mc == 13*128 then -- BCMjump
|
||||||
if ma == 0 then
|
|
||||||
return format("%s=> %04d\n", sub(s, 1, -3), pc+d-0x7fff)
|
|
||||||
end
|
|
||||||
return format("%s=> %04d\n", s, pc+d-0x7fff)
|
return format("%s=> %04d\n", s, pc+d-0x7fff)
|
||||||
end
|
end
|
||||||
if mb ~= 0 then d = band(d, 0xff) end
|
if mb ~= 0 then
|
||||||
|
d = band(d, 0xff)
|
||||||
|
elseif mc == 0 then
|
||||||
|
return s.."\n"
|
||||||
|
end
|
||||||
local kc
|
local kc
|
||||||
if mc == 10*128 then -- BCMstr
|
if mc == 10*128 then -- BCMstr
|
||||||
kc = funck(func, -d-1)
|
kc = funck(func, -d-1)
|
||||||
|
Loading…
Reference in New Issue
Block a user