Commit Graph

2193 Commits

Author SHA1 Message Date
Gustavo Serra Scalet
1401cfb2b3 Fix remaining unwind values on vm frames
Despite unwind working for vm frames, the change sent before was not
fully correct. By analysing the DWARF code with
"readelf --debug-dump=frames luajit" I noticed it was not well formated.
2017-09-04 10:51:51 -03:00
Gustavo Serra Scalet
13b769e3ad Improve readability of a load instruction 2017-08-30 13:25:29 -03:00
Gustavo Serra Scalet
36237e70e1 Fix TOC pointer value on ffi callback handling 2017-08-30 11:29:53 -03:00
Gustavo Serra Scalet
6d4d7f3ec1 Fix debug information for PPC64
Removed the complicated handling of lj_vm_ffi_call (it was a variable
size frame) and now backtrace works all over (e.g:)

 #0  0x00003fffb7d4875c in __libc_send (fd=32, buf=0x3fffb09a0028, len=8192, flags=0) at ../sysdeps/unix/sysv/linux/send.c:31
 #1  0x00003fffb7bea214 in socket_send (ps=0x3fffb7bc7778, data=0x3fffb09a0028 'A' <repeats 200 times>..., count=8192, sent=0x3fffffffee60, tm=0x3fffb7bc97d8) at usocket.c:205
 #2  0x00003fffb7be4ef8 in sendraw (buf=0x3fffb7bc77a0, data=0x3fffb09a0028 'A' <repeats 200 times>..., count=52428800, sent=0x3fffffffeee8) at buffer.c:176
 #3  0x00003fffb7be4960 in buffer_meth_send (L=0x3fffb7f6d280, buf=0x3fffb7bc77a0) at buffer.c:87
 #4  0x00003fffb7bec3f4 in meth_send (L=0x3fffb7f6d280) at tcp.c:130
 #5  0x0000000010042d44 in lj_BC_FUNCC ()
 #6  0x0000000010043f24 in lj_ff_coroutine_resume ()
 #7  0x000000001001d7d4 in lua_pcall (L=0x3fffb7f60378, nargs=0, nresults=-1, errfunc=2) at lj_api.c:1129
 #8  0x00000000100045e8 in docall (L=0x3fffb7f60378, narg=0, clear=0) at luajit.c:121
 #9  0x00000000100053ec in handle_script (L=0x3fffb7f60378, argx=0x3ffffffffa40) at luajit.c:291
 #10 0x0000000010006600 in pmain (L=0x3fffb7f60378) at luajit.c:551
 #11 0x0000000010042d44 in lj_BC_FUNCC ()
 #12 0x000000001001da40 in lua_cpcall (L=0x3fffb7f60378, func=0x10006334 <pmain>, ud=0x0) at lj_api.c:1153
 #13 0x00000000100067a4 in main (argc=2, argv=0x3ffffffffa38) at luajit.c:580
