Lines Matching full:const
35 template <const BytecodeInstMode>
49 panda_file::File::Index AsIndex() const in AsIndex()
55 panda_file::File::EntityId AsFileId() const in AsFileId()
60 uint32_t AsRawValue() const in AsRawValue()
65 bool IsValid() const in IsValid()
70 bool operator==(BytecodeId id) const noexcept
91 explicit BytecodeInstBase(const uint8_t *pc) : pc_ {pc} {} in BytecodeInstBase()
95 const uint8_t *GetPointer(int32_t offset) const in GetPointer()
101 const uint8_t *GetAddress() const in GetAddress()
106 const uint8_t *GetAddress() volatile const in GetAddress()
112 T Read(size_t offset) const in Read()
114 using unaligned_type __attribute__((aligned(1))) = const T; in Read()
126 uint8_t ReadByte(size_t offset) const in ReadByte()
132 const uint8_t *pc_ {nullptr};
139 explicit BytecodeInstBase(const uint8_t *pc, const uint8_t *from, const uint8_t *to) in BytecodeInstBase()
146 const uint8_t *GetPointer(int32_t offset) const in GetPointer()
151 bool IsLast(size_t size) const in IsLast()
154 const uint8_t *ptr_next = pc_ + size; in IsLast()
158 const uint8_t *GetPointer(int32_t offset, size_t size) const in GetPointer()
161 const uint8_t *ptr_from = pc_ + offset; in GetPointer()
163 const uint8_t *ptr_to = ptr_from + size - 1; in GetPointer()
171 const uint8_t *GetAddress() const in GetAddress()
176 const uint8_t *GetFrom() const in GetFrom()
181 const uint8_t *GetTo() const in GetTo()
186 uint32_t GetOffset() const in GetOffset()
191 const uint8_t *GetAddress() volatile const in GetAddress()
197 T Read(size_t offset) const in Read()
199 using unaligned_type __attribute__((aligned(1))) = const T; in Read()
207 bool IsValid() const in IsValid()
213 const uint8_t *pc_ {nullptr};
214 const uint8_t *from_ {nullptr};
215 const uint8_t *to_ {nullptr};
219 template <const BytecodeInstMode Mode = BytecodeInstMode::FAST>
232 …template <const BytecodeInstMode M = Mode, typename = std::enable_if_t<M == BytecodeInstMode::FAST…
233 explicit BytecodeInst(const uint8_t *pc) : Base {pc} in BytecodeInst()
237 …template <const BytecodeInstMode M = Mode, typename = std::enable_if_t<M == BytecodeInstMode::SAFE…
238 …explicit BytecodeInst(const uint8_t *pc, const uint8_t *from, const uint8_t *to) : Base {pc, from,… in BytecodeInst()
243 BytecodeId GetId() const;
246 uint16_t GetVReg() const;
249 auto GetImm() const;
251 BytecodeId GetId(size_t idx = 0) const;
255 uint16_t GetVReg(size_t idx = 0) const;
258 auto GetImm64(size_t idx = 0) const;
269 BytecodeInst::Opcode GetOpcode() const;
271 uint8_t GetPrimaryOpcode() const in GetPrimaryOpcode()
276 bool IsPrimaryOpcodeValid() const;
278 uint8_t GetSecondaryOpcode() const;
280 bool IsPrefixed() const;
284 template <const BytecodeInstMode M = Mode>
285 auto JumpTo(int32_t offset) const -> std::enable_if_t<M == BytecodeInstMode::FAST, BytecodeInst>
290 template <const BytecodeInstMode M = Mode>
291 auto JumpTo(int32_t offset) const -> std::enable_if_t<M == BytecodeInstMode::SAFE, BytecodeInst>
296 const uint8_t *ptr = Base::GetPointer(offset);
303 template <const BytecodeInstMode M = Mode>
304 auto IsLast() const -> std::enable_if_t<M == BytecodeInstMode::SAFE, bool>
309 template <const BytecodeInstMode M = Mode>
310 auto IsValid() const -> std::enable_if_t<M == BytecodeInstMode::SAFE, bool>
316 BytecodeInst GetNext() const in GetNext()
321 BytecodeInst GetNext() const in GetNext()
326 const uint8_t *GetAddress() const in GetAddress()
331 const uint8_t *GetAddress() volatile const in GetAddress()
336 template <const BytecodeInstMode M = Mode>
337 auto GetFrom() const -> std::enable_if_t<M == BytecodeInstMode::SAFE, const uint8_t *>
342 template <const BytecodeInstMode M = Mode>
343 auto GetTo() const -> std::enable_if_t<M == BytecodeInstMode::SAFE, const uint8_t *>
348 template <const BytecodeInstMode M = Mode>
349 auto GetOffset() const -> std::enable_if_t<M == BytecodeInstMode::SAFE, uint32_t>
354 uint8_t ReadByte(size_t offset) const in ReadByte()
360 auto ReadHelper(size_t byteoffset, size_t bytecount, size_t offset, size_t width) const;
363 auto Read() const;
366 auto Read64(size_t offset, size_t width) const;
368 size_t GetSize() const;
370 Format GetFormat() const;
372 bool HasFlag(Flags flag) const;
374 bool IsIdMatchFlag(size_t idx, Flags flag) const; // idx-th id matches flag or not
376 bool IsThrow(Exceptions exception) const;
378 bool CanThrow() const;
380 bool IsTerminator() const in IsTerminator()
385 bool IsSuspend() const in IsSuspend()
406 template <const BytecodeInstMode Mode>
407 std::ostream &operator<<(std::ostream &os, const BytecodeInst<Mode> &inst);