Mike Pall
347b49ec7d
Merge branch 'master' into v2.1
2014-04-08 12:12:27 +02:00
Mike Pall
4ed3ee1f04
FFI: Fix cdata equality comparison against strings.
2014-04-08 12:10:51 +02:00
Mike Pall
caefd06871
Merge branch 'master' into v2.1
2014-04-01 00:34:13 +02:00
Mike Pall
19b69f21d4
FFI: Allow non-scalar cdata to be compared for equality by address.
2014-04-01 00:30:22 +02:00
Mike Pall
a9d4543601
Merge branch 'master' into v2.1
2014-01-16 23:18:34 +01:00
Mike Pall
ef59e54820
Bump copyright date to 2014.
2014-01-16 23:10:16 +01:00
Mike Pall
a014d5e65d
FFI: Compile conversions from functions to function pointers.
2013-10-16 19:51:42 +02:00
Mike Pall
88c7785b87
FFI: Compile lightuserdata to void * conversion.
2013-10-09 17:23:08 +02:00
Mike Pall
0d41601e76
Merge branch 'master' into v2.1
2013-09-08 03:10:47 +02:00
Mike Pall
93c2b939bd
FFI: Fix argument checks for ffi.string().
2013-09-08 03:09:39 +02:00
Mike Pall
45f3ee8794
Merge branch 'master' into v2.1
2013-05-29 23:12:09 +02:00
Mike Pall
3eeb7d3aa0
FFI: Preserve intermediate string for const char * conversion.
...
Otherwise the trailing NUL is lost.
2013-05-29 23:05:05 +02:00
Mike Pall
992f7d4b71
FFI: Refactor ffi.gc()/__gc. Compile ffi.gc(cdata, nil), too.
2013-05-24 17:44:55 +02:00
Mike Pall
f1f7e40318
FFI: Compile VLA/VLS and large cdata allocs with default initialization.
2013-05-24 00:49:02 +02:00
Mike Pall
b3369f3c95
Merge branch 'master' into v2.1
2013-05-23 22:20:07 +02:00
Mike Pall
7ef2b55fc0
FFI: Fix unroll limit for ffi.fill().
2013-05-23 22:17:45 +02:00
Mike Pall
55772e3ad9
Merge branch 'master' into v2.1
2013-05-23 19:58:35 +02:00
Mike Pall
890754ee27
FFI: Insert no-op type conversion for pointer to integer cast.
2013-05-23 19:55:09 +02:00
Mike Pall
fd616caf26
Compile bit.tohex().
2013-05-15 13:57:35 +02:00
Mike Pall
8f90a1279e
Big renaming of string buffer/formatting/conversion functions.
2013-05-13 10:15:07 +02:00
Mike Pall
2be1c2658f
Merge branch 'master' into v2.1
2013-05-02 02:07:38 +02:00
Mike Pall
5d6db413ae
FFI: Fix tailcall in lowest frame to C function with bool result.
2013-05-02 02:04:41 +02:00
Mike Pall
a98aede377
FFI: Add 64 bit bitwise operations.
2013-03-14 06:03:18 +01:00
Mike Pall
b359ce804b
Remove obsolete non-truncating number to integer conversions.
2013-02-23 01:19:00 +01:00
Mike Pall
4a44c4ff69
Bump copyright date to 2013.
2013-02-11 12:54:48 +01:00
Mike Pall
4e5ef81b86
FFI: Fix recording of bool call result check on x86/x64.
2012-11-06 17:05:37 +01:00
Mike Pall
0b55e05d06
FFI: Compile ffi.gc().
2012-10-10 18:56:16 +02:00
Mike Pall
1c626112a0
FFI: Compile ffi.sizeof(), ffi.alignof() and ffi.offsetof().
2012-10-10 18:16:18 +02:00
Mike Pall
4a97faef7e
FFI: Compile array/struct copies.
2012-10-09 21:51:30 +02:00
Mike Pall
a7d1dbacb1
FFI: Optimize ffi.copy() and ffi.fill().
2012-10-09 21:49:57 +02:00
Mike Pall
da682b0e91
FFI: Add support for copy constructors.
2012-10-08 17:15:28 +02:00
Mike Pall
e013206dd8
FFI: ctypeid of ctype object is immutable.
2012-09-27 14:48:13 +02:00
Mike Pall
21cea85d92
FFI: Always resolve metamethods for pointers to structs.
2012-09-08 21:03:40 +02:00
Mike Pall
90ec1f90d0
Fix recording of ctype() constructors for pointers.
2012-09-03 21:08:37 +02:00
Mike Pall
2717623e3a
FFI: Compile ffi.typeof(cdata).
...
Thanks to Robert G. Jakabosky.
2012-08-08 21:01:36 +02:00
Mike Pall
e2373c1538
FFI: Compile assignments from enums.
...
Thanks to Robert G. Jakabosky.
2012-08-08 20:36:31 +02:00
Mike Pall
3636a720a5
Turn loads from immutable upvalues into constants.
2012-07-20 18:54:52 +02:00
Mike Pall
4d9c29a78c
FFI: Box all accessed or returned enums.
2012-07-17 22:22:07 +02:00
Mike Pall
bd782cedd5
Bump some limits to accomodate SINK pass.
2012-07-04 21:15:15 +02:00
Mike Pall
17d3fc47f3
Avoid pesky compiler warnings about C++ keywords (eh?).
2012-07-03 13:19:32 +02:00
Mike Pall
dd9e7a4608
Fix cdecl string parsing during recording.
2012-06-28 20:17:08 +02:00
Mike Pall
8b71ab1080
FFI: Check for __new metamethod when calling a constructor.
2012-06-20 18:28:25 +02:00
Mike Pall
e75561b70e
FFI: Fix address calculation for refs.
...
Fixes bug introduced in commit 5032e6d8
.
2012-06-09 00:23:27 +02:00
Mike Pall
5032e6d87f
FFI: Use CNEWI/FLOAD to box/access ffi.new("int", x) (for varargs).
2012-06-04 15:39:16 +02:00
Mike Pall
fa2572da6c
FFI: Convert io.* file handle to FILE * pointer (but as a void *).
2012-05-29 12:09:18 +02:00
Mike Pall
3a43ea5084
FFI: Equality comparisons never raise an error.
2012-05-23 22:20:27 +02:00
Mike Pall
6e5c872eb7
FFI: Fix recording of test for bool result of call.
2012-05-09 16:25:51 +02:00
Mike Pall
7d3954036c
FFI: Don't record test for bool result of call, if ignored.
2012-05-08 18:59:51 +02:00
Mike Pall
d4a09431c8
ARM/FFI: Invoke SPLIT pass for double args in FFI call.
2012-04-26 23:46:23 +02:00
Mike Pall
ac6b678d4c
FFI: Fix result type of pointer difference.
2012-04-17 12:54:38 +02:00
Mike Pall
10ef109eef
Bump copyright date to 2012.
2012-01-23 22:42:42 +01:00
Mike Pall
63981436f7
Fix compiler warning.
2011-12-09 15:57:20 +01:00
Mike Pall
e3c7476533
FFI: Record ffi.errno().
2011-11-26 16:56:09 +01:00
Mike Pall
c142b6c53e
FFI: Record C function calls with bool return values.
2011-11-25 19:36:35 +01:00
Mike Pall
71d00a56db
FFI: Add callback support (for x86/x64).
2011-11-14 14:18:25 +01:00
Mike Pall
ae79ff4e53
FFI: Resolve __call metamethod for pointers, too.
2011-11-14 12:01:48 +01:00
Mike Pall
2dc574d06b
FFI: Compile calls to stdcall, fastcall and vararg functions.
2011-10-27 01:57:30 +02:00
Mike Pall
0cf8c20be8
PPC: Integrate and enable JIT compiler.
2011-10-24 16:43:51 +02:00
Mike Pall
bc95d54ec9
FFI: Fix call argument and return handling for I8/U8/I16/U16 types.
2011-10-13 20:44:31 +02:00
Mike Pall
120c3adbff
FFI: Record loads/stores to external variables in namespaces.
2011-10-11 20:58:04 +02:00
Mike Pall
4a144625c9
FFI: Fix recording of const/enum lookups in namespaces.
2011-10-11 11:51:48 +02:00
Mike Pall
d9b518874d
FFI: Limit snapshot optimization for cdata comparisons.
2011-08-07 21:53:43 +02:00
Mike Pall
d001d7b7ce
FFI: Treat function ctypes like pointers in comparisons.
2011-07-23 16:29:47 +02:00
Mike Pall
22946f268b
FFI: Change tonumber(cdata) semantics. Return nil for non-numbers.
2011-06-06 19:56:55 +02:00
Mike Pall
7ad4908a48
ARM: Fuse XLOAD/XSTORE operands.
2011-06-05 18:59:35 +02:00
Mike Pall
865ec114a7
FFI: Fix recording of casts from 32 bit pointers to integers.
2011-05-31 21:39:37 +02:00
Mike Pall
effdfda673
Move IR_CALL* definitions to lj_ircall.h.
2011-05-22 16:28:43 +02:00
Mike Pall
6534152b44
Fix compiler warning.
2011-05-04 23:45:02 +02:00
Mike Pall
c77ca54564
FFI: Compile C function calls with 64 bit args/results in 32 bit mode.
2011-04-29 19:40:50 +02:00
Mike Pall
5d096dcfde
FFI: Add ffi.istype() function.
2011-04-20 01:53:26 +02:00
Mike Pall
31e0774a9e
FFI: Fix cdata finalization.
2011-04-13 21:37:54 +02:00
Mike Pall
3b6f37dd2c
FFI: Add ctype metamethods and ffi.metatype().
2011-04-12 19:16:39 +02:00
Mike Pall
a226fb4cc7
FFI: Force snapshot after C call to preserve semantics.
2011-03-15 14:56:42 +01:00
Mike Pall
bfce3c1127
DUALNUM: Handle integer type in JIT compiler.
2011-03-10 01:57:24 +01:00
Mike Pall
3f26e3a89d
FFI: Fix and optimize recording of cdata[cdata].
2011-03-10 01:41:58 +01:00
Mike Pall
e1aa8d0d97
FFI: Fix compiled ffi.string() semantics.
2011-02-28 19:47:51 +01:00
Mike Pall
a720db409d
FFI: Record calls to functions with void results.
2011-02-23 00:28:49 +01:00
Mike Pall
34bcf6378b
FFI: Fix recording of userdata conversions.
2011-02-20 02:13:32 +01:00
Mike Pall
cf88c43dd6
FFI: Fix 64 bit to 32 bit truncations on x64.
2011-02-20 00:18:46 +01:00
Mike Pall
32eaa48c79
FFI: Fix recording of ffi.copy() and ffi.fill().
2011-02-19 23:04:16 +01:00
Mike Pall
c39ca7c35b
FFI: Record ffi.abi().
2011-02-08 00:09:33 +01:00
Mike Pall
7a37b93f1b
FFI: Record ffi.copy() and ffi.fill().
2011-02-07 23:49:27 +01:00
Mike Pall
fb53d4aeb7
FFI: Fix recording of pointer arithmetic.
2011-02-07 23:42:51 +01:00
Mike Pall
51e8fe9cf0
FFI: Allow cdata types for integer arguments of ffi.* functions.
2011-02-07 17:13:14 +01:00
Mike Pall
8da287cab8
FFI: Fix handling of enum arguments to C calls.
2011-02-07 16:41:51 +01:00
Mike Pall
bf58160b7a
FFI: Simplify and fix tonumber() for cdata objects.
2011-02-06 12:23:58 +01:00
Mike Pall
26bb0fe24b
FFI: Limit number of arguments for recorded calls.
2011-02-05 23:01:10 +01:00
Mike Pall
26fadcd25b
FFI: Record simple C function calls.
...
Only handles cdecl and fixarg C functions.
Doesn't handle pass-by-value aggregates.
Doesn't handle 64 bit args/returns on 32 bit CPUs.
2011-02-05 21:50:15 +01:00
Mike Pall
bf05209e14
FFI: Optimize snapshots for cdata comparisons.
2011-02-05 18:54:08 +01:00
Mike Pall
14f5103764
FFI: Record C library namespace lookups.
2011-02-05 14:16:16 +01:00
Mike Pall
c29ed4dbbf
FFI: Record ffi.string().
2011-02-05 01:05:56 +01:00
Mike Pall
618b451648
FFI: Avoid intermediate boxes for tonumber(), too.
2011-02-05 01:04:41 +01:00
Mike Pall
df65b8b419
FFI: Rename IR_CNEWP to IR_CNEWI and use it to box 64 bit integers.
...
Generates smaller IR and DCE eliminates many intermediate boxes.
Needs allocation sinking to eliminate the boxes kept alive by PHIs.
2011-02-03 04:22:27 +01:00
Mike Pall
a1e0f991d8
FFI: Record 64 bit integer divide and modulo.
2011-02-02 21:24:55 +01:00
Mike Pall
b613216efc
Add SPLIT pass to split 64 bit IR instructions for 32 bit CPUs.
...
Add generic HIOP instruction for extra backend functionality.
Add support for HIOP to x86 backend.
Use POWI for 64 bit integer x^k, too.
POWI is lowered to a call by SPLIT or the x64 backend.
2011-02-02 02:29:37 +01:00
Mike Pall
992bc2caa3
FFI: Limit index range for complex numbers.
2011-01-29 19:47:37 +01:00
Mike Pall
07d8a53b39
FFI: Split up 64 bit x^k helper into signed/unsigned.
2011-01-28 02:15:30 +01:00
Mike Pall
3184f17169
FFI: Move code for cdata arithmetic to lj_carith.c.
2011-01-26 21:46:02 +01:00
Mike Pall
2526498c71
FFI: Record cdata indexing with integer cdata.
2011-01-26 21:14:58 +01:00
Mike Pall
72b3fff72f
FFI: Simplify initializer rules. Clarify docs.
2011-01-23 14:23:21 +01:00