private static void GenerateNewException(Compiler c, GPVar dst, Imm code) { GPVar var = c.NewGP(); c.Mov(var, code); CompilerFunctionCall call = c.Call(AllocateExceptionFunction, CallingConvention.Default, typeof(Func<int, IntPtr>)); call.SetArgument(0, var); call.SetReturn(dst); }
private static void GenerateWriteLine(Compiler c, Imm value) { GPVar var = c.NewGP(); c.Mov(var, value); GenerateWriteLine(c, var); }