Lines Matching refs:Size
45 DecodeStatus getInstruction(MCInst &Instr, uint64_t &Size,
48 Optional<DecodeStatus> onSymbolStart(SymbolInfoTy &Symbol, uint64_t &Size,
76 static int nextByte(ArrayRef<uint8_t> Bytes, uint64_t &Size) { in nextByte() argument
77 if (Size >= Bytes.size()) in nextByte()
79 auto V = Bytes[Size]; in nextByte()
80 Size++; in nextByte()
84 static bool nextLEB(int64_t &Val, ArrayRef<uint8_t> Bytes, uint64_t &Size, in nextLEB() argument
88 Val = Signed ? decodeSLEB128(Bytes.data() + Size, &N, in nextLEB()
90 : static_cast<int64_t>(decodeULEB128(Bytes.data() + Size, &N, in nextLEB()
95 Size += N; in nextLEB()
99 static bool parseLEBImmediate(MCInst &MI, uint64_t &Size, in parseLEBImmediate() argument
102 if (!nextLEB(Val, Bytes, Size, Signed)) in parseLEBImmediate()
109 bool parseImmediate(MCInst &MI, uint64_t &Size, ArrayRef<uint8_t> Bytes) { in parseImmediate() argument
110 if (Size + sizeof(T) > Bytes.size()) in parseImmediate()
113 Bytes.data() + Size); in parseImmediate()
114 Size += sizeof(T); in parseImmediate()
125 SymbolInfoTy &Symbol, uint64_t &Size, ArrayRef<uint8_t> Bytes, in onSymbolStart() argument
127 Size = 0; in onSymbolStart()
131 if (!nextLEB(FunctionCount, Bytes, Size, false)) in onSymbolStart()
137 if (!nextLEB(BodySize, Bytes, Size, false) || in onSymbolStart()
138 !nextLEB(LocalEntryCount, Bytes, Size, false)) in onSymbolStart()
144 if (!nextLEB(Count, Bytes, Size, false) || in onSymbolStart()
145 !nextLEB(Type, Bytes, Size, false)) in onSymbolStart()
160 MCInst &MI, uint64_t &Size, ArrayRef<uint8_t> Bytes, uint64_t /*Address*/, in getInstruction() argument
163 Size = 0; in getInstruction()
164 int Opc = nextByte(Bytes, Size); in getInstruction()
181 if (!nextLEB(PrefixedOpc, Bytes, Size, false)) in getInstruction()
208 if (!parseLEBImmediate(MI, Size, Bytes, false)) in getInstruction()
215 if (!parseLEBImmediate(MI, Size, Bytes, true)) in getInstruction()
222 uint64_t PrevSize = Size; in getInstruction()
223 if (!nextLEB(Val, Bytes, Size, true)) in getInstruction()
227 if (Size != PrevSize + 1) { in getInstruction()
246 if (!parseImmediate<float>(MI, Size, Bytes)) in getInstruction()
251 if (!parseImmediate<double>(MI, Size, Bytes)) in getInstruction()
257 if (!parseImmediate<uint8_t>(MI, Size, Bytes)) in getInstruction()
262 if (!parseImmediate<uint16_t>(MI, Size, Bytes)) in getInstruction()
267 if (!parseImmediate<uint32_t>(MI, Size, Bytes)) in getInstruction()
272 if (!parseImmediate<uint64_t>(MI, Size, Bytes)) in getInstruction()
278 if (!nextLEB(TargetTableLen, Bytes, Size, false)) in getInstruction()
281 if (!parseLEBImmediate(MI, Size, Bytes, false)) in getInstruction()
285 if (!parseLEBImmediate(MI, Size, Bytes, false)) in getInstruction()