public GetResult ( int index ) : Operand | ||
index | int | The index. |
Результат | Operand |
/// <summary> /// Performs stage specific processing on the compiler context. /// </summary> void IMethodCompilerStage.Run() { if (AreExceptions) return; foreach (var block in this.basicBlocks) { if (block.Label == Int32.MaxValue) continue; for (var context = new Context(this.instructionSet, block); !context.EndOfInstruction; context.GotoNext()) { if (context.Instruction is PhiInstruction) this.ProcessPhiInstruction(block, context); for (var i = 0; i < context.OperandCount; ++i) { var op = context.GetOperand(i); if (op is SsaOperand) context.SetOperand(i, (op as SsaOperand).Operand); } for (var i = 0; i < context.ResultCount; ++i) { var op = context.GetResult(i); if (op is SsaOperand) context.SetResult(i, (op as SsaOperand).Operand); } } } }