Commit Graph

52 Commits

Author SHA1 Message Date
bdc9490197 Move instantiate into ModuleInstance 2017-12-13 15:00:54 +01:00
9e09508cf5 Replace ModuleIds to Rcs 2017-12-13 14:36:06 +01:00
0927e359f3 Replace all memories with Rcs 2017-12-13 13:40:40 +01:00
ad06080c1b function types import matching 2017-12-13 13:00:07 +01:00
4b2c100d1f Fix warnings 2017-12-12 16:31:58 +01:00
1fc65ca54f Fix basics tests 2017-12-12 15:18:35 +01:00
7ea00b975b Fix tests. 2017-12-01 20:27:33 +03:00
13920517ad Fix tests. 2017-12-01 15:36:56 +03:00
040cbb5056 Validator extracted. 2017-12-01 15:35:16 +03:00
2690ca2018 Clean. 2017-11-28 18:10:15 +03:00
746eb07d69 Fix native_env_function. 2017-11-28 18:09:27 +03:00
a49cdfbadb Fix native_env_global. 2017-11-28 18:09:27 +03:00
d8bfb02fa5 fix env_native_export_entry_type_check
Also ignore "import_env_mutable_global".
2017-11-28 18:09:27 +03:00
0749f8819b Fix native_env_function_own_memory 2017-11-28 18:09:27 +03:00
6680b915bf Fix native_env_global. 2017-11-28 18:09:27 +03:00
ae67df2d07 Fix 2017-11-28 18:08:48 +03:00
05a9f4067e Fixes 2017-11-28 18:08:48 +03:00
17facb529b Rename env → base. 2017-11-27 16:22:00 +03:00
0ea8a48a64 Renamings. 2017-11-27 16:11:12 +03:00
ea6275cc9d Clean 2017-11-26 00:30:43 +03:00
ea980415f6 Fix tests 2017-11-25 23:06:19 +03:00
6a3b9af597 Initial sketch 2017-11-25 22:28:15 +03:00
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
39be2717c9 removed 'AbsenceMismatch' test 2017-09-04 12:25:23 +03:00
a85162dcd1 added memory/table import limits validation 2017-09-04 12:00:01 +03:00
41e7ee732f native_env_function_own_memory 2017-08-03 11:25:44 +03:00
7deee2c46b CustomUserError -> UserError 2017-08-01 16:15:08 +03:00
9437b7bdfc merge 2 error enums 2017-08-01 14:44:33 +03:00
a02fdf5836 return custom user errors from native functions 2017-08-01 13:16:25 +03:00
8eee595e77 native globals 2017-07-31 11:58:24 +03:00
2f73f02831 instantiate env module 2017-07-25 15:26:31 +03:00
fro
a5da7d604b global import breaks with Function("missing exports with name STACKTOP") 2017-07-25 14:31:17 +03:00
fro
d096e04052 assert global value persistence 2017-07-11 19:12:01 +03:00
7195b97095 fixed native functions argument order 2017-06-26 17:32:18 +03:00
4b3f67e3cc function_type returns type reference 2017-06-26 11:54:34 +03:00
8209ff7d6d use ModuleInstance methods for validation 2017-06-23 10:39:31 +03:00
4b61e18929 plain instruction set draft 2017-06-22 17:52:05 +03:00
4ad3808e20 check export type in env_native 2017-06-21 09:23:20 +03:00
9949706e7c fixed shr && shl in dev configuration 2017-06-19 13:55:53 +03:00
f2ee624cea static variants of passed functions 2017-06-14 17:07:22 +03:00
2ce12d5a70 if_else_with_return_type_validation 2017-06-14 14:09:00 +03:00
0ee2826943 another tests added 2017-06-13 12:01:59 +03:00
f0ecdc5af2 instructions validator 2017-06-07 14:48:02 +03:00
a0bfa322c6 UserFunctionExecutor 2017-05-19 09:36:50 +03:00
977df55323 NativeModuleInstance 2017-05-18 15:08:55 +03:00
fa86543fbb module reference in user functions closures 2017-05-15 19:03:49 +03:00
429e54d928 another extension of user functions tests 2017-05-15 16:15:05 +03:00
2063bed2bd exptended test for user functions 2017-05-15 15:57:46 +03:00
b7ff4d92d4 simple user function 2017-05-15 15:40:08 +03:00
53659c8b35 interpretter unhappy test 2017-05-12 19:49:51 +03:00