88 Commits

Author SHA1 Message Date
Sergey Pepyakin
8c7dc1b529 Convert *Ref types to a newtype. 2018-01-05 16:22:20 +03:00
Sergey Pepyakin
9b11d1c96c Change Rcs to type aliases 2018-01-05 13:10:01 +03:00
Sergey Pepyakin
9944969744 impl 2017-12-19 20:46:05 +03:00
Sergey Pepyakin
3dec6b8597 Fix type in Instantiation 2017-12-18 20:31:47 +03:00
Sergey Pepyakin
3b74431dee fmt 2017-12-18 16:46:04 +03:00
Sergey Pepyakin
e74b47758a fmt 2017-12-18 16:12:59 +03:00
Sergey Pepyakin
afb33d6f16 Rename Initialization error to Instatiation 2017-12-18 15:42:01 +03:00
Sergey Pepyakin
9dd7a5dfaf Check global's type on instantiation. 2017-12-18 15:34:17 +03:00
Sergey Pepyakin
a1b3064fbf Use slices for args in usercode and Cow for invoke 2017-12-18 13:28:23 +03:00
Sergey Pepyakin
d53487800c Few renamings 2017-12-18 12:59:59 +03:00
Sergey Pepyakin
5077aae512 Use shared ref to pass the State. 2017-12-17 18:29:06 +03:00
Sergey Pepyakin
11afa2dc2f Add St everywhere 2017-12-15 18:23:54 +03:00
Sergey Pepyakin
e7a9f0953e Host modules now ImportResolvers 2017-12-14 15:34:13 +01:00
Sergey Pepyakin
4faeca7812 Add instantiation wizard 2017-12-13 19:11:25 +01:00
Sergey Pepyakin
b2a9f8f3f5 Move store into module.rs 2017-12-13 18:31:40 +01:00
Sergey Pepyakin
5eaf2ca183 Remove variable.rs 2017-12-13 18:15:13 +01:00
Sergey Pepyakin
8d3b32f4a6 Cleaning 2017-12-11 18:52:07 +01:00
Sergey Pepyakin
ebbfa6acf6 Clean module stuff 2017-12-11 18:47:57 +01:00
Sergey Pepyakin
0860436d33 Invoke stuff and state. 2017-12-11 18:38:09 +01:00
Sergey Pepyakin
8588899f82 Pass state in ExecutionParams 2017-12-11 16:41:28 +01:00
Sergey Pepyakin
31abb05009 Make it compile 2017-12-11 15:12:46 +01:00
Sergey Pepyakin
339b909f86 Clean externals 2017-12-11 15:01:38 +01:00
Sergey Pepyakin
b50a5a1a1e Adapt runner 2017-12-11 13:59:54 +01:00
Sergey Pepyakin
987fffb6c3 TableInstance is specialized for any func 2017-12-09 15:32:19 +01:00
Sergey Pepyakin
29613aef9c Use new validation. 2017-12-01 20:08:42 +03:00
Sergey Pepyakin
5b921b6cf9 Reimpl vanilla validator 2017-12-01 20:06:43 +03:00
Sergey Pepyakin
0feed2fa21 Refactor 2017-12-01 19:45:48 +03:00
Sergey Pepyakin
4cf6bf6868 Implement functions checking 2017-12-01 19:27:36 +03:00
Sergey Pepyakin
13920517ad Fix tests. 2017-12-01 15:36:56 +03:00
Sergey Pepyakin
040cbb5056 Validator extracted. 2017-12-01 15:35:16 +03:00
Sergey Pepyakin
17facb529b Rename env → base. 2017-11-27 16:22:00 +03:00
Sergey Pepyakin
5b9e1f04ba Remove E: UserError everywhere 2017-11-25 22:55:45 +03:00
Sergey Pepyakin
6a3b9af597 Initial sketch 2017-11-25 22:28:15 +03:00
Sergey Pepyakin
c4245d584e Move signature checking into export_entry
Looking at the tests it seems that signature checking is expected to be done by `export_entry`. But in fact if signatures don't match, `export_entry` delegates to it's `env` field, which will usually should return `Error::Function` since there is no function registered with a such name.

This change set should fix that.
2017-11-23 13:49:03 +03:00
Svyatoslav Nikolsky
39be2717c9 removed 'AbsenceMismatch' test 2017-09-04 12:25:23 +03:00
Svyatoslav Nikolsky
a85162dcd1 added memory/table import limits validation 2017-09-04 12:00:01 +03:00
fro
f06daece56 comments update + remove empty space 2017-08-23 16:10:54 +03:00
Svyatoslav Nikolsky
7deee2c46b CustomUserError -> UserError 2017-08-01 16:15:08 +03:00
Svyatoslav Nikolsky
9437b7bdfc merge 2 error enums 2017-08-01 14:44:33 +03:00
Svyatoslav Nikolsky
a02fdf5836 return custom user errors from native functions 2017-08-01 13:16:25 +03:00
Svyatoslav Nikolsky
8eee595e77 native globals 2017-07-31 11:58:24 +03:00
Svyatoslav Nikolsky
548e6ebbf9 all globals, exported from env are non-mutable 2017-07-28 11:01:27 +03:00
Svyatoslav Nikolsky
2f73f02831 instantiate env module 2017-07-25 15:26:31 +03:00
Svyatoslav Nikolsky
aad4dfa67e cache internals 2017-06-28 11:03:01 +03:00
Svyatoslav Nikolsky
6aec26e0ff get rid of function labels clone 2017-06-26 12:28:21 +03:00
Svyatoslav Nikolsky
4b3f67e3cc function_type returns type reference 2017-06-26 11:54:34 +03:00
Svyatoslav Nikolsky
a8e13030ec removed panics && lifetimes 2017-06-23 14:11:09 +03:00
Svyatoslav Nikolsky
8209ff7d6d use ModuleInstance methods for validation 2017-06-23 10:39:31 +03:00
Svyatoslav Nikolsky
c944b4c91e simplify else validation 2017-06-23 09:53:05 +03:00
Svyatoslav Nikolsky
4b61e18929 plain instruction set draft 2017-06-22 17:52:05 +03:00