Enum librsnek::runtime::OpCode
[−]
[src]
pub enum OpCode {
PopTop,
RotTwo,
RotThree,
DupTop,
DupTopTwo,
Nop,
UnaryPositive,
UnaryNegative,
UnaryNot,
UnaryInvert,
BinaryMatrixMultiply,
InplaceMatrixMultiply,
BinaryPower,
BinaryMultiply,
BinaryModulo,
BinaryAdd,
BinarySubtract,
BinarySubscr,
BinaryFloorDivide,
BinaryTrueDivide,
InplaceFloorDivide,
InplaceTrueDivide,
GetAiter,
GetAnext,
BeforeAsyncWith,
InplaceAdd,
InplaceSubtract,
InplaceMultiply,
InplaceModulo,
StoreSubscr,
DeleteSubscr,
BinaryLshift,
BinaryRshift,
BinaryAnd,
BinaryXor,
BinaryOr,
InplacePower,
GetIter,
GetYieldFromIter,
PrintExpr,
LoadBuildClass,
YieldFrom,
GetAwaitable,
InplaceLshift,
InplaceRshift,
InplaceAnd,
InplaceXor,
InplaceOr,
BreakLoop,
WithCleanupStart,
WithCleanupFinish,
ReturnValue,
ImportStar,
YieldValue,
PopBlock,
EndFinally,
PopExcept,
StoreName,
DeleteName,
UnpackSequence,
ForIter,
UnpackEx,
StoreAttr,
DeleteAttr,
StoreGlobal,
DeleteGlobal,
LoadConst,
LoadName,
BuildTuple,
BuildList,
BuildSet,
BuildMap,
LoadAttr,
CompareOp,
ImportName,
ImportFrom,
JumpForward,
JumpIfFalseOrPop,
JumpIfTrueOrPop,
JumpAbsolute,
PopJumpIfFalse,
PopJumpIfTrue,
LoadGlobal,
ContinueLoop,
SetupLoop,
SetupExcept,
SetupFinally,
LoadFast,
StoreFast,
DeleteFast,
RaiseVarargs,
CallFunction,
MakeFunction,
BuildSlice,
MakeClosure,
LoadClosure,
LoadDeref,
StoreDeref,
DeleteDeref,
CallFunctionVar,
CallFunctionKw,
CallFunctionVarKw,
SetupWith,
ExtendedArg,
ListAppend,
SetAdd,
MapAdd,
LoadClassderef,
BuildListUnpack,
BuildMapUnpack,
BuildMapUnpackWithCall,
BuildTupleUnpack,
BuildSetUnpack,
SetupAsyncWith,
LogicalAnd,
LogicalOr,
AssertCondition,
CompareEqual,
CompareNotEqual,
CompareLess,
CompareLessOrEqual,
CompareGreater,
CompareGreaterOrEqual,
CompareIn,
CompareNotIn,
CompareIs,
CompareIsNot,
SetLineNumber,
}OpCodes for the interpreter. 1..1024 are reserved for CPython opcodes
Variants
PopTopRotTwoRotThreeDupTopDupTopTwoNopUnaryPositiveUnaryNegativeUnaryNotUnaryInvertBinaryMatrixMultiplyInplaceMatrixMultiplyBinaryPowerBinaryMultiplyBinaryModuloBinaryAddBinarySubtractBinarySubscrBinaryFloorDivideBinaryTrueDivideInplaceFloorDivideInplaceTrueDivideGetAiterGetAnextBeforeAsyncWithInplaceAddInplaceSubtractInplaceMultiplyInplaceModuloStoreSubscrDeleteSubscrBinaryLshiftBinaryRshiftBinaryAndBinaryXorBinaryOrInplacePowerGetIterGetYieldFromIterPrintExprLoadBuildClassYieldFromGetAwaitableInplaceLshiftInplaceRshiftInplaceAndInplaceXorInplaceOrBreakLoopWithCleanupStartWithCleanupFinishReturnValueImportStarYieldValuePopBlockEndFinallyPopExceptStoreNameDeleteNameUnpackSequenceForIterUnpackExStoreAttrDeleteAttrStoreGlobalDeleteGlobalLoadConstLoadNameBuildTupleBuildListBuildSetBuildMapLoadAttrCompareOpImportNameImportFromJumpForwardJumpIfFalseOrPopJumpIfTrueOrPopJumpAbsolutePopJumpIfFalsePopJumpIfTrueLoadGlobalContinueLoopSetupLoopSetupExceptSetupFinallyLoadFastStoreFastDeleteFastRaiseVarargsCallFunctionMakeFunctionBuildSliceMakeClosureLoadClosureLoadDerefStoreDerefDeleteDerefCallFunctionVarCallFunctionKwCallFunctionVarKwSetupWithExtendedArgListAppendSetAddMapAddLoadClassderefBuildListUnpackBuildMapUnpackBuildMapUnpackWithCallBuildTupleUnpackBuildSetUnpackSetupAsyncWithLogicalAndLogicalOrAssertConditionCompareEqualCompareNotEqualCompareLessCompareLessOrEqualCompareGreaterCompareGreaterOrEqualCompareInCompareNotInCompareIsCompareIsNotSetLineNumberTrait Implementations
impl Debug for OpCode[src]
impl Hash for OpCode[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher].
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher].
impl Clone for OpCode[src]
fn clone(&self) -> OpCode
Returns a copy of the value.
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source.