]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agoMove substs stack management into main stack managment fns.
Scott Olson [Wed, 30 Mar 2016 04:13:31 +0000 (22:13 -0600)]
Move substs stack management into main stack managment fns.

8 years agoAdd initial error reporting via rustc's interface.
Scott Olson [Wed, 30 Mar 2016 01:09:26 +0000 (19:09 -0600)]
Add initial error reporting via rustc's interface.

8 years agoRemove unnecessary Result return in push_stack_frame.
Scott Olson [Wed, 30 Mar 2016 01:08:45 +0000 (19:08 -0600)]
Remove unnecessary Result return in push_stack_frame.

8 years agoHandle custom discriminant values and detect invalid discriminants.
Scott Olson [Tue, 29 Mar 2016 03:08:08 +0000 (21:08 -0600)]
Handle custom discriminant values and detect invalid discriminants.

8 years agoAdd a basic test for specialization.
Scott Olson [Mon, 28 Mar 2016 23:59:48 +0000 (17:59 -0600)]
Add a basic test for specialization.

8 years agoUpdate for changes in rustc master.
Scott Olson [Mon, 28 Mar 2016 23:43:23 +0000 (17:43 -0600)]
Update for changes in rustc master.

8 years agoMark bytes undefined in uninit intrinsic.
Scott Olson [Mon, 28 Mar 2016 22:37:07 +0000 (16:37 -0600)]
Mark bytes undefined in uninit intrinsic.

8 years agoMark partially-overwritten relocations as undefined.
Scott Olson [Sun, 27 Mar 2016 06:29:02 +0000 (00:29 -0600)]
Mark partially-overwritten relocations as undefined.

8 years agoFix bug where &str's lengths were not copied.
Scott Olson [Sun, 27 Mar 2016 05:57:14 +0000 (23:57 -0600)]
Fix bug where &str's lengths were not copied.

8 years agoCheck for undefinedness when reading from memory.
Scott Olson [Sun, 27 Mar 2016 05:56:49 +0000 (23:56 -0600)]
Check for undefinedness when reading from memory.

8 years agoAdd method for checking if a range is defined in an allocation.
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.

8 years agoAdd undefined byte tracking.
Scott Olson [Sun, 27 Mar 2016 04:25:08 +0000 (22:25 -0600)]
Add undefined byte tracking.

8 years agoReorganize memory methods.
Scott Olson [Thu, 24 Mar 2016 03:40:58 +0000 (21:40 -0600)]
Reorganize memory methods.

8 years agoRefactor memory/allocation handling.
Scott Olson [Thu, 24 Mar 2016 01:44:05 +0000 (19:44 -0600)]
Refactor memory/allocation handling.

8 years agoUse Box<[u8]> instead of Vec<u8> for allocations.
Scott Olson [Tue, 22 Mar 2016 06:48:28 +0000 (00:48 -0600)]
Use Box<[u8]> instead of Vec<u8> for allocations.

8 years agoAdd a commented-out RefCell test.
Scott Olson [Tue, 22 Mar 2016 00:53:39 +0000 (18:53 -0600)]
Add a commented-out RefCell test.

8 years agoAdd a fat byte-slice coercion test.
Scott Olson [Tue, 22 Mar 2016 00:51:25 +0000 (18:51 -0600)]
Add a fat byte-slice coercion test.

8 years agoAssert the absence of fat pointers more often.
Scott Olson [Tue, 22 Mar 2016 00:51:08 +0000 (18:51 -0600)]
Assert the absence of fat pointers more often.

8 years agoWrite the correct size for PrimVall::IntegerPtr.
Scott Olson [Mon, 21 Mar 2016 11:42:42 +0000 (05:42 -0600)]
Write the correct size for PrimVall::IntegerPtr.

8 years agoRefactor handling of relocations.
Scott Olson [Mon, 21 Mar 2016 11:27:34 +0000 (05:27 -0600)]
Refactor handling of relocations.

8 years agoAdd simple test of assert_eq!.
Scott Olson [Mon, 21 Mar 2016 10:37:28 +0000 (04:37 -0600)]
Add simple test of assert_eq!.

8 years agoHide execution traces (they are getting long...)
Scott Olson [Mon, 21 Mar 2016 10:19:27 +0000 (04:19 -0600)]
Hide execution traces (they are getting long...)

8 years agoAdd tests involving Rc, Arc, and Cell.
Scott Olson [Mon, 21 Mar 2016 10:18:30 +0000 (04:18 -0600)]
Add tests involving Rc, Arc, and Cell.

8 years agoFix typo in test name.
Scott Olson [Mon, 21 Mar 2016 10:12:07 +0000 (04:12 -0600)]
Fix typo in test name.

8 years agoMake more MIR match statements exhaustive.
Scott Olson [Mon, 21 Mar 2016 10:01:52 +0000 (04:01 -0600)]
Make more MIR match statements exhaustive.

