MCPcopy Index your code
hub / github.com/google/mtail / setLabel

Method setLabel

internal/runtime/compiler/codegen/codegen.go:64–66  ·  view source on GitHub ↗

setLabel points a label to the next instruction.

(l int)

Source from the content-addressed store, hash-verified

62
63// setLabel points a label to the next instruction.
64func (c *codegen) setLabel(l int) {
65 c.l[l] = c.pc() + 1
66}
67
68// pc returns the program offset of the last instruction.
69func (c *codegen) pc() int {

Callers 2

VisitBeforeMethod · 0.95
VisitAfterMethod · 0.95

Calls 1

pcMethod · 0.95

Tested by

no test coverage detected