summary refs log tree commit diff stats
path: root/compiler/vmdef.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2021-04-17 01:12:12 +0200
committerGitHub <noreply@github.com>2021-04-17 01:12:12 +0200
commit8e474fbb57c2f7b58a840b5b30230c2267633c8e (patch)
tree560ff92bbd62a67f03d6a0eedfcf5bd30bcd4ba2 /compiler/vmdef.nim
parent201ac2b9c93a8c3677b4910a1986c91741aee0e3 (diff)
downloadNim-8e474fbb57c2f7b58a840b5b30230c2267633c8e.tar.gz
IC: yet another embarrassing omission (#17743)
* IC: yet another embarrassing omission

* VM: fewer hacks that kept IC from working
Diffstat (limited to 'compiler/vmdef.nim')
-rw-r--r--compiler/vmdef.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/vmdef.nim b/compiler/vmdef.nim
index e8b5cdda9..068ade4b0 100644
--- a/compiler/vmdef.nim
+++ b/compiler/vmdef.nim
@@ -10,6 +10,8 @@
 ## This module contains the type definitions for the new evaluation engine.
 ## An instruction is 1-3 int32s in memory, it is a register based VM.
 
+import std / tables
+
 import ast, idents, options, modulegraphs, lineinfos
 
 type TInstrType* = uint64
@@ -266,6 +268,7 @@ type
     profiler*: Profiler
     templInstCounter*: ref int # gives every template instantiation a unique ID, needed here for getAst
     vmstateDiff*: seq[(PSym, PNode)] # we remember the "diff" to global state here (feature for IC)
+    procToCodePos*: Table[int, int]
 
   PStackFrame* = ref TStackFrame
   TStackFrame* = object