Пример #1
0
 public VMStack(VMHeap heap, int stackSize)
 {
     // stupid hack: to unify pointer logic, we allocate the stack from our VM heap too
     _heap       = heap;
     _stackAlloc = heap.Get(heap.malloc(null, stackSize));
     heap.Pin(_stackAlloc.Handle);
     _mem = _stackAlloc.Memory;
     _ptr = 0;
 }
Пример #2
0
 public HeapValue(VMHeap heap)
 {
     _heap = heap;
 }