mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -05:00
8fe9b8a4cc
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. |
||
---|---|---|
.. | ||
bindings.js | ||
bindings.rs | ||
encode_decode_test.js | ||
error_builder_test.js | ||
icudtl.dat | ||
jsrealm.rs | ||
jsruntime.rs | ||
mod.rs | ||
ops.rs | ||
serialize_deserialize_test.js | ||
snapshot_util.rs | ||
tests.rs |