From 0d1f626edd7c574ff0e70438cdb678dcb5c91170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 11 Sep 2020 15:18:49 +0200 Subject: refactor(core): JsRuntime initialization (#7415) Removes: - "deno_core::StartupData" - "deno_core::Script" - "deno_core::OwnedScript" Changes to "JsRuntime": - remove "new_with_loader()" - remove "with_heap_limits()" - rename "IsolateOptions" to "RuntimeOptions" and make public - "JsRuntime::new()" takes "RuntimeOptions" as a single param --- cli/startup_data.rs | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 cli/startup_data.rs (limited to 'cli/startup_data.rs') diff --git a/cli/startup_data.rs b/cli/startup_data.rs deleted file mode 100644 index 1cdfb4188..000000000 --- a/cli/startup_data.rs +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. - -use crate::js::CLI_SNAPSHOT; -use crate::js::COMPILER_SNAPSHOT; -use deno_core::Snapshot; -use deno_core::StartupData; - -pub fn deno_isolate_init() -> StartupData<'static> { - debug!("Deno isolate init with snapshots."); - let data = CLI_SNAPSHOT; - StartupData::Snapshot(Snapshot::Static(data)) -} - -pub fn compiler_isolate_init() -> StartupData<'static> { - debug!("Deno isolate init with snapshots."); - let data = COMPILER_SNAPSHOT; - StartupData::Snapshot(Snapshot::Static(data)) -} -- cgit v1.2.3