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

Method node_count

cranelift/codegen/src/isa/unwind/winx64.rs:132–152  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

130 }
131
132 fn node_count(&self) -> usize {
133 match self {
134 Self::StackAlloc { size, .. } => {
135 if *size <= SMALL_ALLOC_MAX_SIZE {
136 1
137 } else if *size <= LARGE_ALLOC_16BIT_MAX_SIZE {
138 2
139 } else {
140 3
141 }
142 }
143 Self::SaveXmm { stack_offset, .. } | Self::SaveReg { stack_offset, .. } => {
144 if *stack_offset <= core::u16::MAX as u32 {
145 2
146 } else {
147 3
148 }
149 }
150 _ => 1,
151 }
152 }
153}
154
155pub(crate) enum MappedRegister {

Callers 2

emit_sizeMethod · 0.80
emitMethod · 0.80

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected