コード例 #1
0
ファイル: Instruction.mine.cs プロジェクト: AustinWise/CSC431
 internal override void CopyExtraData(MilocInstruction newInstr)
 {
     var other = newInstr as DelInstruction;
     other.StructType = StructType;
 }
コード例 #2
0
ファイル: Instruction.mine.cs プロジェクト: AustinWise/CSC431
 internal override void CopyExtraData(MilocInstruction newInstr)
 {
     var other = newInstr as StoreretInstruction;
     other.CurrentFunction = CurrentFunction;
 }
コード例 #3
0
ファイル: Instruction.mine.cs プロジェクト: AustinWise/CSC431
 internal override void CopyExtraData(MilocInstruction newInstr)
 {
     var other = newInstr as CompInstruction;
     other.StructType1 = StructType1;
     other.StructType2 = StructType2;
 }
コード例 #4
0
ファイル: Instruction.mine.cs プロジェクト: AustinWise/CSC431
 internal override void CopyExtraData(MilocInstruction newInstr)
 {
     var other = newInstr as StoreglobalInstruction;
     other.IsNull = IsNull;
     other.Type = Type;
 }
コード例 #5
0
ファイル: Instruction.mine.cs プロジェクト: AustinWise/CSC431
 internal override void CopyExtraData(MilocInstruction newInstr)
 {
     var other = newInstr as StoreoutargumentInstruction;
     other.Type = Type;
 }
コード例 #6
0
ファイル: Instruction.mine.cs プロジェクト: AustinWise/CSC431
 internal override void CopyExtraData(MilocInstruction newInstr)
 {
     var other = newInstr as StoreaiFieldInstruction;
     other.FieldIndex = FieldIndex;
     other.FieldType = FieldType;
     other.ContainingType = ContainingType;
     other.IsNull = IsNull;
 }
コード例 #7
0
ファイル: Instruction.mine.cs プロジェクト: AustinWise/CSC431
 internal override void CopyExtraData(MilocInstruction newInstr)
 {
     var other = newInstr as StoreaiVarInstruction;
     other.ArgIndex = ArgIndex;
     other.IsNull = IsNull;
 }
コード例 #8
0
ファイル: Instruction.mine.cs プロジェクト: AustinWise/CSC431
 internal override void CopyExtraData(MilocInstruction newInstr)
 {
     var other = newInstr as MovInstruction;
     other.ArgIndex = ArgIndex;
     other.ArgReg = ArgReg;
 }
コード例 #9
0
ファイル: Instruction.mine.cs プロジェクト: AustinWise/CSC431
 internal override void CopyExtraData(MilocInstruction newInstr)
 {
     var other = newInstr as LoadglobalInstruction;
     other.Type = Type;
 }
コード例 #10
0
ファイル: Instruction.mine.cs プロジェクト: AustinWise/CSC431
 internal override void CopyExtraData(MilocInstruction newInstr)
 {
     var other = newInstr as LoadaiVarInstruction;
     other.ArgIndex = ArgIndex;
 }
コード例 #11
0
ファイル: PowerReduction.cs プロジェクト: AustinWise/CSC431
 private int? constantValue(MilocInstruction s, Register r)
 {
     var d = defs.GetDef(s, r.IntVal);
     if (d.Count != 1)
         return null;
     var load = d[0] as LoadiInstruction;
     if (load == null)
         return null;
     if (!powersOfTwoToExponent.ContainsKey(load.Immed0))
         return null;
     return powersOfTwoToExponent[load.Immed0];
 }
コード例 #12
0
ファイル: MilocInstruction.cs プロジェクト: AustinWise/CSC431
 internal virtual void CopyExtraData(MilocInstruction newInstr)
 {
 }