enum Ven::Suite::Opcode

Overview

The list of all opcodes.

NOTE Sectioning matters. Please add opcodes to the appropriate sections.

Defined in:

ven/suite/opcode.cr

Enum Members

POP = 16
POP2 = 17
SWAP = 18
TRY_POP = 19
DUP = 20
TON = 21
TOS = 22
TOB = 23
TOIB = 24
TRUE = 25
FALSE = 26
TOV = 27
NEG = 28
LEN = 29
ENS = 30
POP_UPUT = 31
TAP_UPUT = 32
UPOP = 33
UREF = 34
CLEAR = 35
RET = 36
MAP_SETUP = 37
MAP_APPEND = 38
FALSE_IF_EMPTY = 39
FIELD_DYNAMIC = 40
RESET_DIES = 41
FORCE_RET = 42
SETUP_RET = 43
ANY = 44
BOX_INSTANCE = 45
NUM = 128
STR = 129
VEC = 130
PCRE = 131
GOTO = 132
CALL = 133
REDUCE = 134
BINARY = 135
BINARY_ASSIGN = 136
FIELD_IMMEDIATE = 137
NEXT_FUN = 138
REST = 139
J = 512
JIT = 513
JIF = 514
MAP_ITER = 515
JIT_ELSE_POP = 516
JIF_ELSE_POP = 517
SETUP_DIES = 518
SYM = 1024
POP_ASSIGN = 1025
TAP_ASSIGN = 1026
INC = 1027
DEC = 1028
FUN = 2048
BOX = 2049

Instance Method Summary

Instance Method Detail

def any? #

[View source]
def binary? #

[View source]
def binary_assign? #

[View source]
def box? #

[View source]
def box_instance? #

[View source]
def call? #

[View source]
def clear? #

[View source]
def dec? #

[View source]
def dup? #

[View source]
def ens? #

[View source]
def false? #

[View source]
def false_if_empty? #

[View source]
def field_dynamic? #

[View source]
def field_immediate? #

[View source]
def force_ret? #

[View source]
def fun? #

[View source]
def goto? #

[View source]
def inc? #

[View source]
def j? #

[View source]
def jif? #

[View source]
def jif_else_pop? #

[View source]
def jit? #

[View source]
def jit_else_pop? #

[View source]
def len? #

[View source]
def map_append? #

[View source]
def map_iter? #

[View source]
def map_setup? #

[View source]
def neg? #

[View source]
def next_fun? #

[View source]
def num? #

[View source]
def payload #

Returns the kind of payload an instruction takes, or nil if it does not take any.


[View source]
def pcre? #

[View source]
def pop2? #

[View source]
def pop? #

[View source]
def pop_assign? #

[View source]
def pop_uput? #

[View source]
def puts_one? #

Returns whether this opcode puts exactly one value on the operand stack no matter what, and consumes none.


[View source]
def reduce? #

[View source]
def reset_dies? #

[View source]
def rest? #

[View source]
def ret? #

[View source]
def setup_dies? #

[View source]
def setup_ret? #

[View source]
def str? #

[View source]
def swap? #

[View source]
def sym? #

[View source]
def tap_assign? #

[View source]
def tap_uput? #

[View source]
def tob? #

[View source]
def toib? #

[View source]
def ton? #

[View source]
def tos? #

[View source]
def tov? #

[View source]
def true? #

[View source]
def try_pop? #

[View source]
def upop? #

[View source]
def uref? #

[View source]
def vec? #

[View source]