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

Method write_function_addr

cranelift/module/src/data_context.rs:152–154  ·  view source on GitHub ↗

Write the address of `func` into the data at offset `offset`.

(&mut self, offset: CodeOffset, func: ir::FuncRef)

Source from the content-addressed store, hash-verified

150
151 /// Write the address of `func` into the data at offset `offset`.
152 pub fn write_function_addr(&mut self, offset: CodeOffset, func: ir::FuncRef) {
153 self.function_relocs.push((offset, func))
154 }
155
156 /// Write the address of `data` into the data at offset `offset`.
157 pub fn write_data_addr(&mut self, offset: CodeOffset, data: ir::GlobalValue, addend: Addend) {

Callers 1

basic_data_contextFunction · 0.80

Calls 1

pushMethod · 0.45

Tested by 1

basic_data_contextFunction · 0.64