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

Method emit

cranelift/assembler-x64/src/rex.rs:229–235  ·  view source on GitHub ↗

Emit the truncated immediate into the code sink.

(self, sink: &mut impl CodeSink)

Source from the content-addressed store, hash-verified

227
228 /// Emit the truncated immediate into the code sink.
229 pub fn emit(self, sink: &mut impl CodeSink) {
230 match self {
231 Disp::None => {}
232 Disp::Imm8(n) => sink.put1(n as u8),
233 Disp::Imm32(n) => sink.put4(n as u32),
234 }
235 }
236}

Callers 1

emit_modrm_sib_dispFunction · 0.45

Calls 2

put1Method · 0.45
put4Method · 0.45

Tested by

no test coverage detected