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

Method check_entry_not_cold

cranelift/codegen/src/verifier/mod.rs:1293–1301  ·  view source on GitHub ↗
(&self, errors: &mut VerifierErrors)

Source from the content-addressed store, hash-verified

1291 }
1292
1293 fn check_entry_not_cold(&self, errors: &mut VerifierErrors) -> VerifierStepResult {
1294 if let Some(entry_block) = self.func.layout.entry_block() {
1295 if self.func.layout.is_cold(entry_block) {
1296 return errors
1297 .fatal((entry_block, format!("entry block cannot be marked as cold")));
1298 }
1299 }
1300 errors.as_result()
1301 }
1302
1303 fn typecheck(&self, inst: Inst, errors: &mut VerifierErrors) -> VerifierStepResult {
1304 let inst_data = &self.func.dfg.insts[inst];

Callers 1

runMethod · 0.80

Calls 4

fatalMethod · 0.80
as_resultMethod · 0.80
entry_blockMethod · 0.45
is_coldMethod · 0.45

Tested by

no test coverage detected