8 years agoSupport intrinsics::overflowing_sub for vec![x; n].
Scott Olson [Mon, 21 Mar 2016 09:42:34 +0000 (03:42 -0600)]
Support intrinsics::overflowing_sub for vec![x; n].

8 years agoSupport [x; N] array repeat rvalues.
Scott Olson [Mon, 21 Mar 2016 09:34:24 +0000 (03:34 -0600)]
Support [x; N] array repeat rvalues.

8 years agoMake mir::Rvalue handling exhaustive (some still unimplemented).
Scott Olson [Mon, 21 Mar 2016 09:19:48 +0000 (03:19 -0600)]
Make mir::Rvalue handling exhaustive (some still unimplemented).

8 years agoAdd vec::IntoIter and fold test.
Scott Olson [Mon, 21 Mar 2016 09:19:07 +0000 (03:19 -0600)]
Add vec::IntoIter and fold test.

8 years agoAbort miri if the Rust code had compilation errors.
Scott Olson [Mon, 21 Mar 2016 08:54:20 +0000 (02:54 -0600)]
Abort miri if the Rust code had compilation errors.

8 years agoUncomment now-working vec! macro test.
Scott Olson [Mon, 21 Mar 2016 08:41:22 +0000 (02:41 -0600)]
Uncomment now-working vec! macro test.

8 years agoFix vec test compile error.
Scott Olson [Mon, 21 Mar 2016 08:41:07 +0000 (02:41 -0600)]
Fix vec test compile error.

8 years agoAdd slice iterator for-loop test.
Scott Olson [Mon, 21 Mar 2016 08:39:41 +0000 (02:39 -0600)]
Add slice iterator for-loop test.

8 years agoAdd array indexing for-loop test.
Scott Olson [Mon, 21 Mar 2016 08:37:31 +0000 (02:37 -0600)]
Add array indexing for-loop test.

8 years agoRemove debug print.
Scott Olson [Mon, 21 Mar 2016 07:04:50 +0000 (01:04 -0600)]
Remove debug print.

8 years agoRefactor isize/usize read/writes.
Scott Olson [Mon, 21 Mar 2016 05:24:27 +0000 (23:24 -0600)]
Refactor isize/usize read/writes.

8 years agoMonomorphize lvalue types.
Scott Olson [Mon, 21 Mar 2016 05:11:06 +0000 (23:11 -0600)]
Monomorphize lvalue types.

8 years agoSimplify handling of Result in eval_assignment.
Scott Olson [Mon, 21 Mar 2016 05:09:27 +0000 (23:09 -0600)]
Simplify handling of Result in eval_assignment.

8 years agoSupport fat pointer reborrowing, length checking.
Scott Olson [Mon, 21 Mar 2016 04:59:13 +0000 (22:59 -0600)]
Support fat pointer reborrowing, length checking.

8 years agoRefactor some names.
Scott Olson [Mon, 21 Mar 2016 04:07:25 +0000 (22:07 -0600)]
Refactor some names.

8 years agoImplement length access and indexing for fixed-sized arrays.
Scott Olson [Mon, 21 Mar 2016 03:30:31 +0000 (21:30 -0600)]
Implement length access and indexing for fixed-sized arrays.

8 years agoReduce duplication for integer reprs.
Scott Olson [Mon, 21 Mar 2016 02:33:46 +0000 (20:33 -0600)]
Reduce duplication for integer reprs.

8 years agoAdd first test for std::vec::Vec.
Scott Olson [Mon, 21 Mar 2016 02:18:09 +0000 (20:18 -0600)]
Add first test for std::vec::Vec.

8 years agoSupport fn pointer type sizes.
Scott Olson [Mon, 21 Mar 2016 02:16:40 +0000 (20:16 -0600)]
Support fn pointer type sizes.

8 years agoStop unintentionally clearing source relocations when copying.
Scott Olson [Mon, 21 Mar 2016 02:15:13 +0000 (20:15 -0600)]
Stop unintentionally clearing source relocations when copying.

8 years agoImplement the move_val_init intrinsic.
Scott Olson [Mon, 21 Mar 2016 01:23:57 +0000 (19:23 -0600)]
Implement the move_val_init intrinsic.

8 years agoImplement the __rust_allocate C ABI function.
Scott Olson [Mon, 21 Mar 2016 00:41:39 +0000 (18:41 -0600)]
Implement the __rust_allocate C ABI function.

8 years agoSimplify Misc casts (still incorrect).
Scott Olson [Sat, 19 Mar 2016 17:07:19 +0000 (11:07 -0600)]
Simplify Misc casts (still incorrect).

