Commit Graph

117 Commits

Author SHA1 Message Date
Mark McCaskey
bc863fcf0c hook up wasi to wasmer 2019-03-28 12:19:23 -07:00
Mark McCaskey
09068c1a74 clean up implementation 2019-03-27 14:01:27 -07:00
Mark McCaskey
9c58bed344 add support for symbol maps 2019-03-26 16:41:40 -07:00
losfair
395161acdc Merge remote-tracking branch 'origin/master' into feature/dynasm-backend 2019-03-20 19:54:29 +08:00
Mark McCaskey
31cc4b7662 add help text to cache commands 2019-03-19 12:13:23 -07:00
Mark McCaskey
cd9ef3c49a fix bugs and clean up path logic 2019-03-19 11:31:45 -07:00
Mark McCaskey
8253862935 fix panic when cleaning with no cache dir 2019-03-19 11:08:14 -07:00
Mark McCaskey
8e5f250ed0 generate the hash at compile time 2019-03-19 10:58:58 -07:00
Mark
874b613f56 fmt it 2019-03-18 17:46:06 -07:00
Mark
2580871f63 update the binary too 2019-03-18 17:40:36 -07:00
Syrus
53a8fca4d5 Make wasmer executable work with dynasm 2019-03-16 11:52:11 -07:00
David Calavera
ea3d5b04d4
Remove debug option from run command.
I was looking into the code and I noticed that this option is not used.
The `debug!` macro is used across the codebase, which looks more ideal.

