aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMike Pall <mike>2011-05-27 01:56:25 +0200
committerMike Pall <mike>2011-05-27 01:56:25 +0200
commit46955be1e2cbd3406bbc8209dbece7238a984835 (patch)
treedba6dc92268c81a1313aeb2b890be324752d838d /lib
parent840a067d4e3538ab7887d128a817be44333684d6 (diff)
downloadluajit-46955be1e2cbd3406bbc8209dbece7238a984835.tar.gz
luajit-46955be1e2cbd3406bbc8209dbece7238a984835.tar.bz2
luajit-46955be1e2cbd3406bbc8209dbece7238a984835.zip
Fix handling of number constants in snapshots in SPLIT pass.
Diffstat (limited to 'lib')
-rw-r--r--lib/dump.lua10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/dump.lua b/lib/dump.lua
index b049828f..5f32eb80 100644
--- a/lib/dump.lua
+++ b/lib/dump.lua
@@ -321,13 +321,11 @@ local function printsnap(tr, snap)
321 local ref = band(sn, 0xffff) - 0x8000 -- REF_BIAS 321 local ref = band(sn, 0xffff) - 0x8000 -- REF_BIAS
322 if ref < 0 then 322 if ref < 0 then
323 out:write(formatk(tr, ref)) 323 out:write(formatk(tr, ref))
324 elseif band(sn, 0x80000) ~= 0 then -- SNAP_SOFTFPNUM
325 out:write(colorize(format("%04d/%04d", ref, ref+1), 14))
324 else 326 else
325 if band(sn, 0x80000) ~= 0 then -- SNAP_SOFTFPNUM 327 local m, ot, op1, op2 = traceir(tr, ref)
326 out:write(colorize(format("%04d/%04d", ref, ref+1), 14)) 328 out:write(colorize(format("%04d", ref), band(ot, 31)))
327 else
328 local m, ot, op1, op2 = traceir(tr, ref)
329 out:write(colorize(format("%04d", ref), band(ot, 31)))
330 end
331 end 329 end
332 out:write(band(sn, 0x10000) == 0 and " " or "|") -- SNAP_FRAME 330 out:write(band(sn, 0x10000) == 0 and " " or "|") -- SNAP_FRAME
333 else 331 else