Example #1
0
 private ScoreVal[] PopCount(int count)
 {
     if (count > stack.Count)
         throw new ArgumentException(string.Format("Cannot pop {0} values from the stack, only {1} values are present.",
             count, stack.Count), "count");
     var result = new ScoreVal[count];
     for (int i = count; i-- > 0;)
         result[i] = stack.Pop();
     return result;
 }
Example #2
0
 private ScoreVal Push(Span span, TyRef ty, LLVMValueRef value)
 {
     var val = new ScoreVal(span, ty, value);
     stack.Push(val);
     return val;
 }