diff options
author | Zahary Karadjov <zahary@gmail.com> | 2012-12-05 20:42:19 +0200 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2012-12-20 15:51:21 +0200 |
commit | 083d4f47083755b80be8356f89cf25d8608cb661 (patch) | |
tree | cbd78421ed5c04fe31f70f22cd5dd1e03e306aea /lib/system/hti.nim | |
parent | d0edb1826b2c49413b6b7b1b9b351a632bd323f9 (diff) | |
download | Nim-083d4f47083755b80be8356f89cf25d8608cb661.tar.gz |
fixes the recently discovered GC memory leaks
This revision is intended as comparison point between the old and the new GC The used GC can be switched in mmdisp and various statistics will be gathered during execution (these will be removed/disabled in later revisions)
Diffstat (limited to 'lib/system/hti.nim')
-rwxr-xr-x | lib/system/hti.nim | 43 |
1 files changed, 33 insertions, 10 deletions
diff --git a/lib/system/hti.nim b/lib/system/hti.nim index 93dc79e3d..a2d132dbf 100755 --- a/lib/system/hti.nim +++ b/lib/system/hti.nim @@ -13,11 +13,19 @@ when defined(NimString): else: {.pragma: codegenType.} -type # This should be he same as ast.TTypeKind - # many enum fields are not used at runtime +type + # This should be he same as ast.TTypeKind + # many enum fields are not used at runtime TNimKind = enum - tyNone, tyBool, tyChar, - tyEmpty, tyArrayConstr, tyNil, tyExpr, tyStmt, tyTypeDesc, + tyNone, + tyBool, + tyChar, + tyEmpty, + tyArrayConstr, + tyNil, + tyExpr, + tyStmt, + tyTypeDesc, tyGenericInvokation, # ``T[a, b]`` for types to invoke tyGenericBody, # ``T[a, b, body]`` last parameter is the body tyGenericInst, # ``T[a, b, realInstance]`` instantiated generic type @@ -30,15 +38,30 @@ type # This should be he same as ast.TTypeKind tyTuple, # WARNING: The compiler uses tyTuple for pure objects! tySet, tyRange, - tyPtr, tyRef, + tyPtr, + tyRef, tyVar, tySequence, tyProc, - tyPointer, tyOpenArray, - tyString, tyCString, tyForward, - tyInt, tyInt8, tyInt16, tyInt32, tyInt64, - tyFloat, tyFloat32, tyFloat64, tyFloat128, - tyUInt, tyUInt8, tyUInt16, tyUInt32, tyUInt64, + tyPointer, + tyOpenArray, + tyString, + tyCString, + tyForward, + tyInt, + tyInt8, + tyInt16, + tyInt32, + tyInt64, + tyFloat, + tyFloat32, + tyFloat64, + tyFloat128, + tyUInt, + tyUInt8, + tyUInt16, + tyUInt32, + tyUInt64, tyBigNum, TNimNodeKind = enum nkNone, nkSlot, nkList, nkCase |