diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/dump.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/dump.lua b/lib/dump.lua index 3c726484..687d79db 100644 --- a/lib/dump.lua +++ b/lib/dump.lua | |||
| @@ -219,7 +219,8 @@ span.irt_int, span.irt_i8, span.irt_u8, span.irt_i16, span.irt_u16 { color: #b04 | |||
| 219 | 219 | ||
| 220 | local colorize, irtype | 220 | local colorize, irtype |
| 221 | 221 | ||
| 222 | -- Lookup table to convert some literals into names. | 222 | -- Lookup tables to convert some literals into names. |
| 223 | local tointname = { [0] = "check", "index", "", "Z", "S", "T", } | ||
| 223 | local litname = { | 224 | local litname = { |
| 224 | ["SLOAD "] = setmetatable({}, { __index = function(t, mode) | 225 | ["SLOAD "] = setmetatable({}, { __index = function(t, mode) |
| 225 | local s = "" | 226 | local s = "" |
| @@ -233,7 +234,8 @@ local litname = { | |||
| 233 | return s | 234 | return s |
| 234 | end}), | 235 | end}), |
| 235 | ["XLOAD "] = { [0] = "", "R", "U", "RU", }, | 236 | ["XLOAD "] = { [0] = "", "R", "U", "RU", }, |
| 236 | ["TOINT "] = { [0] = "check", "index", "", }, | 237 | ["TOINT "] = tointname, |
| 238 | ["TOI64 "] = tointname, | ||
| 237 | ["FLOAD "] = vmdef.irfield, | 239 | ["FLOAD "] = vmdef.irfield, |
| 238 | ["FREF "] = vmdef.irfield, | 240 | ["FREF "] = vmdef.irfield, |
| 239 | ["FPMATH"] = vmdef.irfpm, | 241 | ["FPMATH"] = vmdef.irfpm, |
