829 Commits

Author SHA1 Message Date
Alex Crichton
8c5ef589bc Add support for atomic instructions
This commit adds support for the currently proposed atomic instructions in the
wasm spec. The implementaiton matches what LLVM currently has implemented, and
while this may be tweaked over time it should be good enough to work with LLVM
today!

https://github.com/WebAssembly/threads/blob/master/proposals/threads/Overview.md
2018-08-26 16:01:05 -07:00
NikVolf
b585340efb bump to 0.31.3 (metadata) 2018-08-04 22:33:51 +03:00
Sergey Pepyakin
f059b477de
Merge pull request #222 from fitzgen/patch-1
Cargo.toml: Add "categories" metadata
2018-08-04 12:36:06 +03:00
Nick Fitzgerald
5c5f1a3e3a
Cargo.toml: Add "categories" metadata
Adds "wasm" and "parser-implementations" categories.
2018-08-03 11:09:31 -07:00
NikVolf
6845263447 bump to 0.31.2 2018-08-03 15:52:09 +03:00
Sergey Pepyakin
3b19aa7cd2
Merge pull request #221 from alexcrichton/less-assertions
Move `slow_len` behind a `slow_assertions` #[cfg]
2018-08-03 10:57:23 +03:00
Alex Crichton
0dd6dc28f0 Move slow_len behind a slow_assertions #[cfg]
I've been experimenting with running `wasm-bindgen` (which uses `parity-wasm`
for decoding/encoding wasm modules) in debug mode where possible to reduce build
times on CI and otherwise make it more feasible to run locally. Unfortunately
the wasm modules that `wasm-bindgen` handles are sometimes pretty huge, notably
with lots of debuginfo and tons of items that are pruned later with `wasm-gc`
(and in general debug mode Rust binaries are quite large).

In some profilng one of the hottest functions in `parity-wasm` is the
`IndexMap::slow_len` function. It looks like this is an internal sanity check
only turned on when `debug_assertions` are enabled (which is good!). In this
commit, though, this check is moved behind a new `--cfg slow_assertions` flag
instead of the standard `debug_assertions`. Travis configuration has been
tweaked to always pass this flag, and it means that `slow_len` by default won't
get compiled into downstream crates in debug mode.

