1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-22 15:06:54 -05:00
denoland-deno/core/runtime
Matt Mastracci 8fe9b8a4cc
refactor(ops): ops2 supports result in fast path (#19603)
Implements `Result` in fast-calls. Note that the approach here is
slightly different. Rather than store the last result in the `OpState`,
we put it into the `OpCtx` which saves us a lookup and lock in the error
case. We do not have to lock this field as it's guaranteed only one
runtime and thread can ever access it.

The fastcall path for many ops can avoid doing a great deal of work,
even for `Result` return values. In the previous iteration of `ops`, all
`Result`-returning functions would fetch and lock the `OpState`,
regardless of whether it was used or not.
2023-06-25 16:36:09 +02:00
..
bindings.js chore(core): Refactor runtime and split out tests (#19491) 2023-06-14 02:03:10 +00:00
bindings.rs refactor(core): some runtime methods should live on the module map (#19502) 2023-06-14 16:45:59 +00:00
encode_decode_test.js chore(core): Refactor runtime and split out tests (#19491) 2023-06-14 02:03:10 +00:00
error_builder_test.js chore(core): Refactor runtime and split out tests (#19491) 2023-06-14 02:03:10 +00:00
icudtl.dat chore(core): Refactor runtime and split out tests (#19491) 2023-06-14 02:03:10 +00:00
jsrealm.rs chore(core): Refactor runtime and split out tests (#19491) 2023-06-14 02:03:10 +00:00
jsruntime.rs Reland "refactor(core): cleanup feature flags for js source inclusion" (#19519) 2023-06-25 09:35:31 +02:00
mod.rs refactor(core): some runtime methods should live on the module map (#19502) 2023-06-14 16:45:59 +00:00
ops.rs refactor(ops): ops2 supports result in fast path (#19603) 2023-06-25 16:36:09 +02:00
serialize_deserialize_test.js chore(core): Refactor runtime and split out tests (#19491) 2023-06-14 02:03:10 +00:00
snapshot_util.rs Reland "refactor(core): cleanup feature flags for js source inclusion" (#19519) 2023-06-25 09:35:31 +02:00
tests.rs Reland "refactor(core): cleanup feature flags for js source inclusion" (#19519) 2023-06-25 09:35:31 +02:00