MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / Instruction

Method Instruction

include/ast/instruction.h:55–68  ·  view source on GitHub ↗

Constructor assigns the OpCode and the Offset.

Source from the content-addressed store, hash-verified

53public:
54 /// Constructor assigns the OpCode and the Offset.
55 Instruction(OpCode Byte, uint32_t Off = 0) noexcept
56 : Offset(Off), Code(Byte) {
57#if defined(__x86_64__) || defined(__aarch64__) || \
58 (defined(__riscv) && __riscv_xlen == 64) || defined(__s390x__)
59 Data.Num = static_cast<uint128_t>(0);
60#else
61 Data.Num.Low = static_cast<uint64_t>(0);
62 Data.Num.High = static_cast<uint64_t>(0);
63#endif
64 Flags.IsAllocLabelList = false;
65 Flags.IsAllocValTypeList = false;
66 Flags.IsAllocBrCast = false;
67 Flags.IsAllocTryCatch = false;
68 }
69
70 /// Copy constructor.
71 Instruction(const Instruction &Instr) noexcept

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected