Commit Graph

1458 Commits

Author SHA1 Message Date
losfair
683cb2090c Fix call_indirect. 2019-03-12 11:31:55 +08:00
bors[bot]
b27163d98f Merge #260
260: fix(runtime-c-api) Fix the `imports` length. r=Hywan a=Hywan

`imports` contains `func_import`, `global_import`, `memory_import` and
`table_import`, so 4 items. This patch updates the length of `imports`
when calling the `wasmer_instantiate` function.

Co-authored-by: Ivan Enderlin <ivan.enderlin@hoa-project.net>
Co-authored-by: Syrus Akbary <me@syrusakbary.com>
2019-03-12 00:01:47 +00:00
Mackenzie Clark
033a2e71bd fix compiler error on windows 2019-03-11 10:25:45 -07:00
Syrus Akbary
87fb082993
Merge branch 'master' into fix-runtime-c-api-test-imports 2019-03-11 10:09:15 -07:00
Syrus Akbary
7242149b46
Merge branch 'master' into feat-runtime-c-api-instance-context-data 2019-03-11 10:09:02 -07:00
Mackenzie Clark
9c2a141d6e
Merge branch 'master' into fix/llvm-feature-flag 2019-03-11 10:05:10 -07:00
Syrus
e591cd0607 Use wasmerio fork of inkwell 2019-03-11 10:03:40 -07:00
Mackenzie Clark
ee55cd5e64 create an llvm flag 2019-03-11 09:58:09 -07:00
Ivan Enderlin
675f6817ba test(runtime-c-api) Free allocations.
Don't forget to free `context_data` :-).
2019-03-11 17:41:17 +01:00
Ivan Enderlin
170de02dd3 test(runtime-c-api) Test the wasmer_instance_context_data_* functions. 2019-03-11 17:34:13 +01:00
Ivan Enderlin
a11d454130 feat(runtime-c-api) Add an API to update vm::Ctx.data.
This patch adds 2 functions for the runtime C API, respectively
`wasmer_instance_context_data_set` and
`wasmer_instance_context_data_get`. The goal is to modify the
`vm::Ctx.data` field in the `runtime-core` library.

This is required to pass dynamic data to imported functions for
instance.
2019-03-11 16:50:18 +01:00
Ivan Enderlin
3fea07dc8a fix(runtime-c-api) Fix the imports length.
`imports` contains `func_import`, `global_import`, `memory_import` and
`table_import`, so 4 items. This patch updates the length of `imports`
when calling the `wasmer_instantiate` function.
2019-03-11 14:35:51 +01:00
bors[bot]
a61fdf8b0b Merge #250
250: feat(bors) Set up Bors r=lachlansneff a=Hywan

I'm trying to setup Bors. I think we may update some settings on the Github repo. See https://bors.tech/documentation/getting-started/ for the documentation.

