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

Method create_jump_table

cranelift/frontend/src/frontend.rs:568–570  ·  view source on GitHub ↗

Creates a jump table in the function, to be used by [`br_table`](InstBuilder::br_table) instructions.

(&mut self, data: JumpTableData)

Source from the content-addressed store, hash-verified

566
567 /// Creates a jump table in the function, to be used by [`br_table`](InstBuilder::br_table) instructions.
568 pub fn create_jump_table(&mut self, data: JumpTableData) -> JumpTable {
569 self.func.create_jump_table(data)
570 }
571
572 /// Creates a sized stack slot in the function, to be used by [`stack_load`](InstBuilder::stack_load),
573 /// [`stack_store`](InstBuilder::stack_store) and [`stack_addr`](InstBuilder::stack_addr) instructions.

Callers 6

build_jump_tableMethod · 0.45
br_table_with_argsFunction · 0.45
insert_terminatorMethod · 0.45
translate_resumeFunction · 0.45
translate_operatorFunction · 0.45
dominator_treeFunction · 0.45

Calls

no outgoing calls

Tested by 1

br_table_with_argsFunction · 0.36