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