Signed-off-by: David Calavera <david.calavera@gmail.com>
2019-02-28 19:16:22 -08:00
Mackenzie Clark
9aa6380460 lol 2019-02-25 11:53:15 -08:00
Mackenzie Clark
2f51694815 no caching on windows 2019-02-25 11:47:03 -08:00
Syrus
13e1cb1169 Added a —disable-cache cli flag for wasmer run 2019-02-22 12:01:03 -08:00
Syrus
fdb2a67579 Added cache into standalone app 2019-02-22 11:42:36 -08:00
Mackenzie Clark
5948fa1d20
Fix/windows installer (#178) 2019-02-14 15:30:42 -08:00
Mackenzie Clark
6a1fdb7f91
add windows exception handling in C (#175) 2019-02-14 09:58:33 -08:00
Mackenzie Clark
d82155f558 pass reference to imports object when instantiating 2019-02-04 14:26:48 -08:00
Syrus
fe1846d180 Simplified EmscriptenGlobals initialization 2019-01-28 14:31:16 -08:00
Brandon Fish
f273823abd Update main argument handling 2019-01-26 14:17:17 -06:00
Brandon Fish
26d29049d9 Add workaround to keep em globals alive longer 2019-01-26 13:42:38 -06:00
Brandon Fish
ee911092ea Use memory min and max values from module to generate environment memory 2019-01-25 20:12:36 -06:00
Brandon Fish
1a1958a0ce Use table min and max values from module to generate environment table 2019-01-25 19:55:33 -06:00
Syrus
5ed202342e Refactored webassembly module 2019-01-24 15:09:56 -08:00
Steve Akinyemi
8661a0096e Add getting main arguments 2019-01-23 22:29:51 +01:00
Brandon Fish
74875ed554 Library restructure (#104)
* Move wasmer-runtime to wasmer-runtime-core

* Add the runtime library

* Fix issue with macros using wasmer_runtime, fmt

* Make default compiler dependency optional

* Add instantiate and validate functions
2019-01-22 11:02:06 -08:00
Lachlan Sneff
6aca222795 Fix emscripten compile issue 2019-01-21 16:42:20 -08:00
Lachlan Sneff
3563741f4f Remove macro feature that is confusing
This reverts commit fbe480cc08.
2019-01-21 14:50:17 -08:00
Lachlan Sneff
fbe480cc08 Fix macro 2019-01-21 14:47:19 -08:00
Lachlan Sneff
10c5aa02a2 Add export_func macro, prelude, and rename imports stuff 2019-01-21 14:43:04 -08:00
Syrus
a9056d580b Use eprintln! instead of println! for errors 2019-01-20 14:16:13 -08:00
Brandon Fish
6cf68d63ac Remove unused extern crates 2019-01-19 00:51:29 -06:00
Brandon Fish
2f6746655d Cleanup wasmer bin and webassembly 2019-01-19 00:28:41 -06:00
Brandon Fish
7fc892be07 Removing some unused imports, cleanup 2019-01-18 18:36:28 -06:00
Syrus
6d55776b8e Fix formatting 2019-01-18 11:15:13 -08:00
Lachlan Sneff
8a9f5fa61a
Add special error types for compile, linking, and runtime errors. (#99)
* Add error types and convert most results to wasmer-runtime results

* Fix spectests

* Fix umbrella project to work with new error types
2019-01-18 10:54:16 -08:00
Brandon Fish
ac994d0c51 Remove unused import 2019-01-18 01:01:45 -06:00
Brandon Fish
e43c3cb2eb cargo fmt 2019-01-18 00:18:13 -06:00
Steve Akinyemi
a17d8c0877 Add rebase fix 2019-01-17 23:23:21 +01:00
Steve Akinyemi
0bf6ce49f6 Update emscripten to latest changes 2019-01-17 23:19:15 +01:00
Steve Akinyemi
fdb0841783 Fix emscripten globals 2019-01-17 23:19:14 +01:00
Steve Akinyemi
927f6e4155 Fix other issues with emscripten integration 2019-01-17 23:19:14 +01:00
Syrus
de459fa5bd Isolated emscripten in new lib 2019-01-10 21:38:10 -08:00
Brandon Fish
3e641d9f89 Updates to get wasmer crate compiling 2019-01-09 19:45:48 -06:00
Brandon Fish
14c9512cf4 Remove old src/runtime and src/compilers directories 2019-01-09 00:49:11 -06:00
Brandon Fish
f714049c61 Remove old runtime and format 2019-01-06 15:21:06 -06:00
Steve Akinyemi
f802dd4f12 Add global conversion 2018-12-30 12:10:53 +01:00
Syrus Akbary
2ee910416d Trying to fix failures in build-mac tests 2018-12-28 13:59:55 +01:00
Brandon Fish
572115f140 Initial format using rustfmt 2018-12-15 00:46:11 -06:00
Syrus
9a028abfe5 Refactored emscripten usage to allow future ABIs 2018-12-10 21:19:39 -08:00
Syrus
eefea5ebee Add emscripten imports conditionally 2018-12-10 21:07:41 -08:00
Syrus
34e9e52b56 Improved execute wasm to use emscripten conditionally 2018-12-10 20:15:41 -08:00
Syrus
028d86a300 Provide instance options when instantiating. Make tests monothreaded 2018-12-10 19:19:46 -08:00
Syrus
44a745e4f5 Added start_instance function 2018-12-10 16:23:14 -08:00
Lachlan Sneff
0e024aa722 Fix crashing cli args 2018-12-06 22:42:16 -05:00
Steve Akinyemi
485da4c701 More debugging 2018-12-07 04:23:18 +01:00
Steve Akinyemi
03cff50a40 Debug segfaulting stackallocation 2018-12-07 03:10:26 +01:00
Lachlan Sneff
28a668f38c Stack allocate arguments 2018-12-06 15:21:58 -05:00
Steve Akinyemi
266ced4311 Abstract arguments extraction into a function 2018-12-06 16:26:27 +01:00
Steve Akinyemi
fcb19f1c98 Remove stub function 2018-12-06 12:51:09 +01:00
Steve Akinyemi
2b3c87e80c Add support for argc/argv 2018-12-06 12:51:09 +01:00
Syrus Akbary
d1c8d34270 Fixed emscripten detector 2018-12-01 11:32:24 -08:00
Syrus Akbary
a6f47fa17d Added ___emscripten_environ_constructor initializer 2018-11-29 22:31:24 -08:00
Syrus Akbary
02477b6e5e Added support for conditional emscripten 2018-11-28 13:25:17 -08:00
Syrus Akbary
4d41cbbac6 Merge branch 'master' into self-update
# Conflicts:
#	src/bin/wasmer.rs
2018-11-27 21:53:33 -08:00
losfair
3815eaf13a Allow using wasmer as a library. 2018-11-28 13:15:33 +08:00