Co-authored-by: Ivan Enderlin <ivan.enderlin@hoa-project.net>
Co-authored-by: Lachlan Sneff <lachlan.sneff@gmail.com>
Co-authored-by: Mackenzie Clark <mackenzie.a.z.c@gmail.com>
2019-03-08 23:23:47 +00:00
Lachlan Sneff
ee8b573e11
Merge branch 'master' into bors 2019-03-08 15:15:35 -08:00
Lachlan Sneff
17eada53f3
feat(runtime) Get ready for tiering (#257)
* Add local_function field to context

* Add local call indirection to llvm

* local call indirection

* Fix  vm test

* Fix cranelift local call indirection

* Fix unwinding on nightly
2019-03-08 15:15:16 -08:00
Lachlan Sneff
ba66d82b72
Attempt to fix circleci config 2019-03-08 15:08:28 -08:00
Lachlan Sneff
16f72e30f4
Just build trying and staging branches 2019-03-08 15:06:39 -08:00
Mackenzie Clark
a08b2f236b
Merge branch 'master' into bors 2019-03-08 14:38:18 -08:00
Syrus Akbary
a8751b6bbc
Merge pull request #256 from wasmerio/fix/do-not-make-installer-on-prs
run installer setup in before_deploy step
2019-03-08 13:25:32 -08:00
Mackenzie Clark
9bf786db5e run installer setup in before_deploy step 2019-03-08 13:00:39 -08:00
Syrus Akbary
fd64b547de
Merge pull request #253 from wasmerio/Hywan-patch-2
doc(readme) Fix a typo.
2019-03-08 12:56:34 -08:00
Mackenzie Clark
c2f9a775a5
Merge branch 'master' into bors 2019-03-08 12:51:43 -08:00
Syrus Akbary
cee1c0ac55
Merge pull request #255 from wasmerio/fix/windows-build-llvm-warning
remove unnecessary conditional compilation in cargo file for windows
2019-03-08 12:51:18 -08:00
Lachlan Sneff
f2fe05b75f
Merge branch 'master' into bors 2019-03-08 12:47:30 -08:00
Mackenzie Clark
80ac7af2b0 remove unnecessary conditional compilation in cargo file for windows 2019-03-08 11:52:24 -08:00
losfair
c5ef0a96e9 Update vm::Ctx. 2019-03-09 02:58:37 +08:00
losfair
c6dfbcd90d Add tests. 2019-03-09 02:58:10 +08:00
losfair
25034ece07 Almost finished indirect calls. 2019-03-09 02:57:23 +08:00
losfair
3efccbe0f7 Support imported globals. 2019-03-09 00:38:13 +08:00
losfair
4c4743e7cd Globals. 2019-03-09 00:32:18 +08:00
losfair
258dea64d8 Fix calling imports. 2019-03-09 00:07:13 +08:00
Ivan Enderlin
8e6358a6ee
Merge branch 'master' into Hywan-patch-2 2019-03-08 15:29:55 +01:00
Ivan Enderlin
afc83d2698
Merge pull request #252 from Hywan/fix-makefile-cpi
chore(makefile) Remove the `capi` target
2019-03-08 15:22:08 +01:00
Ivan Enderlin
a4454ebae8
doc(readme) Fix a typo.
This patch fixes a typo in the C example.
2019-03-08 13:26:04 +01:00
Ivan Enderlin
8823bb09f6 chore(makefile) Remove the capi target.
This target is no longer useful since the C and C++ header files are
generated each time for each build.
2019-03-08 10:31:44 +01:00
Ivan Enderlin
3cfdb868ef feat(bors) Set up Bors. 2019-03-08 10:20:46 +01:00
Syrus Akbary
d3c4733f78
Merge pull request #241 from Hywan/feat-runtime-c-api-strict-c-cpp
test(runtime-c-api) Deny all warnings
2019-03-07 21:36:54 -08:00
Brandon Fish
dd3a6ad21b Merge branch 'master' into feat-runtime-c-api-strict-c-cpp 2019-03-07 23:06:01 -06:00
Brandon Fish
628caf0a74 Make import_func_new/destroy not const 2019-03-07 22:59:11 -06:00
Syrus Akbary
60a74540d9
Update README.md 2019-03-07 20:39:58 -08:00
Syrus Akbary
b321ca339b
Update README.md 2019-03-07 20:39:44 -08:00
Syrus Akbary
b1a52bc8ff
Merge pull request #239 from wasmerio/feature/llvm-backend
LLVM-based compiler backend
2019-03-07 19:49:06 -08:00
Syrus
3866f8fd73 Updated test script 2019-03-07 19:32:04 -08:00
Syrus
4acb826bf2 Fixed default compiler on windows 2019-03-07 19:11:29 -08:00
Syrus
3a4325c5a3 Only use llvm in non windows envs 2019-03-07 18:26:29 -08:00
Syrus
7c2667ab0b Updated README 2019-03-07 18:06:53 -08:00
Syrus
671ff09e6a Use LLVM 5 for Windows 2019-03-07 18:06:47 -08:00
Lachlan Sneff
679fdc14c2
Merge branch 'master' into feature/llvm-backend 2019-03-07 13:25:24 -08:00
Syrus Akbary
6570bd433d
Fixed import func to be mutable 2019-03-07 10:19:03 -08:00
Syrus Akbary
58e48ba310
Merge pull request #247 from Hywan/feat-runtime-c-api-staticlib
feat(runtime-c-api) Ask `rustc` to generate a static library.
2019-03-07 09:56:17 -08:00