2017-08-30 11:29:53 -03:00
Gustavo Serra Scalet
48c3bd676c Merge remote-tracking branch 'upstream/v2.1' into HEAD 2017-08-30 11:29:38 -03:00
Mike Pall
6b08248526 x64/LJ_GC64: Fix fallback case of asm_fuseloadk64().
Contributed by Peter Cawley.
2017-08-28 10:43:37 +02:00
Mike Pall
9634fa9814 Merge branch 'master' into v2.1 2017-08-18 12:52:30 +02:00
Mike Pall
f3d75075ed Use https for freelists.org links. 2017-08-18 12:52:14 +02:00
Mike Pall
fd37da0d58 PPC: Add soft-float support to interpreter.
Contributed by Djordje Kovacevic and Stefan Pejic from RT-RK.com.
Sponsored by Cisco Systems, Inc.
2017-07-26 09:52:19 +02:00
Mike Pall
7e662e4f87 x64/LJ_GC64: Fix emit_rma(). 2017-07-26 09:52:53 +02:00
Mike Pall
cf2dfaf3b4 Merge branch 'master' into v2.1 2017-06-12 09:25:48 +02:00
Mike Pall
82151a4514 Modify fix for warning from 'ar'. 2017-06-12 09:24:00 +02:00
Mike Pall
6a71e71c14 Remove unused define.
Suggested by 罗泽轩.
2017-06-11 10:02:08 +02:00
Mike Pall
b0ecc6dd65 FreeBSD/x64: Avoid changing resource limits, if not needed. 2017-06-08 00:15:15 +02:00
Mike Pall
a057a07ab7 MIPS64: Add soft-float support to JIT compiler backend.
Contributed by Djordje Kovacevic and Stefan Pejic from RT-RK.com.
Sponsored by Cisco Systems, Inc.
2017-06-07 23:56:54 +02:00
Mike Pall
0e4a551809 Merge branch 'master' into v2.1 2017-06-07 19:39:41 +02:00
Mike Pall
c7c3c4da43 MIPS: Fix handling of spare long-range jump slots.
Contributed by Djordje Kovacevic and Stefan Pejic.
2017-06-07 19:36:46 +02:00
Mike Pall
79fe5782f8 Merge branch 'master' into v2.1 2017-06-07 19:17:47 +02:00
Mike Pall
7381b62035 MIPS: Use precise search for exit jump patching.
Contributed by Djordje Kovacevic and Stefan Pejic.
2017-06-07 19:16:22 +02:00
Mike Pall
6259c0b909 Merge branch 'master' into v2.1 2017-05-17 17:38:53 +02:00
Mike Pall
630ff3196a Add missing LJ_MAX_JSLOTS check.
Thanks to Yichun Zhang.
2017-05-17 17:37:35 +02:00
Mike Pall
31afda3181 Merge branch 'master' into v2.1 2017-05-09 21:01:23 +02:00
Mike Pall
1c89933f12 Fix LJ_MAX_JSLOTS assertion in rec_check_slots().
Thanks to Yichun Zhang.
2017-05-09 20:59:37 +02:00
Gustavo Serra Scalet
bb23a152cb Merge tag 'v2.1.0-beta3' into ppc64-port
RELEASE LuaJIT-2.1.0-beta3
2017-05-03 11:03:59 -03:00
Mike Pall
8271c643c2 RELEASE LuaJIT-2.1.0-beta3 2017-05-01 21:03:01 +02:00
Mike Pall
e9f8abfbf5 Update changelog. 2017-05-01 21:02:34 +02:00
Mike Pall
16dc7fb7bb Merge branch 'master' into v2.1 2017-05-01 20:27:04 +02:00
Mike Pall
0bf80b07b0 RELEASE LuaJIT-2.0.5 2017-05-01 20:10:28 +02:00
Mike Pall
ae0d438f26 Update changelog. 2017-05-01 20:01:20 +02:00
Mike Pall
b608891d7b FFI: Update docs on compiler limitations. 2017-05-01 00:00:33 +02:00
Mike Pall
cf8a5bea89 Add FOLD rules for mixed BAND/BOR with constants. 2017-04-30 23:59:16 +02:00
Mike Pall
fbfbd7b9e1 FFI: Compile bitfield loads/stores. 2017-04-30 23:58:33 +02:00
Mike Pall
dc5eb65ccf Merge branch 'master' into v2.1 2017-04-17 12:29:52 +02:00
Mike Pall
02b4b1e556 Add workaround for MSVC 2015 stdio changes.
Contributed by Peter Cawley.
2017-04-17 12:29:35 +02:00
Mike Pall
ed54eace64 MIPS64: Fix stores of MULTRES.
Contributed by Stefan Pejic.
2017-04-17 12:04:08 +02:00
Mike Pall
58aaac3c64 MIPS64: Fix write barrier in BC_USETV.
Contributed by Stefan Pejic.
2017-04-17 12:02:33 +02:00
Mike Pall
18efb331a4 ARM64: Fix stores to vmstate.
Contributed by Stefan Pejic.
2017-04-17 12:00:04 +02:00
Mike Pall
cced1786b9 Document added C API extensions from Lua 5.2/5.3. 2017-04-07 12:57:25 +02:00
Mike Pall
de26f76e2e From Lua 5.2: Add lua_tonumberx() and lua_tointegerx().
Contributed by François Perrad.
2017-04-07 12:48:37 +02:00
Mike Pall
2b8de8cfc6 From Lua 5.2: Add luaL_setmetatable().
Contributed by François Perrad.
2017-04-07 12:38:05 +02:00
Mike Pall
cde968f91f From Lua 5.2: Add luaL_testudata().
Contributed by François Perrad.
2017-04-07 12:31:06 +02:00
Mike Pall
f2e2a3f757 From Lua 5.3: Add lua_isyieldable().
Contributed by François Perrad.
2017-04-07 12:27:09 +02:00
Mike Pall
ef23b70eb6 From Lua 5.2: Add lua_copy().
Contributed by François Perrad.
2017-04-07 12:24:26 +02:00
Mike Pall
c67a098292 From Lua 5.2: Add lua_version().
Contributed by François Perrad.
2017-04-07 12:21:41 +02:00
Mike Pall
9c685f7003 Refactor with LUA_OK.
Contributed by François Perrad.
2017-04-07 12:12:03 +02:00
Mike Pall
22dfa63283 Allow building on Haiku OS.
Note: this is not an officially supported target.
Thanks to kallisti5.
2017-04-07 12:05:18 +02:00
Mike Pall
7c7843e876 Merge branch 'master' into v2.1 2017-04-07 12:01:07 +02:00
Mike Pall
247b3624ff OSX: Fix build with recent XCode.
Contributed by Joseph Zupko.
2017-04-07 11:59:08 +02:00
Mike Pall
de97b9d52b Add some more changes and extensions from Lua 5.2.
Contributed by François Perrad.
2017-03-30 12:45:14 +02:00
Mike Pall
dc320ca70f Remove old Lua 5.0 compatibility defines.
Suggested by François Perrad.
2017-03-30 11:40:49 +02:00