]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agoMerge branch 'wip'
Scott Olson [Wed, 15 Jun 2016 11:24:15 +0000 (05:24 -0600)]
Merge branch 'wip'

8 years agoMerge pull request #24 from oli-obk/typesafe_fn_calls
Scott Olson [Wed, 15 Jun 2016 11:05:50 +0000 (05:05 -0600)]
Merge pull request #24 from oli-obk/typesafe_fn_calls

Typesafe fn calls

8 years agoMerge pull request #23 from oli-obk/miri_run_no_more
Scott Olson [Wed, 15 Jun 2016 11:04:26 +0000 (05:04 -0600)]
Merge pull request #23 from oli-obk/miri_run_no_more

don't use `#[miri_run]` anymore, but execute the `main` function

8 years agouse the logging framework instead of println!
Oliver Schneider [Wed, 15 Jun 2016 11:00:51 +0000 (13:00 +0200)]
use the logging framework instead of println!

8 years agopass arguments to `start`
Oliver Schneider [Wed, 15 Jun 2016 10:55:04 +0000 (12:55 +0200)]
pass arguments to `start`

8 years agoRename next_block to block and reorganize Frame fields.
Scott Olson [Wed, 15 Jun 2016 02:13:59 +0000 (20:13 -0600)]
Rename next_block to block and reorganize Frame fields.

8 years agoGet the sysroot (like compiletest) in Miri itself.
Scott Olson [Wed, 15 Jun 2016 01:30:59 +0000 (19:30 -0600)]
Get the sysroot (like compiletest) in Miri itself.

8 years agosysroot_flag is now used for more flags
Oliver Schneider [Tue, 14 Jun 2016 09:54:28 +0000 (11:54 +0200)]
sysroot_flag is now used for more flags

8 years agorun `start` and `main` language item if provided
Oliver Schneider [Tue, 14 Jun 2016 09:52:45 +0000 (11:52 +0200)]
run `start` and `main` language item if provided

8 years agoforbid calling functions through pointers of a different type
Oliver Schneider [Tue, 14 Jun 2016 08:34:54 +0000 (10:34 +0200)]
forbid calling functions through pointers of a different type

8 years agoMerge pull request #21 from oli-obk/function_pointers2
Scott Olson [Mon, 13 Jun 2016 18:19:53 +0000 (12:19 -0600)]
Merge pull request #21 from oli-obk/function_pointers2

Function pointers

8 years agodon't use `#[miri_run]` anymore, but execute the `main` function
Oliver Schneider [Mon, 13 Jun 2016 12:27:05 +0000 (14:27 +0200)]
don't use `#[miri_run]` anymore, but execute the `main` function

8 years agocomment nit
Oliver Schneider [Mon, 13 Jun 2016 13:32:08 +0000 (15:32 +0200)]
comment nit

8 years agoadd tests for fn pointers
Oliver Schneider [Mon, 13 Jun 2016 10:29:01 +0000 (12:29 +0200)]
add tests for fn pointers

8 years agoreport better errors when using a fn ptr as memory and vice versa
Oliver Schneider [Mon, 13 Jun 2016 09:39:15 +0000 (11:39 +0200)]
report better errors when using a fn ptr as memory and vice versa

8 years agoMerge remote-tracking branch 'origin/master' into function_pointers2
Oliver Schneider [Mon, 13 Jun 2016 09:26:25 +0000 (11:26 +0200)]
Merge remote-tracking branch 'origin/master' into function_pointers2

8 years agoMerge remote-tracking branch 'origin/master' into function_pointers2
Oliver Schneider [Mon, 13 Jun 2016 09:24:01 +0000 (11:24 +0200)]
Merge remote-tracking branch 'origin/master' into function_pointers2

8 years agoMerge pull request #1 from solson/fixup-function_pointers2
Oliver Schneider [Mon, 13 Jun 2016 08:43:59 +0000 (10:43 +0200)]
Merge pull request #1 from solson/fixup-function_pointers2

Fixup function_pointers2

8 years agoSimplify compiletest.
Scott Olson [Mon, 13 Jun 2016 04:26:54 +0000 (22:26 -0600)]
Simplify compiletest.

