415 Commits

Author SHA1 Message Date
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
Nikolay Volf
bc475275c1
Merge pull request #59 from paritytech/fix-pack
Fix pack with new dispatch/return methods
2018-02-09 13:31:16 +03:00
NikVolf
68e03ef150 match derefed 2018-02-08 14:45:57 +03:00
NikVolf
7dd716b6bc finish with ret introduction 2018-02-08 01:17:39 +03:00
NikVolf
614cdbf131 refactor pack 2018-02-08 00:49:52 +03:00
Nikolay Volf
81e53080d3
Merge pull request #56 from paritytech/update-stack
Also set max pages in wasm-build
2018-02-05 20:06:31 +03:00
NikVolf
9d27c6b05a also set max pages in wasm-build 2018-02-05 19:43:36 +03:00
Nikolay Volf
6fdc1c4ed4
Merge pull request #55 from paritytech/update-stack
Add stack limit alteration in wasm-build
2018-02-05 19:00:13 +03:00
NikVolf
32a2d19f3a add comment about 48kb 2018-02-05 18:26:59 +03:00
NikVolf
e2b8c9431f add stack alteration in wasm-build 2018-02-05 18:22:51 +03:00
Nikolay Volf
3feb8da52b
Merge pull request #54 from paritytech/fix-grow
Fix grow_memory transform
2018-02-05 16:42:11 +03:00
NikVolf
67a542927a fix attempt 2018-02-05 15:35:26 +03:00
Nikolay Volf
0345b7c9c8
Merge pull request #53 from paritytech/grow-gas
Add gas metering injection for grow_memory
2018-02-05 13:16:29 +03:00
NikVolf
d220107dab add validation via wabt-rs and fix 2018-02-05 00:43:28 +03:00
NikVolf
24dc9e3f15 add grow memory injecting 2018-02-05 00:32:51 +03:00
Nikolay Volf
1de52fcfe5
Merge pull request #52 from paritytech/unknown-lift
Update wasm32-unknown-unknown handling
2018-02-04 23:12:18 +03:00
NikVolf
d217c1eae0 remove memory symbol from export 2018-02-04 22:12:34 +03:00
NikVolf
4860b2f9a8 externalize mem for unknown 2018-02-01 19:42:27 +03:00
NikVolf
43d30577f9 Merge remote-tracking branch 'origin/master' into unknown-lift 2018-02-01 19:42:14 +03:00
Nikolay Volf
9bf30e2c80
Merge pull request #49 from paritytech/preserve-start
Preserve start function
2018-02-01 18:32:23 +03:00
NikVolf
c7e2ec5c60 Merge branch 'preserve-start' into unknown-lift 2018-02-01 15:26:14 +03:00
NikVolf
89457adf73 also rewire func index 2018-02-01 15:25:59 +03:00
NikVolf
e25b6cf6e3 fix index 2018-02-01 15:20:49 +03:00
NikVolf
4c0fd7e410 fix index 2018-02-01 15:20:23 +03:00
NikVolf
52da6f00e9 Merge branch 'preserve-start' into unknown-lift 2018-02-01 15:17:48 +03:00
NikVolf
c216d98b7e start function 2018-02-01 15:16:19 +03:00
Nikolay Volf
f2eaaf391e
Merge pull request #48 from paritytech/parity-wasm-update
Fix dependencies and deprecate (delete) test
2018-01-30 20:05:01 +03:00
NikVolf
a1ecded58c fix dependencies and deprecate test 2018-01-30 19:35:51 +03:00
NikVolf
057acd8995 fix warnings 2018-01-30 15:31:03 +03:00
NikVolf
b1b94e9a0c emscripten fix 2018-01-30 15:21:56 +03:00
NikVolf
6878005822 make unknown-unknown primary 2018-01-30 15:21:17 +03:00
Nikolay Volf
a228b43f19
Merge pull request #46 from paritytech/unknown-target-start
wasm-unknown-unknown: remove start section from a module
2018-01-10 11:49:48 +04:00