forked from TrueCloudLab/neoneo-go
vm: drop CheckReturnState definition
It's something obsolete from RC phase.
This commit is contained in:
parent
b0a8f54776
commit
eb96f5a5a2
1 changed files with 0 additions and 13 deletions
|
@ -54,19 +54,6 @@ type Context struct {
|
||||||
NEF *nef.File
|
NEF *nef.File
|
||||||
}
|
}
|
||||||
|
|
||||||
// CheckReturnState represents possible states of stack after opcode.RET was processed.
|
|
||||||
type CheckReturnState byte
|
|
||||||
|
|
||||||
const (
|
|
||||||
// NoCheck performs no return values check.
|
|
||||||
NoCheck CheckReturnState = 0
|
|
||||||
// EnsureIsEmpty checks that stack is empty and panics if not.
|
|
||||||
EnsureIsEmpty CheckReturnState = 1
|
|
||||||
// EnsureNotEmpty checks that stack contains not more than 1 element and panics if not.
|
|
||||||
// It pushes stackitem.Null on stack in case if there's no elements.
|
|
||||||
EnsureNotEmpty CheckReturnState = 2
|
|
||||||
)
|
|
||||||
|
|
||||||
var errNoInstParam = errors.New("failed to read instruction parameter")
|
var errNoInstParam = errors.New("failed to read instruction parameter")
|
||||||
|
|
||||||
// NewContext returns a new Context object.
|
// NewContext returns a new Context object.
|
||||||
|
|
Loading…
Reference in a new issue