299 Commits

Author SHA1 Message Date
Sergey Pepyakin
a49cdfbadb Fix native_env_global. 2017-11-28 18:09:27 +03:00
Sergey Pepyakin
d8bfb02fa5 fix env_native_export_entry_type_check
Also ignore "import_env_mutable_global".
2017-11-28 18:09:27 +03:00
Sergey Pepyakin
0749f8819b Fix native_env_function_own_memory 2017-11-28 18:09:27 +03:00
Sergey Pepyakin
6680b915bf Fix native_env_global. 2017-11-28 18:09:27 +03:00
Sergey Pepyakin
c3a3ad83fa Some changes 2017-11-28 18:09:27 +03:00
Sergey Pepyakin
e6bf41a10c Update documentation for ExternalVariableValue. 2017-11-28 18:08:48 +03:00
Sergey Pepyakin
e99779c9df Add anothr variant of abort 2017-11-28 18:08:48 +03:00
Sergey Pepyakin
4e0ab2d5f9 Implement emscripten mod in terms of native mod 2017-11-28 18:08:48 +03:00
Sergey Pepyakin
ae67df2d07 Fix 2017-11-28 18:08:48 +03:00
Sergey Pepyakin
05a9f4067e Fixes 2017-11-28 18:08:48 +03:00
Sergey Pepyakin
61c2197bd8 Initial 2017-11-28 18:08:48 +03:00
Sergey Pepyakin
3160f61b64 Rename EnvParams → EmscriptenParams 2017-11-27 20:27:06 +03:00
Sergey Pepyakin
2cb0781c41 Doc fix 2017-11-27 16:52:24 +03:00
Sergey Pepyakin
073013d24f Fixes in error strings 2017-11-27 16:49:50 +03:00
Sergey Pepyakin
0e1db10465 Remove Env error variant 2017-11-27 16:49:34 +03:00
Sergey Pepyakin
bf0db90643 Update doc 2017-11-27 16:49:25 +03:00
Sergey Pepyakin
17facb529b Rename env → base. 2017-11-27 16:22:00 +03:00
Sergey Pepyakin
f532bff101 Add comment to Emscripten module. 2017-11-27 16:21:49 +03:00
Sergey Pepyakin
0ea8a48a64 Renamings. 2017-11-27 16:11:12 +03:00
Sergey Pepyakin
0482373afc env → emscripten 2017-11-27 15:37:39 +03:00
Sergey Pepyakin
ea6275cc9d Clean 2017-11-26 00:30:43 +03:00
Sergey Pepyakin
ea980415f6 Fix tests 2017-11-25 23:06:19 +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
NikVolf
18a877e692 import handy functions 2017-11-21 20:03:06 +03:00
NikVolf
6b6e102b24 default stack top - 256kb, configurable 2017-11-12 18:58:10 +03:00
Sergey Pepyakin
027c59fa7e Implement copy_nonoverlapping and clear. 2017-11-09 19:19:52 +03:00
NikVolf
13ddb31b94 remove space 2017-11-02 13:35:21 +03:00
NikVolf
aba11d5b67 get_into to avoid copy 2017-11-02 13:32:29 +03:00
NikVolf
c373a4adc1 peek module size utility 2017-10-30 17:37:06 +03:00
fro
2b9a7a4cda field_mut better return &mut String 2017-10-25 18:33:14 +03:00
fro
7385baf967 Clone impl for a module 2017-10-24 16:11:03 +03:00
Bruce Mitchener
5c7a3c8c72 Opcode: impl Clone. 2017-09-19 16:05:18 +07:00
Pat Hickey
f21bf553c3 interpreter: ProgramInstance exposes constructor for arbitrary env module 2017-09-14 18:42:59 -07:00
NikVolf
acdf61e49e add extra tests and conds 2017-09-07 17:47:43 +02:00
NikVolf
aa08acff8b replace with wrapping neg 2017-09-07 16:16:20 +02:00
NikVolf
c603f3a4ed panic confirmed with a test 2017-09-07 12:56:26 +02:00
NikVolf
5f1cf258cc add edge case for i64.const 2017-09-06 19:06:14 +02:00
NikVolf
322fb11d55 add display for errors 2017-09-05 14:12:54 +02:00
NikVolf
99319b54dc from user error for error 2017-09-05 12:09:12 +02: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
Svyatoslav Nikolsky
8da7d22e37 increase DEFAULT_TABLE_SIZE from 16 to 64 2017-09-04 09:30:21 +03:00
fro
f06daece56 comments update + remove empty space 2017-08-23 16:10:54 +03:00
Frank Rehberger
9fe0fb6aa5 code formatting 2017-08-13 00:50:52 +02:00
Frank Rehberger
862ccaf89d add utest 'interpreter_accumulate_u8' iterating u8-array of length N 2017-08-11 21:48:38 +02:00
Svyatoslav Nikolsky
41e7ee732f native_env_function_own_memory 2017-08-03 11:25:44 +03:00
Svyatoslav Nikolsky
ffd0621691 added DummyError alias 2017-08-01 16:22:19 +03:00
Svyatoslav Nikolsky
7deee2c46b CustomUserError -> UserError 2017-08-01 16:15:08 +03:00