private Context(Context ctx) { CallingConvention = ctx.CallingConvention; var registers = ctx.Registers.Registers .Select(x => new RegisterInfo(x)) .ToList(); Registers = new RegisterContainer(registers); VariableAccounter = ctx.VariableAccounter; }
public Context(ICallingConvention callingConvention) { CallingConvention = callingConvention; Registers = new RegisterContainer(callingConvention.GetRegisters()); VariableAccounter = new VariableAccounter(); }