Dan Gohman
b411d01d6d
Use [] instead of .get().unwrap().
...
https://github.com/rust-lang-nursery/rust-clippy/wiki#get_unwrap
2017-08-31 12:47:05 -07:00
Dan Gohman
2efdc0ed37
Update rustfmt to 0.9.0.
2017-08-31 10:44:59 -07:00
Dan Gohman
a0a3401ef1
Don't special-case br_table with an empty table.
...
Empty br_table tables are very uncommon (they're easy for wasm producers to
optimize away), so we don't need to special-case them.
2017-08-30 15:05:00 -07:00
Dan Gohman
8647b10135
Loop over references to containers instead of using explicit iteration methods.
...
https://github.com/rust-lang-nursery/rust-clippy/wiki#explicit_iter_loop
2017-08-30 14:52:17 -07:00
Dan Gohman
03698f6bc8
Use slices rather than Vec borrows.
...
https://github.com/rust-lang-nursery/rust-clippy/wiki#ptr_arg
2017-08-30 14:48:17 -07:00
Dan Gohman
c380df1d04
Eliminate a heap allocation.
2017-08-29 05:44:40 -07:00
Dan Gohman
4afa5df3b6
Remove the last_inst_return field.
...
It's not necessary to explicitly track whether the last instruction is a
return; if the builder for the last block isn't filled by the time we reach
the end, it needs a return to fill it.
2017-08-29 05:09:25 -07:00
Dan Gohman
ea1d053831
Simplify the "am I in unreachable code" predicate.
...
The phantom unreachable stack is only used when the real unreachable stack is
active, so it's sufficient to check whether the real unreachable stack is empty.
2017-08-29 03:36:38 -07:00
Dan Gohman
c71d4fc01b
Remove a stale comment.
2017-08-29 03:30:22 -07:00
Denis Merigoux
ee9989c4b9
Dumped code from the wasm2cretonne repo.
...
Integrated wasm test suite translation as cretonne test
Fixes #146 .
Fixes #143 .
2017-08-28 15:57:43 -07:00