Lines Matching refs:stack
29 for _, fr := range thread.stack[:len(thread.stack)-1] {
56 stack := space[nlocals:] // operand stack
68 fmt.Printf("%d stack, %d locals\n", len(stack), len(locals))
117 fmt.Fprintln(os.Stderr, stack[:sp]) // very verbose!
126 stack[sp] = stack[sp-1]
130 stack[sp] = stack[sp-2]
131 stack[sp+1] = stack[sp-1]
138 stack[sp-2], stack[sp-1] = stack[sp-1], stack[sp-2]
142 y := stack[sp-1]
143 x := stack[sp-2]
150 stack[sp] = Bool(ok)
169 y := stack[sp-1]
170 x := stack[sp-2]
177 stack[sp] = z
187 x := stack[sp-1]
193 stack[sp-1] = y
196 y := stack[sp-1]
197 x := stack[sp-2]
220 stack[sp] = z
224 stack[sp] = None
228 stack[sp] = True
232 stack[sp] = False
236 stack[sp] = mandatory{}
245 kwargs = stack[sp-1]
251 args = stack[sp-1]
264 pair[0] = stack[sp+2*i] // name
265 pair[1] = stack[sp+2*i+1] // value
293 positional = stack[sp-npos : sp]
299 if _, ok := stack[sp-1].(*Function); !ok || args != nil {
317 function := stack[sp-1]
334 stack[sp-1] = z
337 x := stack[sp-1]
348 if iter.Next(&stack[sp]) {
360 stack[sp-1] = !stack[sp-1].Truth()
363 result = stack[sp-1]
367 z := stack[sp-1]
368 y := stack[sp-2]
369 x := stack[sp-3]
377 y := stack[sp-1]
378 x := stack[sp-2]
385 stack[sp] = z
389 x := stack[sp-1]
396 stack[sp-1] = y
399 y := stack[sp-1]
400 x := stack[sp-2]
409 stack[sp] = new(Dict)
413 dict := stack[sp-3].(*Dict)
414 k := stack[sp-2]
415 v := stack[sp-1]
428 elem := stack[sp-1]
429 list := stack[sp-2].(*List)
434 x := stack[sp-4]
435 lo := stack[sp-3]
436 hi := stack[sp-2]
437 step := stack[sp-1]
444 stack[sp] = res
449 iterable := stack[sp-1]
458 for i < n && iter.Next(&stack[sp-1-i]) {
474 if stack[sp-1].Truth() {
480 stack[sp] = fn.module.constants[arg]
487 copy(tuple, stack[sp:])
488 stack[sp] = tuple
495 copy(elems, stack[sp:])
496 stack[sp] = NewList(elems)
501 tuple := stack[sp-1].(Tuple)
505 stack[sp-1] = &Function{
514 module := string(stack[sp-1].(String))
534 from := string(stack[sp-1-i].(String))
543 stack[sp-1-i] = v
547 locals[arg] = stack[sp-1]
551 locals[arg].(*cell).v = stack[sp-1]
555 fn.module.globals[arg] = stack[sp-1]
564 stack[sp] = x
568 stack[sp] = fn.freevars[arg]
577 stack[sp] = v
586 stack[sp] = v
595 stack[sp] = x
605 stack[sp] = x
609 stack[sp] = Universe[f.Prog.Names[arg]]