8 years agoImplement min_align_of and a hacky mul_with_overflow.
Scott Olson [Sat, 19 Mar 2016 17:01:33 +0000 (11:01 -0600)]
Implement min_align_of and a hacky mul_with_overflow.

8 years agoWrite intrinsic result to correct lvalue.
Scott Olson [Sat, 19 Mar 2016 16:01:53 +0000 (10:01 -0600)]
Write intrinsic result to correct lvalue.

8 years agoHandle "offset" intrinsic on integer pointers.
Scott Olson [Sat, 19 Mar 2016 15:09:13 +0000 (09:09 -0600)]
Handle "offset" intrinsic on integer pointers.

8 years agoImplement bytestring literals.
Scott Olson [Sat, 19 Mar 2016 05:20:59 +0000 (23:20 -0600)]
Implement bytestring literals.

8 years agoImplement string literals.
Scott Olson [Sat, 19 Mar 2016 05:19:39 +0000 (23:19 -0600)]
Implement string literals.

8 years agoImplement the dummy 'assume' intrinsic.
Scott Olson [Sat, 19 Mar 2016 05:04:07 +0000 (23:04 -0600)]
Implement the dummy 'assume' intrinsic.

8 years agoImplement pointer primvals and comparison ops on them.
Scott Olson [Sat, 19 Mar 2016 05:03:46 +0000 (23:03 -0600)]
Implement pointer primvals and comparison ops on them.

8 years agoImplement transmute.
Scott Olson [Fri, 18 Mar 2016 18:42:09 +0000 (12:42 -0600)]
Implement transmute.

8 years agoAvoid an integer underflow error.
Scott Olson [Fri, 18 Mar 2016 18:11:57 +0000 (12:11 -0600)]
Avoid an integer underflow error.

8 years agoAdd error message for missing MIR.
Scott Olson [Fri, 18 Mar 2016 18:11:39 +0000 (12:11 -0600)]
Add error message for missing MIR.

8 years agoReformat for consistency.
Scott Olson [Fri, 18 Mar 2016 17:53:24 +0000 (11:53 -0600)]
Reformat for consistency.

8 years agoImplement more intrinsics.
Scott Olson [Fri, 18 Mar 2016 17:52:28 +0000 (11:52 -0600)]
Implement more intrinsics.

8 years agoNormalize associated types when monomorphizing.
Scott Olson [Fri, 18 Mar 2016 17:52:13 +0000 (11:52 -0600)]
Normalize associated types when monomorphizing.

8 years agoAdd initial support for closures.
Scott Olson [Fri, 18 Mar 2016 16:48:31 +0000 (10:48 -0600)]
Add initial support for closures.

8 years agoRemove some TODOs.
Scott Olson [Thu, 17 Mar 2016 14:01:34 +0000 (08:01 -0600)]
Remove some TODOs.

8 years agoChoose pointer size dynamically.
Scott Olson [Thu, 17 Mar 2016 13:53:26 +0000 (07:53 -0600)]
Choose pointer size dynamically.

8 years agoChange invalid pointer read panic into Err.
Scott Olson [Thu, 17 Mar 2016 13:24:10 +0000 (07:24 -0600)]
Change invalid pointer read panic into Err.

8 years agoFix boolean tests and clean up code.
Scott Olson [Thu, 17 Mar 2016 12:39:29 +0000 (06:39 -0600)]
Fix boolean tests and clean up code.

8 years agoSimplify integer reading/writing.
Scott Olson [Thu, 17 Mar 2016 12:26:37 +0000 (06:26 -0600)]
Simplify integer reading/writing.

8 years agoRemove fn_ty argument from call_intrinsic for now.
Scott Olson [Thu, 17 Mar 2016 12:04:24 +0000 (06:04 -0600)]
Remove fn_ty argument from call_intrinsic for now.

8 years agoExtract intrinsic function handling.
Scott Olson [Thu, 17 Mar 2016 12:00:27 +0000 (06:00 -0600)]
Extract intrinsic function handling.

8 years agoShorten ty_to_repr(ty).size() to ty_size(ty).
Scott Olson [Thu, 17 Mar 2016 11:49:12 +0000 (05:49 -0600)]
Shorten ty_to_repr(ty).size() to ty_size(ty).

8 years agowhitespace.
Scott Olson [Thu, 17 Mar 2016 11:40:56 +0000 (05:40 -0600)]
whitespace.

8 years agoCached those outputs.
Scott Olson [Thu, 17 Mar 2016 11:40:27 +0000 (05:40 -0600)]
Cached those outputs.

8 years agoArena allocate and cache type representations.
Scott Olson [Thu, 17 Mar 2016 11:32:00 +0000 (05:32 -0600)]
Arena allocate and cache type representations.

8 years agoUse total size instead of max variant size in aggregates.
Scott Olson [Thu, 17 Mar 2016 10:57:50 +0000 (04:57 -0600)]
Use total size instead of max variant size in aggregates.

