Commit Graph

3072 Commits

Author SHA1 Message Date
losfair
6aa87a0bbf Add the internals field and necessary structures for metering. 2019-05-17 01:10:21 +08:00
bors[bot]
4e5ac24517 Merge #416
416: Remote code loading framework. r=losfair a=losfair



Co-authored-by: losfair <zhy20000919@hotmail.com>
Co-authored-by: Heyang Zhou <zhy20000919@hotmail.com>
2019-05-16 02:44:49 +00:00
losfair
100039afd6 Merge remote-tracking branch 'origin/master' into feature/remote-code-load 2019-05-16 09:28:02 +08:00
losfair
a17795478c Rename wasi-networking to echo-server. 2019-05-16 09:24:06 +08:00
losfair
b28992932e Rename wasmer-kernel-net to kernel-net. 2019-05-16 09:22:40 +08:00
bors[bot]
88124d926e Merge #449
449: avoid opening files when not needed in WASI, check for write permissions r=MarkMcCaskey a=MarkMcCaskey

resolves #438 

Follow up to  #448.  Turns out we don't have to complect things in that way, we can just be more conservative about opening files and granting write permissions

Co-authored-by: Mark McCaskey <mark@wasmer.io>
2019-05-15 22:18:10 +00:00
Mark McCaskey
83deae80dc update changelog; clean up 2019-05-15 15:16:52 -07:00
Mark McCaskey
b2752735db avoid opening files when not needed in WASI, check for write permissions 2019-05-15 15:11:29 -07:00
Mark McCaskey
a9f643f774 add trace macro for more verbose debug statements 2019-05-15 11:46:17 -07:00
bors[bot]
245cc32937 Merge #446
446: apply base path update to wasi::path_filestat_get r=MarkMcCaskey a=MarkMcCaskey

resolves #434 (again)

causes `path_filestat_get` to start at the base path calculated from the fd passed in.  This technique was applied to `path_open` but didn't make it to `path_filestat_get`, this fixes that

Co-authored-by: Mark McCaskey <mark@wasmer.io>
2019-05-15 18:00:16 +00:00
Syrus
0ab8a045b9 Re-enable circleci cache 2019-05-15 10:41:44 -07:00
Syrus
82bf7ea147 Improved error messages when running on a specific loader 2019-05-15 10:35:43 -07:00
Syrus
720d984d9e Make kernel loader available by default 2019-05-15 10:35:09 -07:00
Syrus
3bbf7753cb Renamed kwasm-net to wasmer-kernel-net 2019-05-15 10:34:56 -07:00
Mark McCaskey
ace7a19a7b apply base path update to wasi::path_filestat_get 2019-05-15 10:25:31 -07:00
losfair
408f89ccd6 Rename loader:kwasm to loader:kernel for consistency. 2019-05-15 22:17:31 +08:00
losfair
13b4fe3f38 Temporarily disable caching for macos test. 2019-05-15 21:56:28 +08:00
losfair
a1a58d4a50 Merge remote-tracking branch 'origin/master' into feature/remote-code-load 2019-05-15 21:44:11 +08:00
losfair
6df4e40121 Cargo fmt 2019-05-15 21:43:38 +08:00
losfair
d72abf3203 Rename kwasm-loader to wasmer-kernel-loader. 2019-05-15 21:43:19 +08:00
bors[bot]
6b43a6a313 Merge #445
445: Better README.md link target for "WASI" r=Hywan a=Uzume

Just updating the link target for "WASI" in the readme.

Co-authored-by: Uzume <uzume@users.osdn.me>
2019-05-15 11:29:30 +00:00
Uzume
fea565c248
Better link target for "WASI" 2019-05-15 04:02:04 -07:00
Brandon Fish
ac3fafae9a
Merge branch 'master' into feature/clif-cgapi 2019-05-14 23:01:28 -05:00
bors[bot]
03671ab5ac Merge #442
442: Fix/misc wasi fs issues r=MarkMcCaskey a=MarkMcCaskey

resolves #434 

Co-authored-by: Mark McCaskey <mark@wasmer.io>
Co-authored-by: Mark McCaskey <markmccaskey@users.noreply.github.com>
2019-05-15 00:40:50 +00:00
Mark McCaskey
216d09b7c7 Merge branch 'fix/misc-wasi-fs-issues' of github.com:wasmerio/wasmer into fix/misc-wasi-fs-issues 2019-05-14 17:40:09 -07:00
Mark McCaskey
c402c0350c return EIO if internal data structures are corrupt 2019-05-14 17:39:19 -07:00
bors[bot]
0815a75561 Merge #443
443: Return impl Compiler from default_compiler to fix compilation features r=bjfish a=bjfish

runtime compilation was failing (llvm/singlepass features) for the new compiler implementations for the `default_compiler` function due to changing types and state being added to the compilers.

This PR:
- adds runtime library tests for these features to catch the regression earlier
- refactors `default_compiler` to return `impl Compiler` and no longer a singleton to fix the compilation issue

