Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for NewJumpTableStmt (0.11 sec)

  1. 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)
Back to top