summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/main.rs2
-rw-r--r--cli/proc_state.rs4
-rw-r--r--cli/standalone.rs1
3 files changed, 7 insertions, 0 deletions
diff --git a/cli/main.rs b/cli/main.rs
index a217d2cf4..ba16ea590 100644
--- a/cli/main.rs
+++ b/cli/main.rs
@@ -134,6 +134,7 @@ fn create_web_worker_callback(ps: ProcState) -> Arc<CreateWebWorkerCb> {
blob_store: ps.blob_store.clone(),
broadcast_channel: ps.broadcast_channel.clone(),
shared_array_buffer_store: Some(ps.shared_array_buffer_store.clone()),
+ compiled_wasm_module_store: Some(ps.compiled_wasm_module_store.clone()),
cpu_count: num_cpus::get(),
};
@@ -222,6 +223,7 @@ pub fn create_main_worker(
blob_store: ps.blob_store.clone(),
broadcast_channel: ps.broadcast_channel.clone(),
shared_array_buffer_store: Some(ps.shared_array_buffer_store.clone()),
+ compiled_wasm_module_store: Some(ps.compiled_wasm_module_store.clone()),
cpu_count: num_cpus::get(),
};
diff --git a/cli/proc_state.rs b/cli/proc_state.rs
index e6bc5f997..2c61ba51f 100644
--- a/cli/proc_state.rs
+++ b/cli/proc_state.rs
@@ -23,6 +23,7 @@ use deno_core::error::Context;
use deno_core::parking_lot::Mutex;
use deno_core::resolve_url;
use deno_core::url::Url;
+use deno_core::CompiledWasmModuleStore;
use deno_core::ModuleSource;
use deno_core::ModuleSpecifier;
use deno_core::SharedArrayBufferStore;
@@ -66,6 +67,7 @@ pub struct Inner {
pub blob_store: BlobStore,
pub broadcast_channel: InMemoryBroadcastChannel,
pub shared_array_buffer_store: SharedArrayBufferStore,
+ pub compiled_wasm_module_store: CompiledWasmModuleStore,
}
impl Deref for ProcState {
@@ -155,6 +157,7 @@ impl ProcState {
let blob_store = BlobStore::default();
let broadcast_channel = InMemoryBroadcastChannel::default();
let shared_array_buffer_store = SharedArrayBufferStore::default();
+ let compiled_wasm_module_store = CompiledWasmModuleStore::default();
let file_fetcher = FileFetcher::new(
http_cache,
@@ -225,6 +228,7 @@ impl ProcState {
blob_store,
broadcast_channel,
shared_array_buffer_store,
+ compiled_wasm_module_store,
})))
}
diff --git a/cli/standalone.rs b/cli/standalone.rs
index 3db2981e4..914eeaddf 100644
--- a/cli/standalone.rs
+++ b/cli/standalone.rs
@@ -252,6 +252,7 @@ pub async fn run(
blob_store,
broadcast_channel,
shared_array_buffer_store: None,
+ compiled_wasm_module_store: None,
cpu_count: num_cpus::get(),
};
let mut worker =