コード例 #1
0
ファイル: Unary.java プロジェクト: zitterbewegung/cs398
 /**
  * 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);
 }
コード例 #2
0
ファイル: StoreCheck.java プロジェクト: zitterbewegung/cs398
 /**
  * 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);
 }
コード例 #3
0
ファイル: Unary.java プロジェクト: zitterbewegung/cs398
 /**
  * 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);
 }
コード例 #4
0
ファイル: InlineGuard.java プロジェクト: zitterbewegung/cs398
 /**
  * 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);
 }
コード例 #5
0
ファイル: InlineGuard.java プロジェクト: zitterbewegung/cs398
 /**
  * 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);
 }
コード例 #6
0
ファイル: MIR_Store.java プロジェクト: zitterbewegung/cs398
 /**
  * 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);
 }
コード例 #7
0
ファイル: MIR_Store.java プロジェクト: zitterbewegung/cs398
 /**
  * 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);
 }
コード例 #8
0
ファイル: MIR_Store.java プロジェクト: zitterbewegung/cs398
 /**
  * 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);
 }
コード例 #9
0
ファイル: Attempt.java プロジェクト: zitterbewegung/cs398
 /**
  * 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);
 }
コード例 #10
0
ファイル: Label.java プロジェクト: zitterbewegung/cs398
 /**
  * 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);
 }