diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2021-01-25 20:52:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-25 20:52:26 +0100 |
commit | 25745ad195580772d4689a7c98f9b3f77f06cdd1 (patch) | |
tree | d53abf9152f3432b416afe6591fcc3e63576bef8 /compiler/ic/packed_ast.nim | |
parent | 0436a7cffd729187d63f3310c19dbf4b88f72c13 (diff) | |
download | Nim-25745ad195580772d4689a7c98f9b3f77f06cdd1.tar.gz |
IC: final implementation steps (#16801)
* removed dead code * we need even more laziness for the generic caches * make it bootstrap on older Nims * wrote more deserialization code * IC: replay required methods information
Diffstat (limited to 'compiler/ic/packed_ast.nim')
-rw-r--r-- | compiler/ic/packed_ast.nim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/ic/packed_ast.nim b/compiler/ic/packed_ast.nim index 213b21b23..95cac4700 100644 --- a/compiler/ic/packed_ast.nim +++ b/compiler/ic/packed_ast.nim @@ -74,11 +74,9 @@ type flags*: TTypeFlags types*: seq[PackedItemId] n*: NodeId - methods*: seq[(int, PackedItemId)] #nodeflags*: TNodeFlags sym*: PackedItemId owner*: PackedItemId - attachedOps*: array[TTypeAttachedOp, PackedItemId] size*: BiggestInt align*: int16 paddingAtEnd*: int16 @@ -111,6 +109,10 @@ type floats*: BiTable[BiggestFloat] #config*: ConfigRef + PackedInstantiation* = object + key*, sym*: PackedItemId + concreteTypes*: seq[PackedItemId] + proc `==`*(a, b: SymId): bool {.borrow.} proc hash*(a: SymId): Hash {.borrow.} |