public void Test_Push() { var reg = new TemporaryNode(); var node = new PushNode(reg); var map = TileFactoryTestUtils.createMapping(); var instructions = TileFactory.Stack.Push().Cover(node); map.Add(reg, TileFactoryTestUtils.RAX); TileFactoryTestUtils.updateMapping(instructions, map); var got = TileFactoryTestUtils.getASM(instructions, map); var expected = "push " + TileFactoryTestUtils.RAX + "\n"; Assert.AreEqual(expected, got); }
public virtual void Visit (PushNode node) { Visit (node as Node); }
public override void Visit(PushNode node) { Visit(node as Node); node.Value.Accept(this); }