Lines Matching refs:opcode

201   static inline Instruction OpNoArgs(Op opcode) {  in OpNoArgs()  argument
202 return Instruction{opcode, /*index_argument*/ 0, /*dest*/ {}}; in OpNoArgs()
206 static inline Instruction OpWithArgs(Op opcode, std::optional<const Value> dest, in OpWithArgs() argument
208 return Instruction{opcode, /*index_argument=*/0, /*result_is_object=*/false, dest, args...}; in OpWithArgs()
290 Op opcode() const { return opcode_; } in opcode() function
297 inline Instruction(Op opcode, size_t index_argument, std::optional<const Value> dest) in Instruction() argument
298 : opcode_{opcode}, in Instruction()
305 inline Instruction(Op opcode, size_t index_argument, bool result_is_object, in Instruction() argument
307 : opcode_{opcode}, in Instruction()
322 std::ostream& operator<<(std::ostream& out, const Instruction::Op& opcode);
369 void EncodeReturn(const Instruction& instruction, ::dex::Opcode opcode);
372 void EncodeInvoke(const Instruction& instruction, ::dex::Opcode opcode);
382 inline uint8_t ToBits(::dex::Opcode opcode) { in ToBits() argument
384 return static_cast<uint8_t>(opcode); in ToBits()
387 inline void Encode10x(::dex::Opcode opcode) { in Encode10x() argument
390 buffer_.push_back(ToBits(opcode)); in Encode10x()
393 inline void Encode11x(::dex::Opcode opcode, uint8_t a) { in Encode11x() argument
395 buffer_.push_back((a << 8) | ToBits(opcode)); in Encode11x()
398 inline void Encode11n(::dex::Opcode opcode, uint8_t a, int8_t b) { in Encode11n() argument
406 buffer_.push_back(((b & 0xf) << 12) | (a << 8) | ToBits(opcode)); in Encode11n()
409 inline void Encode21c(::dex::Opcode opcode, uint8_t a, uint16_t b) { in Encode21c() argument
411 buffer_.push_back((a << 8) | ToBits(opcode)); in Encode21c()
415 inline void Encode22c(::dex::Opcode opcode, uint8_t a, uint8_t b, uint16_t c) { in Encode22c() argument
419 buffer_.push_back((b << 12) | (a << 8) | ToBits(opcode)); in Encode22c()
423 inline void Encode32x(::dex::Opcode opcode, uint16_t a, uint16_t b) { in Encode32x() argument
424 buffer_.push_back(ToBits(opcode)); in Encode32x()
429 inline void Encode35c(::dex::Opcode opcode, size_t a, uint16_t b, uint8_t c, uint8_t d, in Encode35c() argument
439 buffer_.push_back((a << 12) | (g << 8) | ToBits(opcode)); in Encode35c()
444 inline void Encode3rc(::dex::Opcode opcode, size_t a, uint16_t b, uint16_t c) { in Encode3rc() argument
446 buffer_.push_back((a << 8) | ToBits(opcode)); in Encode3rc()