LuaJIT is fully upwards-compatible with Lua 5.1. It supports all -standard Lua +» standard Lua library functions and the full set of -Lua/C API +» Lua/C API functions.
@@ -99,7 +99,7 @@ LuaJIT comes with several built-in extension modules:
bit.* — Bitwise operations
LuaJIT supports all bitwise operations as defined by -Lua BitOp: +» Lua BitOp:
bit.tobit bit.tohex bit.bnot bit.band bit.bor bit.bxor @@ -108,7 +108,7 @@ bit.lshift bit.rshift bit.arshift bit.rol bit.ror bit.bswapThis module is a LuaJIT built-in — you don't need to download or install Lua BitOp. The Lua BitOp site has full documentation for all -Lua BitOp API functions. +» Lua BitOp API functions. The FFI adds support for 64 bit bitwise operations, using the same API functions. diff --git a/doc/faq.html b/doc/faq.html index 5c4ce533..acc47bae 100644 --- a/doc/faq.html +++ b/doc/faq.html @@ -61,16 +61,16 @@ dd { margin-left: 1.5em; }
-
-
- The LuaJIT mailing list focuses on topics +
- The » LuaJIT mailing list focuses on topics related to LuaJIT.
- The » LuaJIT wiki gathers community resources about LuaJIT.
- News about Lua itself can be found at the -Lua mailing list. +» Lua mailing list. The mailing list archives are worth checking out for older postings about LuaJIT. -
- The main Lua.org site has complete -documentation of the language +
- The » main Lua.org site has complete +» documentation of the language and links to books and papers about Lua.
- The community-managed » Lua Wiki has information about diverse topics. @@ -83,11 +83,11 @@ has information about diverse topics. I'm planning to write more documentation about the internals of LuaJIT. In the meantime, please use the following Google Scholar searches to find relevant papers:
-Search for: Trace Compiler
-Search for: JIT Compiler
-Search for: Dynamic Language Optimizations
-Search for: SSA Form
-Search for: Linear Scan Register Allocation
+Search for: » Trace Compiler
+Search for: » JIT Compiler
+Search for: » Dynamic Language Optimizations
+Search for: » SSA Form
+Search for: » Linear Scan Register Allocation
Here is a list of the » innovative features in LuaJIT.
And, you know, reading the source is of course the only way to enlightenment. :-)
Please convert your code to the -Lua 5.1 +» Lua 5.1 vararg syntax.
-More reading material at the » Lua Wiki and Wikipedia. +More reading material at the » Lua Wiki and » Wikipedia. diff --git a/doc/install.html b/doc/install.html index bc96b661..451fdd41 100644 --- a/doc/install.html +++ b/doc/install.html @@ -245,7 +245,7 @@ Obviously the prefixes given during build and installation need to be the same.
Either install one of the open source SDKs (» MinGW or -Cygwin), which come with a modified +» Cygwin), which come with a modified GCC plus the required development headers. Or install Microsoft's Visual Studio (MSVC).
@@ -388,7 +388,7 @@ make CROSS=mips-linux- TARGET_CFLAGS="-mips64r2 -mabi=64" make CROSS=mipsel-linux- TARGET_CFLAGS="-mips64r2 -mabi=64"-You can cross-compile for Android using the Android NDK. +You can cross-compile for Android using the » Android NDK. Please adapt the environment variables to match the install locations and the desired target platform. E.g. Android 4.1 corresponds to ABI level 16.
@@ -412,7 +412,7 @@ make HOST_CC="gcc -m32" CROSS=$NDKCROSS \ TARGET_LD=$NDKCC-You can cross-compile for iOS 3.0+ (iPhone/iPad) using the iOS SDK: +You can cross-compile for iOS 3.0+ (iPhone/iPad) using the » iOS SDK:
Note: the JIT compiler is disabled for iOS, because regular iOS Apps @@ -547,7 +547,7 @@ Make sure the jit library is loaded or the JIT compiler will not be activated.
Hints for Distribution Maintainers
diff --git a/doc/luajit.html b/doc/luajit.html index 3ce81c3e..ab768053 100644 --- a/doc/luajit.html +++ b/doc/luajit.html @@ -141,13 +141,13 @@ table.feature small {LuaJIT is a Just-In-Time Compiler (JIT) for the -Lua programming language. +» Lua programming language. Lua is a powerful, dynamic and light-weight programming language. It may be embedded or used as a general-purpose, stand-alone language.
LuaJIT is Copyright © 2005-2020 Mike Pall, released under the -MIT open source license. +» MIT open source license.
diff --git a/doc/running.html b/doc/running.html index 2cba1534..f34f1f5f 100644 --- a/doc/running.html +++ b/doc/running.html @@ -89,7 +89,7 @@ The luajit stand-alone executable is just a slightly modified version of the regular lua stand-alone executable. It supports the same basic options, too. luajit -h prints a short list of the available options. Please have a look at the -Lua manual +» Lua manual for details.
diff --git a/dynasm/dynasm.lua b/dynasm/dynasm.lua index 8e85af24..b34124b7 100644 --- a/dynasm/dynasm.lua +++ b/dynasm/dynasm.lua @@ -14,7 +14,7 @@ local _info = { vernum = 10400, release = "2015-10-18", author = "Mike Pall", - url = "http://luajit.org/dynasm.html", + url = "https://luajit.org/dynasm.html", license = "MIT", copyright = [[ Copyright (C) 2005-2020 Mike Pall. All rights reserved. @@ -38,7 +38,7 @@ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -[ MIT license: http://www.opensource.org/licenses/mit-license.php ] +[ MIT license: https://www.opensource.org/licenses/mit-license.php ] ]], } diff --git a/etc/luajit.1 b/etc/luajit.1 index 2071c155..82097094 100644 --- a/etc/luajit.1 +++ b/etc/luajit.1 @@ -6,7 +6,7 @@ luajit \- Just-In-Time Compiler for the Lua Language .B luajit [\fIoptions\fR]... [\fIscript\fR [\fIargs\fR]...] .SH "WEB SITE" -.IR http://luajit.org +.IR https://luajit.org .SH DESCRIPTION .PP This is the command-line program to run Lua programs with \fBLuaJIT\fR. @@ -80,9 +80,9 @@ Runs some nested loops and shows the resulting traces. .SH SEE ALSO .PP More details in the provided HTML docs or at: -.IR http://luajit.org +.IR https://luajit.org .br More about the Lua language can be found at: -.IR http://lua.org/docs.html +.IR https://lua.org/docs.html .PP lua(1) diff --git a/etc/luajit.pc b/etc/luajit.pc index a78f1746..39e1e577 100644 --- a/etc/luajit.pc +++ b/etc/luajit.pc @@ -17,7 +17,7 @@ INSTALL_CMOD=${prefix}/${multilib}/lua/${abiver} Name: LuaJIT Description: Just-in-time compiler for Lua -URL: http://luajit.org +URL: https://luajit.org Version: ${version} Requires: Libs: -L${libdir} -l${libname} diff --git a/src/jit/dump.lua b/src/jit/dump.lua index 06d1e258..d3425bda 100644 --- a/src/jit/dump.lua +++ b/src/jit/dump.lua @@ -614,7 +614,7 @@ local function dump_texit(tr, ex, ngpr, nfpr, ...) out:write("---- TRACE ", tr, " exit ", ex, "\n") if dumpmode.X then local regs = {...} - if jit.arch == "x64" then + if jit.arch:sub(-2) == "64" then for i=1,ngpr do out:write(format(" %016x", regs[i])) if i % 4 == 0 then out:write("\n") end diff --git a/src/lib_base.c b/src/lib_base.c index eb604538..c8409042 100644 --- a/src/lib_base.c +++ b/src/lib_base.c @@ -504,8 +504,8 @@ LJLIB_CF(print) lua_gettable(L, LUA_GLOBALSINDEX); tv = L->top-1; } - shortcut = (tvisfunc(tv) && funcV(tv)->c.ffid == FF_tostring) - && !gcrefu(basemt_it(G(L), LJ_TNUMX)); + shortcut = (tvisfunc(tv) && funcV(tv)->c.ffid == FF_tostring) && + !gcrefu(basemt_it(G(L), LJ_TNUMX)); for (i = 0; i < nargs; i++) { cTValue *o = &L->base[i]; const char *str; diff --git a/src/lj_alloc.c b/src/lj_alloc.c index 5de60b82..21fb7af5 100644 --- a/src/lj_alloc.c +++ b/src/lj_alloc.c @@ -6,7 +6,7 @@ ** ** This is a version (aka dlmalloc) of malloc/free/realloc written by ** Doug Lea and released to the public domain, as explained at -** http://creativecommons.org/licenses/publicdomain. +** https://creativecommons.org/licenses/publicdomain. ** ** * Version pre-2.8.4 Wed Mar 29 19:46:29 2006 (dl at gee) ** @@ -16,8 +16,8 @@ ** If you want to use dlmalloc in another project, you should get ** the original from: ftp://gee.cs.oswego.edu/pub/misc/ ** For thread-safe derivatives, take a look at: -** - ptmalloc: http://www.malloc.de/ -** - nedmalloc: http://www.nedprod.com/programs/portable/nedmalloc/ +** - ptmalloc: https://www.malloc.de/ +** - nedmalloc: https://www.nedprod.com/programs/portable/nedmalloc/ */ #define lj_alloc_c diff --git a/src/lua.h b/src/lua.h index 850bd796..6d1634d1 100644 --- a/src/lua.h +++ b/src/lua.h @@ -1,7 +1,7 @@ /* ** $Id: lua.h,v 1.218.1.5 2008/08/06 13:30:12 roberto Exp $ ** Lua - An Extensible Extension Language -** Lua.org, PUC-Rio, Brazil (http://www.lua.org) +** Lua.org, PUC-Rio, Brazil (https://www.lua.org) ** See Copyright Notice at the end of this file */ diff --git a/src/luajit.h b/src/luajit.h index 600031a1..d569fd40 100644 --- a/src/luajit.h +++ b/src/luajit.h @@ -1,5 +1,5 @@ /* -** LuaJIT -- a Just-In-Time Compiler for Lua. http://luajit.org/ +** LuaJIT -- a Just-In-Time Compiler for Lua. https://luajit.org/ ** ** Copyright (C) 2005-2020 Mike Pall. All rights reserved. ** @@ -22,7 +22,7 @@ ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE ** SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ** -** [ MIT license: http://www.opensource.org/licenses/mit-license.php ] +** [ MIT license: https://www.opensource.org/licenses/mit-license.php ] */ #ifndef _LUAJIT_H @@ -34,7 +34,7 @@ #define LUAJIT_VERSION_NUM 20100 /* Version 2.1.0 = 02.01.00. */ #define LUAJIT_VERSION_SYM luaJIT_version_2_1_0_beta3 #define LUAJIT_COPYRIGHT "Copyright (C) 2005-2020 Mike Pall" -#define LUAJIT_URL "http://luajit.org/" +#define LUAJIT_URL "https://luajit.org/" /* Modes for luaJIT_setmode. */ #define LUAJIT_MODE_MASK 0x00ff