0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-02 12:50:43 -05:00
denoland-deno/core/examples/http_bench_json_ops
Matt Mastracci 782db80629
chore(core): Split JsRuntimeForSnapshot from JsRuntime (#19308)
This cleans up `JsRuntime` a bit more:

* We no longer print cargo's rerun-if-changed messages in `JsRuntime` --
those are printed elsewhere
* We no longer special case the OwnedIsolate for snapshots. Instead we
make use of an inner object that has the `Drop` impl and allows us to
`std::mem::forget` it if we need to extract the isolate for a snapshot
* The `snapshot` method is only available on `JsRuntimeForSnapshot`, not
`JsRuntime`.
* `OpState` construction is slightly cleaner, though I'd still like to
extract more

---------

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-06-09 01:13:18 +02:00
..
http_bench_json_ops.js bench: fix benchmarks again (#18942) 2023-05-01 19:57:58 +00:00
main.rs chore(core): Split JsRuntimeForSnapshot from JsRuntime (#19308) 2023-06-09 01:13:18 +02:00