Commit Graph

174 Commits

Author SHA1 Message Date
holygits c47adc1bd4 Refactor TargetRuntime as enum
Don't rename create symbol for substrate binaries
2019-01-23 17:03:53 +13:00
NikVolf c3833efca7 fix for nightly 2019-01-22 20:39:51 +03:00
NikVolf 4e871c65e2 generate instructions on module generation 2019-01-22 20:37:36 +03:00
NikVolf 48c1c6e72a code mapping 2019-01-22 20:30:50 +03:00
NikVolf d60340762b public api exposure and fix warnings 2019-01-22 18:28:15 +03:00
NikVolf da5b2ca5f6 rest of sections generation 2019-01-22 18:21:30 +03:00
NikVolf c520d334cd ordering and filtering 2019-01-22 17:14:37 +03:00
NikVolf 76b6743c64 generation of more sections 2019-01-22 16:40:28 +03:00
NikVolf d6c6cefcf1 generation - import 2019-01-22 16:11:04 +03:00
NikVolf 86da6439d1 data and elements 2019-01-22 15:15:17 +03:00
NikVolf ed1c7b1b51 better exports 2019-01-22 14:42:57 +03:00
NikVolf cf10b7d5d9 exports and fix for no-std 2019-01-22 14:31:21 +03:00
NikVolf dd9169e30f table and memory 2019-01-22 13:03:11 +03:00
NikVolf be40285a67 func and tests 2019-01-22 12:58:29 +03:00
NikVolf ba45e15567 remove unused 2019-01-22 12:39:09 +03:00
NikVolf 33ff0cbe1d refactor to reflist 2019-01-22 12:19:29 +03:00
NikVolf db4070b96c ref list impl 2019-01-22 12:08:25 +03:00
NikVolf 80d80a37d9 import rewiring 2019-01-21 17:56:30 +03:00
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