Evgenii Stratonikov
|
a8dc704197
|
emit: add tests for Int
|
2020-02-06 18:45:37 +03:00 |
|
Evgenii Stratonikov
|
6fd3f0fa48
|
emit: add tests for Bytes
|
2020-02-06 18:45:37 +03:00 |
|
Evgenii Stratonikov
|
5e992d8cdd
|
emit: add tests for Syscall, Jmp
|
2020-02-06 18:45:37 +03:00 |
|
Evgenii Stratonikov
|
8243a8b3a7
|
emit: use io.BinWriter instead of bytes.Buffer
|
2020-02-06 18:45:37 +03:00 |
|
Evgenii Stratonikov
|
698c647f07
|
emit: refactor tests
Add structure and call Bytes() method on buffer once.
|
2020-02-06 18:45:37 +03:00 |
|
Evgenii Stratonikov
|
1400ecfdde
|
emit: fix Int to serialize integers in correct format
Related #605, #623.
|
2020-02-06 18:45:37 +03:00 |
|
Evgenii Stratonikov
|
c821e1c4c8
|
vm: move IntToBytes and BytesToInt to emit package
|
2020-02-06 18:45:37 +03:00 |
|
Evgenii Stratonikov
|
4d8a3a359b
|
vm: move Emit* functions to a separate package
Also strip 'Emit' prefix because 'emit' is now
in the package name.
|
2020-02-06 18:45:37 +03:00 |
|