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

Method compile

cranelift/filetests/src/function_runner.rs:346–357  ·  view source on GitHub ↗

Finalize this TestFile and link all functions.

(mut self)

Source from the content-addressed store, hash-verified

344
345 /// Finalize this TestFile and link all functions.
346 pub fn compile(mut self) -> Result<CompiledTestFile, CompilationError> {
347 // Finalize the functions which we just defined, which resolves any
348 // outstanding relocations (patching in addresses, now that they're
349 // available).
350 self.module.finalize_definitions()?;
351
352 Ok(CompiledTestFile {
353 module: Some(self.module),
354 defined_functions: self.defined_functions,
355 trampolines: self.trampolines,
356 })
357 }
358}
359
360/// A finalized Test File

Callers 4

compile_testfileFunction · 0.45
runMethod · 0.45
runMethod · 0.45
nopFunction · 0.45

Calls 2

OkFunction · 0.85
finalize_definitionsMethod · 0.80

Tested by 4

compile_testfileFunction · 0.36
runMethod · 0.36
runMethod · 0.36
nopFunction · 0.36