aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pall <mike>2013-09-10 19:21:10 +0200
committerMike Pall <mike>2013-09-10 19:21:10 +0200
commit1f2eff728b5c08283c2ebd7901a2d777c37ca2a9 (patch)
tree17906687b908a46599ccb6da700af415032048b8
parent483f823ea4438024d83a08592bc0c646a3fdf99c (diff)
downloadluajit-1f2eff728b5c08283c2ebd7901a2d777c37ca2a9.tar.gz
luajit-1f2eff728b5c08283c2ebd7901a2d777c37ca2a9.tar.bz2
luajit-1f2eff728b5c08283c2ebd7901a2d777c37ca2a9.zip
Fix -jp=a mode.
-rw-r--r--src/jit/p.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/jit/p.lua b/src/jit/p.lua
index 1fbf389a..cd6a0616 100644
--- a/src/jit/p.lua
+++ b/src/jit/p.lua
@@ -196,9 +196,11 @@ local function prof_annotate(count1, samples)
196 end 196 end
197 local v = fl[n] 197 local v = fl[n]
198 if ann ~= 0 then 198 if ann ~= 0 then
199 local v2 = fl[n+ann]
199 if show then 200 if show then
200 if v then show = n elseif show+ann < n then show = false end 201 if v2 then show = n+ann elseif v then show = n
201 elseif fl[n+ann] then 202 elseif show+ann < n then show = false end
203 elseif v2 then
202 show = n+ann 204 show = n+ann
203 out:write(format("@@ %d @@\n", n)) 205 out:write(format("@@ %d @@\n", n))
204 end 206 end