#[repr(u8)]pub enum Opcode {
Show 250 variants
Invalid = 0,
PushI32 = 1,
PushConst = 2,
Fclosure = 3,
PushAtomValue = 4,
PrivateSymbol = 5,
Undefined = 6,
Null = 7,
PushThis = 8,
PushFalse = 9,
PushTrue = 10,
Object = 11,
SpecialObject = 12,
Rest = 13,
Drop = 14,
Nip = 15,
Nip1 = 16,
Dup = 17,
Dup1 = 18,
Dup2 = 19,
Dup3 = 20,
Insert2 = 21,
Insert3 = 22,
Insert4 = 23,
Perm3 = 24,
Perm4 = 25,
Perm5 = 26,
Swap = 27,
Swap2 = 28,
Rot3l = 29,
Rot3r = 30,
Rot4l = 31,
Rot5l = 32,
CallConstructor = 33,
Call = 34,
TailCall = 35,
CallMethod = 36,
TailCallMethod = 37,
ArrayFrom = 38,
Apply = 39,
Return = 40,
ReturnUndef = 41,
CheckCtorReturn = 42,
CheckCtor = 43,
InitCtor = 44,
CheckBrand = 45,
AddBrand = 46,
ReturnAsync = 47,
Throw = 48,
ThrowError = 49,
Eval = 50,
ApplyEval = 51,
Regexp = 52,
GetSuper = 53,
Import = 54,
GetVarUndef = 55,
GetVar = 56,
PutVar = 57,
PutVarInit = 58,
GetRefValue = 59,
PutRefValue = 60,
GetField = 61,
GetField2 = 62,
PutField = 63,
GetPrivateField = 64,
PutPrivateField = 65,
DefinePrivateField = 66,
GetArrayEl = 67,
GetArrayEl2 = 68,
GetArrayEl3 = 69,
PutArrayEl = 70,
GetSuperValue = 71,
PutSuperValue = 72,
DefineField = 73,
SetName = 74,
SetNameComputed = 75,
SetProto = 76,
SetHomeObject = 77,
DefineArrayEl = 78,
Append = 79,
CopyDataProperties = 80,
DefineMethod = 81,
DefineMethodComputed = 82,
DefineClass = 83,
DefineClassComputed = 84,
GetLoc = 85,
PutLoc = 86,
SetLoc = 87,
GetArg = 88,
PutArg = 89,
SetArg = 90,
GetVarRef = 91,
PutVarRef = 92,
SetVarRef = 93,
SetLocUninitialized = 94,
GetLocCheck = 95,
PutLocCheck = 96,
SetLocCheck = 97,
PutLocCheckInit = 98,
GetLocCheckthis = 99,
GetVarRefCheck = 100,
PutVarRefCheck = 101,
PutVarRefCheckInit = 102,
CloseLoc = 103,
IfFalse = 104,
IfTrue = 105,
Goto = 106,
Catch = 107,
Gosub = 108,
Ret = 109,
NipCatch = 110,
ToObject = 111,
ToPropkey = 112,
WithGetVar = 113,
WithPutVar = 114,
WithDeleteVar = 115,
WithMakeRef = 116,
WithGetRef = 117,
MakeLocRef = 118,
MakeArgRef = 119,
MakeVarRefRef = 120,
MakeVarRef = 121,
ForInStart = 122,
ForOfStart = 123,
ForAwaitOfStart = 124,
ForInNext = 125,
ForOfNext = 126,
ForAwaitOfNext = 127,
IteratorCheckObject = 128,
IteratorGetValueDone = 129,
IteratorClose = 130,
IteratorNext = 131,
IteratorCall = 132,
InitialYield = 133,
Yield = 134,
YieldStar = 135,
AsyncYieldStar = 136,
Await = 137,
Neg = 138,
Plus = 139,
Dec = 140,
Inc = 141,
PostDec = 142,
PostInc = 143,
DecLoc = 144,
IncLoc = 145,
AddLoc = 146,
Not = 147,
Lnot = 148,
Typeof = 149,
Delete = 150,
DeleteVar = 151,
Mul = 152,
Div = 153,
Mod = 154,
Add = 155,
Sub = 156,
Pow = 157,
Shl = 158,
Sar = 159,
Shr = 160,
Lt = 161,
Lte = 162,
Gt = 163,
Gte = 164,
Instanceof = 165,
In = 166,
Eq = 167,
Neq = 168,
StrictEq = 169,
StrictNeq = 170,
And = 171,
Xor = 172,
Or = 173,
IsUndefinedOrNull = 174,
PrivateIn = 175,
PushBigintI32 = 176,
UsingDisposeInit = 177,
UsingDispose = 178,
UsingDisposeAsync = 179,
UsingDisposeMerge = 180,
UsingDisposeEnd = 181,
UsingCheck = 182,
Nop = 183,
PushMinus1 = 184,
Push0 = 185,
Push1 = 186,
Push2 = 187,
Push3 = 188,
Push4 = 189,
Push5 = 190,
Push6 = 191,
Push7 = 192,
PushI8 = 193,
PushI16 = 194,
PushConst8 = 195,
Fclosure8 = 196,
PushEmptyString = 197,
GetLoc8 = 198,
PutLoc8 = 199,
SetLoc8 = 200,
GetLoc0 = 201,
GetLoc1 = 202,
GetLoc2 = 203,
GetLoc3 = 204,
PutLoc0 = 205,
PutLoc1 = 206,
PutLoc2 = 207,
PutLoc3 = 208,
SetLoc0 = 209,
SetLoc1 = 210,
SetLoc2 = 211,
SetLoc3 = 212,
GetArg0 = 213,
GetArg1 = 214,
GetArg2 = 215,
GetArg3 = 216,
PutArg0 = 217,
PutArg1 = 218,
PutArg2 = 219,
PutArg3 = 220,
SetArg0 = 221,
SetArg1 = 222,
SetArg2 = 223,
SetArg3 = 224,
GetVarRef0 = 225,
GetVarRef1 = 226,
GetVarRef2 = 227,
GetVarRef3 = 228,
PutVarRef0 = 229,
PutVarRef1 = 230,
PutVarRef2 = 231,
PutVarRef3 = 232,
SetVarRef0 = 233,
SetVarRef1 = 234,
SetVarRef2 = 235,
SetVarRef3 = 236,
GetLength = 237,
IfFalse8 = 238,
IfTrue8 = 239,
Goto8 = 240,
Goto16 = 241,
Call0 = 242,
Call1 = 243,
Call2 = 244,
Call3 = 245,
IsUndefined = 246,
IsNull = 247,
TypeofIsUndefined = 248,
TypeofIsFunction = 249,
}Expand description
An instruction of finished bytecode.
Discriminants are the opcode numbers: the byte stored in the instruction
stream is exactly self as u8, which keeps Opcode::from_u8 a table
lookup and lets a disassembly diff against qjsc point at a byte offset.
Variants§
Invalid = 0
invalid — 1 byte(s), pops 0, pushes 0
PushI32 = 1
push_i32 — 5 byte(s), pops 0, pushes 1
PushConst = 2
push_const — 5 byte(s), pops 0, pushes 1
Fclosure = 3
fclosure — 5 byte(s), pops 0, pushes 1
PushAtomValue = 4
push_atom_value — 5 byte(s), pops 0, pushes 1
PrivateSymbol = 5
private_symbol — 5 byte(s), pops 0, pushes 1
Undefined = 6
undefined — 1 byte(s), pops 0, pushes 1
Null = 7
null — 1 byte(s), pops 0, pushes 1
PushThis = 8
push_this — 1 byte(s), pops 0, pushes 1
PushFalse = 9
push_false — 1 byte(s), pops 0, pushes 1
PushTrue = 10
push_true — 1 byte(s), pops 0, pushes 1
Object = 11
object — 1 byte(s), pops 0, pushes 1
SpecialObject = 12
special_object — 2 byte(s), pops 0, pushes 1
Rest = 13
rest — 3 byte(s), pops 0, pushes 1
Drop = 14
drop — 1 byte(s), pops 1, pushes 0
Nip = 15
nip — 1 byte(s), pops 2, pushes 1
Nip1 = 16
nip1 — 1 byte(s), pops 3, pushes 2
Dup = 17
dup — 1 byte(s), pops 1, pushes 2
Dup1 = 18
dup1 — 1 byte(s), pops 2, pushes 3
Dup2 = 19
dup2 — 1 byte(s), pops 2, pushes 4
Dup3 = 20
dup3 — 1 byte(s), pops 3, pushes 6
Insert2 = 21
insert2 — 1 byte(s), pops 2, pushes 3
Insert3 = 22
insert3 — 1 byte(s), pops 3, pushes 4
Insert4 = 23
insert4 — 1 byte(s), pops 4, pushes 5
Perm3 = 24
perm3 — 1 byte(s), pops 3, pushes 3
Perm4 = 25
perm4 — 1 byte(s), pops 4, pushes 4
Perm5 = 26
perm5 — 1 byte(s), pops 5, pushes 5
Swap = 27
swap — 1 byte(s), pops 2, pushes 2
Swap2 = 28
swap2 — 1 byte(s), pops 4, pushes 4
Rot3l = 29
rot3l — 1 byte(s), pops 3, pushes 3
Rot3r = 30
rot3r — 1 byte(s), pops 3, pushes 3
Rot4l = 31
rot4l — 1 byte(s), pops 4, pushes 4
Rot5l = 32
rot5l — 1 byte(s), pops 5, pushes 5
CallConstructor = 33
call_constructor — 3 byte(s), pops 2, pushes 1
Call = 34
call — 3 byte(s), pops 1, pushes 1
TailCall = 35
tail_call — 3 byte(s), pops 1, pushes 0
CallMethod = 36
call_method — 3 byte(s), pops 2, pushes 1
TailCallMethod = 37
tail_call_method — 3 byte(s), pops 2, pushes 0
ArrayFrom = 38
array_from — 3 byte(s), pops 0, pushes 1
Apply = 39
apply — 3 byte(s), pops 3, pushes 1
Return = 40
return — 1 byte(s), pops 1, pushes 0
ReturnUndef = 41
return_undef — 1 byte(s), pops 0, pushes 0
CheckCtorReturn = 42
check_ctor_return — 1 byte(s), pops 1, pushes 2
CheckCtor = 43
check_ctor — 1 byte(s), pops 0, pushes 0
InitCtor = 44
init_ctor — 1 byte(s), pops 0, pushes 1
CheckBrand = 45
check_brand — 1 byte(s), pops 2, pushes 2
AddBrand = 46
add_brand — 1 byte(s), pops 2, pushes 0
ReturnAsync = 47
return_async — 1 byte(s), pops 1, pushes 0
Throw = 48
throw — 1 byte(s), pops 1, pushes 0
ThrowError = 49
throw_error — 6 byte(s), pops 0, pushes 0
Eval = 50
eval — 5 byte(s), pops 1, pushes 1
ApplyEval = 51
apply_eval — 3 byte(s), pops 2, pushes 1
Regexp = 52
regexp — 1 byte(s), pops 2, pushes 1
GetSuper = 53
get_super — 1 byte(s), pops 1, pushes 1
Import = 54
import — 1 byte(s), pops 2, pushes 1
GetVarUndef = 55
get_var_undef — 3 byte(s), pops 0, pushes 1
GetVar = 56
get_var — 3 byte(s), pops 0, pushes 1
PutVar = 57
put_var — 3 byte(s), pops 1, pushes 0
PutVarInit = 58
put_var_init — 3 byte(s), pops 1, pushes 0
GetRefValue = 59
get_ref_value — 1 byte(s), pops 2, pushes 3
PutRefValue = 60
put_ref_value — 1 byte(s), pops 3, pushes 0
GetField = 61
get_field — 5 byte(s), pops 1, pushes 1
GetField2 = 62
get_field2 — 5 byte(s), pops 1, pushes 2
PutField = 63
put_field — 5 byte(s), pops 2, pushes 0
GetPrivateField = 64
get_private_field — 1 byte(s), pops 2, pushes 1
PutPrivateField = 65
put_private_field — 1 byte(s), pops 3, pushes 0
DefinePrivateField = 66
define_private_field — 1 byte(s), pops 3, pushes 1
GetArrayEl = 67
get_array_el — 1 byte(s), pops 2, pushes 1
GetArrayEl2 = 68
get_array_el2 — 1 byte(s), pops 2, pushes 2
GetArrayEl3 = 69
get_array_el3 — 1 byte(s), pops 2, pushes 3
PutArrayEl = 70
put_array_el — 1 byte(s), pops 3, pushes 0
GetSuperValue = 71
get_super_value — 1 byte(s), pops 3, pushes 1
PutSuperValue = 72
put_super_value — 1 byte(s), pops 4, pushes 0
DefineField = 73
define_field — 5 byte(s), pops 2, pushes 1
SetName = 74
set_name — 5 byte(s), pops 1, pushes 1
SetNameComputed = 75
set_name_computed — 1 byte(s), pops 2, pushes 2
SetProto = 76
set_proto — 1 byte(s), pops 2, pushes 1
SetHomeObject = 77
set_home_object — 1 byte(s), pops 2, pushes 2
DefineArrayEl = 78
define_array_el — 1 byte(s), pops 3, pushes 2
Append = 79
append — 1 byte(s), pops 3, pushes 2
CopyDataProperties = 80
copy_data_properties — 2 byte(s), pops 3, pushes 3
DefineMethod = 81
define_method — 6 byte(s), pops 2, pushes 1
DefineMethodComputed = 82
define_method_computed — 2 byte(s), pops 3, pushes 1
DefineClass = 83
define_class — 6 byte(s), pops 2, pushes 2
DefineClassComputed = 84
define_class_computed — 6 byte(s), pops 3, pushes 3
GetLoc = 85
get_loc — 3 byte(s), pops 0, pushes 1
PutLoc = 86
put_loc — 3 byte(s), pops 1, pushes 0
SetLoc = 87
set_loc — 3 byte(s), pops 1, pushes 1
GetArg = 88
get_arg — 3 byte(s), pops 0, pushes 1
PutArg = 89
put_arg — 3 byte(s), pops 1, pushes 0
SetArg = 90
set_arg — 3 byte(s), pops 1, pushes 1
GetVarRef = 91
get_var_ref — 3 byte(s), pops 0, pushes 1
PutVarRef = 92
put_var_ref — 3 byte(s), pops 1, pushes 0
SetVarRef = 93
set_var_ref — 3 byte(s), pops 1, pushes 1
SetLocUninitialized = 94
set_loc_uninitialized — 3 byte(s), pops 0, pushes 0
GetLocCheck = 95
get_loc_check — 3 byte(s), pops 0, pushes 1
PutLocCheck = 96
put_loc_check — 3 byte(s), pops 1, pushes 0
SetLocCheck = 97
set_loc_check — 3 byte(s), pops 1, pushes 1
PutLocCheckInit = 98
put_loc_check_init — 3 byte(s), pops 1, pushes 0
GetLocCheckthis = 99
get_loc_checkthis — 3 byte(s), pops 0, pushes 1
GetVarRefCheck = 100
get_var_ref_check — 3 byte(s), pops 0, pushes 1
PutVarRefCheck = 101
put_var_ref_check — 3 byte(s), pops 1, pushes 0
PutVarRefCheckInit = 102
put_var_ref_check_init — 3 byte(s), pops 1, pushes 0
CloseLoc = 103
close_loc — 3 byte(s), pops 0, pushes 0
IfFalse = 104
if_false — 5 byte(s), pops 1, pushes 0
IfTrue = 105
if_true — 5 byte(s), pops 1, pushes 0
Goto = 106
goto — 5 byte(s), pops 0, pushes 0
Catch = 107
catch — 5 byte(s), pops 0, pushes 1
Gosub = 108
gosub — 5 byte(s), pops 0, pushes 0
Ret = 109
ret — 1 byte(s), pops 1, pushes 0
NipCatch = 110
nip_catch — 1 byte(s), pops 2, pushes 1
ToObject = 111
to_object — 1 byte(s), pops 1, pushes 1
ToPropkey = 112
to_propkey — 1 byte(s), pops 1, pushes 1
WithGetVar = 113
with_get_var — 10 byte(s), pops 1, pushes 0
WithPutVar = 114
with_put_var — 10 byte(s), pops 2, pushes 1
WithDeleteVar = 115
with_delete_var — 10 byte(s), pops 1, pushes 0
WithMakeRef = 116
with_make_ref — 10 byte(s), pops 1, pushes 0
WithGetRef = 117
with_get_ref — 10 byte(s), pops 1, pushes 0
MakeLocRef = 118
make_loc_ref — 7 byte(s), pops 0, pushes 2
MakeArgRef = 119
make_arg_ref — 7 byte(s), pops 0, pushes 2
MakeVarRefRef = 120
make_var_ref_ref — 7 byte(s), pops 0, pushes 2
MakeVarRef = 121
make_var_ref — 5 byte(s), pops 0, pushes 2
ForInStart = 122
for_in_start — 1 byte(s), pops 1, pushes 1
ForOfStart = 123
for_of_start — 1 byte(s), pops 1, pushes 3
ForAwaitOfStart = 124
for_await_of_start — 1 byte(s), pops 1, pushes 3
ForInNext = 125
for_in_next — 1 byte(s), pops 1, pushes 3
ForOfNext = 126
for_of_next — 2 byte(s), pops 3, pushes 5
ForAwaitOfNext = 127
for_await_of_next — 1 byte(s), pops 3, pushes 4
IteratorCheckObject = 128
iterator_check_object — 1 byte(s), pops 1, pushes 1
IteratorGetValueDone = 129
iterator_get_value_done — 1 byte(s), pops 2, pushes 3
IteratorClose = 130
iterator_close — 1 byte(s), pops 3, pushes 0
IteratorNext = 131
iterator_next — 1 byte(s), pops 4, pushes 4
IteratorCall = 132
iterator_call — 2 byte(s), pops 4, pushes 5
InitialYield = 133
initial_yield — 1 byte(s), pops 0, pushes 0
Yield = 134
yield — 1 byte(s), pops 1, pushes 2
YieldStar = 135
yield_star — 1 byte(s), pops 1, pushes 2
AsyncYieldStar = 136
async_yield_star — 1 byte(s), pops 1, pushes 2
Await = 137
await — 1 byte(s), pops 1, pushes 1
Neg = 138
neg — 1 byte(s), pops 1, pushes 1
Plus = 139
plus — 1 byte(s), pops 1, pushes 1
Dec = 140
dec — 1 byte(s), pops 1, pushes 1
Inc = 141
inc — 1 byte(s), pops 1, pushes 1
PostDec = 142
post_dec — 1 byte(s), pops 1, pushes 2
PostInc = 143
post_inc — 1 byte(s), pops 1, pushes 2
DecLoc = 144
dec_loc — 2 byte(s), pops 0, pushes 0
IncLoc = 145
inc_loc — 2 byte(s), pops 0, pushes 0
AddLoc = 146
add_loc — 2 byte(s), pops 1, pushes 0
Not = 147
not — 1 byte(s), pops 1, pushes 1
Lnot = 148
lnot — 1 byte(s), pops 1, pushes 1
Typeof = 149
typeof — 1 byte(s), pops 1, pushes 1
Delete = 150
delete — 1 byte(s), pops 2, pushes 1
DeleteVar = 151
delete_var — 5 byte(s), pops 0, pushes 1
Mul = 152
mul — 1 byte(s), pops 2, pushes 1
Div = 153
div — 1 byte(s), pops 2, pushes 1
Mod = 154
mod — 1 byte(s), pops 2, pushes 1
Add = 155
add — 1 byte(s), pops 2, pushes 1
Sub = 156
sub — 1 byte(s), pops 2, pushes 1
Pow = 157
pow — 1 byte(s), pops 2, pushes 1
Shl = 158
shl — 1 byte(s), pops 2, pushes 1
Sar = 159
sar — 1 byte(s), pops 2, pushes 1
Shr = 160
shr — 1 byte(s), pops 2, pushes 1
Lt = 161
lt — 1 byte(s), pops 2, pushes 1
Lte = 162
lte — 1 byte(s), pops 2, pushes 1
Gt = 163
gt — 1 byte(s), pops 2, pushes 1
Gte = 164
gte — 1 byte(s), pops 2, pushes 1
Instanceof = 165
instanceof — 1 byte(s), pops 2, pushes 1
In = 166
in — 1 byte(s), pops 2, pushes 1
Eq = 167
eq — 1 byte(s), pops 2, pushes 1
Neq = 168
neq — 1 byte(s), pops 2, pushes 1
StrictEq = 169
strict_eq — 1 byte(s), pops 2, pushes 1
StrictNeq = 170
strict_neq — 1 byte(s), pops 2, pushes 1
And = 171
and — 1 byte(s), pops 2, pushes 1
Xor = 172
xor — 1 byte(s), pops 2, pushes 1
Or = 173
or — 1 byte(s), pops 2, pushes 1
IsUndefinedOrNull = 174
is_undefined_or_null — 1 byte(s), pops 1, pushes 1
PrivateIn = 175
private_in — 1 byte(s), pops 2, pushes 1
PushBigintI32 = 176
push_bigint_i32 — 5 byte(s), pops 0, pushes 1
UsingDisposeInit = 177
using_dispose_init — 1 byte(s), pops 0, pushes 1
UsingDispose = 178
using_dispose — 3 byte(s), pops 1, pushes 1
UsingDisposeAsync = 179
using_dispose_async — 3 byte(s), pops 0, pushes 1
UsingDisposeMerge = 180
using_dispose_merge — 1 byte(s), pops 2, pushes 1
UsingDisposeEnd = 181
using_dispose_end — 1 byte(s), pops 1, pushes 0
UsingCheck = 182
using_check — 2 byte(s), pops 1, pushes 2
Nop = 183
nop — 1 byte(s), pops 0, pushes 0
PushMinus1 = 184
push_minus1 — 1 byte(s), pops 0, pushes 1
Push0 = 185
push_0 — 1 byte(s), pops 0, pushes 1
Push1 = 186
push_1 — 1 byte(s), pops 0, pushes 1
Push2 = 187
push_2 — 1 byte(s), pops 0, pushes 1
Push3 = 188
push_3 — 1 byte(s), pops 0, pushes 1
Push4 = 189
push_4 — 1 byte(s), pops 0, pushes 1
Push5 = 190
push_5 — 1 byte(s), pops 0, pushes 1
Push6 = 191
push_6 — 1 byte(s), pops 0, pushes 1
Push7 = 192
push_7 — 1 byte(s), pops 0, pushes 1
PushI8 = 193
push_i8 — 2 byte(s), pops 0, pushes 1
PushI16 = 194
push_i16 — 3 byte(s), pops 0, pushes 1
PushConst8 = 195
push_const8 — 2 byte(s), pops 0, pushes 1
Fclosure8 = 196
fclosure8 — 2 byte(s), pops 0, pushes 1
PushEmptyString = 197
push_empty_string — 1 byte(s), pops 0, pushes 1
GetLoc8 = 198
get_loc8 — 2 byte(s), pops 0, pushes 1
PutLoc8 = 199
put_loc8 — 2 byte(s), pops 1, pushes 0
SetLoc8 = 200
set_loc8 — 2 byte(s), pops 1, pushes 1
GetLoc0 = 201
get_loc0 — 1 byte(s), pops 0, pushes 1
GetLoc1 = 202
get_loc1 — 1 byte(s), pops 0, pushes 1
GetLoc2 = 203
get_loc2 — 1 byte(s), pops 0, pushes 1
GetLoc3 = 204
get_loc3 — 1 byte(s), pops 0, pushes 1
PutLoc0 = 205
put_loc0 — 1 byte(s), pops 1, pushes 0
PutLoc1 = 206
put_loc1 — 1 byte(s), pops 1, pushes 0
PutLoc2 = 207
put_loc2 — 1 byte(s), pops 1, pushes 0
PutLoc3 = 208
put_loc3 — 1 byte(s), pops 1, pushes 0
SetLoc0 = 209
set_loc0 — 1 byte(s), pops 1, pushes 1
SetLoc1 = 210
set_loc1 — 1 byte(s), pops 1, pushes 1
SetLoc2 = 211
set_loc2 — 1 byte(s), pops 1, pushes 1
SetLoc3 = 212
set_loc3 — 1 byte(s), pops 1, pushes 1
GetArg0 = 213
get_arg0 — 1 byte(s), pops 0, pushes 1
GetArg1 = 214
get_arg1 — 1 byte(s), pops 0, pushes 1
GetArg2 = 215
get_arg2 — 1 byte(s), pops 0, pushes 1
GetArg3 = 216
get_arg3 — 1 byte(s), pops 0, pushes 1
PutArg0 = 217
put_arg0 — 1 byte(s), pops 1, pushes 0
PutArg1 = 218
put_arg1 — 1 byte(s), pops 1, pushes 0
PutArg2 = 219
put_arg2 — 1 byte(s), pops 1, pushes 0
PutArg3 = 220
put_arg3 — 1 byte(s), pops 1, pushes 0
SetArg0 = 221
set_arg0 — 1 byte(s), pops 1, pushes 1
SetArg1 = 222
set_arg1 — 1 byte(s), pops 1, pushes 1
SetArg2 = 223
set_arg2 — 1 byte(s), pops 1, pushes 1
SetArg3 = 224
set_arg3 — 1 byte(s), pops 1, pushes 1
GetVarRef0 = 225
get_var_ref0 — 1 byte(s), pops 0, pushes 1
GetVarRef1 = 226
get_var_ref1 — 1 byte(s), pops 0, pushes 1
GetVarRef2 = 227
get_var_ref2 — 1 byte(s), pops 0, pushes 1
GetVarRef3 = 228
get_var_ref3 — 1 byte(s), pops 0, pushes 1
PutVarRef0 = 229
put_var_ref0 — 1 byte(s), pops 1, pushes 0
PutVarRef1 = 230
put_var_ref1 — 1 byte(s), pops 1, pushes 0
PutVarRef2 = 231
put_var_ref2 — 1 byte(s), pops 1, pushes 0
PutVarRef3 = 232
put_var_ref3 — 1 byte(s), pops 1, pushes 0
SetVarRef0 = 233
set_var_ref0 — 1 byte(s), pops 1, pushes 1
SetVarRef1 = 234
set_var_ref1 — 1 byte(s), pops 1, pushes 1
SetVarRef2 = 235
set_var_ref2 — 1 byte(s), pops 1, pushes 1
SetVarRef3 = 236
set_var_ref3 — 1 byte(s), pops 1, pushes 1
GetLength = 237
get_length — 1 byte(s), pops 1, pushes 1
IfFalse8 = 238
if_false8 — 2 byte(s), pops 1, pushes 0
IfTrue8 = 239
if_true8 — 2 byte(s), pops 1, pushes 0
Goto8 = 240
goto8 — 2 byte(s), pops 0, pushes 0
Goto16 = 241
goto16 — 3 byte(s), pops 0, pushes 0
Call0 = 242
call0 — 1 byte(s), pops 1, pushes 1
Call1 = 243
call1 — 1 byte(s), pops 1, pushes 1
Call2 = 244
call2 — 1 byte(s), pops 1, pushes 1
Call3 = 245
call3 — 1 byte(s), pops 1, pushes 1
IsUndefined = 246
is_undefined — 1 byte(s), pops 1, pushes 1
IsNull = 247
is_null — 1 byte(s), pops 1, pushes 1
TypeofIsUndefined = 248
typeof_is_undefined — 1 byte(s), pops 1, pushes 1
TypeofIsFunction = 249
typeof_is_function — 1 byte(s), pops 1, pushes 1
Implementations§
Source§impl Opcode
impl Opcode
Source§impl Opcode
impl Opcode
Sourcepub fn specialised_index(self) -> Option<i32>
pub fn specialised_index(self) -> Option<i32>
The operand index that a short-form opcode encodes in its own number.
get_loc0 … get_loc3 carry their slot index in the opcode byte, so the
disassembler and the interpreter recover it by subtraction. Returns
None for instructions with an explicit operand.
Sourcepub fn short_form(self, index: u32) -> Option<Opcode>
pub fn short_form(self, index: u32) -> Option<Opcode>
The short form of self for a given operand index, when one exists.
The compiler uses this once slot indices are known: get_loc 7 becomes
get_loc3, which is one byte instead of three.