Co-authored-by: Brandon Fish <brandon.j.fish@gmail.com>
Co-authored-by: Brandon Fish <bjfish@users.noreply.github.com>
2019-05-14 23:53:06 +00:00
Mark McCaskey
593255021d
Merge branch 'master' into fix/misc-wasi-fs-issues 2019-05-14 16:42:42 -07:00
Mark McCaskey
8a99e5ce6a update changelog 2019-05-14 16:34:41 -07:00
Mark McCaskey
87d9940a23 implement readdir! 2019-05-14 16:33:54 -07:00
Brandon Fish
89f3998b49
Merge branch 'master' into feature/fix-default_compiler-compilation 2019-05-14 18:22:44 -05:00
Brandon Fish
bef9f1244a Return impl Compiler from default_compiler to fix compilation with features 2019-05-14 18:19:58 -05:00
Mark McCaskey
3bf550055f rm from entry in fd_renumber -- thanks Brandon! 2019-05-14 15:10:01 -07:00
Mark McCaskey
84ea25241a fix opening directories in path_open 2019-05-14 15:08:45 -07:00
bors[bot]
912072362f Merge #441
441: fix borrowing warning on nightly r=MarkMcCaskey a=MarkMcCaskey

resolves #433 

Co-authored-by: Mark McCaskey <mark@wasmer.io>
2019-05-14 21:51:15 +00:00
Mark McCaskey
5114d42237 fix borrowing warning on nightly 2019-05-14 14:05:41 -07:00
bors[bot]
702a3fd86a Merge #440
440: fix(runtime-c-api) `wasmer_instance_call` types must matche `wasmer_export_func_*_arity` r=Hywan a=Hywan

The `wasmer_export_func_params_arity` and
`wasmer_export_func_returns_arity` functions store the arity in a
`uint32_t`. The `wasmer_instance_call` expects `c_int`. There is a
type mismatch here. It's not annoying in C or C++, but in some other
languages that have bindings to C/C++, it can imply useless casting.

This patch changes `wasmer_instance_call` to expect `uint32_t` for
`params_len` and `results_len` to match the
`wasmer_export_func_*_arity` functions.

Other patches do the same for `wasmer_export_func_params` and
`wasmer_export_func_returns`.

Co-authored-by: Ivan Enderlin <ivan.enderlin@hoa-project.net>
2019-05-14 15:17:43 +00:00
Ivan Enderlin
8bd9bbb508 chore(runtime-c-api) Update C/C++ header files. 2019-05-14 16:19:32 +02:00
Ivan Enderlin
f04e77323b fix(runtime-c-api) Update wasmer_export_func_params_arity signature.
The `returns_len` argument type of `wasmer_export_func_returns_params`
must be `uint32_t` to match the `wasmer_export_func_returns_arity` results,
so that casts are not required.
2019-05-14 16:18:41 +02:00
Ivan Enderlin
53661385ed chore(runtime-c-api) Update C/C++ header files. 2019-05-14 16:17:13 +02:00
Ivan Enderlin
91006bab53 fix(runtime-c-api) Update wasmer_export_func_params_arity signature.
The `params_len` argument type of `wasmer_export_func_params_arity`
must be `uint32_t` to match the `wasmer_export_func_*_arity` results,
so that casts are not required.
2019-05-14 16:15:36 +02:00
losfair
d75a2925af Fix compilation issue on Windows. 2019-05-14 20:00:36 +08:00
losfair
fac4c452c6 Fix LLVM backend. 2019-05-14 18:49:02 +08:00
Ivan Enderlin
07499329dd chore(changelog) Add #440. 2019-05-14 11:54:13 +02:00
Ivan Enderlin
2b250c30f3 chore(runtime-c-api) Regenerate C/C++ header files. 2019-05-14 11:50:10 +02:00
Ivan Enderlin
f68379a6df test(runtime-c-api) Use *_arity variables when calling wasmer_export_func_call. 2019-05-14 11:49:40 +02:00
Ivan Enderlin
d3c75a38fa fix(runtime-c-api) wasmer_instance_call types matches wasmer_export_func_*_arity.
The `wasmer_export_func_params_arity` and
`wasmer_export_func_returns_arity` functions store the arity in a
`uint32_t`. The `wasmer_instance_call` expects `c_int`. There is a
type mismatch here. It's not annoying in C or C++, but in some other
languages that have bindings to C/C++, it can imply useless casting.

This patch changes `wasmer_instance_call` to expect `uint32_t` for
`params_len` and `results_len` to match the
`wasmer_export_func_*_arity` functions.
2019-05-14 11:46:43 +02:00
losfair
5ec931ef83 Fix kwasmd compilation 2019-05-14 17:26:46 +08:00
losfair
d641909c63 Fix clippy error 2019-05-14 17:13:17 +08:00
losfair
ee09209bfb Fix clippy error. 2019-05-14 16:59:18 +08:00