296 Commits

Author SHA1 Message Date
NikVolf
4112b4b961 bump/set versions 2018-05-15 18:14:23 +04:00
Sergey Pepyakin
60a7776f3a
Merge pull request #77 from paritytech/sorpaas/nostd
Executable refactoring and no_std support
2018-05-15 17:03:53 +03:00
Sergey Pepyakin
867a6a185d Use parity-wasm 0.30 instead of git 2018-05-15 16:54:02 +03:00
Wei Tang
245ac89f2d Rename folder tools to cli to keep it consistent with crate naming 2018-05-15 20:44:18 +08:00
Wei Tang
c79681aa5b Rename wasm-utils-tools to wasm-utils-cli 2018-05-15 19:17:59 +08:00
Wei Tang
d36a8cbacc Move all executables to wasm-utils-tools crate 2018-05-15 19:16:31 +08:00
Wei Tang
b4a1fd88b3 Test no_std build in CI 2018-05-15 08:26:52 +08:00
Wei Tang
605c99974b Fix tests 2018-05-15 08:25:35 +08:00
Wei Tang
a30afec0cd Port core util lib to support no_std 2018-05-15 08:22:29 +08:00
Wei Tang
bb47c22618 Refactor executables to separate crates 2018-05-15 08:05:00 +08:00
NikVolf
fd8311983b bump to 0.1.5 2018-04-26 00:56:11 +03:00
Sergey Pepyakin
e9169f2d64
Merge pull request #73 from paritytech/refactor-gas-metering
Refactor gas metering.
2018-04-25 21:45:27 +03:00
Sergey Pepyakin
6c655fadcd Refactor gas metering. 2018-04-24 16:05:13 +03:00
Sergey Pepyakin
aa84f4d2a5
Merge pull request #72 from paritytech/import-section-missing
Don't panic on missing import section
2018-04-18 21:04:01 +03:00
NikVolf
3bb720befa Don't panic on missing import section 2018-04-18 18:34:26 +03:00
Alexey
9796e9e69a
Merge pull request #71 from paritytech/wasm-pack-ensure-data-section
Wasm pack ensure data section
2018-04-06 10:54:06 +03:00
fro
109c441a92 packer test added 2018-04-05 22:25:05 +03:00
fro
a77ca2a974 ensure here that module has the DataSection 2018-04-05 21:34:10 +03:00
NikVolf
7d185f25dc bump version 2018-03-27 18:20:37 +03:00
Nikolay Volf
2c5c6a663a
Merge pull request #70 from paritytech/error-handling
Add some extended error messaging
2018-03-27 23:20:21 +08:00
NikVolf
2248aa58cf do_main() thing 2018-03-27 17:33:10 +03:00
NikVolf
12f67a8836 fix some spelling 2018-03-27 17:15:31 +03:00
NikVolf
abc9818925 packing errors also 2018-03-27 17:12:55 +03:00
NikVolf
a1bc379d12 more handling 2018-03-27 16:52:19 +03:00
NikVolf
0a141ce901 add some extended error handling 2018-03-27 15:23:19 +03:00
NikVolf
e7235c6587 bump version 2018-03-25 20:48:06 +03:00
Nikolay Volf
6b65eb0386
Merge pull request #69 from paritytech/fix-logging-maxheight
Add 'target' for trace logging in max_height
2018-03-26 01:47:43 +08:00
Sergey Pepyakin
1cebd86bf6 Add 'target' for trace logging in max_height
This should greatly reduce log amount when running parity with trace=wasm.
2018-03-25 14:05:42 +03:00
NikVolf
86dbea72e0 bump version 2018-03-24 17:48:55 +03:00
Nikolay Volf
c784fb2cbe
Merge pull request #68 from paritytech/stack-adjust
Make stack adjustments pass optional and disable it by default
2018-03-24 22:48:06 +08:00
NikVolf
e22180b847 add stack adjustments pass option and disable it by default 2018-03-24 17:38:30 +03:00
Nikolay Volf
0380e4fa8e
Update README.md 2018-03-15 19:30:00 +03:00
NikVolf
9d7c070a62 bump version 2018-03-13 16:19:51 +03:00
Nikolay Volf
f5c83d50de
Update README.md 2018-03-13 16:16:52 +03:00
NikVolf
6027d914dc metadata 2018-03-13 16:09:28 +03:00
NikVolf
b0f43bb575 rename crate 2018-03-13 16:02:34 +03:00
Nikolay Volf
de971270f8
Merge pull request #65 from paritytech/update-layout
Update repository layout
2018-03-12 16:23:39 +03:00
NikVolf
fc5f5adf2a update layout for the rest 2018-03-12 15:31:16 +03:00
NikVolf
f326e46f5c wasm-build migration 2018-03-07 13:54:38 +03:00
Sergey Pepyakin
9527b969a4 Impl stack height limiter (#64)
* Initial implementation

* Add wasm-stack-height binary

* Fixes and tracing.

* Doc fixes.

* Fix type resolving for thunks.

* Fix thunk numbering.

* Don't generate thunks for fns with stack_cost = 0

* Diff tests.

* Add table tests.

* Add global test.

* Make tests deterministic.

* Refactoring.

* Clean and refactor.

* Rename Context → Stack in stach_height.

* Don't generate call wrappers if stack_cost = 0

* Errors instead of panics.

* Add with_stack_limit function.

* Fix thunk generation.

* Pass the stack height limit as separate value.

* Use .unwrap_or_default() in diff.rs.

* Remove redundant &.

* Remove simple_test.

* Remove variants of the Error.

* `resolve_func_type` returns an Error.

* Don't unwrap for .last()

* Remove stack_limit from rules::Set

* Rename max_height::compute.
2018-02-27 16:52:37 +03:00
Sergey Pepyakin
69be61876d Ignore .idea 2018-02-22 19:58:45 +03:00
Nikolay Volf
32d54c8540
Merge pull request #63 from paritytech/fix-grow-mem
Fix grow_memory substitution
2018-02-21 22:59:56 +03:00
NikVolf
00033fb50c Merge remote-tracking branch 'origin/master' into fix-grow-mem 2018-02-21 20:46:36 +03:00
NikVolf
48232fb9bb fix grow memory injector 2018-02-21 20:45:11 +03:00
Nikolay Volf
492761a005
Merge pull request #62 from paritytech/parity-wasm-update
Bump parity-wasm version
2018-02-21 19:51:21 +03:00
NikVolf
0c2820064d update parity-wasm 2018-02-21 19:39:00 +03:00
Nikolay Volf
1fbcca8435
Merge pull request #61 from paritytech/float
Update parity-wasm version
2018-02-19 22:43:08 +03:00
NikVolf
fbb5d1d754 also update parity version 2018-02-19 20:05:01 +03:00
Sergey Pepyakin
9e51343948
Merge pull request #60 from paritytech/float
Add rules with option to forbid specific operations
2018-02-19 19:58:44 +03:00
NikVolf
9e92237c4d add rules with forbid operations 2018-02-19 19:28:12 +03:00