8 years agoSimplify make_aggregate_repr.
Scott Olson [Thu, 17 Mar 2016 10:54:04 +0000 (04:54 -0600)]
Simplify make_aggregate_repr.

8 years agoMerge sum and product representations.
Scott Olson [Thu, 17 Mar 2016 10:38:46 +0000 (04:38 -0600)]
Merge sum and product representations.

8 years agoSimplify primitive type reprs.
Scott Olson [Thu, 17 Mar 2016 09:36:06 +0000 (03:36 -0600)]
Simplify primitive type reprs.

8 years agoFix typo.
Scott Olson [Thu, 17 Mar 2016 09:20:49 +0000 (03:20 -0600)]
Fix typo.

8 years agoSimplify Repr::Array's elem size.
Scott Olson [Thu, 17 Mar 2016 09:19:13 +0000 (03:19 -0600)]
Simplify Repr::Array's elem size.

8 years agoSimplify PrimVals.
Scott Olson [Thu, 17 Mar 2016 09:12:15 +0000 (03:12 -0600)]
Simplify PrimVals.

8 years agoSimplify FieldRepr sizes.
Scott Olson [Thu, 17 Mar 2016 09:11:40 +0000 (03:11 -0600)]
Simplify FieldRepr sizes.

8 years agoSimplify some Repr code.
Scott Olson [Thu, 17 Mar 2016 08:53:03 +0000 (02:53 -0600)]
Simplify some Repr code.

8 years agoAdd fixmes to horrible casting code.
Scott Olson [Thu, 17 Mar 2016 07:11:06 +0000 (01:11 -0600)]
Add fixmes to horrible casting code.

8 years agoWIP: Support array indexing including a `get_unchecked` test.
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

8 years agoCreate a pointer-only version of eval_operand. Fix pointer offset.
Scott Olson [Thu, 17 Mar 2016 05:28:09 +0000 (23:28 -0600)]
Create a pointer-only version of eval_operand. Fix pointer offset.

8 years agoUpdate for changes in rustc master.
Scott Olson [Tue, 15 Mar 2016 22:09:08 +0000 (16:09 -0600)]
Update for changes in rustc master.

8 years agoSplit Repr creation out of eval_lvalue.
Scott Olson [Tue, 15 Mar 2016 13:13:31 +0000 (07:13 -0600)]
Split Repr creation out of eval_lvalue.

8 years agoImplement fixed-sized arrays.
Scott Olson [Tue, 15 Mar 2016 11:50:53 +0000 (05:50 -0600)]
Implement fixed-sized arrays.

8 years agoImplement the size_of intrinsic.
Scott Olson [Tue, 15 Mar 2016 06:45:25 +0000 (00:45 -0600)]
Implement the size_of intrinsic.

8 years agoTest the unstable box syntax.
Scott Olson [Tue, 15 Mar 2016 05:25:13 +0000 (23:25 -0600)]
Test the unstable box syntax.

8 years agoAdd unsigned integers.
Scott Olson [Tue, 15 Mar 2016 05:03:31 +0000 (23:03 -0600)]
Add unsigned integers.

8 years agoFix substs in nested generic function calls.
Scott Olson [Tue, 15 Mar 2016 04:26:39 +0000 (22:26 -0600)]
Fix substs in nested generic function calls.

8 years agoClarify output allocations.
Scott Olson [Tue, 15 Mar 2016 04:08:38 +0000 (22:08 -0600)]
Clarify output allocations.

8 years agoImplement Rvalue::Box allocations.
Scott Olson [Tue, 15 Mar 2016 04:05:50 +0000 (22:05 -0600)]
Implement Rvalue::Box allocations.

8 years agoReorganize and simplify.
Scott Olson [Tue, 15 Mar 2016 03:48:00 +0000 (21:48 -0600)]
Reorganize and simplify.

8 years agoImprove execution trace logging.
Scott Olson [Tue, 15 Mar 2016 03:29:18 +0000 (21:29 -0600)]
Improve execution trace logging.

8 years agoExtract Terminator evaluation out of the main loop.
Scott Olson [Tue, 15 Mar 2016 03:18:39 +0000 (21:18 -0600)]
Extract Terminator evaluation out of the main loop.

8 years agoHandle recursive calls without recursing in miri.
Scott Olson [Tue, 15 Mar 2016 02:39:51 +0000 (20:39 -0600)]
Handle recursive calls without recursing in miri.

8 years agoProperly handle generic fn calls.
Scott Olson [Mon, 14 Mar 2016 00:33:26 +0000 (18:33 -0600)]
Properly handle generic fn calls.

8 years agoReimplement cross-crate function calls.
Scott Olson [Sun, 13 Mar 2016 23:19:42 +0000 (17:19 -0600)]
Reimplement cross-crate function calls.