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

Method allocate

winch/codegen/src/regset.rs:132–136  ·  view source on GitHub ↗
(&mut self, class: RegClass, index: u64)

Source from the content-addressed store, hash-verified

130 }
131
132 fn allocate(&mut self, class: RegClass, index: u64) {
133 if !self.is_non_allocatable(class, index) {
134 self[class].allocatable &= !(1 << index);
135 }
136 }
137
138 fn is_non_allocatable(&self, class: RegClass, index: u64) -> bool {
139 let bitset = &self[class];

Callers 2

reg_for_classMethod · 0.45
regMethod · 0.45

Calls 1

is_non_allocatableMethod · 0.80

Tested by

no test coverage detected