@@ -2,7 +2,7 @@ use crate::sys::tunables::BaseTunables;
2
2
use std:: fmt;
3
3
use std:: sync:: { Arc , RwLock } ;
4
4
use wasmer_compiler:: CompilerConfig ;
5
- use wasmer_compiler:: { Tunables , Universal , UniversalEngine } ;
5
+ use wasmer_compiler:: { Engine , Tunables , Universal } ;
6
6
use wasmer_vm:: { init_traps, TrapHandler , TrapHandlerFn } ;
7
7
8
8
use wasmer_vm:: StoreObjects ;
@@ -12,7 +12,7 @@ use wasmer_vm::StoreObjects;
12
12
/// wrap the actual context in a box.
13
13
pub ( crate ) struct StoreInner {
14
14
pub ( crate ) objects : StoreObjects ,
15
- pub ( crate ) engine : Arc < UniversalEngine > ,
15
+ pub ( crate ) engine : Arc < Engine > ,
16
16
pub ( crate ) tunables : Box < dyn Tunables + Send + Sync > ,
17
17
pub ( crate ) trap_handler : Option < Box < TrapHandlerFn < ' static > > > ,
18
18
}
@@ -29,7 +29,7 @@ pub(crate) struct StoreInner {
29
29
/// Spec: <https://webassembly.github.io/spec/core/exec/runtime.html#store>
30
30
pub struct Store {
31
31
pub ( crate ) inner : Box < StoreInner > ,
32
- engine : Arc < UniversalEngine > ,
32
+ engine : Arc < Engine > ,
33
33
trap_handler : Arc < RwLock < Option < Box < TrapHandlerFn < ' static > > > > > ,
34
34
}
35
35
@@ -41,7 +41,7 @@ impl Store {
41
41
}
42
42
43
43
/// Creates a new `Store` with a specific [`Engine`].
44
- pub fn new_with_engine ( engine : & UniversalEngine ) -> Self {
44
+ pub fn new_with_engine ( engine : & Engine ) -> Self {
45
45
Self :: new_with_tunables ( engine, BaseTunables :: for_target ( engine. target ( ) ) )
46
46
}
47
47
@@ -52,7 +52,7 @@ impl Store {
52
52
53
53
/// Creates a new `Store` with a specific [`Engine`] and [`Tunables`].
54
54
pub fn new_with_tunables (
55
- engine : & UniversalEngine ,
55
+ engine : & Engine ,
56
56
tunables : impl Tunables + Send + Sync + ' static ,
57
57
) -> Self {
58
58
// Make sure the signal handlers are installed.
@@ -77,7 +77,7 @@ impl Store {
77
77
}
78
78
79
79
/// Returns the [`Engine`].
80
- pub fn engine ( & self ) -> & Arc < UniversalEngine > {
80
+ pub fn engine ( & self ) -> & Arc < Engine > {
81
81
& self . engine
82
82
}
83
83
@@ -139,7 +139,7 @@ impl Default for Store {
139
139
}
140
140
141
141
#[ allow( unreachable_code, unused_mut) ]
142
- fn get_engine ( mut config : impl CompilerConfig + ' static ) -> UniversalEngine {
142
+ fn get_engine ( mut config : impl CompilerConfig + ' static ) -> Engine {
143
143
cfg_if:: cfg_if! {
144
144
if #[ cfg( feature = "default-universal" ) ] {
145
145
wasmer_compiler:: Universal :: new( config)
@@ -195,7 +195,7 @@ impl<'a> StoreRef<'a> {
195
195
}
196
196
197
197
/// Returns the [`Engine`].
198
- pub fn engine ( & self ) -> & Arc < UniversalEngine > {
198
+ pub fn engine ( & self ) -> & Arc < Engine > {
199
199
& self . inner . engine
200
200
}
201
201
@@ -228,7 +228,7 @@ impl<'a> StoreMut<'a> {
228
228
}
229
229
230
230
/// Returns the [`Engine`].
231
- pub fn engine ( & self ) -> & Arc < UniversalEngine > {
231
+ pub fn engine ( & self ) -> & Arc < Engine > {
232
232
& self . inner . engine
233
233
}
234
234
0 commit comments