mirror of
https://github.com/denoland/deno.git
synced 2024-12-02 17:01:14 -05:00
e05cc74750
A few easy migrations of module code from the runtime to the module map. The module map already has a few places where it needs a handle scope, so we're not coupling it any further with the v8 runtime. `init_runtime_module_map` is replaced with an option to reduce API surface of JsRuntime. `module_resolve_callback` now lives in the `ModuleMap` and we use a annex data to avoid having to go through the `Rc<RefCell<...>>` stored in the `JsRuntime`'s isolate.
34 lines
997 B
Rust
34 lines
997 B
Rust
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
mod bindings;
|
|
mod jsrealm;
|
|
mod jsruntime;
|
|
#[doc(hidden)]
|
|
pub mod ops;
|
|
mod snapshot_util;
|
|
|
|
#[cfg(test)]
|
|
mod tests;
|
|
|
|
pub const V8_WRAPPER_TYPE_INDEX: i32 = 0;
|
|
pub const V8_WRAPPER_OBJECT_INDEX: i32 = 1;
|
|
|
|
pub(crate) use jsrealm::ContextState;
|
|
pub use jsrealm::JsRealm;
|
|
pub use jsruntime::CompiledWasmModuleStore;
|
|
pub use jsruntime::CrossIsolateStore;
|
|
pub(crate) use jsruntime::InitMode;
|
|
pub use jsruntime::JsRuntime;
|
|
pub use jsruntime::JsRuntimeForSnapshot;
|
|
pub use jsruntime::JsRuntimeState;
|
|
pub use jsruntime::RuntimeOptions;
|
|
pub use jsruntime::RuntimeSnapshotOptions;
|
|
pub use jsruntime::SharedArrayBufferStore;
|
|
pub use jsruntime::Snapshot;
|
|
pub use snapshot_util::create_snapshot;
|
|
pub use snapshot_util::get_js_files;
|
|
pub use snapshot_util::CreateSnapshotOptions;
|
|
pub use snapshot_util::CreateSnapshotOutput;
|
|
pub use snapshot_util::FilterFn;
|
|
pub(crate) use snapshot_util::SnapshottedData;
|
|
|
|
pub use bindings::script_origin;
|