Commit Graph

358 Commits

Author SHA1 Message Date
bjorn3
f02490d960 Rustfmt 2019-02-21 15:06:09 +01:00
bjorn3
b4eff78a9e Pass command-line arguments to JITed function
Cherry-picked from f1f35405e15ca1b77425514b04b96b2749231899 by
@milkey-mouse
2019-02-18 18:53:18 +01:00
bjorn3
b7f2a722c9 Update gimli 2019-02-18 18:32:40 +01:00
bjorn3
ea10842d95 Update cranelift 2019-02-18 18:26:59 +01:00
bjorn3
bab8113954 Fix discriminant_value intrinsic
Fixes #349
2019-02-16 17:18:51 +01:00
bjorn3
ccf07adbfb Implement isize -> raw-ptr cast 2019-02-16 16:37:30 +01:00
bjorn3
4ecbee2f09 Implement float -> int/uint cast 2019-02-16 16:24:38 +01:00
bjorn3
de94b62ba4 Fix atomic_xchg* intrinsics 2019-02-16 16:24:03 +01:00
bjorn3
26289edf1a Fix cttz{,_nonzero} intrinsics 2019-02-16 15:42:20 +01:00
bjorn3
5721542164 Fix BinOp::Offset
fixes #341
2019-02-16 14:02:15 +01:00
bjorn3
4c94251f95 Several fixes 2019-02-16 13:49:42 +01:00
bjorn3
06dd020446 Rustup to rustc 1.34.0-nightly (a9410cd1a 2019-02-15) 2019-02-16 12:35:56 +01:00
bjorn3
b05c457257 Use correct alignment for CValue::ByRef for a ZST 2019-02-13 14:32:30 +01:00
bjorn3
c68e76c33b Implement variadic function calling 2019-02-11 19:18:52 +01:00
bjorn3
4bb8bfca94 Disable macOS debuginfo and on all platforms optimizations 2019-02-11 19:11:55 +01:00
bjorn3
5b3867430f Fix "offset" intrinsic
It didn't multiply the offset given by the pointee type size.
2019-02-11 18:50:26 +01:00
bjorn3
a272efa030 Fix alloc_example 2019-02-11 15:29:46 +01:00
bjorn3
19f9810a0f Rustup to rustc 1.34.0-nightly (0b7af2668 2019-02-10) 2019-02-11 15:10:28 +01:00
Philip Craig
e2a869e166 Update gimli 2019-02-11 17:05:38 +10:00
bjorn3
1eba7e5f5e Implement drop for trait objects 2019-02-08 17:20:24 +01:00
bjorn3
c8f19f1cb2 Make codegen_call_inner a bit more readable 2019-02-07 20:28:55 +01:00
bjorn3
c6bf784d39 Misc changes 2019-02-06 19:07:21 +01:00
bjorn3
43f4dc6220 Fix some warnings 2019-02-06 18:49:59 +01:00
bjorn3
059b589407 Implement dynamic dispatch for self: Box<T> 2019-02-06 18:44:13 +01:00
bjorn3
e1620402e0 Introduce CPlace::NoPlace for zst's 2019-02-04 19:58:29 +01:00
bjorn3
d0c81d259a Take stack_addr in advance for locals to avoid many duplicate instructions 2019-02-04 19:44:16 +01:00
bjorn3
feec354d65 Introduce CPlace::Stack 2019-02-04 19:32:32 +01:00
bjorn3
3e24c1212f Refactor CPlace address handling 2019-02-04 19:32:29 +01:00
bjorn3
0d16dcfce1 Don't try to store func_addr for FnDef in trans_const_value
This would crash, because the place provides 0 bytes of space for FnDef
2019-02-03 14:11:24 +01:00
bjorn3
849f7f7041 Update gimli 2019-02-02 11:48:09 +01:00
bjorn3
99e43822b4 Misc debuginfo.rs changes 2019-02-01 19:31:26 +01:00
bjorn3
805af227b6 Fix line debuginfo malformness in presence of macros 2019-01-30 14:57:08 +01:00
bjorn3
bdf1320508 Fix panic_if_uninhabited intrinsic 2019-01-26 17:41:04 +01:00
bjorn3
00e6462334 Fix offset addend mixup 2019-01-26 17:40:33 +01:00
bjorn3
4fbff29a4a Misc debuginfo change 2019-01-26 14:06:02 +01:00
bjorn3
c4d010b8a5 Deduplicate debug section defining and linking 2019-01-26 12:49:33 +01:00
bjorn3
ddbbb267b6 Update gimli 2019-01-26 12:37:49 +01:00
bjorn3
36f6e2f508 Use FileIndex for DW_AT_decl_file and omit .debug_ranges and .debug_rnglists when empty 2019-01-26 12:28:54 +01:00
bjorn3
cf7ee00afd Improve it a bit 2019-01-26 11:59:57 +01:00
bjorn3
a12eef4d86 Use IndexSet and keep full source info in set_debug_loc 2019-01-26 11:59:57 +01:00
bjorn3
6b5cbc540d Use gimli's byteorder in debuginfo.rs 2019-01-26 11:59:57 +01:00
bjorn3
8bddc783e0 Update gimli 2019-01-26 11:59:57 +01:00
bjorn3
d61ceeca7c Generate lineinfo for default srcloc 2019-01-26 11:59:57 +01:00
bjorn3
09c4569c87 Implement line debuginfo 2019-01-26 11:59:57 +01:00
bjorn3
9e609db886 Rustup to rustc 1.33.0-nightly (bf669d1e3 2019-01-25) 2019-01-26 11:59:34 +01:00
bjorn3
8aee796013 Update Cargo.lock and use emit_small_memcpy 2019-01-15 20:35:49 +01:00
bjorn3
5a931acb48 Improve global name for anonymous allocations 2019-01-12 15:16:09 +01:00
bjorn3
8a586eb6cb Rustup to rustc 1.33.0-nightly (68fe5182c 2019-01-05) 2019-01-06 15:27:20 +01:00
bjorn3
144ff955d6 Use layout.abi 2019-01-02 14:03:56 +01:00
bjorn3
a15af1ccba Rename load_value to load_scalar and make it support all Abi::Scalar types 2019-01-02 13:39:02 +01:00