diff options
author | Mike Pall <mike> | 2016-12-30 17:54:10 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2016-12-30 17:54:10 +0100 |
commit | 8e5d7bec0d110aa4ccd7e8492f697ff2a88a55ed (patch) | |
tree | 44c4e0da008f2708b79c0e965228473a6e4b33ea | |
parent | ebec2530befabb8777f3e46d22980112c942dba8 (diff) | |
download | luajit-8e5d7bec0d110aa4ccd7e8492f697ff2a88a55ed.tar.gz luajit-8e5d7bec0d110aa4ccd7e8492f697ff2a88a55ed.tar.bz2 luajit-8e5d7bec0d110aa4ccd7e8492f697ff2a88a55ed.zip |
ARM64: Remove unused variables in disassembler.
Thanks to François Perrad.
-rw-r--r-- | src/jit/dis_arm64.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/jit/dis_arm64.lua b/src/jit/dis_arm64.lua index 8cb608e6..6e3f9ff4 100644 --- a/src/jit/dis_arm64.lua +++ b/src/jit/dis_arm64.lua | |||
@@ -13,10 +13,9 @@ | |||
13 | -- NYI: Advanced SIMD and VFP instructions. | 13 | -- NYI: Advanced SIMD and VFP instructions. |
14 | ------------------------------------------------------------------------------ | 14 | ------------------------------------------------------------------------------ |
15 | 15 | ||
16 | local type, tonumber = type, tonumber | 16 | local type = type |
17 | local sub, byte, format = string.sub, string.byte, string.format | 17 | local sub, byte, format = string.sub, string.byte, string.format |
18 | local match, gmatch, gsub = string.match, string.gmatch, string.gsub | 18 | local match, gmatch, gsub = string.match, string.gmatch, string.gsub |
19 | local rep = string.rep | ||
20 | local concat = table.concat | 19 | local concat = table.concat |
21 | local bit = require("bit") | 20 | local bit = require("bit") |
22 | local band, bor, bxor, tohex = bit.band, bit.bor, bit.bxor, bit.tohex | 21 | local band, bor, bxor, tohex = bit.band, bit.bor, bit.bxor, bit.tohex |
@@ -864,7 +863,6 @@ local function disass_ins(ctx) | |||
864 | local operands = {} | 863 | local operands = {} |
865 | local suffix = "" | 864 | local suffix = "" |
866 | local last, name, pat | 865 | local last, name, pat |
867 | local vr | ||
868 | local map_reg | 866 | local map_reg |
869 | ctx.op = op | 867 | ctx.op = op |
870 | ctx.rel = nil | 868 | ctx.rel = nil |
@@ -1014,7 +1012,6 @@ local function disass_ins(ctx) | |||
1014 | elseif p == "I" then | 1012 | elseif p == "I" then |
1015 | local shf = band(rshift(op, 22), 3) | 1013 | local shf = band(rshift(op, 22), 3) |
1016 | local imm12 = band(rshift(op, 10), 0x0fff) | 1014 | local imm12 = band(rshift(op, 10), 0x0fff) |
1017 | local n = #operands | ||
1018 | local rn, rd = band(rshift(op, 5), 31), band(op, 31) | 1015 | local rn, rd = band(rshift(op, 5), 31), band(op, 31) |
1019 | if altname == "mov" and shf == 0 and imm12 == 0 and (rn == 31 or rd == 31) then | 1016 | if altname == "mov" and shf == 0 and imm12 == 0 and (rn == 31 or rd == 31) then |
1020 | name = altname | 1017 | name = altname |