diff options
author | Andreas Rumpf <andreas@andreas-desktop> | 2010-08-08 22:45:21 +0200 |
---|---|---|
committer | Andreas Rumpf <andreas@andreas-desktop> | 2010-08-08 22:45:21 +0200 |
commit | 8098e2a421bf26ad0f350f297f19f34619207443 (patch) | |
tree | ada62dabe6a38c7fbe47d65e2674b9070f2cef3c /lib/pure/lexbase.nim | |
parent | c9e011e36cf400e1a2e5466a1339f716623508f7 (diff) | |
download | Nim-8098e2a421bf26ad0f350f297f19f34619207443.tar.gz |
inlining of the write barrier for dlls
Diffstat (limited to 'lib/pure/lexbase.nim')
-rwxr-xr-x | lib/pure/lexbase.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pure/lexbase.nim b/lib/pure/lexbase.nim index bb207e92a..c875e10bc 100755 --- a/lib/pure/lexbase.nim +++ b/lib/pure/lexbase.nim @@ -78,7 +78,8 @@ proc FillBuffer(L: var TBaseLexer) = toCopy = L.BufLen - L.sentinel - 1 assert(toCopy >= 0) if toCopy > 0: - MoveMem(L.buf, addr(L.buf[L.sentinel + 1]), toCopy * chrSize) # "moveMem" handles overlapping regions + MoveMem(L.buf, addr(L.buf[L.sentinel + 1]), toCopy * chrSize) + # "moveMem" handles overlapping regions charsRead = L.input.readData(L.input, addr(L.buf[toCopy]), (L.sentinel + 1) * chrSize) div chrSize s = toCopy + charsRead |