コード例 #1
0
		internal virtual void  init(int p1, ActionList p2, ConstantPool p3, String p4, DefineFunction p5)
		{
			at = p1;
			actions = p2;
			pool = p3;
			className = p4;
			function = p5;
		}
コード例 #2
0
        public override bool Equals(System.Object obj)
        {
            bool isEqual = false;

            if (base.Equals(obj) && (obj is DefineFunction))
            {
                DefineFunction defineFunction = (DefineFunction)obj;

                if (equals(defineFunction.name, this.name) && ArrayUtil.equals(defineFunction.params_Renamed, this.params_Renamed) && equals(defineFunction.actionList, this.actionList) && ArrayUtil.equals(defineFunction.paramReg, this.paramReg) && (defineFunction.regCount == this.regCount) && (defineFunction.flags == this.flags))
                {
                    isEqual = true;
                }
            }

            return(isEqual);
        }
コード例 #3
0
		public virtual void  defineFunction2(DefineFunction action)
		{
		}
コード例 #4
0
		public override void  defineFunction2(DefineFunction action)
		{
			start(action);
			out_Renamed.Write(" " + action.name + "(");
			for (int i = 0; i < action.params_Renamed.Length; i++)
			{
				out_Renamed.Write("$" + action.paramReg[i] + "=" + action.params_Renamed[i]);
				if (i + 1 < action.params_Renamed.Length)
				{
					out_Renamed.Write(", ");
				}
			}
			out_Renamed.Write(")");
			int regno = 1;
			if ((action.flags & DefineFunction.kPreloadThis) != 0)
				out_Renamed.Write(" $" + (regno++) + "=this");
			if ((action.flags & DefineFunction.kPreloadArguments) != 0)
				out_Renamed.Write(" $" + (regno++) + "=arguments");
			if ((action.flags & DefineFunction.kPreloadSuper) != 0)
				out_Renamed.Write(" $" + (regno++) + "=super");
			if ((action.flags & DefineFunction.kPreloadRoot) != 0)
				out_Renamed.Write(" $" + (regno++) + "=_root");
			if ((action.flags & DefineFunction.kPreloadParent) != 0)
				out_Renamed.Write(" $" + (regno++) + "=_parent");
			if ((action.flags & DefineFunction.kPreloadGlobal) != 0)
				out_Renamed.Write(" $" + (regno) + "=_global");
			out_Renamed.WriteLine(" {");
			indent_Renamed_Field++;
			action.actionList.visitAll(this);
			indent_Renamed_Field--;
			indent();
			out_Renamed.WriteLine("} " + action.name);
		}
コード例 #5
0
		public override void  defineFunction(DefineFunction action)
		{
			start(action);
			out_Renamed.Write(" " + action.name + "(");
			for (int i = 0; i < action.params_Renamed.Length; i++)
			{
				out_Renamed.Write(action.params_Renamed[i]);
				if (i + 1 < action.params_Renamed.Length)
				{
					out_Renamed.Write(", ");
				}
			}
			out_Renamed.WriteLine(") {");
			indent_Renamed_Field++;
			action.actionList.visitAll(this);
			indent_Renamed_Field--;
			indent();
			out_Renamed.WriteLine("} " + action.name);
		}