bjorn3
57feadcc13
Replace functions taking or returning u128 or i128 with a trap
...
This makes it possible to remove most of 0002-Disable-u128-and-i128-in-libcore.patch.
The rest has to be kept because of u128 and i128 only being used in the function body.
2019-03-03 11:45:52 +01:00
bjorn3
e77f1185a1
Improve unimpl! docs
2019-03-03 11:02:32 +01:00
bjorn3
23a9dcd947
Make CastKind::Misc handling more clean and general
2019-03-02 20:47:15 +01:00
bjorn3
89666d9818
Implement CastKind::ClosureFnPointer
2019-03-02 20:25:08 +01:00
bjorn3
25f3ef5ff9
Implement ProjectionElem::Subslice
2019-03-02 20:11:31 +01:00
bjorn3
99eb418f19
Rustup to rustc 1.34.0-nightly (c1d2d83ca 2019-03-01)
2019-03-02 12:18:41 +01:00
bjorn3
3d81b76566
Rustup to rustc 1.34.0-nightly (350674b71 2019-02-28)
2019-03-01 18:55:20 +01:00
bjorn3
6c88af3438
Rustup to rustc 1.34.0-nightly (7e001e5c6 2019-02-27)
2019-02-28 10:55:21 +01:00
bjorn3
c8b51653f3
Rustup to rustc 1.34.0-nightly (00aae71f5 2019-02-25)
2019-02-26 11:34:38 +01:00
bjorn3
14750ece1a
Use Instance::resolve_for_vtable instead of Instance::resolve for vtables
2019-02-23 10:30:15 +01:00
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