Home | History | Annotate | Download | only in runtime

Lines Matching full:opcode

86 #define INSTRUCTION_ENUM(opcode, cname, p, f, r, i, a, v) cname = opcode,
159 int result = kInstructionSizeInCodeUnits[Opcode()];
185 DCHECK(FormatOf(Opcode()) >= k10x && FormatOf(Opcode()) <= k10t);
191 DCHECK(FormatOf(Opcode()) >= k20t && FormatOf(Opcode()) <= k22c);
197 DCHECK(FormatOf(Opcode()) >= k32x && FormatOf(Opcode()) <= k3rc);
203 DCHECK(FormatOf(Opcode()) == k51l);
207 // Returns the name of this instruction's opcode.
209 return Instruction::Name(Opcode());
212 // Returns the name of the given opcode.
213 static const char* Name(Code opcode) {
214 return kInstructionNames[opcode];
282 // Returns the opcode field of the instruction.
283 Code Opcode() const {
287 void SetOpcode(Code opcode) {
288 DCHECK_LT(static_cast<uint16_t>(opcode), 256u);
290 insns[0] = (insns[0] & 0xff00) | static_cast<uint16_t>(opcode);
294 DCHECK(FormatOf(Opcode()) == k10x);
300 DCHECK(FormatOf(Opcode()) == k3rc);
306 DCHECK(FormatOf(Opcode()) == k35c);
312 DCHECK(FormatOf(Opcode()) == k22c);
317 // Returns the format of the given opcode.
318 static Format FormatOf(Code opcode) {
319 return kInstructionFormats[opcode];
322 // Returns the flags for the given opcode.
323 static int FlagsOf(Code opcode) {
324 return kInstructionFlags[opcode];
329 return (kInstructionFlags[Opcode()] & kBranch) != 0;
334 return (kInstructionFlags[Opcode()] & kUnconditional) != 0;
345 return (kInstructionFlags[Opcode()] & kSwitch) != 0;
350 return (kInstructionFlags[Opcode()] & kThrow) != 0;
355 return (kInstructionFlags[Opcode()] & kReturn) != 0;
360 return IsBranch() || IsReturn() || Opcode() == THROW;
365 return (kInstructionFlags[Opcode()] & kInvoke) != 0;
369 return (kInstructionVerifyFlags[Opcode()] & (kVerifyRegA | kVerifyRegAWide));
373 return (kInstructionVerifyFlags[Opcode()] & (kVerifyRegB | kVerifyRegBField | kVerifyRegBMethod |
378 return (kInstructionVerifyFlags[Opcode()] & (kVerifyRegC | kVerifyRegCField |
383 return (kInstructionVerifyFlags[Opcode()] & (kVerifyArrayData | kVerifyBranchTarget |
443 Instruction::Code opcode;
447 opcode = inst->Opcode();