pub fn new(engine: &Engine) -> Store {
        let isa = native::builder().finish(settings::Flags::new(engine.config.flags.clone()));
        let compiler = Compiler::new(isa, engine.config.strategy);
        Store {
            inner: Rc::new(StoreInner {
                engine: engine.clone(),
                compiler: RefCell::new(compiler),
                global_exports: Rc::new(RefCell::new(HashMap::new())),
                signature_cache: RefCell::new(HashMap::new()),
            }),
        }
    }
/// Creates a new store to be associated with the given [`Engine`].
Creates a new store to be associated with the given [`Engine`].
Creates a new store to be associated with the given [ ` Engine ` ] .
pub fn new(engine: &Engine) -> Store {
        let isa = native::builder().finish(settings::Flags::new(engine.config.flags.clone()));
        let compiler = Compiler::new(isa, engine.config.strategy);
        Store {
            inner: Rc::new(StoreInner {
                engine: engine.clone(),
                compiler: RefCell::new(compiler),
                global_exports: Rc::new(RefCell::new(HashMap::new())),
                signature_cache: RefCell::new(HashMap::new()),
            }),
        }
    }
pub fn new ( engine : & Engine ) -> Store { let isa = native :: builder ( ) . finish ( settings :: Flags :: new ( engine . config . flags . clone ( ) ) ) ; let compiler = Compiler :: new ( isa , engine . config . strategy ) ; Store { inner : Rc :: new ( StoreInner { engine : engine . clone ( ) , compiler : RefCell :: new ( compiler ) , global_exports : Rc :: new ( RefCell :: new ( HashMap :: new ( ) ) ) , signature_cache : RefCell :: new ( HashMap :: new ( ) ) , } ) , } }
Creates a new store to be associated with the given [`Engine`].
Creates a new store to be associated with the given [ ` Engine ` ] .
engine
&Engine
engine
&Engine