8 years agoGet the sysroot in a better way (stolen from clippy).
Scott Olson [Mon, 13 Jun 2016 04:00:53 +0000 (22:00 -0600)]
Get the sysroot in a better way (stolen from clippy).

8 years agoDisable a test that breaks on 32-bit.
Scott Olson [Mon, 13 Jun 2016 03:38:33 +0000 (21:38 -0600)]
Disable a test that breaks on 32-bit.

8 years agoAdd a casting hack to make more tests pass.
Scott Olson [Mon, 13 Jun 2016 03:36:02 +0000 (21:36 -0600)]
Add a casting hack to make more tests pass.

8 years agoSimplify the common case of type_size and type_layout.
Scott Olson [Mon, 13 Jun 2016 03:16:25 +0000 (21:16 -0600)]
Simplify the common case of type_size and type_layout.

8 years agoHandle Misc casts slightly more sanely.
Scott Olson [Mon, 13 Jun 2016 03:00:23 +0000 (21:00 -0600)]
Handle Misc casts slightly more sanely.

Still insanely, though.

8 years agoImplement reallocating to a smaller size.
Scott Olson [Mon, 13 Jun 2016 02:50:17 +0000 (20:50 -0600)]
Implement reallocating to a smaller size.

8 years agoFix bug in relocation ranges.
Scott Olson [Mon, 13 Jun 2016 02:42:08 +0000 (20:42 -0600)]
Fix bug in relocation ranges.

8 years agoUnset RUST_NEW_ERROR_FORMAT in compiletest.
Scott Olson [Sun, 12 Jun 2016 22:05:49 +0000 (16:05 -0600)]
Unset RUST_NEW_ERROR_FORMAT in compiletest.

8 years agoMerge remote-tracking branch 'oli/function_pointers2' into fixup-function_pointers2
Scott Olson [Sat, 11 Jun 2016 22:46:01 +0000 (16:46 -0600)]
Merge remote-tracking branch 'oli/function_pointers2' into fixup-function_pointers2

8 years agoAdd hacky stub version of CheckedBinaryOp.
Scott Olson [Sat, 11 Jun 2016 19:10:42 +0000 (13:10 -0600)]
Add hacky stub version of CheckedBinaryOp.

8 years agoRemove inception test for now.
Scott Olson [Sat, 11 Jun 2016 19:10:25 +0000 (13:10 -0600)]
Remove inception test for now.

8 years agoFix infinite loop when debug trace is disabled.
Scott Olson [Sat, 11 Jun 2016 18:38:50 +0000 (12:38 -0600)]
Fix infinite loop when debug trace is disabled.

8 years agoUpdate for changes in rustc nightly.
Scott Olson [Sat, 11 Jun 2016 18:38:28 +0000 (12:38 -0600)]
Update for changes in rustc nightly.

8 years agofunction pointers
Oliver Schneider [Wed, 8 Jun 2016 11:43:34 +0000 (13:43 +0200)]
function pointers

8 years agodisplay the full path to the function if no MIR is found
Oliver Schneider [Wed, 8 Jun 2016 11:31:24 +0000 (13:31 +0200)]
display the full path to the function if no MIR is found

8 years agowe already have the constant's type, no need to recompute from the def_id
Oliver Schneider [Thu, 9 Jun 2016 08:45:06 +0000 (10:45 +0200)]
we already have the constant's type, no need to recompute from the def_id

8 years agoMerge pull request #20 from oli-obk/error_reporting
Scott Olson [Fri, 10 Jun 2016 15:54:22 +0000 (09:54 -0600)]
Merge pull request #20 from oli-obk/error_reporting

various fixes and refactorings

8 years agoadjust lifetimes and bindings to the GlobalEvalContext -> EvalContext rename
Oliver Schneider [Fri, 10 Jun 2016 14:56:04 +0000 (16:56 +0200)]
adjust lifetimes and bindings to the GlobalEvalContext -> EvalContext rename

8 years agostyle nit
Oliver Schneider [Fri, 10 Jun 2016 14:32:39 +0000 (16:32 +0200)]
style nit

