mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
s/PinnedBuf/ZeroCopyBuf (#3782)
This commit is contained in:
parent
86726f88f1
commit
5e32c5ea44
32 changed files with 145 additions and 138 deletions
|
@ -12,8 +12,8 @@ use deno_core::CoreOp;
|
|||
use deno_core::ErrBox;
|
||||
use deno_core::Isolate;
|
||||
use deno_core::ModuleSpecifier;
|
||||
use deno_core::PinnedBuf;
|
||||
use deno_core::StartupData;
|
||||
use deno_core::ZeroCopyBuf;
|
||||
pub use ops::EmitResult;
|
||||
use ops::WrittenFile;
|
||||
use std::fs;
|
||||
|
@ -45,11 +45,11 @@ pub struct TSState {
|
|||
fn compiler_op<D>(
|
||||
ts_state: Arc<Mutex<TSState>>,
|
||||
dispatcher: D,
|
||||
) -> impl Fn(&[u8], Option<PinnedBuf>) -> CoreOp
|
||||
) -> impl Fn(&[u8], Option<ZeroCopyBuf>) -> CoreOp
|
||||
where
|
||||
D: Fn(&mut TSState, &[u8]) -> CoreOp,
|
||||
{
|
||||
move |control: &[u8], zero_copy_buf: Option<PinnedBuf>| -> CoreOp {
|
||||
move |control: &[u8], zero_copy_buf: Option<ZeroCopyBuf>| -> CoreOp {
|
||||
assert!(zero_copy_buf.is_none()); // zero_copy_buf unused in compiler.
|
||||
let mut s = ts_state.lock().unwrap();
|
||||
dispatcher(&mut s, control)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue