diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-12 18:04:18 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-12 18:04:41 -0700 |
| commit | 3c510e4ee5027aa5191e994bdf0a080a32a4b082 (patch) | |
| tree | b8d740f6ce0e263faa92967a63d16af07f3d45e7 /code_obj.lua | |
| parent | b5fb8933af283d2b873a03ded085e8b69f374e81 (diff) | |
Lots of optimizations and simplifications, especially towards getting
better performance on luajit.
Diffstat (limited to 'code_obj.lua')
| -rw-r--r-- | code_obj.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/code_obj.lua b/code_obj.lua index 47e08cb..39f6c95 100644 --- a/code_obj.lua +++ b/code_obj.lua @@ -187,7 +187,7 @@ do for _index_0 = 1, #vars do local var = vars[_index_0] assert(var.type == "Var") - removals[var.value] = true + removals[var[1]] = true end local stack = { self @@ -196,7 +196,7 @@ do local lua lua, stack[#stack] = stack[#stack], nil for i = #lua.free_vars, 1, -1 do - if removals[lua.free_vars[i].value] then + if removals[lua.free_vars[i][1]] then remove(lua.free_vars, i) end end @@ -264,7 +264,7 @@ do local _len_0 = 1 for _index_0 = 1, #to_declare do local v = to_declare[_index_0] - _accum_0[_len_0] = string.as_lua_id(v.value) + _accum_0[_len_0] = string.as_lua_id(v[1]) _len_0 = _len_0 + 1 end return _accum_0 |
