diff options
author | Matt Mastracci <matthew@mastracci.com> | 2024-02-13 19:44:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-13 19:44:37 -0700 |
commit | e23fc6d88cc26a234ef2795d0bea1fd2f7fb8bfa (patch) | |
tree | c0c08ba5520610be6f748aa9a75633d87baf5445 /runtime/snapshot.rs | |
parent | 082f8128b8d784c599fdf2c0d857dbbe6abbc7fe (diff) |
chore: deno_core bump (#22407)
- Adding `None` flag for warmup script.
- Modify opcall trace interface to match new Rust implementation
Diffstat (limited to 'runtime/snapshot.rs')
-rw-r--r-- | runtime/snapshot.rs | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/runtime/snapshot.rs b/runtime/snapshot.rs index b23b024ee..f7342ce14 100644 --- a/runtime/snapshot.rs +++ b/runtime/snapshot.rs @@ -265,21 +265,24 @@ pub fn create_runtime_snapshot( } } - let output = create_snapshot(CreateSnapshotOptions { - cargo_manifest_dir: env!("CARGO_MANIFEST_DIR"), - snapshot_path, - startup_snapshot: None, - extensions, - compression_cb: None, - with_runtime_cb: Some(Box::new(|rt| { - let isolate = rt.v8_isolate(); - let scope = &mut v8::HandleScope::new(isolate); + let output = create_snapshot( + CreateSnapshotOptions { + cargo_manifest_dir: env!("CARGO_MANIFEST_DIR"), + snapshot_path, + startup_snapshot: None, + extensions, + compression_cb: None, + with_runtime_cb: Some(Box::new(|rt| { + let isolate = rt.v8_isolate(); + let scope = &mut v8::HandleScope::new(isolate); - let ctx = v8::Context::new(scope); - assert_eq!(scope.add_context(ctx), deno_node::VM_CONTEXT_INDEX); - })), - skip_op_registration: false, - }); + let ctx = v8::Context::new(scope); + assert_eq!(scope.add_context(ctx), deno_node::VM_CONTEXT_INDEX); + })), + skip_op_registration: false, + }, + None, + ); for path in output.files_loaded_during_snapshot { println!("cargo:rerun-if-changed={}", path.display()); } |