IC: yet another embarrassing omission (#17743)

* IC: yet another embarrassing omission

* VM: fewer hacks that kept IC from working
This commit is contained in:
Andreas Rumpf 2021-04-17 01:12:12 +02:00 • committed by GitHub
commit 8e474fbb57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 10 deletions

View file

@ -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