Skip to content
Jan 3, 2020
merged the upstream v2.1 branch into v2.1-agentzh.
Sep 2, 2019
Move all register allocations out of the asm_href loop
Register allocations inline while emitting HREF loop code is hazardous
because a spill would mean a load or remat generated in the loop body.

This work was sponsored by OpenResty Inc.
Jun 26, 2019
feature: increased the maximum number of upvalues allowed from 60 to …
…120.
May 17, 2019
bugfix: thanks Julien Desgats for the report and Peter Cawley for the…
… patch.

The test covering this bug was submitted to the openresty/luajit2-test-suite
repo as commit ce2c916d55.
Mar 2, 2019
doc: section layout changes.
Feb 22, 2019
bugfix: LuaJIT's jit.v module might lead to segfaults due to buggy Lu…
…a stack traversal code. thanks Thibault Charbonnier for the report in #40.
Jan 31, 2019
feature: implemented the new table.nkeys Lua API.
This Lua builtin returns the number of elements in a Lua table, i.e.,
the number of non-nil array elements plus the number of non-nil key-value
pairs in a single Lua table.

It can be used like this:

  local nkeys = require "table.nkeys"

  print(nkeys({}))  -- 0
  print(nkeys({ "a", nil, "b" }))  -- 2
  print(nkeys({ dog = 3, cat = 4, bird = nil }))  -- 2
  print(nkeys({ "a", dog = 3, cat = 4 }))  -- 3

This Lua API can be JIT compiled.

Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
You can’t perform that action at this time.