diff options
author | Meng-Ying Yang <garfield@dexon.org> | 2019-02-23 10:51:51 +0800 |
---|---|---|
committer | Jhih-Ming Huang <jm.huang@cobinhood.com> | 2019-05-06 10:44:04 +0800 |
commit | 8115f8c82f95e6581361fcd7e2d838406517ea4f (patch) | |
tree | 2efe439e555bf75761b084f7f5fe3634e3bbf260 /core/vm/sqlvm/runtime/opcodes.go | |
parent | 4c3bc281c9d8409e2ae030be63e82d2c27aa73aa (diff) | |
download | dexon-8115f8c82f95e6581361fcd7e2d838406517ea4f.tar dexon-8115f8c82f95e6581361fcd7e2d838406517ea4f.tar.gz dexon-8115f8c82f95e6581361fcd7e2d838406517ea4f.tar.bz2 dexon-8115f8c82f95e6581361fcd7e2d838406517ea4f.tar.lz dexon-8115f8c82f95e6581361fcd7e2d838406517ea4f.tar.xz dexon-8115f8c82f95e6581361fcd7e2d838406517ea4f.tar.zst dexon-8115f8c82f95e6581361fcd7e2d838406517ea4f.zip |
core: vm: sqlvm: opcodes and basic structs
For runtime implementation, we define opcodes and basic structs for
runtime usage and concrete implementation.
Diffstat (limited to 'core/vm/sqlvm/runtime/opcodes.go')
-rw-r--r-- | core/vm/sqlvm/runtime/opcodes.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/vm/sqlvm/runtime/opcodes.go b/core/vm/sqlvm/runtime/opcodes.go index 5803c6982..88bc039e1 100644 --- a/core/vm/sqlvm/runtime/opcodes.go +++ b/core/vm/sqlvm/runtime/opcodes.go @@ -3,6 +3,11 @@ package runtime // OpCode type type OpCode byte +// 0x00 range - higher order ops. +const ( + NOP OpCode = iota +) + // 0x10 range - arithmetic ops. (array-based) const ( ADD OpCode = iota + 0x10 @@ -36,6 +41,7 @@ const ( const ( ZIP OpCode = iota + 0x40 FIELD + PRUNE SORT FILTER CAST |