6 /* push a new tuple on the stack */
7 tuple *factor_vm::allot_tuple(cell layout_)
9 gc_root<tuple_layout> layout(layout_,this);
10 gc_root<tuple> t(allot<tuple>(tuple_size(layout.untagged())),this);
11 t->layout = layout.value();
15 inline void factor_vm::primitive_tuple()
17 gc_root<tuple_layout> layout(dpop(),this);
18 tuple *t = allot_tuple(layout.value());
20 for(i = tuple_size(layout.untagged()) - 1; i >= 0; i--)
26 PRIMITIVE_FORWARD(tuple)
28 /* push a new tuple on the stack, filling its slots from the stack */
29 inline void factor_vm::primitive_tuple_boa()
31 gc_root<tuple_layout> layout(dpop(),this);
32 gc_root<tuple> t(allot_tuple(layout.value()),this);
33 cell size = untag_fixnum(layout.untagged()->size) * sizeof(cell);
34 memcpy(t->data(),(cell *)(ds - (size - sizeof(cell))),size);
39 PRIMITIVE_FORWARD(tuple_boa)