MCPcopy Index your code
hub / github.com/RustPython/RustPython / specialization_new_init_cleanup_frame

Method specialization_new_init_cleanup_frame

crates/vm/src/frame.rs:1326–1340  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1324 }
1325
1326 fn specialization_new_init_cleanup_frame(&self, vm: &VirtualMachine) -> FrameRef {
1327 Frame::new(
1328 vm.ctx.init_cleanup_code.clone(),
1329 Scope::new(
1330 Some(ArgMapping::from_dict_exact(vm.ctx.new_dict())),
1331 self.globals.clone(),
1332 ),
1333 self.builtins.clone(),
1334 &[],
1335 None,
1336 true,
1337 vm,
1338 )
1339 .into_ref(&vm.ctx)
1340 }
1341
1342 fn specialization_run_init_cleanup_shim(
1343 &self,

Calls 5

newFunction · 0.85
new_dictMethod · 0.80
SomeClass · 0.50
into_refMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected