new VM: implemented constructors and jump optimizer
This commit is contained in:
parent
ee9aee6c00
commit
aefa0da8a6
7 changed files with 187 additions and 24 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue