This file implements the new evaluation engine for Nim code. An instruction is 1-3 int32s in memory, it is a register based VM.
Procs
proc evalConstExpr(module: PSym; idgen: IdGenerator; g: ModuleGraph; e: PNode): PNode {....raises: [ Exception, ValueError, KeyError, IOError, ERecoverableError, OSError], tags: [ RootEffect, ReadDirEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect, TimeEffect, ExecIOEffect], forbids: [].}
- Source Edit
proc evalMacroCall(module: PSym; idgen: IdGenerator; g: ModuleGraph; templInstCounter: ref int; n, nOrig: PNode; sym: PSym): PNode {....raises: [ Exception, ValueError, KeyError, IOError, ERecoverableError, OSError], tags: [ RootEffect, ReadDirEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect, TimeEffect, ExecIOEffect], forbids: [].}
- Source Edit
proc evalStaticExpr(module: PSym; idgen: IdGenerator; g: ModuleGraph; e: PNode; prc: PSym): PNode {....raises: [Exception, ValueError, KeyError, IOError, ERecoverableError, OSError], tags: [RootEffect, ReadDirEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect, TimeEffect, ExecIOEffect], forbids: [].}
- Source Edit
proc evalStaticStmt(module: PSym; idgen: IdGenerator; g: ModuleGraph; e: PNode; prc: PSym) {....raises: [Exception, ValueError, KeyError, IOError, ERecoverableError, OSError], tags: [RootEffect, ReadDirEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect, TimeEffect, ExecIOEffect], forbids: [].}
- Source Edit
proc getNodeAddr(a: VmArgs; i: Natural): PNode {....raises: [], tags: [], forbids: [].}
- Source Edit
proc interpreterCode(c: PPassContext; n: PNode): PNode {....raises: [Exception, ValueError, KeyError, IOError, ERecoverableError, OSError], tags: [ RootEffect, ReadDirEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect, TimeEffect, ExecIOEffect], forbids: [].}
- Source Edit
proc registerAdditionalOps(c: PCtx) {....raises: [], tags: [], forbids: [].}
- Source Edit
proc setResult(a: VmArgs; v: (BiggestInt, BiggestInt)) {....raises: [], tags: [], forbids: [].}
- Source Edit
proc setResult(a: VmArgs; v: AbsoluteDir) {....raises: [], tags: [], forbids: [].}
- Source Edit
proc setupCompileTimeVar(module: PSym; idgen: IdGenerator; g: ModuleGraph; n: PNode) {....raises: [Exception, ValueError, KeyError, IOError, ERecoverableError, OSError], tags: [RootEffect, ReadDirEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect, TimeEffect, ExecIOEffect], forbids: [].}
- Source Edit
proc setupEvalGen(graph: ModuleGraph; module: PSym; idgen: IdGenerator): PPassContext {. ...raises: [], tags: [], forbids: [].}
- Source Edit
proc setupGlobalCtx(module: PSym; graph: ModuleGraph; idgen: IdGenerator) {. ...raises: [], tags: [], forbids: [].}
- Source Edit