MCPcopy Index your code
hub / github.com/dispatchrun/coroutine / LoopBreakAndContinue

Function LoopBreakAndContinue

compiler/testdata/coroutine_durable.go:921–1073  ·  view source on GitHub ↗

go:noinline

(_ int)

Source from the content-addressed store, hash-verified

919
920//go:noinline
921func LoopBreakAndContinue(_ int) {
922 _c := coroutine.LoadContext[int, any]()
923 var _f0 *struct {
924 IP int
925 X0 int
926 X1 int
927 X2 int
928 X3 int
929 X4 int
930 X5 bool
931 X6 bool
932 X7 int
933 X8 bool
934 X9 bool
935 } = coroutine.Push[struct {
936 IP int
937 X0 int
938 X1 int
939 X2 int
940 X3 int
941 X4 int
942 X5 bool
943 X6 bool
944 X7 int
945 X8 bool
946 X9 bool
947 }](&_c.Stack)
948 if _f0.IP == 0 {
949 *_f0 = struct {
950 IP int
951 X0 int
952 X1 int
953 X2 int
954 X3 int
955 X4 int
956 X5 bool
957 X6 bool
958 X7 int
959 X8 bool
960 X9 bool
961 }{}
962 }
963 defer func() {
964 if !_c.Unwinding() {
965 coroutine.Pop(&_c.Stack)
966 }
967 }()
968 switch {
969 case _f0.IP < 6:
970 switch {
971 case _f0.IP < 2:
972 _f0.X0 = 0
973 _f0.IP = 2
974 fallthrough
975 case _f0.IP < 6:
976 _l0:
977 for ; _f0.X0 < 10; _f0.X0, _f0.IP = _f0.X0+1, 2 {
978 switch {

Callers

nothing calls this directly

Calls 3

LoadContextFunction · 0.92
PopFunction · 0.92
UnwindingMethod · 0.80

Tested by

no test coverage detected