diff options
author | Mike Pall <mike> | 2016-10-02 14:33:31 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2016-10-02 14:33:31 +0200 |
commit | cf80edbbbade52a842eb70ab4c5ad2b61cf152df (patch) | |
tree | f39f9bc9f07721483d5dd42cefe18e0cb203df3d | |
parent | f27b2509e0a88d4ec1e1a7b705b259d6daf4640d (diff) | |
download | luajit-cf80edbbbade52a842eb70ab4c5ad2b61cf152df.tar.gz luajit-cf80edbbbade52a842eb70ab4c5ad2b61cf152df.tar.bz2 luajit-cf80edbbbade52a842eb70ab4c5ad2b61cf152df.zip |
Fix -jp=a mode for builtins.
-rw-r--r-- | src/jit/p.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jit/p.lua b/src/jit/p.lua index 09b3b9fe..c9b6f307 100644 --- a/src/jit/p.lua +++ b/src/jit/p.lua | |||
@@ -156,6 +156,7 @@ local function prof_annotate(count1, samples) | |||
156 | ms = math.max(ms, v) | 156 | ms = math.max(ms, v) |
157 | if pct >= prof_min then | 157 | if pct >= prof_min then |
158 | local file, line = k:match("^(.*):(%d+)$") | 158 | local file, line = k:match("^(.*):(%d+)$") |
159 | if not file then file = k; line = 0 end | ||
159 | local fl = files[file] | 160 | local fl = files[file] |
160 | if not fl then fl = {}; files[file] = fl; files[#files+1] = file end | 161 | if not fl then fl = {}; files[file] = fl; files[#files+1] = file end |
161 | line = tonumber(line) | 162 | line = tonumber(line) |