Exemplo n.º 1
0
		public ResolvedJumpInstruction(int offset, JumpType jumpType, ushort destination, Label resolvedDestination)
			: this(offset, jumpType, Condition.Always, destination, resolvedDestination)
		{
		}
Exemplo n.º 2
0
		public ResolvedJumpInstruction(int offset, JumpType jumpType, Condition condition, ushort destination, Label resolvedDestination)
			: base(offset, jumpType, condition, destination)
		{
			this.resolvedDestination = resolvedDestination;
		}
Exemplo n.º 3
0
		private Label DefineLabelCore(int offset, string name, bool isFunction)
		{
			Label label;

			if (!labelDictionary.TryGetValue(offset, out label))
			{
				if (name != null)
					label = new Label(offset, name);
				else
					label = new Label(offset);

				labelDictionary.Add(offset, label);
			}

			if (isFunction)
				label.IsFunction = true;

			return label;
		}