aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/sqlvm/runtime/instructions.go
Commit message (Collapse)AuthorAgeFilesLines
* core: vm: sqlvm: opcodes and basic structsMeng-Ying Yang2019-04-031-13/+1513
| | | | | For runtime implementation, we define opcodes and basic structs for runtime usage and concrete implementation.
* core: vm: sqlvm: runtime: opLoad load fixed bytes and address in bytesJhih-Ming Huang2019-04-031-3/+3
| | | | | To satisfy the latest spec, the data of type of address and fixed bytes will be stored in bytes instead of decimal value.
* misc: replace shopspring/decimal with our forkyenlin.lai2019-04-031-1/+1
|
* core: vm: sqlvm: ast: implement decimal to uint64Jhih-Ming Huang2019-03-261-12/+24
| | | | | deciaml.IntPart() returns int64, so we have to implement a function to convert deciaml to uint64 for reading primary id from Raw.
* core: vm: sqlvm: runtime: implement opLoadJhih-Ming Huang2019-03-261-8/+101
|
* core: vm: sqlvm: runtime: add loadRegister funcJhih-Ming Huang2019-03-261-1/+1
| | | | Implement load register to input operands, before each op.
* core: vm: sqlvm: runtime entrypoing error handlingMeng-Ying Yang2019-03-261-3/+4
| | | | Return error.Error to reveal more information about returned error.
* core: vm: sqlvm: export instruction's member (#197)JM2019-03-261-3/+3
|
* core: vm: sqlvm: revert Tuple structure (#193)JM2019-03-261-4/+5
|
* core: vm: sqlvm: modify Tuple.Data.Value typeJhih-Ming Huang2019-03-261-7/+3
| | | | | Modify Tuple.Data.Value type from *big.Int to interface{} and remove Max, Min.
* core: vm: sqlvm: shared interfaces and paramsJhih-Ming Huang2019-03-261-0/+63
After reconstructing commits, we move shared interfaces and params as first runtime implementation. In this commit we define OP codes, runtime flow and entrypoint, and basic operand structs and minor helper components.