Commit Graph

106 Commits

Author SHA1 Message Date
NikVolf 06277915da some graph structure definition 2019-01-21 17:04:31 +03:00
laizy dc993bdb1b rewire corresponding indices in name section 2019-01-13 09:53:59 +08:00
Sergey Pepyakin 471a9b3fcc Account start function in gas func patching. 2018-12-24 19:28:53 +01:00
Sergey Pepyakin 3db0d60e70 Teach stack limiter to handle start fn 2018-12-24 19:20:33 +01:00
Sergey Pepyakin 836ec93008 Introduce substrate contracts support. 2018-09-30 18:24:36 +01:00
fro 3a7f8836dd the constructor arg removed from 2018-08-06 15:19:01 +03:00
Alexey e491789127 Move build logic to lib (#97)
* refactored out build to lib

* save_raw returns

* fix indentations and other small fixes

* fix build API

* rename Target to SourceTarget

* fix formatting

* make join runtime_type into runtime_type and runtime_version
2018-08-01 17:26:22 +03:00
Alexey 3e7946ab1c fix call_indirect test (#98)
Merged
2018-08-01 13:48:38 +03:00
NikVolf 0837464ec4 change imports 2018-07-09 17:44:04 +03:00
Wei Tang af2d61b9f8 Fix tests and cli 2018-06-29 19:06:33 +08:00
Wei Tang d6f82000ee Update parity-wasm dependency to 0.31 2018-06-29 19:01:06 +08:00
Julian Laubstein 187844f79d Fixed typo 2018-06-06 16:27:20 +02:00
Hernando Castano e6e340fa0a Update matches with single arm to be if-let statements 2018-05-29 22:46:11 -04:00
NikVolf edabee0649 more fixes to fixes 2018-05-18 16:45:04 +04:00
NikVolf 816f14eac7 also call/deploy update 2018-05-18 16:29:35 +04:00
NikVolf f9540c5423 some fixes 2018-05-18 16:22:41 +04: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
Sergey Pepyakin 6c655fadcd Refactor gas metering. 2018-04-24 16:05:13 +03:00
NikVolf 3bb720befa Don't panic on missing import section 2018-04-18 18:34:26 +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 abc9818925 packing errors also 2018-03-27 17:12:55 +03: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 e22180b847 add stack adjustments pass option and disable it by default 2018-03-24 17:38:30 +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
NikVolf 48232fb9bb fix grow memory injector 2018-02-21 20:45:11 +03:00
NikVolf 9e92237c4d add rules with forbid operations 2018-02-19 19:28:12 +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
NikVolf 9d27c6b05a also set max pages in wasm-build 2018-02-05 19:43:36 +03:00
NikVolf e2b8c9431f add stack alteration in wasm-build 2018-02-05 18:22:51 +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
NikVolf d217c1eae0 remove memory symbol from export 2018-02-04 22:12:34 +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
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 6878005822 make unknown-unknown primary 2018-01-30 15:21:17 +03:00
NikVolf ce2d2c57ae fix & update packing test 2017-12-27 16:29:26 +03:00
NikVolf f146187e00 finalize tool 2017-12-27 12:12:09 +03:00