]>
git.lizzy.rs Git - rust.git/log
Scott Olson [Wed, 30 Mar 2016 04:13:31 +0000 (22:13 -0600)]
Move substs stack management into main stack managment fns.
Scott Olson [Wed, 30 Mar 2016 01:09:26 +0000 (19:09 -0600)]
Add initial error reporting via rustc's interface.
Scott Olson [Wed, 30 Mar 2016 01:08:45 +0000 (19:08 -0600)]
Remove unnecessary Result return in push_stack_frame.
Scott Olson [Tue, 29 Mar 2016 03:08:08 +0000 (21:08 -0600)]
Handle custom discriminant values and detect invalid discriminants.
Scott Olson [Mon, 28 Mar 2016 23:59:48 +0000 (17:59 -0600)]
Add a basic test for specialization.
Scott Olson [Mon, 28 Mar 2016 23:43:23 +0000 (17:43 -0600)]
Update for changes in rustc master.
Scott Olson [Mon, 28 Mar 2016 22:37:07 +0000 (16:37 -0600)]
Mark bytes undefined in uninit intrinsic.
Scott Olson [Sun, 27 Mar 2016 06:29:02 +0000 (00:29 -0600)]
Mark partially-overwritten relocations as undefined.
Scott Olson [Sun, 27 Mar 2016 05:57:14 +0000 (23:57 -0600)]
Fix bug where &str's lengths were not copied.
Scott Olson [Sun, 27 Mar 2016 05:56:49 +0000 (23:56 -0600)]
Check for undefinedness when reading from memory.
Scott Olson [Sun, 27 Mar 2016 05:25:35 +0000 (23:25 -0600)]
Add method for checking if a range is defined in an allocation.
Scott Olson [Sun, 27 Mar 2016 04:25:08 +0000 (22:25 -0600)]
Add undefined byte tracking.
Scott Olson [Thu, 24 Mar 2016 03:40:58 +0000 (21:40 -0600)]
Reorganize memory methods.
Scott Olson [Thu, 24 Mar 2016 01:44:05 +0000 (19:44 -0600)]
Refactor memory/allocation handling.
Scott Olson [Tue, 22 Mar 2016 06:48:28 +0000 (00:48 -0600)]
Use Box<[u8]> instead of Vec<u8> for allocations.
Scott Olson [Tue, 22 Mar 2016 00:53:39 +0000 (18:53 -0600)]
Add a commented-out RefCell test.
Scott Olson [Tue, 22 Mar 2016 00:51:25 +0000 (18:51 -0600)]
Add a fat byte-slice coercion test.
Scott Olson [Tue, 22 Mar 2016 00:51:08 +0000 (18:51 -0600)]
Assert the absence of fat pointers more often.
Scott Olson [Mon, 21 Mar 2016 11:42:42 +0000 (05:42 -0600)]
Write the correct size for PrimVall::IntegerPtr.
Scott Olson [Mon, 21 Mar 2016 11:27:34 +0000 (05:27 -0600)]
Refactor handling of relocations.
Scott Olson [Mon, 21 Mar 2016 10:37:28 +0000 (04:37 -0600)]
Add simple test of assert_eq!.
Scott Olson [Mon, 21 Mar 2016 10:19:27 +0000 (04:19 -0600)]
Hide execution traces (they are getting long...)
Scott Olson [Mon, 21 Mar 2016 10:18:30 +0000 (04:18 -0600)]
Add tests involving Rc, Arc, and Cell.
Scott Olson [Mon, 21 Mar 2016 10:12:07 +0000 (04:12 -0600)]
Fix typo in test name.
Scott Olson [Mon, 21 Mar 2016 10:01:52 +0000 (04:01 -0600)]
Make more MIR match statements exhaustive.
Scott Olson [Mon, 21 Mar 2016 09:42:34 +0000 (03:42 -0600)]
Support intrinsics::overflowing_sub for vec![x; n].
Scott Olson [Mon, 21 Mar 2016 09:34:24 +0000 (03:34 -0600)]
Support [x; N] array repeat rvalues.
Scott Olson [Mon, 21 Mar 2016 09:19:48 +0000 (03:19 -0600)]
Make mir::Rvalue handling exhaustive (some still unimplemented).
Scott Olson [Mon, 21 Mar 2016 09:19:07 +0000 (03:19 -0600)]
Add vec::IntoIter and fold test.
Scott Olson [Mon, 21 Mar 2016 08:54:20 +0000 (02:54 -0600)]
Abort miri if the Rust code had compilation errors.
Scott Olson [Mon, 21 Mar 2016 08:41:22 +0000 (02:41 -0600)]
Uncomment now-working vec! macro test.
Scott Olson [Mon, 21 Mar 2016 08:41:07 +0000 (02:41 -0600)]
Fix vec test compile error.
Scott Olson [Mon, 21 Mar 2016 08:39:41 +0000 (02:39 -0600)]
Add slice iterator for-loop test.
Scott Olson [Mon, 21 Mar 2016 08:37:31 +0000 (02:37 -0600)]
Add array indexing for-loop test.
Scott Olson [Mon, 21 Mar 2016 07:04:50 +0000 (01:04 -0600)]
Remove debug print.
Scott Olson [Mon, 21 Mar 2016 05:24:27 +0000 (23:24 -0600)]
Refactor isize/usize read/writes.
Scott Olson [Mon, 21 Mar 2016 05:11:06 +0000 (23:11 -0600)]
Monomorphize lvalue types.
Scott Olson [Mon, 21 Mar 2016 05:09:27 +0000 (23:09 -0600)]
Simplify handling of Result in eval_assignment.
Scott Olson [Mon, 21 Mar 2016 04:59:13 +0000 (22:59 -0600)]
Support fat pointer reborrowing, length checking.
Scott Olson [Mon, 21 Mar 2016 04:07:25 +0000 (22:07 -0600)]
Refactor some names.
Scott Olson [Mon, 21 Mar 2016 03:30:31 +0000 (21:30 -0600)]
Implement length access and indexing for fixed-sized arrays.
Scott Olson [Mon, 21 Mar 2016 02:33:46 +0000 (20:33 -0600)]
Reduce duplication for integer reprs.
Scott Olson [Mon, 21 Mar 2016 02:18:09 +0000 (20:18 -0600)]
Add first test for std::vec::Vec.
Scott Olson [Mon, 21 Mar 2016 02:16:40 +0000 (20:16 -0600)]
Support fn pointer type sizes.
Scott Olson [Mon, 21 Mar 2016 02:15:13 +0000 (20:15 -0600)]
Stop unintentionally clearing source relocations when copying.
Scott Olson [Mon, 21 Mar 2016 01:23:57 +0000 (19:23 -0600)]
Implement the move_val_init intrinsic.
Scott Olson [Mon, 21 Mar 2016 00:41:39 +0000 (18:41 -0600)]
Implement the __rust_allocate C ABI function.
Scott Olson [Sat, 19 Mar 2016 17:07:19 +0000 (11:07 -0600)]
Simplify Misc casts (still incorrect).
Scott Olson [Sat, 19 Mar 2016 17:01:33 +0000 (11:01 -0600)]
Implement min_align_of and a hacky mul_with_overflow.
Scott Olson [Sat, 19 Mar 2016 16:01:53 +0000 (10:01 -0600)]
Write intrinsic result to correct lvalue.
Scott Olson [Sat, 19 Mar 2016 15:09:13 +0000 (09:09 -0600)]
Handle "offset" intrinsic on integer pointers.
Scott Olson [Sat, 19 Mar 2016 05:20:59 +0000 (23:20 -0600)]
Implement bytestring literals.
Scott Olson [Sat, 19 Mar 2016 05:19:39 +0000 (23:19 -0600)]
Implement string literals.
Scott Olson [Sat, 19 Mar 2016 05:04:07 +0000 (23:04 -0600)]
Implement the dummy 'assume' intrinsic.
Scott Olson [Sat, 19 Mar 2016 05:03:46 +0000 (23:03 -0600)]
Implement pointer primvals and comparison ops on them.
Scott Olson [Fri, 18 Mar 2016 18:42:09 +0000 (12:42 -0600)]
Implement transmute.
Scott Olson [Fri, 18 Mar 2016 18:11:57 +0000 (12:11 -0600)]
Avoid an integer underflow error.
Scott Olson [Fri, 18 Mar 2016 18:11:39 +0000 (12:11 -0600)]
Add error message for missing MIR.
Scott Olson [Fri, 18 Mar 2016 17:53:24 +0000 (11:53 -0600)]
Reformat for consistency.
Scott Olson [Fri, 18 Mar 2016 17:52:28 +0000 (11:52 -0600)]
Implement more intrinsics.
Scott Olson [Fri, 18 Mar 2016 17:52:13 +0000 (11:52 -0600)]
Normalize associated types when monomorphizing.
Scott Olson [Fri, 18 Mar 2016 16:48:31 +0000 (10:48 -0600)]
Add initial support for closures.
Scott Olson [Thu, 17 Mar 2016 14:01:34 +0000 (08:01 -0600)]
Remove some TODOs.
Scott Olson [Thu, 17 Mar 2016 13:53:26 +0000 (07:53 -0600)]
Choose pointer size dynamically.
Scott Olson [Thu, 17 Mar 2016 13:24:10 +0000 (07:24 -0600)]
Change invalid pointer read panic into Err.
Scott Olson [Thu, 17 Mar 2016 12:39:29 +0000 (06:39 -0600)]
Fix boolean tests and clean up code.
Scott Olson [Thu, 17 Mar 2016 12:26:37 +0000 (06:26 -0600)]
Simplify integer reading/writing.
Scott Olson [Thu, 17 Mar 2016 12:04:24 +0000 (06:04 -0600)]
Remove fn_ty argument from call_intrinsic for now.
Scott Olson [Thu, 17 Mar 2016 12:00:27 +0000 (06:00 -0600)]
Extract intrinsic function handling.
Scott Olson [Thu, 17 Mar 2016 11:49:12 +0000 (05:49 -0600)]
Shorten ty_to_repr(ty).size() to ty_size(ty).
Scott Olson [Thu, 17 Mar 2016 11:40:56 +0000 (05:40 -0600)]
whitespace.
Scott Olson [Thu, 17 Mar 2016 11:40:27 +0000 (05:40 -0600)]
Cached those outputs.
Scott Olson [Thu, 17 Mar 2016 11:32:00 +0000 (05:32 -0600)]
Arena allocate and cache type representations.
Scott Olson [Thu, 17 Mar 2016 10:57:50 +0000 (04:57 -0600)]
Use total size instead of max variant size in aggregates.
Scott Olson [Thu, 17 Mar 2016 10:54:04 +0000 (04:54 -0600)]
Simplify make_aggregate_repr.
Scott Olson [Thu, 17 Mar 2016 10:38:46 +0000 (04:38 -0600)]
Merge sum and product representations.
Scott Olson [Thu, 17 Mar 2016 09:36:06 +0000 (03:36 -0600)]
Simplify primitive type reprs.
Scott Olson [Thu, 17 Mar 2016 09:20:49 +0000 (03:20 -0600)]
Fix typo.
Scott Olson [Thu, 17 Mar 2016 09:19:13 +0000 (03:19 -0600)]
Simplify Repr::Array's elem size.
Scott Olson [Thu, 17 Mar 2016 09:12:15 +0000 (03:12 -0600)]
Simplify PrimVals.
Scott Olson [Thu, 17 Mar 2016 09:11:40 +0000 (03:11 -0600)]
Simplify FieldRepr sizes.
Scott Olson [Thu, 17 Mar 2016 08:53:03 +0000 (02:53 -0600)]
Simplify some Repr code.
Scott Olson [Thu, 17 Mar 2016 07:11:06 +0000 (01:11 -0600)]
Add fixmes to horrible casting code.
Scott Olson [Thu, 17 Mar 2016 05:28:49 +0000 (23:28 -0600)]
WIP: Support array indexing including a `get_unchecked` test.
Required supporting:
* Trait method lookup
* The `offset` intrinsic
* Fat pointers
* Unsizing coercions and some raw pointer and integer casts
Scott Olson [Thu, 17 Mar 2016 05:28:09 +0000 (23:28 -0600)]
Create a pointer-only version of eval_operand. Fix pointer offset.
Scott Olson [Tue, 15 Mar 2016 22:09:08 +0000 (16:09 -0600)]
Update for changes in rustc master.
Scott Olson [Tue, 15 Mar 2016 13:13:31 +0000 (07:13 -0600)]
Split Repr creation out of eval_lvalue.
Scott Olson [Tue, 15 Mar 2016 11:50:53 +0000 (05:50 -0600)]
Implement fixed-sized arrays.
Scott Olson [Tue, 15 Mar 2016 06:45:25 +0000 (00:45 -0600)]
Implement the size_of intrinsic.
Scott Olson [Tue, 15 Mar 2016 05:25:13 +0000 (23:25 -0600)]
Test the unstable box syntax.
Scott Olson [Tue, 15 Mar 2016 05:03:31 +0000 (23:03 -0600)]
Add unsigned integers.
Scott Olson [Tue, 15 Mar 2016 04:26:39 +0000 (22:26 -0600)]
Fix substs in nested generic function calls.
Scott Olson [Tue, 15 Mar 2016 04:08:38 +0000 (22:08 -0600)]
Clarify output allocations.
Scott Olson [Tue, 15 Mar 2016 04:05:50 +0000 (22:05 -0600)]
Implement Rvalue::Box allocations.
Scott Olson [Tue, 15 Mar 2016 03:48:00 +0000 (21:48 -0600)]
Reorganize and simplify.
Scott Olson [Tue, 15 Mar 2016 03:29:18 +0000 (21:29 -0600)]
Improve execution trace logging.
Scott Olson [Tue, 15 Mar 2016 03:18:39 +0000 (21:18 -0600)]
Extract Terminator evaluation out of the main loop.
Scott Olson [Tue, 15 Mar 2016 02:39:51 +0000 (20:39 -0600)]
Handle recursive calls without recursing in miri.
Scott Olson [Mon, 14 Mar 2016 00:33:26 +0000 (18:33 -0600)]
Properly handle generic fn calls.
Scott Olson [Sun, 13 Mar 2016 23:19:42 +0000 (17:19 -0600)]
Reimplement cross-crate function calls.