Exemple #1
0
        /// <summary>
        /// Sections the specified sect.
        /// </summary>
        /// <param name="sect">The sect.</param>
        public void Section(DumpSection sect)
        {
            switch (sect)
            {
            case DumpSection.Root:
                this.PushElement("aot-dump");
                this.AddElement("appversion", "SharpOS.AOT/" + Engine.EngineVersion);
                break;

            case DumpSection.Dominance:
                this.PushElement("dominance");
                break;

            case DumpSection.DefineUse:
                this.PushElement("define-use");
                break;

            case DumpSection.SSATransform:
                this.PushElement("ssa-transform");
                break;

            case DumpSection.RegisterAllocation:
                this.PushElement("register-allocation");
                break;

            case DumpSection.Optimizations:
                this.PushElement("optimizations");
                break;

            case DumpSection.LiveRanges:
                this.PushElement("live-ranges");
                break;

            case DumpSection.MethodBlocks:
                this.PushElement("blocks");
                break;

            case DumpSection.Encoding:
                this.PushElement("encoding");
                break;

            case DumpSection.MethodEncode:
                this.PushElement("method-encode");
                break;

            case DumpSection.DataEncode:
                this.PushElement("data-encode");
                break;

            default:
                throw new EngineException("dump: unknown section " + sect);
            }
        }
Exemple #2
0
		/// <summary>
		/// Sections the specified sect.
		/// </summary>
		/// <param name="sect">The sect.</param>
		public void Section (DumpSection sect)
		{
			switch (sect) {
			case DumpSection.Root:
				this.PushElement ("aot-dump");
				this.AddElement ("appversion", "SharpOS.AOT/" + Engine.EngineVersion);
				break;
			case DumpSection.Dominance:
				this.PushElement ("dominance");
				break;
			case DumpSection.DefineUse:
				this.PushElement ("define-use");
				break;
			case DumpSection.SSATransform:
				this.PushElement ("ssa-transform");
				break;

			case DumpSection.RegisterAllocation:
				this.PushElement ("register-allocation");
				break;

			case DumpSection.Optimizations:
				this.PushElement ("optimizations");
				break;

			case DumpSection.LiveRanges:
				this.PushElement ("live-ranges");
				break;

			case DumpSection.MethodBlocks:
				this.PushElement ("blocks");
				break;

			case DumpSection.Encoding:
				this.PushElement ("encoding");
				break;

			case DumpSection.MethodEncode:
				this.PushElement ("method-encode");
				break;

			case DumpSection.DataEncode:
				this.PushElement ("data-encode");
				break;

			default:
				throw new EngineException ("dump: unknown section " + sect);
			}
		}