6 /* push a new tuple on the stack */
7 tuple *factorvm::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 factorvm::vmprim_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--)
28 PRIMITIVE_GETVM()->vmprim_tuple();
31 /* push a new tuple on the stack, filling its slots from the stack */
32 inline void factorvm::vmprim_tuple_boa()
34 gc_root<tuple_layout> layout(dpop(),this);
35 gc_root<tuple> t(allot_tuple(layout.value()),this);
36 cell size = untag_fixnum(layout.untagged()->size) * sizeof(cell);
37 memcpy(t->data(),(cell *)(ds - (size - sizeof(cell))),size);
44 PRIMITIVE_GETVM()->vmprim_tuple_boa();