diff options
author | Mike Pall <mike> | 2013-09-10 19:21:10 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2013-09-10 19:21:10 +0200 |
commit | 1f2eff728b5c08283c2ebd7901a2d777c37ca2a9 (patch) | |
tree | 17906687b908a46599ccb6da700af415032048b8 | |
parent | 483f823ea4438024d83a08592bc0c646a3fdf99c (diff) | |
download | luajit-1f2eff728b5c08283c2ebd7901a2d777c37ca2a9.tar.gz luajit-1f2eff728b5c08283c2ebd7901a2d777c37ca2a9.tar.bz2 luajit-1f2eff728b5c08283c2ebd7901a2d777c37ca2a9.zip |
Fix -jp=a mode.
-rw-r--r-- | src/jit/p.lua | 6 |
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 |