diff options
author | Mike Pall <mike> | 2016-07-17 14:38:26 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2016-07-17 14:38:26 +0200 |
commit | 37b377dedf000cb78730feff1035d439d04ce09e (patch) | |
tree | 65f110c3396e0e7bc607287a54ff9b3f90d308a6 /src/jit | |
parent | 01e4754962130dc85802a9738707d7fdb76c879c (diff) | |
parent | 1914de71c7dc10c502ecf033c63665eb6d3e6433 (diff) | |
download | luajit-37b377dedf000cb78730feff1035d439d04ce09e.tar.gz luajit-37b377dedf000cb78730feff1035d439d04ce09e.tar.bz2 luajit-37b377dedf000cb78730feff1035d439d04ce09e.zip |
Merge branch 'master' into v2.1
Diffstat (limited to 'src/jit')
-rw-r--r-- | src/jit/dis_arm.lua | 2 | ||||
-rw-r--r-- | src/jit/dis_mips.lua | 4 | ||||
-rw-r--r-- | src/jit/dis_ppc.lua | 2 | ||||
-rw-r--r-- | src/jit/dis_x86.lua | 2 | ||||
-rw-r--r-- | src/jit/dump.lua | 6 | ||||
-rw-r--r-- | src/jit/p.lua | 2 |
6 files changed, 9 insertions, 9 deletions
diff --git a/src/jit/dis_arm.lua b/src/jit/dis_arm.lua index 1296d816..5d2cdbda 100644 --- a/src/jit/dis_arm.lua +++ b/src/jit/dis_arm.lua | |||
@@ -12,7 +12,7 @@ | |||
12 | 12 | ||
13 | local type = type | 13 | local type = type |
14 | local sub, byte, format = string.sub, string.byte, string.format | 14 | local sub, byte, format = string.sub, string.byte, string.format |
15 | local match, gmatch, gsub = string.match, string.gmatch, string.gsub | 15 | local match, gmatch = string.match, string.gmatch |
16 | local concat = table.concat | 16 | local concat = table.concat |
17 | local bit = require("bit") | 17 | local bit = require("bit") |
18 | local band, bor, ror, tohex = bit.band, bit.bor, bit.ror, bit.tohex | 18 | local band, bor, ror, tohex = bit.band, bit.bor, bit.ror, bit.tohex |
diff --git a/src/jit/dis_mips.lua b/src/jit/dis_mips.lua index 6776f0cb..c8fb0ea8 100644 --- a/src/jit/dis_mips.lua +++ b/src/jit/dis_mips.lua | |||
@@ -11,8 +11,8 @@ | |||
11 | ------------------------------------------------------------------------------ | 11 | ------------------------------------------------------------------------------ |
12 | 12 | ||
13 | local type = type | 13 | local type = type |
14 | local sub, byte, format = string.sub, string.byte, string.format | 14 | local byte, format = string.byte, string.format |
15 | local match, gmatch, gsub = string.match, string.gmatch, string.gsub | 15 | local match, gmatch = string.match, string.gmatch |
16 | local concat = table.concat | 16 | local concat = table.concat |
17 | local bit = require("bit") | 17 | local bit = require("bit") |
18 | local band, bor, tohex = bit.band, bit.bor, bit.tohex | 18 | local band, bor, tohex = bit.band, bit.bor, bit.tohex |
diff --git a/src/jit/dis_ppc.lua b/src/jit/dis_ppc.lua index 30f51ecd..30eb3978 100644 --- a/src/jit/dis_ppc.lua +++ b/src/jit/dis_ppc.lua | |||
@@ -13,7 +13,7 @@ | |||
13 | ------------------------------------------------------------------------------ | 13 | ------------------------------------------------------------------------------ |
14 | 14 | ||
15 | local type = type | 15 | local type = type |
16 | local sub, byte, format = string.sub, string.byte, string.format | 16 | local byte, format = string.byte, string.format |
17 | local match, gmatch, gsub = string.match, string.gmatch, string.gsub | 17 | local match, gmatch, gsub = string.match, string.gmatch, string.gsub |
18 | local concat = table.concat | 18 | local concat = table.concat |
19 | local bit = require("bit") | 19 | local bit = require("bit") |
diff --git a/src/jit/dis_x86.lua b/src/jit/dis_x86.lua index 0bbd198f..8cac9ae9 100644 --- a/src/jit/dis_x86.lua +++ b/src/jit/dis_x86.lua | |||
@@ -818,7 +818,7 @@ map_act = { | |||
818 | m = b%32; b = (b-m)/32 | 818 | m = b%32; b = (b-m)/32 |
819 | local nb = b%2; b = (b-nb)/2 | 819 | local nb = b%2; b = (b-nb)/2 |
820 | if nb == 0 then ctx.rexb = true end | 820 | if nb == 0 then ctx.rexb = true end |
821 | local nx = b%2; b = (b-nx)/2 | 821 | local nx = b%2 |
822 | if nx == 0 then ctx.rexx = true end | 822 | if nx == 0 then ctx.rexx = true end |
823 | b = byte(ctx.code, pos, pos) | 823 | b = byte(ctx.code, pos, pos) |
824 | if not b then return incomplete(ctx) end | 824 | if not b then return incomplete(ctx) end |
diff --git a/src/jit/dump.lua b/src/jit/dump.lua index a635af10..1eca12a8 100644 --- a/src/jit/dump.lua +++ b/src/jit/dump.lua | |||
@@ -63,9 +63,9 @@ local traceinfo, traceir, tracek = jutil.traceinfo, jutil.traceir, jutil.tracek | |||
63 | local tracemc, tracesnap = jutil.tracemc, jutil.tracesnap | 63 | local tracemc, tracesnap = jutil.tracemc, jutil.tracesnap |
64 | local traceexitstub, ircalladdr = jutil.traceexitstub, jutil.ircalladdr | 64 | local traceexitstub, ircalladdr = jutil.traceexitstub, jutil.ircalladdr |
65 | local bit = require("bit") | 65 | local bit = require("bit") |
66 | local band, shl, shr, tohex = bit.band, bit.lshift, bit.rshift, bit.tohex | 66 | local band, shr, tohex = bit.band, bit.rshift, bit.tohex |
67 | local sub, gsub, format = string.sub, string.gsub, string.format | 67 | local sub, gsub, format = string.sub, string.gsub, string.format |
68 | local byte, char, rep = string.byte, string.char, string.rep | 68 | local byte, rep = string.byte, string.rep |
69 | local type, tostring = type, tostring | 69 | local type, tostring = type, tostring |
70 | local stdout, stderr = io.stdout, io.stderr | 70 | local stdout, stderr = io.stdout, io.stderr |
71 | 71 | ||
@@ -213,7 +213,7 @@ local colortype_ansi = { | |||
213 | "\027[35m%s\027[m", | 213 | "\027[35m%s\027[m", |
214 | } | 214 | } |
215 | 215 | ||
216 | local function colorize_text(s, t) | 216 | local function colorize_text(s) |
217 | return s | 217 | return s |
218 | end | 218 | end |
219 | 219 | ||
diff --git a/src/jit/p.lua b/src/jit/p.lua index 5323728b..09b3b9fe 100644 --- a/src/jit/p.lua +++ b/src/jit/p.lua | |||
@@ -120,7 +120,7 @@ end | |||
120 | -- Show top N list. | 120 | -- Show top N list. |
121 | local function prof_top(count1, count2, samples, indent) | 121 | local function prof_top(count1, count2, samples, indent) |
122 | local t, n = {}, 0 | 122 | local t, n = {}, 0 |
123 | for k, v in pairs(count1) do | 123 | for k in pairs(count1) do |
124 | n = n + 1 | 124 | n = n + 1 |
125 | t[n] = k | 125 | t[n] = k |
126 | end | 126 | end |