optimize(value): less clone

This commit is contained in:
imxyy1soope1 committed 2025-05-22 21:24:19 +08:00
1 parent b0b73439fd
commit f380e5fd70
6 files changed
+105 -106

No files matched your search

+1 -1
View File
@@ -289,7 +289,7 @@ impl<'vm, 'ctx: 'vm> JITContext<'ctx> {
.new_thunk(Rc::into_raw(Rc::new(Thunk::new(vm.get_thunk(idx))))),
)?,
OpCode::CaptureEnv => {
let thunk = *stack.tos()?;
let thunk = *stack.tos();
self.builder.build_direct_call(
self.helpers.capture_env,
&[thunk.into(), env.into()],