new build script for LuaJIT, adapted from moai-dev (thanks to Jairo Luiz)

This commit is contained in:
fysx
2014-01-27 23:11:42 +01:00
parent 0908325b5b
commit 35f95a0c58
16 changed files with 71 additions and 16399 deletions
+16 -1
View File
@@ -13,4 +13,19 @@ local.properties
*.so
*.a
!jni/LuaJIT-2.0.1/src/libluajit.a
!jni/LuaJIT-2.0.1/android/armeabi/libluajit.a
!jni/LuaJIT-2.0.1/android/armeabi-v7a/libluajit.a
jni/LuaJIT-2.0.1/buildandroid.sh
jni/LuaJIT-2.0.1/src/host/buildvm
jni/LuaJIT-2.0.1/src/host/buildvm_arch.h
jni/LuaJIT-2.0.1/src/host/minilua
jni/LuaJIT-2.0.1/src/jit/vmdef.lua
jni/LuaJIT-2.0.1/src/libluajit.a
jni/LuaJIT-2.0.1/src/lj_bcdef.h
jni/LuaJIT-2.0.1/src/lj_ffdef.h
jni/LuaJIT-2.0.1/src/lj_folddef.h
jni/LuaJIT-2.0.1/src/lj_libdef.h
jni/LuaJIT-2.0.1/src/lj_recdef.h
jni/LuaJIT-2.0.1/src/lj_vm.s
jni/LuaJIT-2.0.1/src/luajit
+1 -1
View File
@@ -3,6 +3,6 @@ LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := libluajit
LOCAL_SRC_FILES := src/libluajit.a
LOCAL_SRC_FILES := android/$(TARGET_ARCH_ABI)/libluajit.a
include $(PREBUILT_STATIC_LIBRARY)
Binary file not shown.
+54 -10
View File
@@ -1,14 +1,58 @@
NDK=${ANDROID_NDK}
#!/bin/bash
#================================================================#
# Build script based on
# https://github.com/moai/moai-dev/blob/master/ant/libmoai/jni/luajit/build.sh
#================================================================#
host_os=`uname -s | tr "[:upper:]" "[:lower:]"`
host_arch=`uname -m`
if [ -f android/armeabi/libluajit.a ] &&
[ -f android/armeabi-v7a/libluajit.a ]; then
echo "LuaJIT Already built"
exit 0
fi
NDK_BUILD_LOCATION=${ANDROID_NDK}
if [[ x$NDK_BUILD_LOCATION = "x" ]]; then
echo "The Android NDK must be on your path."
exit 1
fi
NDK="${NDK_BUILD_LOCATION%/ndk-build}"
if [[ x$NDK = "x" ]]; then
echo "The Android NDK must be on your path."
exit 1
fi
NDKABI=8
NDKVER=$NDK/toolchains/arm-linux-androideabi-4.6
NDKP=$NDKVER/prebuilt/linux-x86_64/bin/arm-linux-androideabi-
NDKP=$NDKVER/prebuilt/${host_os}-${host_arch}/bin/arm-linux-androideabi-
NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-arm"
NDKARCH="-march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3"
# NDKARCH="-march=armv7-a"
make HOST_CC="gcc -m32" CROSS=$NDKP TARGET_FLAGS="$NDKF $NDKARCH"
CFLAGS=""
# NDKVER=$NDK/toolchains/arm-linux-androideabi-4.6
# NDKP=$NDKVER/prebuilt/linux-x86_64/bin/arm-linux-androideabi-
# NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-arm"
# NDKARCH="-march=armv7-a -mfloat-abi=softfp -Wl,--fix-cortex-a8"
# make HOST_CC="gcc -m32 -fPIC" CROSS=$NDKP TARGET_FLAGS="$NDKF $NDKARCH"
buildLuaJIT()
{
arch="$1"
ndkarch="$2"
DESTDIR=../android/$arch
mkdir -p $DESTDIR 2>/dev/null
rm "$DESTDIR"/*.a 2>/dev/null
make clean
make HOST_CC="gcc -m32" CROSS=$NDKP TARGET_SYS=Linux TARGET_FLAGS="$NDKF $ndkarch" TARGET_CFLAGS="$CFLAGS" libluajit.a
if [ -f libluajit.a ]; then
mv libluajit.a $DESTDIR/libluajit.a
fi;
}
cd src
# Android/ARM, armeabi (ARMv5TE soft-float), Android 2.2+ (Froyo)
buildLuaJIT armeabi
# Android/ARM, armeabi-v7a (ARMv7 VFP), Android 4.0+ (ICS)
buildLuaJIT armeabi-v7a "-march=armv7-a -mfloat-abi=softfp -Wl,--fix-cortex-a8"
make clean
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
-331
View File
@@ -1,331 +0,0 @@
-- This is a generated file. DO NOT EDIT!
module(...)
bcnames = "ISLT ISGE ISLE ISGT ISEQV ISNEV ISEQS ISNES ISEQN ISNEN ISEQP ISNEP ISTC ISFC IST ISF MOV NOT UNM LEN ADDVN SUBVN MULVN DIVVN MODVN ADDNV SUBNV MULNV DIVNV MODNV ADDVV SUBVV MULVV DIVVV MODVV POW CAT KSTR KCDATAKSHORTKNUM KPRI KNIL UGET USETV USETS USETN USETP UCLO FNEW TNEW TDUP GGET GSET TGETV TGETS TGETB TSETV TSETS TSETB TSETM CALLM CALL CALLMTCALLT ITERC ITERN VARG ISNEXTRETM RET RET0 RET1 FORI JFORI FORL IFORL JFORL ITERL IITERLJITERLLOOP ILOOP JLOOP JMP FUNCF IFUNCFJFUNCFFUNCV IFUNCVJFUNCVFUNCC FUNCCW"
irnames = "LT GE LE GT ULT UGE ULE UGT EQ NE ABC RETF NOP BASE PVAL GCSTEPHIOP LOOP USE PHI RENAMEKPRI KINT KGC KPTR KKPTR KNULL KNUM KINT64KSLOT BNOT BSWAP BAND BOR BXOR BSHL BSHR BSAR BROL BROR ADD SUB MUL DIV MOD POW NEG ABS ATAN2 LDEXP MIN MAX FPMATHADDOV SUBOV MULOV AREF HREFK HREF NEWREFUREFO UREFC FREF STRREFALOAD HLOAD ULOAD FLOAD XLOAD SLOAD VLOAD ASTOREHSTOREUSTOREFSTOREXSTORESNEW XSNEW TNEW TDUP CNEW CNEWI TBAR OBAR XBAR CONV TOBIT TOSTR STRTO CALLN CALLL CALLS CALLXSCARG "
irfpm = { [0]="floor", "ceil", "trunc", "sqrt", "exp", "exp2", "log", "log2", "log10", "sin", "cos", "tan", "other", }
irfield = { [0]="str.len", "func.env", "func.pc", "tab.meta", "tab.array", "tab.node", "tab.asize", "tab.hmask", "tab.nomm", "udata.meta", "udata.udtype", "udata.file", "cdata.ctypeid", "cdata.ptr", "cdata.int", "cdata.int64", "cdata.int64_4", }
ircall = {
[0]="lj_str_cmp",
"lj_str_new",
"lj_strscan_num",
"lj_str_fromint",
"lj_str_fromnum",
"lj_tab_new1",
"lj_tab_dup",
"lj_tab_newkey",
"lj_tab_len",
"lj_gc_step_jit",
"lj_gc_barrieruv",
"lj_mem_newgco",
"lj_math_random_step",
"lj_vm_modi",
"sinh",
"cosh",
"tanh",
"fputc",
"fwrite",
"fflush",
"lj_vm_floor",
"lj_vm_ceil",
"lj_vm_trunc",
"sqrt",
"exp",
"lj_vm_exp2",
"log",
"lj_vm_log2",
"log10",
"sin",
"cos",
"tan",
"lj_vm_powi",
"pow",
"atan2",
"ldexp",
"lj_vm_tobit",
"softfp_add",
"softfp_sub",
"softfp_mul",
"softfp_div",
"softfp_cmp",
"softfp_i2d",
"softfp_d2i",
"softfp_ui2d",
"softfp_f2d",
"softfp_d2ui",
"softfp_d2f",
"softfp_i2f",
"softfp_ui2f",
"softfp_f2i",
"softfp_f2ui",
"fp64_l2d",
"fp64_ul2d",
"fp64_l2f",
"fp64_ul2f",
"fp64_d2l",
"fp64_d2ul",
"fp64_f2l",
"fp64_f2ul",
"lj_carith_divi64",
"lj_carith_divu64",
"lj_carith_modi64",
"lj_carith_modu64",
"lj_carith_powi64",
"lj_carith_powu64",
"lj_cdata_setfin",
"strlen",
"memcpy",
"memset",
"lj_vm_errno",
"lj_carith_mul64",
}
traceerr = {
[0]="error thrown or hook called during recording",
"trace too long",
"trace too deep",
"too many snapshots",
"blacklisted",
"NYI: bytecode %d",
"leaving loop in root trace",
"inner loop in root trace",
"loop unroll limit reached",
"bad argument type",
"call to JIT-disabled function",
"call unroll limit reached",
"down-recursion, restarting",
"NYI: C function %p",
"NYI: FastFunc %s",
"NYI: unsupported variant of FastFunc %s",
"NYI: return to lower frame",
"store with nil or NaN key",
"missing metamethod",
"looping index lookup",
"NYI: mixed sparse/dense table",
"symbol not in cache",
"NYI: unsupported C type conversion",
"NYI: unsupported C function type",
"guard would always fail",
"too many PHIs",
"persistent type instability",
"failed to allocate mcode memory",
"machine code too long",
"hit mcode limit (retrying)",
"too many spill slots",
"inconsistent register allocation",
"NYI: cannot assemble IR instruction %d",
"NYI: PHI shuffling too complex",
"NYI: register coalescing too complex",
}
ffnames = {
[0]="Lua",
"C",
"assert",
"type",
"next",
"pairs",
"ipairs_aux",
"ipairs",
"getmetatable",
"setmetatable",
"getfenv",
"setfenv",
"rawget",
"rawset",
"rawequal",
"unpack",
"select",
"tonumber",
"tostring",
"error",
"pcall",
"xpcall",
"loadfile",
"load",
"loadstring",
"dofile",
"gcinfo",
"collectgarbage",
"newproxy",
"print",
"coroutine.status",
"coroutine.running",
"coroutine.create",
"coroutine.yield",
"coroutine.resume",
"coroutine.wrap_aux",
"coroutine.wrap",
"math.abs",
"math.floor",
"math.ceil",
"math.sqrt",
"math.log10",
"math.exp",
"math.sin",
"math.cos",
"math.tan",
"math.asin",
"math.acos",
"math.atan",
"math.sinh",
"math.cosh",
"math.tanh",
"math.frexp",
"math.modf",
"math.log",
"math.deg",
"math.rad",
"math.atan2",
"math.pow",
"math.fmod",
"math.ldexp",
"math.min",
"math.max",
"math.random",
"math.randomseed",
"bit.tobit",
"bit.bnot",
"bit.bswap",
"bit.lshift",
"bit.rshift",
"bit.arshift",
"bit.rol",
"bit.ror",
"bit.band",
"bit.bor",
"bit.bxor",
"bit.tohex",
"string.len",
"string.byte",
"string.char",
"string.sub",
"string.rep",
"string.reverse",
"string.lower",
"string.upper",
"string.dump",
"string.find",
"string.match",
"string.gmatch_aux",
"string.gmatch",
"string.gsub",
"string.format",
"table.foreachi",
"table.foreach",
"table.getn",
"table.maxn",
"table.insert",
"table.remove",
"table.concat",
"table.sort",
"io.method.close",
"io.method.read",
"io.method.write",
"io.method.flush",
"io.method.seek",
"io.method.setvbuf",
"io.method.lines",
"io.method.__gc",
"io.method.__tostring",
"io.open",
"io.popen",
"io.tmpfile",
"io.close",
"io.read",
"io.write",
"io.flush",
"io.input",
"io.output",
"io.lines",
"io.type",
"os.execute",
"os.remove",
"os.rename",
"os.tmpname",
"os.getenv",
"os.exit",
"os.clock",
"os.date",
"os.time",
"os.difftime",
"os.setlocale",
"debug.getregistry",
"debug.getmetatable",
"debug.setmetatable",
"debug.getfenv",
"debug.setfenv",
"debug.getinfo",
"debug.getlocal",
"debug.setlocal",
"debug.getupvalue",
"debug.setupvalue",
"debug.upvalueid",
"debug.upvaluejoin",
"debug.sethook",
"debug.gethook",
"debug.debug",
"debug.traceback",
"jit.on",
"jit.off",
"jit.flush",
"jit.status",
"jit.attach",
"jit.util.funcinfo",
"jit.util.funcbc",
"jit.util.funck",
"jit.util.funcuvname",
"jit.util.traceinfo",
"jit.util.traceir",
"jit.util.tracek",
"jit.util.tracesnap",
"jit.util.tracemc",
"jit.util.traceexitstub",
"jit.util.ircalladdr",
"jit.opt.start",
"ffi.meta.__index",
"ffi.meta.__newindex",
"ffi.meta.__eq",
"ffi.meta.__len",
"ffi.meta.__lt",
"ffi.meta.__le",
"ffi.meta.__concat",
"ffi.meta.__call",
"ffi.meta.__add",
"ffi.meta.__sub",
"ffi.meta.__mul",
"ffi.meta.__div",
"ffi.meta.__mod",
"ffi.meta.__pow",
"ffi.meta.__unm",
"ffi.meta.__tostring",
"ffi.meta.__pairs",
"ffi.meta.__ipairs",
"ffi.clib.__index",
"ffi.clib.__newindex",
"ffi.clib.__gc",
"ffi.callback.free",
"ffi.callback.set",
"ffi.cdef",
"ffi.new",
"ffi.cast",
"ffi.typeof",
"ffi.istype",
"ffi.sizeof",
"ffi.alignof",
"ffi.offsetof",
"ffi.errno",
"ffi.string",
"ffi.copy",
"ffi.fill",
"ffi.abi",
"ffi.metatype",
"ffi.gc",
"ffi.load",
}
-226
View File
@@ -1,226 +0,0 @@
/* This is a generated file. DO NOT EDIT! */
LJ_DATADEF const uint16_t lj_bc_ofs[] = {
0,
140,
280,
420,
560,
704,
844,
920,
996,
1136,
1276,
1336,
1396,
1452,
1508,
1560,
1612,
1648,
1700,
1768,
1836,
1956,
2076,
2200,
2272,
2400,
2520,
2640,
2764,
2836,
2964,
3084,
3204,
3328,
3400,
3528,
3588,
3668,
3708,
3748,
3784,
3820,
3856,
3916,
3968,
4076,
4176,
4232,
4284,
4348,
4412,
4516,
4604,
4624,
4644,
4784,
4944,
5052,
5240,
5516,
5672,
5820,
5836,
5896,
5908,
6088,
6168,
6352,
6560,
6672,
6692,
6860,
6968,
7084,
7232,
7396,
7424,
7568,
7708,
7736,
7780,
7820,
7848,
7872,
7904,
7936,
7964,
8032,
8084,
8084,
8200,
8204,
8284,
10124,
10188,
10600,
10696,
10744,
10864,
10224,
10372,
10448,
10492,
10516,
10916,
10956,
11580,
11020,
11324,
11960,
11624,
11784,
12096,
12164,
12192,
12220,
12248,
12276,
12304,
12332,
12360,
12388,
12416,
12444,
12656,
12712,
12136,
12580,
12580,
12508,
12472,
12544,
12616,
12756,
12908,
13880,
14148,
14104,
14180,
14228,
14276,
14324,
14372,
13908,
13968,
14028,
13060,
13092,
13144,
13224,
13368,
13472,
13556,
13656,
13756
};
LJ_DATADEF const uint16_t lj_bc_mode[] = {
BCDEF(BCMODE)
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF,
BCMODE_FF
};
-210
View File
@@ -1,210 +0,0 @@
/* This is a generated file. DO NOT EDIT! */
FFDEF(assert)
FFDEF(type)
FFDEF(next)
FFDEF(pairs)
FFDEF(ipairs_aux)
FFDEF(ipairs)
FFDEF(getmetatable)
FFDEF(setmetatable)
FFDEF(getfenv)
FFDEF(setfenv)
FFDEF(rawget)
FFDEF(rawset)
FFDEF(rawequal)
FFDEF(unpack)
FFDEF(select)
FFDEF(tonumber)
FFDEF(tostring)
FFDEF(error)
FFDEF(pcall)
FFDEF(xpcall)
FFDEF(loadfile)
FFDEF(load)
FFDEF(loadstring)
FFDEF(dofile)
FFDEF(gcinfo)
FFDEF(collectgarbage)
FFDEF(newproxy)
FFDEF(print)
FFDEF(coroutine_status)
FFDEF(coroutine_running)
FFDEF(coroutine_create)
FFDEF(coroutine_yield)
FFDEF(coroutine_resume)
FFDEF(coroutine_wrap_aux)
FFDEF(coroutine_wrap)
FFDEF(math_abs)
FFDEF(math_floor)
FFDEF(math_ceil)
FFDEF(math_sqrt)
FFDEF(math_log10)
FFDEF(math_exp)
FFDEF(math_sin)
FFDEF(math_cos)
FFDEF(math_tan)
FFDEF(math_asin)
FFDEF(math_acos)
FFDEF(math_atan)
FFDEF(math_sinh)
FFDEF(math_cosh)
FFDEF(math_tanh)
FFDEF(math_frexp)
FFDEF(math_modf)
FFDEF(math_log)
FFDEF(math_deg)
FFDEF(math_rad)
FFDEF(math_atan2)
FFDEF(math_pow)
FFDEF(math_fmod)
FFDEF(math_ldexp)
FFDEF(math_min)
FFDEF(math_max)
FFDEF(math_random)
FFDEF(math_randomseed)
FFDEF(bit_tobit)
FFDEF(bit_bnot)
FFDEF(bit_bswap)
FFDEF(bit_lshift)
FFDEF(bit_rshift)
FFDEF(bit_arshift)
FFDEF(bit_rol)
FFDEF(bit_ror)
FFDEF(bit_band)
FFDEF(bit_bor)
FFDEF(bit_bxor)
FFDEF(bit_tohex)
FFDEF(string_len)
FFDEF(string_byte)
FFDEF(string_char)
FFDEF(string_sub)
FFDEF(string_rep)
FFDEF(string_reverse)
FFDEF(string_lower)
FFDEF(string_upper)
FFDEF(string_dump)
FFDEF(string_find)
FFDEF(string_match)
FFDEF(string_gmatch_aux)
FFDEF(string_gmatch)
FFDEF(string_gsub)
FFDEF(string_format)
FFDEF(table_foreachi)
FFDEF(table_foreach)
FFDEF(table_getn)
FFDEF(table_maxn)
FFDEF(table_insert)
FFDEF(table_remove)
FFDEF(table_concat)
FFDEF(table_sort)
FFDEF(io_method_close)
FFDEF(io_method_read)
FFDEF(io_method_write)
FFDEF(io_method_flush)
FFDEF(io_method_seek)
FFDEF(io_method_setvbuf)
FFDEF(io_method_lines)
FFDEF(io_method___gc)
FFDEF(io_method___tostring)
FFDEF(io_open)
FFDEF(io_popen)
FFDEF(io_tmpfile)
FFDEF(io_close)
FFDEF(io_read)
FFDEF(io_write)
FFDEF(io_flush)
FFDEF(io_input)
FFDEF(io_output)
FFDEF(io_lines)
FFDEF(io_type)
FFDEF(os_execute)
FFDEF(os_remove)
FFDEF(os_rename)
FFDEF(os_tmpname)
FFDEF(os_getenv)
FFDEF(os_exit)
FFDEF(os_clock)
FFDEF(os_date)
FFDEF(os_time)
FFDEF(os_difftime)
FFDEF(os_setlocale)
FFDEF(debug_getregistry)
FFDEF(debug_getmetatable)
FFDEF(debug_setmetatable)
FFDEF(debug_getfenv)
FFDEF(debug_setfenv)
FFDEF(debug_getinfo)
FFDEF(debug_getlocal)
FFDEF(debug_setlocal)
FFDEF(debug_getupvalue)
FFDEF(debug_setupvalue)
FFDEF(debug_upvalueid)
FFDEF(debug_upvaluejoin)
FFDEF(debug_sethook)
FFDEF(debug_gethook)
FFDEF(debug_debug)
FFDEF(debug_traceback)
FFDEF(jit_on)
FFDEF(jit_off)
FFDEF(jit_flush)
FFDEF(jit_status)
FFDEF(jit_attach)
FFDEF(jit_util_funcinfo)
FFDEF(jit_util_funcbc)
FFDEF(jit_util_funck)
FFDEF(jit_util_funcuvname)
FFDEF(jit_util_traceinfo)
FFDEF(jit_util_traceir)
FFDEF(jit_util_tracek)
FFDEF(jit_util_tracesnap)
FFDEF(jit_util_tracemc)
FFDEF(jit_util_traceexitstub)
FFDEF(jit_util_ircalladdr)
FFDEF(jit_opt_start)
FFDEF(ffi_meta___index)
FFDEF(ffi_meta___newindex)
FFDEF(ffi_meta___eq)
FFDEF(ffi_meta___len)
FFDEF(ffi_meta___lt)
FFDEF(ffi_meta___le)
FFDEF(ffi_meta___concat)
FFDEF(ffi_meta___call)
FFDEF(ffi_meta___add)
FFDEF(ffi_meta___sub)
FFDEF(ffi_meta___mul)
FFDEF(ffi_meta___div)
FFDEF(ffi_meta___mod)
FFDEF(ffi_meta___pow)
FFDEF(ffi_meta___unm)
FFDEF(ffi_meta___tostring)
FFDEF(ffi_meta___pairs)
FFDEF(ffi_meta___ipairs)
FFDEF(ffi_clib___index)
FFDEF(ffi_clib___newindex)
FFDEF(ffi_clib___gc)
FFDEF(ffi_callback_free)
FFDEF(ffi_callback_set)
FFDEF(ffi_cdef)
FFDEF(ffi_new)
FFDEF(ffi_cast)
FFDEF(ffi_typeof)
FFDEF(ffi_istype)
FFDEF(ffi_sizeof)
FFDEF(ffi_alignof)
FFDEF(ffi_offsetof)
FFDEF(ffi_errno)
FFDEF(ffi_string)
FFDEF(ffi_copy)
FFDEF(ffi_fill)
FFDEF(ffi_abi)
FFDEF(ffi_metatype)
FFDEF(ffi_gc)
FFDEF(ffi_load)
#undef FFDEF
#ifndef FF_NUM_ASMFUNC
#define FF_NUM_ASMFUNC 62
#endif
File diff suppressed because it is too large Load Diff
-393
View File
@@ -1,393 +0,0 @@
/* This is a generated file. DO NOT EDIT! */
#ifdef LJLIB_MODULE_base
#undef LJLIB_MODULE_base
static const lua_CFunction lj_lib_cf_base[] = {
lj_ffh_assert,
lj_ffh_next,
lj_ffh_pairs,
lj_ffh_ipairs_aux,
lj_ffh_ipairs,
lj_ffh_setmetatable,
lj_cf_getfenv,
lj_cf_setfenv,
lj_ffh_rawget,
lj_cf_rawset,
lj_cf_rawequal,
lj_cf_unpack,
lj_cf_select,
lj_ffh_tonumber,
lj_ffh_tostring,
lj_cf_error,
lj_ffh_pcall,
lj_cf_loadfile,
lj_cf_load,
lj_cf_loadstring,
lj_cf_dofile,
lj_cf_gcinfo,
lj_cf_collectgarbage,
lj_cf_newproxy,
lj_cf_print
};
static const uint8_t lj_lib_init_base[] = {
2,0,28,70,97,115,115,101,114,116,195,110,105,108,199,98,111,111,108,101,97,
110,252,1,200,117,115,101,114,100,97,116,97,198,115,116,114,105,110,103,197,
117,112,118,97,108,198,116,104,114,101,97,100,197,112,114,111,116,111,200,102,
117,110,99,116,105,111,110,197,116,114,97,99,101,197,99,100,97,116,97,197,116,
97,98,108,101,252,9,198,110,117,109,98,101,114,132,116,121,112,101,68,110,101,
120,116,253,69,112,97,105,114,115,64,253,70,105,112,97,105,114,115,140,103,
101,116,109,101,116,97,116,97,98,108,101,76,115,101,116,109,101,116,97,116,
97,98,108,101,7,103,101,116,102,101,110,118,7,115,101,116,102,101,110,118,70,
114,97,119,103,101,116,6,114,97,119,115,101,116,8,114,97,119,101,113,117,97,
108,6,117,110,112,97,99,107,6,115,101,108,101,99,116,72,116,111,110,117,109,
98,101,114,195,110,105,108,197,102,97,108,115,101,196,116,114,117,101,72,116,
111,115,116,114,105,110,103,5,101,114,114,111,114,69,112,99,97,108,108,134,
120,112,99,97,108,108,8,108,111,97,100,102,105,108,101,4,108,111,97,100,10,
108,111,97,100,115,116,114,105,110,103,6,100,111,102,105,108,101,6,103,99,105,
110,102,111,14,99,111,108,108,101,99,116,103,97,114,98,97,103,101,252,2,8,110,
101,119,112,114,111,120,121,200,116,111,115,116,114,105,110,103,5,112,114,105,
110,116,252,3,200,95,86,69,82,83,73,79,78,250,255
};
#endif
#ifdef LJLIB_MODULE_coroutine
#undef LJLIB_MODULE_coroutine
static const lua_CFunction lj_lib_cf_coroutine[] = {
lj_cf_coroutine_status,
lj_cf_coroutine_running,
lj_cf_coroutine_create,
lj_ffh_coroutine_yield,
lj_ffh_coroutine_resume,
lj_cf_coroutine_wrap
};
static const uint8_t lj_lib_init_coroutine[] = {
30,13,6,6,115,116,97,116,117,115,7,114,117,110,110,105,110,103,6,99,114,101,
97,116,101,69,121,105,101,108,100,70,114,101,115,117,109,101,254,4,119,114,
97,112,255
};
#endif
#ifdef LJLIB_MODULE_math
#undef LJLIB_MODULE_math
static const lua_CFunction lj_lib_cf_math[] = {
lj_ffh_math_abs,
lj_ffh_math_sqrt,
lj_ffh_math_log,
lj_ffh_math_atan2,
lj_ffh_math_ldexp,
lj_ffh_math_min,
lj_cf_math_random,
lj_cf_math_randomseed
};
static const uint8_t lj_lib_init_math[] = {
37,16,30,67,97,98,115,133,102,108,111,111,114,132,99,101,105,108,68,115,113,
114,116,133,108,111,103,49,48,131,101,120,112,131,115,105,110,131,99,111,115,
131,116,97,110,132,97,115,105,110,132,97,99,111,115,132,97,116,97,110,132,115,
105,110,104,132,99,111,115,104,132,116,97,110,104,133,102,114,101,120,112,132,
109,111,100,102,67,108,111,103,251,248,193,99,26,220,165,76,64,131,100,101,
103,251,57,157,82,162,70,223,145,63,131,114,97,100,69,97,116,97,110,50,131,
112,111,119,132,102,109,111,100,69,108,100,101,120,112,67,109,105,110,131,109,
97,120,251,24,45,68,84,251,33,9,64,194,112,105,250,251,0,0,0,0,0,0,240,127,
196,104,117,103,101,250,252,2,6,114,97,110,100,111,109,252,2,10,114,97,110,
100,111,109,115,101,101,100,255
};
#endif
#ifdef LJLIB_MODULE_bit
#undef LJLIB_MODULE_bit
static const lua_CFunction lj_lib_cf_bit[] = {
lj_ffh_bit_tobit,
lj_ffh_bit_lshift,
lj_ffh_bit_band,
lj_cf_bit_tohex
};
static const uint8_t lj_lib_init_bit[] = {
65,42,12,69,116,111,98,105,116,132,98,110,111,116,133,98,115,119,97,112,70,
108,115,104,105,102,116,134,114,115,104,105,102,116,135,97,114,115,104,105,
102,116,131,114,111,108,131,114,111,114,68,98,97,110,100,131,98,111,114,132,
98,120,111,114,5,116,111,104,101,120,255
};
#endif
#ifdef LJLIB_MODULE_string
#undef LJLIB_MODULE_string
static const lua_CFunction lj_lib_cf_string[] = {
lj_ffh_string_len,
lj_ffh_string_byte,
lj_ffh_string_char,
lj_ffh_string_sub,
lj_ffh_string_rep,
lj_ffh_string_reverse,
lj_cf_string_dump,
lj_cf_string_find,
lj_cf_string_match,
lj_cf_string_gmatch,
lj_cf_string_gsub,
lj_cf_string_format
};
static const uint8_t lj_lib_init_string[] = {
77,53,14,67,108,101,110,68,98,121,116,101,68,99,104,97,114,67,115,117,98,67,
114,101,112,71,114,101,118,101,114,115,101,133,108,111,119,101,114,133,117,
112,112,101,114,4,100,117,109,112,4,102,105,110,100,5,109,97,116,99,104,254,
6,103,109,97,116,99,104,4,103,115,117,98,6,102,111,114,109,97,116,255
};
#endif
#ifdef LJLIB_MODULE_table
#undef LJLIB_MODULE_table
static const lua_CFunction lj_lib_cf_table[] = {
lj_cf_table_foreachi,
lj_cf_table_foreach,
lj_ffh_table_getn,
lj_cf_table_maxn,
lj_cf_table_insert,
lj_cf_table_remove,
lj_cf_table_concat,
lj_cf_table_sort
};
static const uint8_t lj_lib_init_table[] = {
92,61,8,8,102,111,114,101,97,99,104,105,7,102,111,114,101,97,99,104,68,103,
101,116,110,4,109,97,120,110,6,105,110,115,101,114,116,6,114,101,109,111,118,
101,6,99,111,110,99,97,116,4,115,111,114,116,255
};
#endif
#ifdef LJLIB_MODULE_io_method
#undef LJLIB_MODULE_io_method
static const lua_CFunction lj_lib_cf_io_method[] = {
lj_cf_io_method_close,
lj_cf_io_method_read,
lj_cf_io_method_write,
lj_cf_io_method_flush,
lj_cf_io_method_seek,
lj_cf_io_method_setvbuf,
lj_cf_io_method_lines,
lj_cf_io_method___gc,
lj_cf_io_method___tostring
};
static const uint8_t lj_lib_init_io_method[] = {
100,62,10,5,99,108,111,115,101,4,114,101,97,100,5,119,114,105,116,101,5,102,
108,117,115,104,4,115,101,101,107,7,115,101,116,118,98,117,102,5,108,105,110,
101,115,4,95,95,103,99,10,95,95,116,111,115,116,114,105,110,103,252,1,199,95,
95,105,110,100,101,120,250,255
};
#endif
#ifdef LJLIB_MODULE_io
#undef LJLIB_MODULE_io
static const lua_CFunction lj_lib_cf_io[] = {
lj_cf_io_open,
lj_cf_io_popen,
lj_cf_io_tmpfile,
lj_cf_io_close,
lj_cf_io_read,
lj_cf_io_write,
lj_cf_io_flush,
lj_cf_io_input,
lj_cf_io_output,
lj_cf_io_lines,
lj_cf_io_type
};
static const uint8_t lj_lib_init_io[] = {
109,62,12,252,2,192,250,4,111,112,101,110,5,112,111,112,101,110,7,116,109,112,
102,105,108,101,5,99,108,111,115,101,4,114,101,97,100,5,119,114,105,116,101,
5,102,108,117,115,104,5,105,110,112,117,116,6,111,117,116,112,117,116,5,108,
105,110,101,115,4,116,121,112,101,255
};
#endif
#ifdef LJLIB_MODULE_os
#undef LJLIB_MODULE_os
static const lua_CFunction lj_lib_cf_os[] = {
lj_cf_os_execute,
lj_cf_os_remove,
lj_cf_os_rename,
lj_cf_os_tmpname,
lj_cf_os_getenv,
lj_cf_os_exit,
lj_cf_os_clock,
lj_cf_os_date,
lj_cf_os_time,
lj_cf_os_difftime,
lj_cf_os_setlocale
};
static const uint8_t lj_lib_init_os[] = {
120,62,11,7,101,120,101,99,117,116,101,6,114,101,109,111,118,101,6,114,101,
110,97,109,101,7,116,109,112,110,97,109,101,6,103,101,116,101,110,118,4,101,
120,105,116,5,99,108,111,99,107,4,100,97,116,101,4,116,105,109,101,8,100,105,
102,102,116,105,109,101,9,115,101,116,108,111,99,97,108,101,255
};
#endif
#ifdef LJLIB_MODULE_debug
#undef LJLIB_MODULE_debug
static const lua_CFunction lj_lib_cf_debug[] = {
lj_cf_debug_getregistry,
lj_cf_debug_getmetatable,
lj_cf_debug_setmetatable,
lj_cf_debug_getfenv,
lj_cf_debug_setfenv,
lj_cf_debug_getinfo,
lj_cf_debug_getlocal,
lj_cf_debug_setlocal,
lj_cf_debug_getupvalue,
lj_cf_debug_setupvalue,
lj_cf_debug_upvalueid,
lj_cf_debug_upvaluejoin,
lj_cf_debug_sethook,
lj_cf_debug_gethook,
lj_cf_debug_debug,
lj_cf_debug_traceback
};
static const uint8_t lj_lib_init_debug[] = {
131,62,16,11,103,101,116,114,101,103,105,115,116,114,121,12,103,101,116,109,
101,116,97,116,97,98,108,101,12,115,101,116,109,101,116,97,116,97,98,108,101,
7,103,101,116,102,101,110,118,7,115,101,116,102,101,110,118,7,103,101,116,105,
110,102,111,8,103,101,116,108,111,99,97,108,8,115,101,116,108,111,99,97,108,
10,103,101,116,117,112,118,97,108,117,101,10,115,101,116,117,112,118,97,108,
117,101,9,117,112,118,97,108,117,101,105,100,11,117,112,118,97,108,117,101,
106,111,105,110,7,115,101,116,104,111,111,107,7,103,101,116,104,111,111,107,
5,100,101,98,117,103,9,116,114,97,99,101,98,97,99,107,255
};
#endif
#ifdef LJLIB_MODULE_jit
#undef LJLIB_MODULE_jit
static const lua_CFunction lj_lib_cf_jit[] = {
lj_cf_jit_on,
lj_cf_jit_off,
lj_cf_jit_flush,
lj_cf_jit_status,
lj_cf_jit_attach
};
static const uint8_t lj_lib_init_jit[] = {
147,62,9,2,111,110,3,111,102,102,5,102,108,117,115,104,6,115,116,97,116,117,
115,6,97,116,116,97,99,104,252,5,194,111,115,250,252,4,196,97,114,99,104,250,
252,3,203,118,101,114,115,105,111,110,95,110,117,109,250,252,2,199,118,101,
114,115,105,111,110,250,255
};
#endif
#ifdef LJLIB_MODULE_jit_util
#undef LJLIB_MODULE_jit_util
static const lua_CFunction lj_lib_cf_jit_util[] = {
lj_cf_jit_util_funcinfo,
lj_cf_jit_util_funcbc,
lj_cf_jit_util_funck,
lj_cf_jit_util_funcuvname,
lj_cf_jit_util_traceinfo,
lj_cf_jit_util_traceir,
lj_cf_jit_util_tracek,
lj_cf_jit_util_tracesnap,
lj_cf_jit_util_tracemc,
lj_cf_jit_util_traceexitstub,
lj_cf_jit_util_ircalladdr
};
static const uint8_t lj_lib_init_jit_util[] = {
152,62,11,8,102,117,110,99,105,110,102,111,6,102,117,110,99,98,99,5,102,117,
110,99,107,10,102,117,110,99,117,118,110,97,109,101,9,116,114,97,99,101,105,
110,102,111,7,116,114,97,99,101,105,114,6,116,114,97,99,101,107,9,116,114,97,
99,101,115,110,97,112,7,116,114,97,99,101,109,99,13,116,114,97,99,101,101,120,
105,116,115,116,117,98,10,105,114,99,97,108,108,97,100,100,114,255
};
#endif
#ifdef LJLIB_MODULE_jit_opt
#undef LJLIB_MODULE_jit_opt
static const lua_CFunction lj_lib_cf_jit_opt[] = {
lj_cf_jit_opt_start
};
static const uint8_t lj_lib_init_jit_opt[] = {
163,62,1,5,115,116,97,114,116,255
};
#endif
#ifdef LJLIB_MODULE_ffi_meta
#undef LJLIB_MODULE_ffi_meta
static const lua_CFunction lj_lib_cf_ffi_meta[] = {
lj_cf_ffi_meta___index,
lj_cf_ffi_meta___newindex,
lj_cf_ffi_meta___eq,
lj_cf_ffi_meta___len,
lj_cf_ffi_meta___lt,
lj_cf_ffi_meta___le,
lj_cf_ffi_meta___concat,
lj_cf_ffi_meta___call,
lj_cf_ffi_meta___add,
lj_cf_ffi_meta___sub,
lj_cf_ffi_meta___mul,
lj_cf_ffi_meta___div,
lj_cf_ffi_meta___mod,
lj_cf_ffi_meta___pow,
lj_cf_ffi_meta___unm,
lj_cf_ffi_meta___tostring,
lj_cf_ffi_meta___pairs,
lj_cf_ffi_meta___ipairs
};
static const uint8_t lj_lib_init_ffi_meta[] = {
164,62,19,7,95,95,105,110,100,101,120,10,95,95,110,101,119,105,110,100,101,
120,4,95,95,101,113,5,95,95,108,101,110,4,95,95,108,116,4,95,95,108,101,8,95,
95,99,111,110,99,97,116,6,95,95,99,97,108,108,5,95,95,97,100,100,5,95,95,115,
117,98,5,95,95,109,117,108,5,95,95,100,105,118,5,95,95,109,111,100,5,95,95,
112,111,119,5,95,95,117,110,109,10,95,95,116,111,115,116,114,105,110,103,7,
95,95,112,97,105,114,115,8,95,95,105,112,97,105,114,115,195,102,102,105,203,
95,95,109,101,116,97,116,97,98,108,101,250,255
};
#endif
#ifdef LJLIB_MODULE_ffi_clib
#undef LJLIB_MODULE_ffi_clib
static const lua_CFunction lj_lib_cf_ffi_clib[] = {
lj_cf_ffi_clib___index,
lj_cf_ffi_clib___newindex,
lj_cf_ffi_clib___gc
};
static const uint8_t lj_lib_init_ffi_clib[] = {
182,62,3,7,95,95,105,110,100,101,120,10,95,95,110,101,119,105,110,100,101,120,
4,95,95,103,99,255
};
#endif
#ifdef LJLIB_MODULE_ffi_callback
#undef LJLIB_MODULE_ffi_callback
static const lua_CFunction lj_lib_cf_ffi_callback[] = {
lj_cf_ffi_callback_free,
lj_cf_ffi_callback_set
};
static const uint8_t lj_lib_init_ffi_callback[] = {
185,62,3,4,102,114,101,101,3,115,101,116,252,1,199,95,95,105,110,100,101,120,
250,255
};
#endif
#ifdef LJLIB_MODULE_ffi
#undef LJLIB_MODULE_ffi
static const lua_CFunction lj_lib_cf_ffi[] = {
lj_cf_ffi_cdef,
lj_cf_ffi_new,
lj_cf_ffi_cast,
lj_cf_ffi_typeof,
lj_cf_ffi_istype,
lj_cf_ffi_sizeof,
lj_cf_ffi_alignof,
lj_cf_ffi_offsetof,
lj_cf_ffi_errno,
lj_cf_ffi_string,
lj_cf_ffi_copy,
lj_cf_ffi_fill,
lj_cf_ffi_abi,
lj_cf_ffi_metatype,
lj_cf_ffi_gc,
lj_cf_ffi_load
};
static const uint8_t lj_lib_init_ffi[] = {
187,62,22,4,99,100,101,102,3,110,101,119,4,99,97,115,116,6,116,121,112,101,
111,102,6,105,115,116,121,112,101,6,115,105,122,101,111,102,7,97,108,105,103,
110,111,102,8,111,102,102,115,101,116,111,102,5,101,114,114,110,111,6,115,116,
114,105,110,103,4,99,111,112,121,4,102,105,108,108,3,97,98,105,252,8,192,250,
8,109,101,116,97,116,121,112,101,252,7,192,250,2,103,99,252,5,192,250,4,108,
111,97,100,252,4,193,67,250,252,3,194,111,115,250,252,2,196,97,114,99,104,250,
255
};
#endif
-263
View File
@@ -1,263 +0,0 @@
/* This is a generated file. DO NOT EDIT! */
static const uint16_t recff_idmap[] = {
0,
0x0100,
0x0200,
0x0300,
0,
0,
0x0400,
0x0500,
0x0600,
0x0700,
0,
0,
0x0800,
0x0900,
0x0a00,
0,
0x0b00,
0x0c00,
0x0d00,
0,
0x0e00,
0x0f00,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0x1000,
0x1100+(IRFPM_FLOOR),
0x1100+(IRFPM_CEIL),
0x1200+(IRFPM_SQRT),
0x1200+(IRFPM_LOG10),
0x1200+(IRFPM_EXP),
0x1200+(IRFPM_SIN),
0x1200+(IRFPM_COS),
0x1200+(IRFPM_TAN),
0x1300+(FF_math_asin),
0x1300+(FF_math_acos),
0x1300+(FF_math_atan),
0x1400+(IRCALL_sinh),
0x1400+(IRCALL_cosh),
0x1400+(IRCALL_tanh),
0,
0x1500,
0x1600,
0x1700,
0x1700,
0x1800,
0x1900,
0,
0x1a00,
0x1b00+(IR_MIN),
0x1b00+(IR_MAX),
0x1c00,
0,
0x1d00+(IR_TOBIT),
0x1d00+(IR_BNOT),
0x1d00+(IR_BSWAP),
0x1e00+(IR_BSHL),
0x1e00+(IR_BSHR),
0x1e00+(IR_BSAR),
0x1e00+(IR_BROL),
0x1e00+(IR_BROR),
0x1f00+(IR_BAND),
0x1f00+(IR_BOR),
0x1f00+(IR_BXOR),
0,
0x2000,
0x2100+(0),
0,
0x2100+(1),
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0x2200,
0,
0x2300,
0x2400,
0,
0,
0,
0,
0x2500+(0),
0x2600+(0),
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0x2500+(GCROOT_IO_OUTPUT),
0x2600+(GCROOT_IO_OUTPUT),
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0x2700+(0),
0x2700+(1),
0x2800+(MM_eq),
0x2800+(MM_len),
0x2800+(MM_lt),
0x2800+(MM_le),
0x2800+(MM_concat),
0x2900,
0x2800+(MM_add),
0x2800+(MM_sub),
0x2800+(MM_mul),
0x2800+(MM_div),
0x2800+(MM_mod),
0x2800+(MM_pow),
0x2800+(MM_unm),
0,
0,
0,
0x2a00+(1),
0x2a00+(0),
0,
0,
0,
0,
0x2b00,
0x2b00,
0x2c00,
0x2d00,
0x2e00+(FF_ffi_sizeof),
0x2e00+(FF_ffi_alignof),
0x2e00+(FF_ffi_offsetof),
0x2f00,
0x3000,
0x3100,
0x3200,
0x3300,
0,
0x3400
};
static const RecordFunc recff_func[] = {
recff_nyi,
recff_c,
recff_assert,
recff_type,
recff_ipairs_aux,
recff_ipairs,
recff_getmetatable,
recff_setmetatable,
recff_rawget,
recff_rawset,
recff_rawequal,
recff_select,
recff_tonumber,
recff_tostring,
recff_pcall,
recff_xpcall,
recff_math_abs,
recff_math_round,
recff_math_unary,
recff_math_atrig,
recff_math_htrig,
recff_math_modf,
recff_math_log,
recff_math_degrad,
recff_math_atan2,
recff_math_pow,
recff_math_ldexp,
recff_math_minmax,
recff_math_random,
recff_bit_unary,
recff_bit_shift,
recff_bit_nary,
recff_string_len,
recff_string_range,
recff_table_getn,
recff_table_insert,
recff_table_remove,
recff_io_write,
recff_io_flush,
recff_cdata_index,
recff_cdata_arith,
recff_cdata_call,
recff_clib_index,
recff_ffi_new,
recff_ffi_typeof,
recff_ffi_istype,
recff_ffi_xof,
recff_ffi_errno,
recff_ffi_string,
recff_ffi_copy,
recff_ffi_fill,
recff_ffi_abi,
recff_ffi_gc
};
File diff suppressed because it is too large Load Diff
Binary file not shown.