improve vmgen.codeListing formatting (#10306)

* improve vmgen.codeListing formatting
* address comments
This commit is contained in:
Timothee Cour 2019-01-15 10:02:01 -08:00 • committed by Andreas Rumpf
commit beed27b75d
3 changed files with 26 additions and 14 deletions

View file

@ -10,10 +10,6 @@
## This file implements the new evaluation engine for Nim code.
## An instruction is 1-3 int32s in memory, it is a register based VM.
const
debugEchoCode = false
traceCode = debugEchoCode
import ast except getstr
import
@ -26,6 +22,9 @@ from evaltempl import evalTemplate
from modulegraphs import ModuleGraph, PPassContext
const
traceCode = debugEchoCode
when hasFFI:
import evalffi