diff options
author | Mike Pall <mike> | 2024-04-19 00:12:22 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2024-04-19 00:12:22 +0200 |
commit | d2fe2a6d465a3e4c74c9876db94ae606f9c6983b (patch) | |
tree | c66ac6119049a42936aca201bce795c02d4693f5 /src/jit/dump.lua | |
parent | b8b49bf3954b23e32e34187a6ada00021c26e172 (diff) | |
download | luajit-d2fe2a6d465a3e4c74c9876db94ae606f9c6983b.tar.gz luajit-d2fe2a6d465a3e4c74c9876db94ae606f9c6983b.tar.bz2 luajit-d2fe2a6d465a3e4c74c9876db94ae606f9c6983b.zip |
Show name of NYI bytecode in -jv and -jdump.
Suggested by Sergey Kaplun. #1176 #567
Diffstat (limited to 'src/jit/dump.lua')
-rw-r--r-- | src/jit/dump.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/jit/dump.lua b/src/jit/dump.lua index 746732f9..f296a517 100644 --- a/src/jit/dump.lua +++ b/src/jit/dump.lua | |||
@@ -552,7 +552,12 @@ local recdepth = 0 | |||
552 | local function fmterr(err, info) | 552 | local function fmterr(err, info) |
553 | if type(err) == "number" then | 553 | if type(err) == "number" then |
554 | if type(info) == "function" then info = fmtfunc(info) end | 554 | if type(info) == "function" then info = fmtfunc(info) end |
555 | err = format(vmdef.traceerr[err], info) | 555 | local fmt = vmdef.traceerr[err] |
556 | if fmt == "NYI: bytecode %s" then | ||
557 | local oidx = 6 * info | ||
558 | info = sub(vmdef.bcnames, oidx+1, oidx+6) | ||
559 | end | ||
560 | err = format(fmt, info) | ||
556 | end | 561 | end |
557 | return err | 562 | return err |
558 | end | 563 | end |