Nick Fitzgerald
a1f4b46f64
Bump Wasmtime to version 0.30.0; cranelift to 0.77.0
2021-09-17 10:33:50 -07:00
Chris Fallin
a13a777230
Bump to Wasmtime v0.29.0 and Cranelift 0.76.0.
2021-08-02 11:24:09 -07:00
Alex Crichton
e8b8947956
Bump to 0.28.0 ( #2972 )
2021-06-09 14:00:13 -05:00
Chris Fallin
88455007b2
Bump Wasmtime to v0.27.0 and Cranelift to v0.74.0.
2021-05-20 14:06:41 -07:00
bjorn3
82f3ad4f1a
Add comment why thiserror is not used
2021-05-04 13:51:28 +02:00
bjorn3
147cda3b99
Remove thiserror dependency from cranelift_module
2021-05-04 13:42:48 +02:00
Chris Fallin
67cc42d4c3
Merge pull request #2750 from bjorn3/anon_allocs
...
Support declaring anonymous functions and data objects
2021-04-12 12:11:11 -07:00
Chris Fallin
6bec13da04
Bump versions: Wasmtime to 0.26.0, Cranelift to 0.73.0.
2021-04-05 10:48:42 -07:00
bjorn3
cc89111463
Support declaring anonymous functions and data objects
2021-03-21 18:00:26 +01:00
Will Robson
38926fb1fc
cranelift-module: Add support for passing a StackMapSink when defining functions
...
Fixes #2738
This follows the convention set by the existing method of passing a
TrapSink by adding another argument for a StackMapSink.
2021-03-19 00:02:15 +00:00
Nick Fitzgerald
d081ef9c2e
Bump Wasmtime to 0.25.0; Cranelift to 0.72.0
2021-03-16 11:02:56 -07:00
Dan Gohman
8854dec01d
Bump version to 0.24.0
...
I used a specially modified version of the publish script to avoid
bumping the `witx` version.
2021-03-04 18:17:03 -08:00
bjorn3
a710fc4425
Make Module object safe
2021-02-22 16:00:37 +01:00
Dan Gohman
8d90ea0390
Bump version to 0.23.0
...
I used a specially modified version of the publish script to avoid
bumping the `witx` version.
2021-02-17 15:35:43 -08:00
Nick Fitzgerald
5ad82de3c5
Bump Wasmtime to 0.22.0; Cranelift to 0.69.0
2021-01-07 14:51:12 -08:00
bjorn3
411ec3a857
Rename SimpleJIT to JIT as it isn't simple anymore
2020-12-04 13:21:13 -08:00
bjorn3
86d3dc9510
Add prepare_for_function_redefine
2020-11-12 19:39:44 +01:00
bjorn3
1dc27c93a4
Introduce DataDescription::all_relocs to dedup some code
2020-11-11 12:36:17 +01:00
bjorn3
844a52e96a
Don't unnecessarily take &self for some ModuleDeclarations methods
2020-11-11 11:43:09 +01:00
bjorn3
856f799ade
Make some things more consistent between define_function and define_function_bytes
2020-11-11 11:38:28 +01:00
bjorn3
5df5bbbdca
Fix usage of default_libcall_names ( #2378 )
...
* Fix usage of default_libcall_names
* Add basic cranelift-object test
It is based on a test with the same name in cranelift-simplejit
2020-11-09 10:33:56 -06:00
Andrew Brown
c9e8889d47
Update clippy annotation to use latest version ( #2375 )
2020-11-09 09:24:59 -06:00
Alex Crichton
8af2dbfbac
Allow offloading compilation in cranelift-object ( #2371 )
...
This commit is a slight refactoring of the `Module` trait and backend in
`cranelift-object`. The goal is to enable parallelization of compilation
when using `cranelift-object`. Currently this is difficult because
`ObjectModule::define_function` requires `&mut self`. This instead
soups up the `define_function_bytes` interface to handle relocations so
compilation can happen externally before defining it in a `Module`. This
also means that `define_function` is now a convenience wrapper around
`define_function_bytes`.
2020-11-06 09:56:44 -06:00
Alex Crichton
ab1958434a
Bump to 0.21.0 ( #2359 )
2020-11-05 09:39:53 -06:00
Pat Hickey
7b43bf76ed
Merge pull request #2287 from bjorn3/simplejit_improvements
...
Some SimpleJIT improvements
2020-10-29 12:09:37 -07:00
Qinxuan Chen
3cd9d52d32
Update the hashbrown to use the same version ( #2338 )
...
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
2020-10-29 09:59:56 -05:00
bjorn3
7a2a4bc903
Add some debug derives
2020-10-12 11:45:01 +02:00
Pat Hickey
13c6bdd9ba
cranelift-module: add iterator methods to ModuleDeclarations
...
The predecessor interface made it possible to iterate across all
function and data declarations. This is still useful and easy enough to
provide.
2020-10-07 20:06:58 -07:00
bjorn3
b061694491
Rustfmt and update docs
2020-10-01 09:53:23 +02:00
bjorn3
d84ca235d2
Remove Backend trait and turn Module into a trait
2020-09-30 19:52:57 +02:00
bjorn3
84c6ec3214
Move alignment config from declare_data to define_data
2020-09-30 19:23:23 +02:00
bjorn3
b44c5bb2be
Move ModuleDeclarations to backends
2020-09-30 18:33:29 +02:00
bjorn3
7a6e909efe
Move a bit more logic out of Module
2020-09-30 17:31:08 +02:00
bjorn3
c2ffcdc6d0
Move logic out of more Module methods
2020-09-30 17:12:33 +02:00
bjorn3
80f4ecf9b5
Move almost all logic out of Module
2020-09-30 16:50:24 +02:00
bjorn3
588a4be0b3
Store Compiled* in the backend instead of Module
2020-09-30 16:18:57 +02:00
bjorn3
405b9e2875
Remove finalize_* from the Backend trait
...
Instead let the `finish` method perform finalization
2020-09-30 14:20:39 +02:00
bjorn3
59f95083b1
Remove write_data_funcaddr and write_data_dataaddr
...
They are unimplemented by all backends
2020-09-30 13:59:26 +02:00
bjorn3
7608749647
Merge finalize_definitions into finish
2020-09-30 13:58:13 +02:00
bjorn3
4483c3740a
Remove get_finalized_*
2020-09-30 13:53:01 +02:00
bjorn3
7dcfb1b47b
Move some error checking out of the define_* functions
2020-09-30 12:40:26 +02:00
bjorn3
b1187b5507
Merge ModuleNamespace and ModuleContents
2020-09-30 12:29:22 +02:00
Alex Crichton
5e08eb3b83
Bump wasmtime to 0.20.0 ( #2222 )
...
At the same time bump cranelift crates to 0.67.0
2020-09-23 13:54:02 -05:00
Pat Hickey
35c100fdca
delete cranelift-faerie
...
see https://github.com/bytecodealliance/wasmtime/pull/1816
DEPRECATION NOTICE: the Cranelift developer team intends to stop maintaining
the `cranelift-faerie` crate and remove it from the `wasmtime` git repository
on or after August 3, 2020. We recommend users use its successor, the
`cranelift-object` crate.
2020-08-18 11:02:14 -07:00
Alex Crichton
63d5b91930
Wasmtime 0.19.0 and Cranelift 0.66.0 ( #2027 )
...
This commit updates Wasmtime's version to 0.19.0, Cranelift's version to
0.66.0, and updates the release notes as well.
2020-07-16 12:46:21 -05:00
Pat Hickey
4f72a7483b
Merge pull request #1836 from carlokok/feature/object_file_section
...
Cranelift: Module data apis should allow specifying the object file section
2020-06-17 10:49:09 -07:00
Carlo Kok
b2549d1fde
Rust fmt fixes
2020-06-17 06:46:58 +02:00
Carlo Kok
0b613caad1
Address concerns in pullrequests.
2020-06-15 20:46:04 +02:00
Dan Gohman
caa87048ab
Wasmtime 0.18.0 and Cranelift 0.65.0.
2020-06-11 17:49:56 -07:00
Carlo Kok
38531b8f42
Rust fmt fixes
2020-06-08 19:56:21 +02:00