MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / update_right_crit_key

Method update_right_crit_key

cranelift/bforest/src/path.rs:635–645  ·  view source on GitHub ↗

Update the critical key for the right sibling node at `level`.

(&self, level: usize, crit_key: F::Key, pool: &mut NodePool<F>)

Source from the content-addressed store, hash-verified

633
634 /// Update the critical key for the right sibling node at `level`.
635 fn update_right_crit_key(&self, level: usize, crit_key: F::Key, pool: &mut NodePool<F>) {
636 let bl = self
637 .right_sibling_branch_level(level, pool)
638 .expect("No right sibling exists");
639 match pool[self.node[bl]] {
640 NodeData::Inner { ref mut keys, .. } => {
641 keys[usize::from(self.entry[bl])] = crit_key;
642 }
643 _ => panic!("Expected inner node"),
644 }
645 }
646
647 /// Normalize the path position such that it is either pointing at a real entry or `size=0`
648 /// indicating "off-the-end".

Callers 1

underflowed_nodeMethod · 0.80

Calls 3

fromFunction · 0.85
expectMethod · 0.45

Tested by

no test coverage detected