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

Method code_info

cranelift/codegen/src/machinst/mod.rs:624–628  ·  view source on GitHub ↗

Get a `CodeInfo` describing section sizes from this compilation result.

(&self)

Source from the content-addressed store, hash-verified

622impl<T: CompilePhase> CompiledCodeBase<T> {
623 /// Get a `CodeInfo` describing section sizes from this compilation result.
624 pub fn code_info(&self) -> CodeInfo {
625 CodeInfo {
626 total_size: self.buffer.total_size(),
627 }
628 }
629
630 /// Returns a reference to the machine code generated for this function compilation.
631 pub fn code_buffer(&self) -> &[u8] {

Callers 3

runMethod · 0.80
handle_moduleFunction · 0.80
compile_with_cacheMethod · 0.80

Calls 1

total_sizeMethod · 0.80

Tested by 1

runMethod · 0.64