8 years agoremove unused method
Oliver Schneider [Fri, 10 Jun 2016 14:20:25 +0000 (16:20 +0200)]
remove unused method

8 years agorename GlobalEvalContext to EvalContext
Oliver Schneider [Fri, 10 Jun 2016 14:20:17 +0000 (16:20 +0200)]
rename GlobalEvalContext to EvalContext

8 years agoexpose a minimal API and use it in the binary
Oliver Schneider [Fri, 10 Jun 2016 11:01:51 +0000 (13:01 +0200)]
expose a minimal API and use it in the binary

8 years agosimplify the stepper interface
Oliver Schneider [Fri, 10 Jun 2016 10:34:15 +0000 (12:34 +0200)]
simplify the stepper interface

8 years agoMerge pull request #18 from oli-obk/hold_the_state
Scott Olson [Fri, 10 Jun 2016 03:13:20 +0000 (21:13 -0600)]
Merge pull request #18 from oli-obk/hold_the_state

Hold the state

8 years agoget rid of the constants cache in the stepper
Oliver Schneider [Thu, 9 Jun 2016 15:24:42 +0000 (17:24 +0200)]
get rid of the constants cache in the stepper

this is possible due to the removal of `FnEvalContext`

8 years agothe `type_size` method's `substs` argument allows computing the locals before pushing...
Oliver Schneider [Thu, 9 Jun 2016 15:23:58 +0000 (17:23 +0200)]
the `type_size` method's `substs` argument allows computing the locals before pushing the stack frame

8 years agoinline the `call` method into `interpret_start_points`
Oliver Schneider [Thu, 9 Jun 2016 14:49:40 +0000 (16:49 +0200)]
inline the `call` method into `interpret_start_points`

8 years agoprint errors in one central location
Oliver Schneider [Thu, 9 Jun 2016 14:13:42 +0000 (16:13 +0200)]
print errors in one central location

8 years agoNo more terminators
Oliver Schneider [Thu, 9 Jun 2016 14:08:34 +0000 (16:08 +0200)]
No more terminators

8 years agomerge FnEvalContext into GlobalEvalContext
Oliver Schneider [Thu, 9 Jun 2016 14:01:53 +0000 (16:01 +0200)]
merge FnEvalContext into GlobalEvalContext

8 years agorename `static_item` to `global_item`
Oliver Schneider [Thu, 9 Jun 2016 09:27:12 +0000 (11:27 +0200)]
rename `static_item` to `global_item`

8 years agomake sure globals that yield function pointers aren't treated like functions
Oliver Schneider [Thu, 9 Jun 2016 09:27:02 +0000 (11:27 +0200)]
make sure globals that yield function pointers aren't treated like functions

8 years agowe already have the constant's type, no need to recompute from the def_id
Oliver Schneider [Thu, 9 Jun 2016 09:16:09 +0000 (11:16 +0200)]
we already have the constant's type, no need to recompute from the def_id

8 years agorefactor away the closures and `Event` enum
Oliver Schneider [Thu, 9 Jun 2016 08:52:45 +0000 (10:52 +0200)]
refactor away the closures and `Event` enum

8 years agothe statement/terminator has already been computed, don't do it again
Oliver Schneider [Wed, 8 Jun 2016 10:47:24 +0000 (12:47 +0200)]
the statement/terminator has already been computed, don't do it again

8 years agoimprove the docs of ConstantId
Oliver Schneider [Wed, 8 Jun 2016 10:35:15 +0000 (12:35 +0200)]
improve the docs of ConstantId

8 years agoimprove fn argument naming
Oliver Schneider [Wed, 8 Jun 2016 10:30:25 +0000 (12:30 +0200)]
improve fn argument naming

8 years agoput `ConstantId`'s common fields into a struct
Oliver Schneider [Wed, 8 Jun 2016 09:46:37 +0000 (11:46 +0200)]
put `ConstantId`'s common fields into a struct

8 years agono more function pointers
Oliver Schneider [Wed, 8 Jun 2016 09:34:56 +0000 (11:34 +0200)]
no more function pointers

