- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for NewJumpTableStmt (0.2 sec)
-
src/cmd/compile/internal/walk/switch.go
// We disable jump tables if we use less than a minimum fraction of the entries. // i.e. for switch x {case 0: case 1000: case 2000:} we don't want to use a jump table. return false } jt := ir.NewJumpTableStmt(base.Pos, s.exprname) for _, c := range cc { jmp := c.jmp.(*ir.BranchStmt) if jmp.Op() != ir.OGOTO || jmp.Label == nil { panic("bad switch case body") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:34:01 UTC 2024 - 30.1K bytes - Viewed (0)