EnsureFpuStackVariable() public method

public EnsureFpuStackVariable ( int depth, DataType type ) : Identifier
depth int
type DataType
return Identifier
Exemplo n.º 1
0
 public Expression VisitFpuStackStorage(FpuStackStorage fpu)
 {
     return(frame.EnsureFpuStackVariable(fpu.FpuStackOffset - site.FpuStackDepthBefore, fpu.DataType));
 }
Exemplo n.º 2
0
		public void FrFpuStack()
		{
			Frame f = new Frame(PrimitiveType.Word16);
			f.EnsureFpuStackVariable(-1, PrimitiveType.Real64);
			f.EnsureFpuStackVariable(-2, PrimitiveType.Real64);
			f.EnsureFpuStackVariable(0, PrimitiveType.Real64);
			
			using (FileUnitTester fut = new FileUnitTester("Core/FrFpuStack.txt"))
			{
				f.Write(fut.TextWriter);
				fut.AssertFilesEqual();
			}
		}