(ci *callInfo, expected opCode)
| 961 | } |
| 962 | |
| 963 | func expectNext(ci *callInfo, expected opCode) instruction { |
| 964 | i := ci.step() // go to next instruction |
| 965 | if op := i.opCode(); op != expected { |
| 966 | panic(fmt.Sprintf("expected opcode %s, got %s", opNames[expected], opNames[op])) |
| 967 | } |
| 968 | return i |
| 969 | } |
| 970 | |
| 971 | func (l *State) executeSwitch() { |
| 972 | ci := l.callInfo |
no test coverage detected