Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 public Context(ICallingConvention callingConvention)
 {
     CallingConvention = callingConvention;
     Registers         = new RegisterContainer(callingConvention.GetRegisters());
     VariableAccounter = new VariableAccounter();
 }