staticExec now supports caching

This commit is contained in:
Araq 2015-07-15 21:36:44 +02:00
commit 728fc441ef
4 changed files with 59 additions and 15 deletions

View file

@ -1168,9 +1168,12 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): TFullReg =
c.module)
of opcGorge:
decodeBC(rkNode)
inc pc
let rd = c.code[pc].regA
createStr regs[ra]
regs[ra].node.strVal = opGorge(regs[rb].node.strVal,
regs[rc].node.strVal)
regs[rc].node.strVal, regs[rd].node.strVal)
of opcNError:
stackTrace(c, tos, pc, errUser, regs[ra].node.strVal)
of opcNWarning: