Exemplo n.º 1
0
 internal void IncludeSequence(BoundSpillSequence2 ss)
 {
     if (ss != null)
     {
         AddRange(ss.Locals);
         AddRange(ss.Statements);
         ss.Free();
     }
 }
Exemplo n.º 2
0
 internal void IncludeSequence(BoundSpillSequence2 ss)
 {
     if (ss != null)
     {
         AddRange(ss.Locals);
         AddRange(ss.Statements);
         ss.Free();
     }
 }
Exemplo n.º 3
0
        private static BoundExpression UpdateExpression(BoundSpillSequence2 ss, BoundExpression expression)
        {
            if (ss == null)
            {
                return(expression);
            }
            Debug.Assert(ss.Value == null);
            if (ss.Locals.Length == 0 && ss.Statements.Length == 0)
            {
                ss.Free();
                return(expression);
            }

            return(ss.Update(expression));
        }
Exemplo n.º 4
0
        private BoundStatement UpdateStatement(BoundSpillSequence2 ss, BoundStatement stmt)
        {
            if (ss == null)
            {
                Debug.Assert(stmt != null);
                return(stmt);
            }

            Debug.Assert(ss.Value == null);
            if (stmt != null)
            {
                ss.Add(stmt);
            }
            var result = F.Block(ss.Locals, ss.Statements);

            ss.Free();
            return(result);
        }
Exemplo n.º 5
0
        private BoundStatement UpdateStatement(BoundSpillSequence2 ss, BoundStatement stmt)
        {
            if (ss == null)
            {
                Debug.Assert(stmt != null);
                return stmt;
            }

            Debug.Assert(ss.Value == null);
            if (stmt != null) ss.Add(stmt);
            var result = F.Block(ss.Locals, ss.Statements);
            ss.Free();
            return result;
        }
Exemplo n.º 6
0
        private static BoundExpression UpdateExpression(BoundSpillSequence2 ss, BoundExpression expression)
        {
            if (ss == null) return expression;
            Debug.Assert(ss.Value == null);
            if (ss.Locals.Length == 0 && ss.Statements.Length == 0)
            {
                ss.Free();
                return expression;
            }

            return ss.Update(expression);
        }