I'm curious to see what y'all think of this change! This is definitely not an
issue in release mode, so it's purely a slight optimization for debug mode. If
you'd prefer to not merge this and keep this on in debug mode by default, that's
also totally ok!
2018-08-02 13:16:31 -07:00
Nikolay Volf
4cbe905348
Merge pull request #220 from alexcrichton/less-to-vec
Remove an unneeded allocation in `Write for CountedWriter`
2018-08-02 20:42:47 +03:00
Alex Crichton
2a6911689e Remove an unneeded allocation in Write for CountedWriter
No need to have the intermediate `to_vec`!
2018-08-02 08:37:33 -07:00
NikVolf
e6df7e4f43 bump to 0.31.1 2018-07-17 15:58:14 +03:00
Nikolay Volf
5d5d571681
Merge pull request #218 from paritytech/reuse-sig
Reuse types when pushing signatures
2018-07-17 15:57:36 +03:00
NikVolf
3aaaa56bdb add test 2018-07-16 14:21:59 +03:00
NikVolf
98ed8c9d68 reuse types when pushing signatures 2018-07-16 14:19:02 +03:00
Alexey
d54cbf5b7b
Merge pull request #216 from alfiedotwtf/master
Typo
2018-07-03 14:24:56 +03:00
Alfie John
96ea4fdc19 Typo 2018-07-03 14:50:29 +10:00
Nikolay Volf
0754010bdc
Update README.md 2018-05-24 13:31:00 +03:00
Nikolay Volf
5aea1e96ea
Update README.md 2018-05-24 13:29:57 +03:00
Nikolay Volf
2c014f8915
Update README.md 2018-05-24 13:29:40 +03:00
NikVolf
c83bf3cb24 bump version 2018-05-21 22:45:52 +03:00
Nikolay Volf
f9dbb0cdb1
Merge pull request #214 from paritytech/code-section
Rename Opcode to Instruction
2018-05-21 22:29:05 +03:00
NikVolf
a415aa91ea also for storage 2018-05-21 17:16:40 +03:00
NikVolf
102a1c4f5c consts and to consts 2018-05-21 17:02:55 +03:00
NikVolf
8de5ac71e7 rename Opcode to Instruction 2018-05-21 14:15:09 +03:00
NikVolf
284e7998a2 bump version 2018-05-15 15:21:00 +04:00
Sergey Pepyakin
5437e19578
Merge pull request #213 from paritytech/sorpaas/default-features-false
typo: no-default-features -> default-features
2018-05-15 12:33:57 +03:00
Wei Tang
cde822ad6c
typo: no-default-features -> default-features
Should be declared `default-features`. Ooops!
2018-05-15 17:23:57 +08:00
Sergey Pepyakin
76f781a6d2
Merge pull request #212 from paritytech/sorpaas/byteorder-nostd
Handle byteorder std dependency
2018-05-15 11:37:18 +03:00
Wei Tang
391f86d823 Handle byteorder std dependency 2018-05-15 08:37:29 +08:00
Nikolay Volf
25d35c2820
Merge pull request #211 from paritytech/bump-add-desc
Bump version and add readme
2018-05-14 22:16:06 +03:00
NikVolf
3c63912082 bump version and add readme 2018-05-14 21:11:26 +04:00
Sergey Pepyakin
ff809ba89b Add rls to .gitingore 2018-05-14 19:44:49 +03:00
Sergey Pepyakin
db7cfa237c
Merge pull request #210 from paritytech/no_std
no_std
2018-05-14 17:43:47 +03:00
Sergey Pepyakin
d1de2cfb61 Impl Write and Read for std::io::{Write, Read} 2018-05-14 15:16:38 +03:00
Sergey Pepyakin
85261e9730 Update .travis.yml. 2018-05-14 15:15:31 +03:00
Sergey Pepyakin
6aed69d9ed Try fix travis 2018-05-11 19:22:13 +03:00
Sergey Pepyakin
c5f1d26b2a Update travis config to build no_std. 2018-05-11 19:07:08 +03:00
Sergey Pepyakin
c4e7918a96 Add explicit ToOwned imports. 2018-05-11 19:06:11 +03:00
Sergey Pepyakin
eec09f24f3 Introduce io module 2018-05-11 19:03:32 +03:00
Sergey Pepyakin
bfa0b6c156 Introduce no_std feature
Explicit import from std
2018-05-11 19:03:22 +03:00
NikVolf
2650fc14c4 bump version 2018-04-25 16:11:35 +03:00
Nikolay Volf
51d4f0d549
Merge pull request #207 from alexcrichton/fix-overflow
Fix an arithmetic overflow on 32-bit
2018-04-17 21:50:40 +03:00
Alex Crichton
b8652258c4 Fix an arithmetic overflow on 32-bit
The current test suite fails on 32-bit targets due to an arithmetic overflow,
but it was pretty easy to avoid!
2018-04-17 11:39:27 -07:00
Nikolay Volf
526590ccbc
Merge pull request #206 from paritytech/remove-unused-crate-log
Remove unused dependencies
2018-04-06 21:35:07 +08:00
niklasad1
df381c4542
remove parking_lot dependency 2018-04-06 15:23:37 +02:00
niklasad1
bee317cf52
remove unused log dependency 2018-04-06 14:58:19 +02:00
Sergey Pepyakin
2af96cc2f8
Merge pull request #205 from flier/more_partial_eq
add more PartialEq for testing
2018-04-04 13:40:51 +03:00
Flier Lu
689ecd8fcd add more PartialEq for testing 2018-04-04 18:15:49 +08:00
Alexey
ffe281112b
Merge pull request #204 from paritytech/remove-links
Remove link in doc comment
2018-03-30 23:43:22 +03:00
NikVolf
e64988ece8 remove link 2018-03-30 18:52:41 +03:00
Nikolay Volf
bac39f62a0
Merge pull request #201 from paritytech/fix-leb-i64
Fix signature return types amount specification
2018-03-27 00:54:26 +08:00