new VM: implemented constructors and jump optimizer

This commit is contained in:
Araq 2013-08-07 01:40:08 +02:00
commit aefa0da8a6
7 changed files with 187 additions and 24 deletions

View file

@ -86,6 +86,9 @@ type
opcNWarning,
opcNHint,
opcNLineInfo,
opcEqIdent,
opcStrToIdent,
opcIdentToStr,
opcEcho,
opcIndCall, # dest = call regStart, n; where regStart = fn, arg1, ...
@ -114,7 +117,8 @@ type
opcLdGlobal, # dest = globals[Bx]
opcLdImmInt, # dest = immediate value
opcWrGlobal,
opcWrGlobalRef
opcWrGlobalRef,
opcSetType # dest.typ = types[Bx]
TBlock* = object
label*: PSym