diff options
Diffstat (limited to '')
-rw-r--r-- | src/jit/v.lua | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/jit/v.lua b/src/jit/v.lua index 29edcf2b..8e91f494 100644 --- a/src/jit/v.lua +++ b/src/jit/v.lua | |||
@@ -98,7 +98,7 @@ end | |||
98 | local function dump_trace(what, tr, func, pc, otr, oex) | 98 | local function dump_trace(what, tr, func, pc, otr, oex) |
99 | if what == "start" then | 99 | if what == "start" then |
100 | startloc = fmtfunc(func, pc) | 100 | startloc = fmtfunc(func, pc) |
101 | startex = otr and "("..otr.."/"..oex..") " or "" | 101 | startex = otr and "("..otr.."/"..(oex == -1 and "stitch" or oex)..") " or "" |
102 | else | 102 | else |
103 | if what == "abort" then | 103 | if what == "abort" then |
104 | local loc = fmtfunc(func, pc) | 104 | local loc = fmtfunc(func, pc) |
@@ -115,6 +115,9 @@ local function dump_trace(what, tr, func, pc, otr, oex) | |||
115 | if ltype == "interpreter" then | 115 | if ltype == "interpreter" then |
116 | out:write(format("[TRACE %3s %s%s -- fallback to interpreter]\n", | 116 | out:write(format("[TRACE %3s %s%s -- fallback to interpreter]\n", |
117 | tr, startex, startloc)) | 117 | tr, startex, startloc)) |
118 | elseif ltype == "stitch" then | ||
119 | out:write(format("[TRACE %3s %s%s %s %s]\n", | ||
120 | tr, startex, startloc, ltype, fmtfunc(func, pc))) | ||
118 | elseif link == tr or link == 0 then | 121 | elseif link == tr or link == 0 then |
119 | out:write(format("[TRACE %3s %s%s %s]\n", | 122 | out:write(format("[TRACE %3s %s%s %s]\n", |
120 | tr, startex, startloc, ltype)) | 123 | tr, startex, startloc, ltype)) |
@@ -158,9 +161,9 @@ local function dumpon(outfile) | |||
158 | end | 161 | end |
159 | 162 | ||
160 | -- Public module functions. | 163 | -- Public module functions. |
161 | module(...) | 164 | return { |
162 | 165 | on = dumpon, | |
163 | on = dumpon | 166 | off = dumpoff, |
164 | off = dumpoff | 167 | start = dumpon -- For -j command line option. |
165 | start = dumpon -- For -j command line option. | 168 | } |
166 | 169 | ||