diff options
author | Mike Pall <mike> | 2016-10-16 21:04:38 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2016-10-16 21:04:38 +0200 |
commit | 6a25014c1c33448cabdc013ccb9e5c4fc98a0238 (patch) | |
tree | c3c3bfc7ceadd3f38c02e31fa8754bfaea90c323 /src/jit/dump.lua | |
parent | 3f43f09413c49a1f4cffc0e060d755e84c5df85e (diff) | |
download | luajit-6a25014c1c33448cabdc013ccb9e5c4fc98a0238.tar.gz luajit-6a25014c1c33448cabdc013ccb9e5c4fc98a0238.tar.bz2 luajit-6a25014c1c33448cabdc013ccb9e5c4fc98a0238.zip |
LJ_FR2: Fix slot 1 handling.
Contributed by Peter Cawley.
Diffstat (limited to 'src/jit/dump.lua')
-rw-r--r-- | src/jit/dump.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jit/dump.lua b/src/jit/dump.lua index fbadccec..a8bc2af2 100644 --- a/src/jit/dump.lua +++ b/src/jit/dump.lua | |||
@@ -338,6 +338,8 @@ local function formatk(tr, idx, sn) | |||
338 | elseif t == 21 then -- int64_t | 338 | elseif t == 21 then -- int64_t |
339 | s = sub(tostring(k), 1, -3) | 339 | s = sub(tostring(k), 1, -3) |
340 | if sub(s, 1, 1) ~= "-" then s = "+"..s end | 340 | if sub(s, 1, 1) ~= "-" then s = "+"..s end |
341 | elseif sn == 0x1057fff then -- SNAP(1, SNAP_FRAME | SNAP_NORESTORE, REF_NIL) | ||
342 | return "----" -- Special case for LJ_FR2 slot 1. | ||
341 | else | 343 | else |
342 | s = tostring(k) -- For primitives. | 344 | s = tostring(k) -- For primitives. |
343 | end | 345 | end |