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

Method set_cold_block

cranelift/frontend/src/frontend.rs:358–360  ·  view source on GitHub ↗

Mark a block as "cold". This will try to move it out of the ordinary path of execution when lowered to machine code.

(&mut self, block: Block)

Source from the content-addressed store, hash-verified

356 /// This will try to move it out of the ordinary path of execution
357 /// when lowered to machine code.
358 pub fn set_cold_block(&mut self, block: Block) {
359 self.func.layout.set_cold(block);
360 }
361
362 /// Insert `block` in the layout *after* the existing block `after`.
363 pub fn insert_block_after(&mut self, block: Block, after: Block) {

Callers 13

generate_blocksMethod · 0.45
raise_if_host_trappedMethod · 0.45
conditionally_trapMethod · 0.45
epoch_check_cachedMethod · 0.45
table_get_funcrefMethod · 0.45
emit_maybe_force_gcMethod · 0.45
emit_inline_allocMethod · 0.45
emit_inline_allocMethod · 0.45
search_handlerFunction · 0.45
translate_resumeFunction · 0.45
translate_operatorFunction · 0.45

Calls 1

set_coldMethod · 0.80

Tested by

no test coverage detected