Commit Graph

73 Commits

Author SHA1 Message Date
Sergey Pepyakin 6147ad0a2e Introduce ValueStack
Also, hide FunctionContext and remove some stale code
2018-02-01 11:48:59 +03:00
Sergey Pepyakin e132b0113d Another protions of assert pops 2018-02-01 11:48:59 +03:00
Sergey Pepyakin a69e21599f Assert pops. 2018-02-01 11:48:59 +03:00
Sergey Pepyakin 19aaba8eb8 if: int condition on stack top 2018-02-01 11:48:59 +03:00
Sergey Pepyakin 508c918522 select: int condition on stack top 2018-02-01 11:48:59 +03:00
Sergey Pepyakin ee7ef764de Use traps in value to convey an error 2018-02-01 11:48:58 +03:00
Sergey Pepyakin 9bce81b7a1 DivisionByZero and InvalidConversionToInt 2018-02-01 11:48:58 +03:00
Sergey Pepyakin 4765aecf78 call_indirect traps. 2018-02-01 11:48:58 +03:00
Sergey Pepyakin 19c56c42b6 from_little_endian conversion can't fail. 2018-02-01 11:48:58 +03:00
Sergey Pepyakin ace9191299 MemoryAccessOutOfBounds for mem get and set. 2018-02-01 11:48:58 +03:00
Sergey Pepyakin 65a339847a from_little_endian use slice instead of vec. 2018-02-01 11:48:58 +03:00
Sergey Pepyakin 69b9a7753c Add MemoryOutOfBounds trap. 2018-02-01 11:48:58 +03:00
Sergey Pepyakin 4821368c52 get_local can't fail. 2018-02-01 11:48:58 +03:00
Sergey Pepyakin e529e3208b Introduce Trap struct. 2018-02-01 11:48:58 +03:00
Sergey Pepyakin 3ad9f07e93 Add handy scripts (#30)
* Extract test.sh and doc.sh from .travis.yml

* check.sh
2018-01-31 22:13:50 +03:00
Sergey Pepyakin 551c992730
4th iteration on documentation (#22)
* Rename LoadedModule to Module

* Hide TryInto

* Fix rustdoc tests.

* Rename from_parity_wasm_module and doc it.

* Document `Module::from_buffer`

* Tidy Module docs

* Some rustdoc headers.

* Document FuncInstance::{alloc_host, signature}

* Document descriptors.

* Doc NotStartedModuleRef

* Fix cargo-deadlinks
2018-01-26 19:24:40 +03:00
Nikolay Volf aa4c8fe3bb Update to most recent parity-wasm (#21)
* Update to most recent parity-wasm

* fix validation
2018-01-26 18:35:12 +03:00
Nikolay Volf c1f05c822b
Merge pull request #20 from pepyakin/check-deadlinks
Check for dead links in rustdoc
2018-01-26 18:20:24 +03:00
Nikolay Volf aa42ac9e70
Merge pull request #15 from pepyakin/fuzz-load
Fuzz loading/validation against wabt.
2018-01-26 16:54:07 +03:00
Sergey Pepyakin eb968766f5 Check with deadlinks 2018-01-26 16:47:30 +03:00
Sergey Pepyakin e1216f633f Fix indent 2018-01-26 16:28:36 +03:00
Sergey Pepyakin 500538099d Change version to 0.0.0 2018-01-26 11:57:32 +03:00
Sergey Pepyakin 1dbb678d34
Add issue number for TODO 2018-01-26 11:53:30 +03:00
Nikolay Volf 6f3ec93952
Merge pull request #17 from pepyakin/docs-3
Third iteration on documenation.
2018-01-25 23:05:45 +03:00
Sergey Pepyakin cc24d8a77a Fix idents 2018-01-25 19:56:52 +03:00
Sergey Pepyakin bc89a20b96 Third iteration on documenation. 2018-01-25 18:17:25 +03:00
Sergey Pepyakin d78677ef00 Fuzz loading/validation against wabt. 2018-01-24 21:32:46 +03:00
Nikolay Volf 51caaff556
Merge pull request #14 from pepyakin/docs-2
Second iteration on documenation.
2018-01-24 19:14:45 +03:00
Sergey Pepyakin 230abc6a91 Second iteration on documenation. 2018-01-24 18:58:22 +03:00
Nikolay Volf f6f23accdd
Merge pull request #13 from pepyakin/static-signatures
Allow static signatures
2018-01-24 14:28:31 +03:00
NikVolf 65f08eb44c allow static signatures 2018-01-24 14:14:24 +03:00
Sergey Pepyakin 9dc45eacbf Update README.md 2018-01-23 20:07:09 +03:00
Nikolay Volf 429aaa2a4e
Merge pull request #11 from pepyakin/docs-1
First iteration on documentation.
2018-01-23 20:00:29 +03:00
Nikolay Volf ab5e3e22f3
Merge pull request #9 from pepyakin/add-license
Migrate missing license files from parity-wasm
2018-01-23 20:00:13 +03:00
Sergey Pepyakin 4facf4ff27 Update copyrights 2018-01-23 19:51:29 +03:00
Sergey Pepyakin 8bfa5fce2e Add ##contribution section. 2018-01-23 19:47:23 +03:00
Sergey Pepyakin 41045019ef Add #License header 2018-01-23 19:43:56 +03:00
Nikolay Volf 273eba2c45
Merge pull request #10 from pepyakin/couple-of-fixes
Couple of fixes
2018-01-23 19:42:17 +03:00
Nikolay Volf 7828d8cc56
Merge pull request #8 from pepyakin/error-sync-and-send
Make Error: Sync + Send
2018-01-23 19:40:39 +03:00
Sergey Pepyakin 41983cff0a First iteration on documentation. 2018-01-23 19:38:49 +03:00
Sergey Pepyakin a98852e62a Couple of fixes 2018-01-23 18:12:52 +03:00
Sergey Pepyakin 55342dceaf
Merge pull request #7 from pepyakin/fix-wrapper
Fix examples/tests with proper addressing further casts
2018-01-23 17:46:18 +03:00
Sergey Pepyakin fcdef5ffc3 Migrate missing license files from parity-wasm 2018-01-23 17:24:21 +03:00
Sergey Pepyakin c274459bab Make Error: Sync + Send 2018-01-23 16:57:09 +03:00
NikVolf 6b7144133f fix examples/tests with proper addressing 2018-01-23 16:40:34 +03:00
Nikolay Volf 88c25b6361
Merge pull request #6 from pepyakin/args-wrapper
Safe/utility arguments wrapper
2018-01-23 15:50:28 +03:00
NikVolf 2133f782a4 fix doc comment 2018-01-23 14:43:09 +03:00
NikVolf d340b99016 fix build and address comments 2018-01-23 14:42:20 +03:00
NikVolf 4eb8608c1e rewire everything 2018-01-23 14:26:45 +03:00
NikVolf 559d529ece initial layout 2018-01-23 14:05:31 +03:00