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

Method execute_build_map

crates/vm/src/frame.rs:6395–6404  ·  view source on GitHub ↗
(&mut self, vm: &VirtualMachine, size: u32)

Source from the content-addressed store, hash-verified

6393 }
6394
6395 fn execute_build_map(&mut self, vm: &VirtualMachine, size: u32) -> FrameResult {
6396 let size = size as usize;
6397 let map_obj = vm.ctx.new_dict();
6398 for (key, value) in self.pop_multiple(2 * size).tuples() {
6399 map_obj.set_item(&*key, value, vm)?;
6400 }
6401
6402 self.push_value(map_obj.into());
6403 Ok(None)
6404 }
6405
6406 fn execute_build_slice(
6407 &mut self,

Callers 1

execute_instructionMethod · 0.80

Calls 4

new_dictMethod · 0.80
push_valueMethod · 0.80
pop_multipleMethod · 0.45
set_itemMethod · 0.45

Tested by

no test coverage detected