diff options
author | flywind <xzsflywind@gmail.com> | 2022-03-09 01:12:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-08 18:12:31 +0100 |
commit | 8f9dd5b3492293e4e48647206c8858b58cd51666 (patch) | |
tree | f9526c8fff959f2f1e8dfa88fcfe3195d28f5967 /compiler/vmdef.nim | |
parent | 645447293851749fcc3394cd387d7070d8a9c735 (diff) | |
download | Nim-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.nim | 5 |
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} |