Exemplo n.º 1
0
 /**
  * Get the operand called Result from the argument instruction clearing its instruction pointer.
  * The returned operand will not point to any containing instruction.
  *
  * @param i the instruction to fetch the operand from
  * @return the operand called Result
  */
 public static RegisterOperand getClearResult(Instruction i) {
   if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "Unary");
   return (RegisterOperand) i.getClearOperand(0);
 }
Exemplo n.º 2
0
 /**
  * Get the operand called Guard from the argument instruction clearing its instruction pointer.
  * The returned operand will not point to any containing instruction.
  *
  * @param i the instruction to fetch the operand from
  * @return the operand called Guard
  */
 public static Operand getClearGuard(Instruction i) {
   if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "StoreCheck");
   return (Operand) i.getClearOperand(3);
 }
Exemplo n.º 3
0
 /**
  * Get the operand called Val from the argument instruction clearing its instruction pointer. The
  * returned operand will not point to any containing instruction.
  *
  * @param i the instruction to fetch the operand from
  * @return the operand called Val
  */
 public static Operand getClearVal(Instruction i) {
   if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "Unary");
   return (Operand) i.getClearOperand(1);
 }
Exemplo n.º 4
0
 /**
  * Get the operand called BranchProfile from the argument instruction clearing its instruction
  * pointer. The returned operand will not point to any containing instruction.
  *
  * @param i the instruction to fetch the operand from
  * @return the operand called BranchProfile
  */
 public static BranchProfileOperand getClearBranchProfile(Instruction i) {
   if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "InlineGuard");
   return (BranchProfileOperand) i.getClearOperand(4);
 }
Exemplo n.º 5
0
 /**
  * Get the operand called Value from the argument instruction clearing its instruction pointer.
  * The returned operand will not point to any containing instruction.
  *
  * @param i the instruction to fetch the operand from
  * @return the operand called Value
  */
 public static Operand getClearValue(Instruction i) {
   if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "InlineGuard");
   return (Operand) i.getClearOperand(0);
 }
Exemplo n.º 6
0
 /**
  * Get the operand called Value from the argument instruction clearing its instruction pointer.
  * The returned operand will not point to any containing instruction.
  *
  * @param i the instruction to fetch the operand from
  * @return the operand called Value
  */
 public static RegisterOperand getClearValue(Instruction i) {
   if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "MIR_Store");
   return (RegisterOperand) i.getClearOperand(0);
 }
Exemplo n.º 7
0
 /**
  * Get the operand called Location from the argument instruction clearing its instruction pointer.
  * The returned operand will not point to any containing instruction.
  *
  * @param i the instruction to fetch the operand from
  * @return the operand called Location
  */
 public static LocationOperand getClearLocation(Instruction i) {
   if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "MIR_Store");
   return (LocationOperand) i.getClearOperand(3);
 }
Exemplo n.º 8
0
 /**
  * Get the operand called Offset from the argument instruction clearing its instruction pointer.
  * The returned operand will not point to any containing instruction.
  *
  * @param i the instruction to fetch the operand from
  * @return the operand called Offset
  */
 public static Operand getClearOffset(Instruction i) {
   if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "MIR_Store");
   return (Operand) i.getClearOperand(2);
 }
Exemplo n.º 9
0
 /**
  * Get the operand called NewValue from the argument instruction clearing its instruction pointer.
  * The returned operand will not point to any containing instruction.
  *
  * @param i the instruction to fetch the operand from
  * @return the operand called NewValue
  */
 public static Operand getClearNewValue(Instruction i) {
   if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "Attempt");
   return (Operand) i.getClearOperand(4);
 }
Exemplo n.º 10
0
 /**
  * Get the operand called Block from the argument instruction clearing its instruction pointer.
  * The returned operand will not point to any containing instruction.
  *
  * @param i the instruction to fetch the operand from
  * @return the operand called Block
  */
 public static BasicBlockOperand getClearBlock(Instruction i) {
   if (Configuration.ExtremeAssertions && !conforms(i)) fail(i, "Label");
   return (BasicBlockOperand) i.getClearOperand(0);
 }