the Go GC - initial implementation

This commit is contained in:
Stefan Talpalaru 2015-05-31 19:07:44 +02:00
commit 50e96ad939
10 changed files with 213 additions and 16 deletions

View file

@ -67,11 +67,11 @@ type
pbyteArray = ptr array[0.. 0xffff, int8]
TGenericSeq {.importc.} = object
len, space: int
len, space, elemSize: int
PGenSeq = ptr TGenericSeq
const
GenericSeqSize = (2 * sizeof(int))
GenericSeqSize = (3 * sizeof(int))
proc genericAssign(dest, src: pointer, mt: PNimType) {.importCompilerProc.}
proc genericShallowAssign(dest, src: pointer, mt: PNimType) {.