From e23fc6d88cc26a234ef2795d0bea1fd2f7fb8bfa Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Tue, 13 Feb 2024 19:44:37 -0700 Subject: chore: deno_core bump (#22407) - Adding `None` flag for warmup script. - Modify opcall trace interface to match new Rust implementation --- runtime/snapshot.rs | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) (limited to 'runtime') 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()); } -- cgit v1.2.3