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 tuple *allot_tuple(cell layout_)
17 return vm->allot_tuple(layout_);
20 inline void factorvm::vmprim_tuple()
22 gc_root<tuple_layout> layout(dpop(),this);
23 tuple *t = allot_tuple(layout.value());
25 for(i = tuple_size(layout.untagged()) - 1; i >= 0; i--)
33 PRIMITIVE_GETVM()->vmprim_tuple();
36 /* push a new tuple on the stack, filling its slots from the stack */
37 inline void factorvm::vmprim_tuple_boa()
39 gc_root<tuple_layout> layout(dpop(),this);
40 gc_root<tuple> t(allot_tuple(layout.value()),this);
41 cell size = untag_fixnum(layout.untagged()->size) * sizeof(cell);
42 memcpy(t->data(),(cell *)(ds - (size - sizeof(cell))),size);
49 PRIMITIVE_GETVM()->vmprim_tuple_boa();