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

Method map_jump_table

cranelift/codegen/src/inline.rs:938–950  ·  view source on GitHub ↗
(&mut self, jump_table: ir::JumpTable)

Source from the content-addressed store, hash-verified

936 }
937
938 fn map_jump_table(&mut self, jump_table: ir::JumpTable) -> ir::JumpTable {
939 let inlined_default =
940 self.map_block_call(self.callee.dfg.jump_tables[jump_table].default_block());
941 let inlined_table = self.callee.dfg.jump_tables[jump_table]
942 .as_slice()
943 .iter()
944 .map(|callee_block_call| self.map_block_call(*callee_block_call))
945 .collect::<SmallBlockCallVec>();
946 self.func
947 .dfg
948 .jump_tables
949 .push(ir::JumpTableData::new(inlined_default, &inlined_table))
950 }
951
952 fn map_exception_table(&mut self, exception_table: ir::ExceptionTable) -> ir::ExceptionTable {
953 let exception_table = &self.callee.dfg.exception_tables[exception_table];

Callers

nothing calls this directly

Calls 7

default_blockMethod · 0.80
newFunction · 0.50
map_block_callMethod · 0.45
mapMethod · 0.45
iterMethod · 0.45
as_sliceMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected