MCPcopy Create free account
hub / github.com/CPChain/chain / IsPush

Method IsPush

core/vm/opcodes.go:27–33  ·  view source on GitHub ↗

IsPush specifies if an opcode is a PUSH opcode.

()

Source from the content-addressed store, hash-verified

25
26// IsPush specifies if an opcode is a PUSH opcode.
27func (op OpCode) IsPush() bool {
28 switch op {
29 case PUSH1, PUSH2, PUSH3, PUSH4, PUSH5, PUSH6, PUSH7, PUSH8, PUSH9, PUSH10, PUSH11, PUSH12, PUSH13, PUSH14, PUSH15, PUSH16, PUSH17, PUSH18, PUSH19, PUSH20, PUSH21, PUSH22, PUSH23, PUSH24, PUSH25, PUSH26, PUSH27, PUSH28, PUSH29, PUSH30, PUSH31, PUSH32:
30 return true
31 }
32 return false
33}
34
35// IsStaticJump specifies if an opcode is JUMP.
36func (op OpCode) IsStaticJump() bool {

Callers 2

NextMethod · 0.80
pushObjectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected