MCPcopy Index your code
hub / github.com/tinygo-org/tinygo / decodeFuncValue

Method decodeFuncValue

compiler/func.go:38–42  ·  view source on GitHub ↗

decodeFuncValue extracts the context and the function pointer from this func value.

(funcValue llvm.Value)

Source from the content-addressed store, hash-verified

36// decodeFuncValue extracts the context and the function pointer from this func
37// value.
38func (b *builder) decodeFuncValue(funcValue llvm.Value) (funcPtr, context llvm.Value) {
39 context = b.CreateExtractValue(funcValue, 0, "")
40 funcPtr = b.CreateExtractValue(funcValue, 1, "")
41 return
42}
43
44// getFuncType returns the type of a func value given a signature.
45func (c *compilerContext) getFuncType(typ *types.Signature) llvm.Type {

Callers 4

createInterruptGlobalMethod · 0.95
createRunDefersMethod · 0.95
createFunctionCallMethod · 0.95
createGoMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected