summary refs log tree commit diff stats
path: root/compiler/vmdef.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-08-07 01:40:08 +0200
committerAraq <rumpf_a@web.de>2013-08-07 01:40:08 +0200
commitaefa0da8a612df3bb363435dd78ed641b239c0c8 (patch)
treef51f7e8a3c4711b75280eb8e290ac2906c3032f6 /compiler/vmdef.nim
parentee9aee6c0082e990d6b7355730704bdf6c70288c (diff)
downloadNim-aefa0da8a612df3bb363435dd78ed641b239c0c8.tar.gz
new VM: implemented constructors and jump optimizer
Diffstat (limited to 'compiler/vmdef.nim')
-rw-r--r--compiler/vmdef.nim6
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/vmdef.nim b/compiler/vmdef.nim
index 1a19efe5a..90d23e642 100644
--- a/compiler/vmdef.nim
+++ b/compiler/vmdef.nim
@@ -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