8 years agodirectly push stackframes for constants when they are encountered
Oliver Schneider [Wed, 8 Jun 2016 09:11:33 +0000 (11:11 +0200)]
directly push stackframes for constants when they are encountered

8 years agorebase leftovers
Oliver Schneider [Wed, 8 Jun 2016 09:11:08 +0000 (11:11 +0200)]
rebase leftovers

8 years agodon't cache the MIR in the Stepper
Oliver Schneider [Wed, 8 Jun 2016 08:17:26 +0000 (10:17 +0200)]
don't cache the MIR in the Stepper

8 years agoclippy nits
Oliver Schneider [Mon, 6 Jun 2016 13:24:56 +0000 (15:24 +0200)]
clippy nits

8 years agomove load_mir to the global eval context
Oliver Schneider [Mon, 6 Jun 2016 13:22:33 +0000 (15:22 +0200)]
move load_mir to the global eval context

8 years agomove some methods from FnEvalContext to GlobalEvalContext
Oliver Schneider [Wed, 8 Jun 2016 07:38:59 +0000 (09:38 +0200)]
move some methods from FnEvalContext to GlobalEvalContext

8 years agoglobally cache statics and promoteds
Oliver Schneider [Fri, 3 Jun 2016 15:41:36 +0000 (17:41 +0200)]
globally cache statics and promoteds

8 years agostop producing executable files in the root folder during benchmarks...
Oliver Schneider [Fri, 3 Jun 2016 15:14:36 +0000 (17:14 +0200)]
stop producing executable files in the root folder during benchmarks...

8 years agomove constants stack to stackframe
Oliver Schneider [Fri, 3 Jun 2016 15:08:51 +0000 (17:08 +0200)]
move constants stack to stackframe

8 years agoupdate documentation
Oliver Schneider [Fri, 3 Jun 2016 15:04:08 +0000 (17:04 +0200)]
update documentation

8 years agofactor out the statement index into the stackframe
Oliver Schneider [Fri, 3 Jun 2016 14:57:47 +0000 (16:57 +0200)]
factor out the statement index into the stackframe

8 years agostore the current block in the frame
Oliver Schneider [Fri, 3 Jun 2016 14:51:51 +0000 (16:51 +0200)]
store the current block in the frame

8 years agojit interpretation of constants
Oliver Schneider [Fri, 3 Jun 2016 13:48:56 +0000 (15:48 +0200)]
jit interpretation of constants

8 years agomerge the three stacks in the interpreter
Oliver Schneider [Thu, 2 Jun 2016 16:21:32 +0000 (18:21 +0200)]
merge the three stacks in the interpreter

8 years agoremove a debug message that snuck into the commit
Oliver Schneider [Thu, 2 Jun 2016 16:03:22 +0000 (18:03 +0200)]
remove a debug message that snuck into the commit

8 years agoadd a const fn test
Oliver Schneider [Thu, 2 Jun 2016 15:36:05 +0000 (17:36 +0200)]
add a const fn test

8 years agoalso step through promoteds, constants and statics
Oliver Schneider [Thu, 2 Jun 2016 15:05:17 +0000 (17:05 +0200)]
also step through promoteds, constants and statics

8 years agonote that not all literal items are function pointers
Oliver Schneider [Wed, 1 Jun 2016 17:20:23 +0000 (19:20 +0200)]
note that not all literal items are function pointers

8 years agorename `iterator` module to `stepper`
Oliver Schneider [Wed, 1 Jun 2016 17:17:18 +0000 (19:17 +0200)]
rename `iterator` module to `stepper`

8 years agostyle: spaces between functions
Oliver Schneider [Wed, 1 Jun 2016 17:01:40 +0000 (19:01 +0200)]
style: spaces between functions

8 years agostepwise interpretation
Oliver Schneider [Wed, 1 Jun 2016 15:05:20 +0000 (17:05 +0200)]
stepwise interpretation

8 years agodon't clone the MIR Rc in every iteration
Oliver Schneider [Wed, 1 Jun 2016 11:55:16 +0000 (13:55 +0200)]
don't clone the MIR Rc in every iteration

