e6bf41a10c
Update documentation for ExternalVariableValue.
2017-11-28 18:08:48 +03:00
e99779c9df
Add anothr variant of abort
2017-11-28 18:08:48 +03:00
4e0ab2d5f9
Implement emscripten mod in terms of native mod
2017-11-28 18:08:48 +03:00
ae67df2d07
Fix
2017-11-28 18:08:48 +03:00
05a9f4067e
Fixes
2017-11-28 18:08:48 +03:00
61c2197bd8
Initial
2017-11-28 18:08:48 +03:00
3160f61b64
Rename EnvParams → EmscriptenParams
2017-11-27 20:27:06 +03:00
2cb0781c41
Doc fix
2017-11-27 16:52:24 +03:00
073013d24f
Fixes in error strings
2017-11-27 16:49:50 +03:00
0e1db10465
Remove Env error variant
2017-11-27 16:49:34 +03:00
bf0db90643
Update doc
2017-11-27 16:49:25 +03:00
17facb529b
Rename env → base.
2017-11-27 16:22:00 +03:00
f532bff101
Add comment to Emscripten module.
2017-11-27 16:21:49 +03:00
0ea8a48a64
Renamings.
2017-11-27 16:11:12 +03:00
0482373afc
env → emscripten
2017-11-27 15:37:39 +03:00
ea6275cc9d
Clean
2017-11-26 00:30:43 +03:00
ea980415f6
Fix tests
2017-11-25 23:06:19 +03:00
5b9e1f04ba
Remove E: UserError everywhere
2017-11-25 22:55:45 +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
6b6e102b24
default stack top - 256kb, configurable
2017-11-12 18:58:10 +03:00
027c59fa7e
Implement copy_nonoverlapping and clear.
2017-11-09 19:19:52 +03:00
13ddb31b94
remove space
2017-11-02 13:35:21 +03:00
aba11d5b67
get_into to avoid copy
2017-11-02 13:32:29 +03:00
f21bf553c3
interpreter: ProgramInstance exposes constructor for arbitrary env module
2017-09-14 18:42:59 -07:00
322fb11d55
add display for errors
2017-09-05 14:12:54 +02:00
99319b54dc
from user error for error
2017-09-05 12:09:12 +02: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
8da7d22e37
increase DEFAULT_TABLE_SIZE from 16 to 64
2017-09-04 09:30:21 +03:00
f06daece56
comments update + remove empty space
2017-08-23 16:10:54 +03:00
9fe0fb6aa5
code formatting
2017-08-13 00:50:52 +02:00
862ccaf89d
add utest 'interpreter_accumulate_u8' iterating u8-array of length N
2017-08-11 21:48:38 +02:00
41e7ee732f
native_env_function_own_memory
2017-08-03 11:25:44 +03:00
ffd0621691
added DummyError alias
2017-08-01 16:22:19 +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
1aa6c9ccd6
Merge pull request #79 from NikVolf/native_globals
...
Allow to pass user-defined globals along with user functions to env-native
2017-07-31 13:19:25 +03:00
8eee595e77
native globals
2017-07-31 11:58:24 +03:00
1d12c323c1
Merge pull request #78 from frehberg/master
...
adding interpreter test for WASM generated from C++
2017-07-28 20:04:50 +03:00
ad01ebdaaa
adding interpreter test for WASM generated from C++
2017-07-28 16:35:27 +02:00
548e6ebbf9
all globals, exported from env are non-mutable
2017-07-28 11:01:27 +03:00
cf804da81d
fix name
2017-07-26 21:57:31 +03:00
8bb17db6d9
Merge remote-tracking branch 'origin/master' into fix-membase
2017-07-26 21:57:11 +03:00
218b07a7db
add memoryBase global to env module
2017-07-26 21:56:54 +03:00
2f73f02831
instantiate env module
2017-07-25 15:26:31 +03:00
a5da7d604b
global import breaks with Function("missing exports with name STACKTOP")
2017-07-25 14:31:17 +03:00
d096e04052
assert global value persistence
2017-07-11 19:12:01 +03:00
aad4dfa67e
cache internals
2017-06-28 11:03:01 +03:00