diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2022-08-20 08:44:27 -0400 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2022-08-20 08:44:27 -0400 |
commit | 0dc221b200b9d3df550e2d760cb396e4cb5f7176 (patch) | |
tree | 3524a0f494b1bec609cea0716cfb6f0ca515fd38 /lib/LuaJIT/src/jit/zone.lua | |
parent | 2364287a961fa9c860e1146bbcc3391ec5b1fd54 (diff) |
submodule LuaJIT; build libs through Makefile
Diffstat (limited to 'lib/LuaJIT/src/jit/zone.lua')
-rw-r--r-- | lib/LuaJIT/src/jit/zone.lua | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/lib/LuaJIT/src/jit/zone.lua b/lib/LuaJIT/src/jit/zone.lua deleted file mode 100644 index fa702c4..0000000 --- a/lib/LuaJIT/src/jit/zone.lua +++ /dev/null @@ -1,45 +0,0 @@ ----------------------------------------------------------------------------- --- LuaJIT profiler zones. --- --- Copyright (C) 2005-2017 Mike Pall. All rights reserved. --- Released under the MIT license. See Copyright Notice in luajit.h ----------------------------------------------------------------------------- --- --- This module implements a simple hierarchical zone model. --- --- Example usage: --- --- local zone = require("jit.zone") --- zone("AI") --- ... --- zone("A*") --- ... --- print(zone:get()) --> "A*" --- ... --- zone() --- ... --- print(zone:get()) --> "AI" --- ... --- zone() --- ----------------------------------------------------------------------------- - -local remove = table.remove - -return setmetatable({ - flush = function(t) - for i=#t,1,-1 do t[i] = nil end - end, - get = function(t) - return t[#t] - end -}, { - __call = function(t, zone) - if zone then - t[#t+1] = zone - else - return (assert(remove(t), "empty zone stack")) - end - end -}) - |