summary refs log tree commit diff stats
path: root/compiler/vmdef.nim
diff options
context:
space:
mode:
authorflywind <xzsflywind@gmail.com>2022-03-09 01:12:31 +0800
committerGitHub <noreply@github.com>2022-03-08 18:12:31 +0100
commit8f9dd5b3492293e4e48647206c8858b58cd51666 (patch)
treef9526c8fff959f2f1e8dfa88fcfe3195d28f5967 /compiler/vmdef.nim
parent645447293851749fcc3394cd387d7070d8a9c735 (diff)
downloadNim-8f9dd5b3492293e4e48647206c8858b58cd51666.tar.gz
register callback for marshal in VM (#19578)
* register callback for marshal in VM

* remove unrelated code

* polish

* more tests

* more tests

* add loadVM and toVM
Diffstat (limited to 'compiler/vmdef.nim')
-rw-r--r--compiler/vmdef.nim5
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/vmdef.nim b/compiler/vmdef.nim
index 2044b860a..ecdbeff89 100644
--- a/compiler/vmdef.nim
+++ b/compiler/vmdef.nim
@@ -180,7 +180,6 @@ type
     opcNBindSym, opcNDynBindSym,
     opcSetType,   # dest.typ = types[Bx]
     opcTypeTrait,
-    opcMarshalLoad, opcMarshalStore,
     opcSymOwner,
     opcSymIsInstantiationOf
 
@@ -307,8 +306,8 @@ proc registerCallback*(c: PCtx; name: string; callback: VmCallback): int {.disca
 const
   firstABxInstr* = opcTJmp
   largeInstrs* = { # instructions which use 2 int32s instead of 1:
-    opcSubStr, opcConv, opcCast, opcNewSeq, opcOf,
-    opcMarshalLoad, opcMarshalStore}
+    opcSubStr, opcConv, opcCast, opcNewSeq, opcOf
+    }
   slotSomeTemp* = slotTempUnknown
   relativeJumps* = {opcTJmp, opcFJmp, opcJmp, opcJmpBack}