8 years agoremove one layer of indirection when interpreting const/static/main functions
Oliver Schneider [Wed, 1 Jun 2016 12:33:37 +0000 (14:33 +0200)]
remove one layer of indirection when interpreting const/static/main functions

8 years agocan't evaluate failed assertions yet
Oliver Schneider [Tue, 31 May 2016 16:26:03 +0000 (18:26 +0200)]
can't evaluate failed assertions yet

8 years agoMerge pull request #16 from oli-obk/logs
Scott Olson [Wed, 1 Jun 2016 16:48:27 +0000 (10:48 -0600)]
Merge pull request #16 from oli-obk/logs

use the `log` crate + `env_logger`

8 years agoremove intermediate vars
Oliver Schneider [Wed, 1 Jun 2016 16:42:57 +0000 (18:42 +0200)]
remove intermediate vars

8 years agouse format! compile time magics for indentation
Oliver Schneider [Wed, 1 Jun 2016 16:33:29 +0000 (18:33 +0200)]
use format! compile time magics for indentation

8 years agowraparound when reaching indentation lvl 40
Oliver Schneider [Wed, 1 Jun 2016 16:18:01 +0000 (18:18 +0200)]
wraparound when reaching indentation lvl 40

8 years agouse a number for the maximum indentation instead of relying on str::len()
Oliver Schneider [Wed, 1 Jun 2016 15:58:50 +0000 (17:58 +0200)]
use a number for the maximum indentation instead of relying on str::len()

8 years agouse MIRI_LOG instead of RUST_LOG, because rustc's output is very verbose
Oliver Schneider [Wed, 1 Jun 2016 15:32:57 +0000 (17:32 +0200)]
use MIRI_LOG instead of RUST_LOG, because rustc's output is very verbose

8 years agoMerge pull request #15 from oli-obk/step_by_step
Scott Olson [Wed, 1 Jun 2016 13:44:18 +0000 (07:44 -0600)]
Merge pull request #15 from oli-obk/step_by_step

4 byte pointers + tests

8 years agore-introduce the module name to the logs and show vertical bars
Oliver Schneider [Tue, 31 May 2016 14:51:30 +0000 (16:51 +0200)]
re-introduce the module name to the logs and show vertical bars

8 years agofallout because compiletest tried to use rustc's log crate
Oliver Schneider [Tue, 31 May 2016 14:41:26 +0000 (16:41 +0200)]
fallout because compiletest tried to use rustc's log crate

8 years agoadd the `log` crate + `env_logger` to be able to choose the log granularity at runtime
Oliver Schneider [Mon, 30 May 2016 16:09:52 +0000 (18:09 +0200)]
add the `log` crate + `env_logger` to be able to choose the log granularity at runtime

8 years agoadd dependencies and run cargo update
Oliver Schneider [Tue, 31 May 2016 14:39:52 +0000 (16:39 +0200)]
add dependencies and run cargo update

8 years agoadd a note to Memory::new mentioning tcx.data_layout
Oliver Schneider [Wed, 1 Jun 2016 09:24:23 +0000 (11:24 +0200)]
add a note to Memory::new mentioning tcx.data_layout

8 years agoimprove out of bounds error message
Oliver Schneider [Wed, 1 Jun 2016 09:22:37 +0000 (11:22 +0200)]
improve out of bounds error message

8 years ago4byte pointers
Oliver Schneider [Tue, 31 May 2016 10:05:25 +0000 (12:05 +0200)]
4byte pointers

8 years agoreplace `panic!`s with `Result`
Oliver Schneider [Mon, 30 May 2016 13:27:52 +0000 (15:27 +0200)]
replace `panic!`s with `Result`

8 years agodon't generate test suites
Oliver Schneider [Mon, 30 May 2016 13:27:10 +0000 (15:27 +0200)]
don't generate test suites

8 years agoMerge pull request #13 from oli-obk/master
Scott Olson [Mon, 30 May 2016 19:01:11 +0000 (13:01 -0600)]
Merge pull request #13 from oli-obk/master

benchmarks

8 years agoadd more benchmarks
Oliver Schneider [Mon, 30 May 2016 12:05:50 +0000 (14:05 +0200)]
add more benchmarks