From f907684f0bab2caad51b0df748ea35605836ac43 Mon Sep 17 00:00:00 2001 From: Amy Date: Tue, 31 Jul 2018 12:21:07 -0700 Subject: [PATCH] R2RDump - Fix and update R2RDumpTests (dotnet/coreclr#19039) * Fix GenericFunctions and MultipleRuntimeFunctions tests, x86 nwindInfo tests * Fix tests * Avoid using rva as index * Update expected xml * Add count as an attribute * Clean up and move rebaseline script to r2rdump test directory * Remove R2RDumpTest warnings * Use original test framework instead of netcoreapp2.0 Commit migrated from https://github.com/dotnet/coreclr/commit/c7abc0df8f22233b7974971c26ae48a93cfea7fa --- src/coreclr/src/tools/r2rdump/R2RImportSection.cs | 13 +- src/coreclr/src/tools/r2rdump/R2RMethod.cs | 10 +- src/coreclr/src/tools/r2rdump/R2RReader.cs | 19 ++- src/coreclr/src/tools/r2rdump/XmlDumper.cs | 34 ++-- .../r2rdump/files/MultipleRuntimeFunctions.cs | 9 +- .../Windows_NT.x64.Checked/GcInfoTransitions.xml | 176 ++++++++++--------- .../Windows_NT.x64.Checked/GenericFunctions.xml | 161 +++++++++-------- .../files/Windows_NT.x64.Checked/HelloWorld.xml | 190 +++++++++++---------- .../MultipleRuntimeFunctions.xml | 182 ++++++++++++++------ .../Windows_NT.x86.Checked/GcInfoTransitions.xml | 170 +++++++++--------- .../Windows_NT.x86.Checked/GenericFunctions.xml | 151 ++++++++-------- .../files/Windows_NT.x86.Checked/HelloWorld.xml | 186 ++++++++++---------- .../MultipleRuntimeFunctions.xml | 136 +++++++++------ .../Windows_NT.x86.Release/GcInfoTransitions.xml | 170 +++++++++--------- .../Windows_NT.x86.Release/GenericFunctions.xml | 151 ++++++++-------- .../files/Windows_NT.x86.Release/HelloWorld.xml | 186 ++++++++++---------- .../MultipleRuntimeFunctions.xml | 136 +++++++++------ .../tests/src/readytorun/r2rdump/rebaseline.cmd | 21 +++ 18 files changed, 1212 insertions(+), 889 deletions(-) create mode 100644 src/coreclr/tests/src/readytorun/r2rdump/rebaseline.cmd diff --git a/src/coreclr/src/tools/r2rdump/R2RImportSection.cs b/src/coreclr/src/tools/r2rdump/R2RImportSection.cs index bf7a056..1029d73 100644 --- a/src/coreclr/src/tools/r2rdump/R2RImportSection.cs +++ b/src/coreclr/src/tools/r2rdump/R2RImportSection.cs @@ -33,13 +33,15 @@ namespace R2RDump public struct ImportSectionEntry { + [XmlAttribute("Index")] + public int Index { get; set; } public int StartOffset { get; set; } public long Section { get; set; } - [XmlAttribute("Index")] public uint SignatureRVA { get; set; } public byte[] SignatureSample { get; set; } - public ImportSectionEntry(int startOffset, long section, uint signatureRVA, byte[] signatureSample) + public ImportSectionEntry(int index, int startOffset, long section, uint signatureRVA, byte[] signatureSample) { + Index = index; StartOffset = startOffset; Section = section; SignatureRVA = signatureRVA; @@ -59,10 +61,12 @@ namespace R2RDump } } + [XmlAttribute("Index")] + public int Index { get; set; } + /// /// Section containing values to be fixed up /// - [XmlAttribute("Index")] public int SectionRVA { get; set; } public int SectionSize { get; set; } @@ -93,8 +97,9 @@ namespace R2RDump public int AuxiliaryDataRVA { get; set; } public GcInfo AuxiliaryData { get; set; } - public R2RImportSection(byte[] image, int rva, int size, CorCompileImportFlags flags, byte type, byte entrySize, int signatureRVA, List entries, int auxDataRVA, int auxDataOffset, Machine machine, ushort majorVersion) + public R2RImportSection(int index, byte[] image, int rva, int size, CorCompileImportFlags flags, byte type, byte entrySize, int signatureRVA, List entries, int auxDataRVA, int auxDataOffset, Machine machine, ushort majorVersion) { + Index = index; SectionRVA = rva; SectionSize = size; Flags = flags; diff --git a/src/coreclr/src/tools/r2rdump/R2RMethod.cs b/src/coreclr/src/tools/r2rdump/R2RMethod.cs index 788ebbb..fa8ba27 100644 --- a/src/coreclr/src/tools/r2rdump/R2RMethod.cs +++ b/src/coreclr/src/tools/r2rdump/R2RMethod.cs @@ -107,6 +107,12 @@ namespace R2RDump MethodDefinition _methodDef; /// + /// An unique index for the method + /// + [XmlAttribute("Index")] + public int Index { get; set; } + + /// /// The name of the method /// public string Name { get; set; } @@ -133,7 +139,6 @@ namespace R2RDump /// /// The row id of the method /// - [XmlAttribute("Index")] public uint Rid { get; set; } /// @@ -196,8 +201,9 @@ namespace R2RDump /// /// Extracts the method signature from the metadata by rid /// - public R2RMethod(MetadataReader mdReader, uint rid, int entryPointId, GenericElementTypes[] instanceArgs, uint[] tok, FixupCell[] fixups) + public R2RMethod(int index, MetadataReader mdReader, uint rid, int entryPointId, GenericElementTypes[] instanceArgs, uint[] tok, FixupCell[] fixups) { + Index = index; Token = _mdtMethodDef | rid; Rid = rid; EntryPointRuntimeFunctionId = entryPointId; diff --git a/src/coreclr/src/tools/r2rdump/R2RReader.cs b/src/coreclr/src/tools/r2rdump/R2RReader.cs index 25568b0..a2a1754 100644 --- a/src/coreclr/src/tools/r2rdump/R2RReader.cs +++ b/src/coreclr/src/tools/r2rdump/R2RReader.cs @@ -9,6 +9,7 @@ using System.Reflection.Metadata; using System.Reflection.Metadata.Ecma335; using System.Reflection.PortableExecutable; using System.Text; +using System.Xml.Serialization; namespace R2RDump { @@ -40,6 +41,9 @@ namespace R2RDump /// public struct FixupCell { + [XmlAttribute("Index")] + public int Index { get; set; } + /// /// Zero-based index of the import table within the import tables section. /// @@ -51,8 +55,9 @@ namespace R2RDump /// public uint CellOffset; - public FixupCell(uint tableIndex, uint cellOffset) + public FixupCell(int index, uint tableIndex, uint cellOffset) { + Index = index; TableIndex = tableIndex; CellOffset = cellOffset; } @@ -215,7 +220,7 @@ namespace R2RDump int runtimeFunctionId; FixupCell[] fixups; GetEntryPointInfoFromOffset(offset, out runtimeFunctionId, out fixups); - R2RMethod method = new R2RMethod(_mdReader, rid, runtimeFunctionId, null, null, fixups); + R2RMethod method = new R2RMethod(R2RMethods.Count, _mdReader, rid, runtimeFunctionId, null, null, fixups); if (method.EntryPointRuntimeFunctionId < 0 || method.EntryPointRuntimeFunctionId >= isEntryPoint.Length) { @@ -264,7 +269,7 @@ namespace R2RDump int runtimeFunctionId; FixupCell[] fixups; GetEntryPointInfoFromOffset((int)curParser.Offset, out runtimeFunctionId, out fixups); - R2RMethod method = new R2RMethod(_mdReader, rid, runtimeFunctionId, args, tokens, fixups); + R2RMethod method = new R2RMethod(R2RMethods.Count, _mdReader, rid, runtimeFunctionId, args, tokens, fixups); if (method.EntryPointRuntimeFunctionId >= 0 && method.EntryPointRuntimeFunctionId < isEntryPoint.Length) { isEntryPoint[method.EntryPointRuntimeFunctionId] = true; @@ -409,7 +414,7 @@ namespace R2RDump int sigSampleLength = Math.Min(8, Image.Length - sigOff); byte[] signatureSample = new byte[sigSampleLength]; Array.Copy(Image, sigOff, signatureSample, 0, sigSampleLength); - entries.Add(new R2RImportSection.ImportSectionEntry(entryOffset, section, sigRva, signatureSample)); + entries.Add(new R2RImportSection.ImportSectionEntry(entries.Count, entryOffset, section, sigRva, signatureSample)); } } break; @@ -424,7 +429,7 @@ namespace R2RDump int sigSampleLength = Math.Min(8, Image.Length - sigOff); byte[] signatureSample = new byte[sigSampleLength]; Array.Copy(Image, sigOff, signatureSample, 0, sigSampleLength); - entries.Add(new R2RImportSection.ImportSectionEntry(entryOffset, section, sigRva, signatureSample)); + entries.Add(new R2RImportSection.ImportSectionEntry(entries.Count, entryOffset, section, sigRva, signatureSample)); } break; } @@ -435,7 +440,7 @@ namespace R2RDump { auxDataOffset = GetOffset(auxDataRVA); } - ImportSections.Add(new R2RImportSection(Image, rva, size, flags, type, entrySize, signatureRVA, entries, auxDataRVA, auxDataOffset, Machine, R2RHeader.MajorVersion)); + ImportSections.Add(new R2RImportSection(ImportSections.Count, Image, rva, size, flags, type, entrySize, signatureRVA, entries, auxDataRVA, auxDataOffset, Machine, R2RHeader.MajorVersion)); } } @@ -518,7 +523,7 @@ namespace R2RDump while (true) { - cells.Add(new FixupCell(curTableIndex, fixupIndex)); + cells.Add(new FixupCell(cells.Count, curTableIndex, fixupIndex)); uint delta = reader.ReadUInt(); diff --git a/src/coreclr/src/tools/r2rdump/XmlDumper.cs b/src/coreclr/src/tools/r2rdump/XmlDumper.cs index 913a8be..c7ef734 100644 --- a/src/coreclr/src/tools/r2rdump/XmlDumper.cs +++ b/src/coreclr/src/tools/r2rdump/XmlDumper.cs @@ -94,7 +94,8 @@ namespace R2RDump internal override void DumpSection(R2RSection section, XmlNode parentNode) { XmlNode sectionNode = XmlDocument.CreateNode("element", "Section", ""); - AddIndexAttribute(sectionNode, $"{section.Type}"); + AddXMLAttribute(sectionNode, "Index", $"{section.Type}"); + parentNode.AppendChild(sectionNode); Serialize(section, sectionNode); @@ -112,7 +113,7 @@ namespace R2RDump { XmlNode methodsNode = XmlDocument.CreateNode("element", "Methods", ""); _rootNode.AppendChild(methodsNode); - AddXMLNode("Count", _r2r.R2RMethods.Count.ToString(), methodsNode); + AddXMLAttribute(methodsNode, "Count", _r2r.R2RMethods.Count.ToString()); foreach (R2RMethod method in _r2r.R2RMethods) { DumpMethod(method, methodsNode); @@ -125,7 +126,7 @@ namespace R2RDump internal override void DumpMethod(R2RMethod method, XmlNode parentNode) { XmlNode methodNode = XmlDocument.CreateNode("element", "Method", ""); - AddIndexAttribute(methodNode, $"{method.Rid}"); + AddXMLAttribute(methodNode, "Index", $"{method.Index}"); parentNode.AppendChild(methodNode); Serialize(method, methodNode); @@ -162,6 +163,7 @@ namespace R2RDump internal override void DumpRuntimeFunction(RuntimeFunction rtf, XmlNode parentNode) { XmlNode rtfNode = XmlDocument.CreateNode("element", "RuntimeFunction", ""); + AddXMLAttribute(rtfNode, "Index", $"{rtf.Id}"); parentNode.AppendChild(rtfNode); AddXMLNode("MethodRid", rtf.Method.Rid.ToString(), rtfNode); Serialize(rtf, rtfNode); @@ -269,25 +271,29 @@ namespace R2RDump case R2RSection.SectionType.READYTORUN_SECTION_IMPORT_SECTIONS: foreach (R2RImportSection importSection in _r2r.ImportSections) { - Serialize(importSection, contentsNode); + XmlNode importSectionsNode = XmlDocument.CreateNode("element", "ImportSection", ""); + AddXMLAttribute(importSectionsNode, "Index", $"{importSection.Index}"); + contentsNode.AppendChild(importSectionsNode); + + Serialize(importSection, importSectionsNode); if (_raw && importSection.Entries.Count != 0) { if (importSection.SectionRVA != 0) { - DumpBytes(importSection.SectionRVA, (uint)importSection.SectionSize, contentsNode, "SectionBytes"); + DumpBytes(importSection.SectionRVA, (uint)importSection.SectionSize, importSectionsNode, "SectionBytes"); } if (importSection.SignatureRVA != 0) { - DumpBytes(importSection.SignatureRVA, (uint)importSection.Entries.Count * sizeof(int), contentsNode, "SignatureBytes"); + DumpBytes(importSection.SignatureRVA, (uint)importSection.Entries.Count * sizeof(int), importSectionsNode, "SignatureBytes"); } if (importSection.AuxiliaryDataRVA != 0) { - DumpBytes(importSection.AuxiliaryDataRVA, (uint)importSection.AuxiliaryData.Size, contentsNode, "AuxiliaryDataBytes"); + DumpBytes(importSection.AuxiliaryDataRVA, (uint)importSection.AuxiliaryData.Size, importSectionsNode, "AuxiliaryDataBytes"); } } foreach (R2RImportSection.ImportSectionEntry entry in importSection.Entries) { - Serialize(entry, contentsNode); + Serialize(entry, importSectionsNode); } } break; @@ -298,8 +304,8 @@ namespace R2RDump { XmlNode queryNode = XmlDocument.CreateNode("element", title, ""); _rootNode.AppendChild(queryNode); - AddXMLNode("Query", q, queryNode); - AddXMLNode("Count", count.ToString(), queryNode); + AddXMLAttribute(queryNode, "Query", q); + AddXMLAttribute(queryNode, "Count", count.ToString()); return queryNode; } @@ -318,17 +324,17 @@ namespace R2RDump XmlNode node = XmlDocument.CreateNode("element", name, ""); if (!index.Equals("")) { - AddIndexAttribute(node, index); + AddXMLAttribute(node, "Index", index); } parentNode.AppendChild(node); node.InnerText = contents; return node; } - private void AddIndexAttribute(XmlNode node, string index) + private void AddXMLAttribute(XmlNode node, string name, string value) { - XmlAttribute attr = XmlDocument.CreateAttribute("Index"); - attr.Value = index; + XmlAttribute attr = XmlDocument.CreateAttribute(name); + attr.Value = value; node.Attributes.SetNamedItem(attr); } } diff --git a/src/coreclr/tests/src/readytorun/r2rdump/files/MultipleRuntimeFunctions.cs b/src/coreclr/tests/src/readytorun/r2rdump/files/MultipleRuntimeFunctions.cs index a0ec5bf..7e952dc 100644 --- a/src/coreclr/tests/src/readytorun/r2rdump/files/MultipleRuntimeFunctions.cs +++ b/src/coreclr/tests/src/readytorun/r2rdump/files/MultipleRuntimeFunctions.cs @@ -6,7 +6,7 @@ namespace MultipleRuntimeFunctions { class MultipleRuntimeFunctions { - static void Main(string[] args) + static void MethodWithMultipleRuntimeFunctions() { try { @@ -17,5 +17,10 @@ namespace MultipleRuntimeFunctions } } + + static void Main(string[] args) + { + MethodWithMultipleRuntimeFunctions(); + } } -} +} \ No newline at end of file diff --git a/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x64.Checked/GcInfoTransitions.xml b/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x64.Checked/GcInfoTransitions.xml index b9d550b..9704652 100644 --- a/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x64.Checked/GcInfoTransitions.xml +++ b/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x64.Checked/GcInfoTransitions.xml @@ -34,74 +34,84 @@ 40 - - 24 - CORCOMPILE_IMPORT_FLAGS_EAGER - CORCOMPILE_IMPORT_TYPE_UNKNOWN - 0 - 9276 - - - 0 -
0
- GgEagPAaCP8= -
-
- 0 -
- - 0 -
0
- GgEagPAaCP8= -
- - 8 - CORCOMPILE_IMPORT_FLAGS_PCODE - CORCOMPILE_IMPORT_TYPE_STUB_DISPATCH - 8 - 9360 - - - 0 -
6891812037717
- FQQAAAAAAAA= -
-
- 10528 - - 2 - 0 - RT_Object - 0 - 0 - -1 - -1 - -1 - -1 - 4294967295 - 4294967295 - -1 - 0 - 0 - 0 - - - - 0 - 0 - 0 - 0 - - - 22 - 3360 - -
- - 0 -
6891812037717
- FQQAAAAAAAA= -
+ + + 4096 + 24 + CORCOMPILE_IMPORT_FLAGS_EAGER + CORCOMPILE_IMPORT_TYPE_UNKNOWN + 0 + 9276 + + + 0 +
0
+ 9288 + GgEagPAaCP8= +
+
+ 0 +
+ + 0 +
0
+ 9288 + GgEagPAaCP8= +
+
+ + + 4120 + 8 + CORCOMPILE_IMPORT_FLAGS_PCODE + CORCOMPILE_IMPORT_TYPE_STUB_DISPATCH + 8 + 9360 + + + 0 +
6891812037717
+ 10536 + FQQAAAAAAAA= +
+
+ 10528 + + 2 + 0 + RT_Object + 0 + 0 + -1 + -1 + -1 + -1 + 4294967295 + 4294967295 + -1 + 0 + 0 + 0 + + + + 0 + 0 + 0 + 0 + + + 22 + 3360 + +
+ + 0 +
6891812037717
+ 10536 + FQQAAAAAAAA= +
+
@@ -167,15 +177,15 @@
- - 3 - - + + + abc GcInfoTransitions.GcInfoTransitions.abc(String) false GcInfoTransitions.GcInfoTransitions 100663297 + 1 0 @@ -209,7 +219,7 @@ - + 1 10256 @@ -219,6 +229,7 @@ + 8 1 3 0 @@ -227,19 +238,19 @@ 0 9295 - 8 - - + + Main GcInfoTransitions.GcInfoTransitions.Main(String[]) false GcInfoTransitions.GcInfoTransitions 100663298 + 2 1 @@ -298,7 +309,7 @@ - + 2 10272 @@ -308,6 +319,7 @@ + 12 1 3 4 @@ -325,19 +337,19 @@ 609157120 - 12 - - + + .ctor GcInfoTransitions.GcInfoTransitions..ctor() false GcInfoTransitions.GcInfoTransitions 100663299 + 3 2 @@ -371,7 +383,7 @@ - + 3 10448 @@ -381,6 +393,7 @@ + 8 1 3 0 @@ -389,7 +402,6 @@ 0 9295 - 8 diff --git a/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x64.Checked/GenericFunctions.xml b/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x64.Checked/GenericFunctions.xml index 9085634..5581c11 100644 --- a/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x64.Checked/GenericFunctions.xml +++ b/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x64.Checked/GenericFunctions.xml @@ -34,55 +34,68 @@ 60 - - 24 - CORCOMPILE_IMPORT_FLAGS_EAGER - CORCOMPILE_IMPORT_TYPE_UNKNOWN - 0 - 9284 - - - 0 -
0
- GgEagPAaEP8= -
-
- 0 -
- - 0 -
0
- GgEagPAaEP8= -
- - 8 - CORCOMPILE_IMPORT_FLAGS_PCODE - CORCOMPILE_IMPORT_TYPE_UNKNOWN - 8 - 9392 - - - 0 -
6891812037725
- HBIMEBEIAAA= -
-
- 0 -
- - 0 -
6891812037725
- HBIMEBEIAAA= -
- - 8 - CORCOMPILE_IMPORT_FLAGS_UNKNOWN - CORCOMPILE_IMPORT_TYPE_UNKNOWN - 0 - 10672 - - 0 - + + + 4096 + 24 + CORCOMPILE_IMPORT_FLAGS_EAGER + CORCOMPILE_IMPORT_TYPE_UNKNOWN + 0 + 9284 + + + 0 +
0
+ 9296 + GgEagPAaEP8= +
+
+ 0 +
+ + 0 +
0
+ 9296 + GgEagPAaEP8= +
+
+ + + 4120 + 8 + CORCOMPILE_IMPORT_FLAGS_PCODE + CORCOMPILE_IMPORT_TYPE_UNKNOWN + 8 + 9392 + + + 0 +
6891812037725
+ 10676 + HBIMEBEIAAA= +
+
+ 0 +
+ + 0 +
6891812037725
+ 10676 + HBIMEBEIAAA= +
+
+ + + 4128 + 8 + CORCOMPILE_IMPORT_FLAGS_UNKNOWN + CORCOMPILE_IMPORT_TYPE_UNKNOWN + 0 + 10672 + + 0 + +
@@ -149,15 +162,15 @@
- - 5 - - + + + .ctor GenericFunctions.UserDefinedStruct..ctor(Int32) false GenericFunctions.UserDefinedStruct 100663297 + 1 0 @@ -191,7 +204,7 @@ - + 1 10464 @@ -201,6 +214,7 @@ + 8 1 3 0 @@ -209,19 +223,19 @@ 0 9303 - 8 - - + + .ctor GenericFunctions.UserDefinedClass..ctor(Int32) false GenericFunctions.UserDefinedClass 100663298 + 2 1 @@ -255,7 +269,7 @@ - + 2 10480 @@ -265,6 +279,7 @@ + 8 1 3 0 @@ -273,22 +288,22 @@ 0 9303 - 8 - - + + Main GenericFunctions.GenericFunctions.Main(String[]) false GenericFunctions.GenericFunctions 100663300 + 4 3 - + 2 0 @@ -329,7 +344,7 @@ - + 4 10512 @@ -339,6 +354,7 @@ + 12 1 3 4 @@ -356,19 +372,19 @@ 609681408 - 12 - - + + .ctor GenericFunctions.GenericFunctions..ctor() false GenericFunctions.GenericFunctions 100663301 + 5 4 @@ -402,7 +418,7 @@ - + 5 10544 @@ -412,6 +428,7 @@ + 8 1 3 0 @@ -420,19 +437,19 @@ 0 9303 - 8 - - + + GenericFunction GenericFunctions.GenericFunctions.GenericFunction<__Canon, __Canon>(__Canon, __Canon) true GenericFunctions.GenericFunctions 100663299 + 3 2 @@ -466,7 +483,7 @@ - + 3 10496 @@ -476,6 +493,7 @@ + 8 1 3 0 @@ -484,7 +502,6 @@ 0 9303 - 8 diff --git a/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x64.Checked/HelloWorld.xml b/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x64.Checked/HelloWorld.xml index a5f7d4d..e031cd2 100644 --- a/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x64.Checked/HelloWorld.xml +++ b/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x64.Checked/HelloWorld.xml @@ -34,83 +34,96 @@ 60 - - 24 - CORCOMPILE_IMPORT_FLAGS_EAGER - CORCOMPILE_IMPORT_TYPE_UNKNOWN - 0 - 9264 - - - 0 -
0
- GgEagPAaCP8= -
-
- 0 -
- - 0 -
0
- GgEagPAaCP8= -
- - 8 - CORCOMPILE_IMPORT_FLAGS_UNKNOWN - CORCOMPILE_IMPORT_TYPE_STRING_HANDLE - 8 - 10256 - - 0 - - - 8 - CORCOMPILE_IMPORT_FLAGS_PCODE - CORCOMPILE_IMPORT_TYPE_STUB_DISPATCH - 8 - 9336 - - - 0 -
6891812037705
- FQQQAQICAn4= -
-
- 10248 - - 2 - 0 - RT_Object - 0 - 0 - -1 - -1 - -1 - -1 - 4294967295 - 4294967295 - -1 - 0 - 0 - 0 - - - - 0 - 0 - 0 - 0 - - - 22 - 3080 - -
- - 0 -
6891812037705
- FQQQAQICAn4= -
+ + + 4096 + 24 + CORCOMPILE_IMPORT_FLAGS_EAGER + CORCOMPILE_IMPORT_TYPE_UNKNOWN + 0 + 9264 + + + 0 +
0
+ 9276 + GgEagPAaCP8= +
+
+ 0 +
+ + 0 +
0
+ 9276 + GgEagPAaCP8= +
+
+ + + 4128 + 8 + CORCOMPILE_IMPORT_FLAGS_UNKNOWN + CORCOMPILE_IMPORT_TYPE_STRING_HANDLE + 8 + 10256 + + 0 + + + + + 4120 + 8 + CORCOMPILE_IMPORT_FLAGS_PCODE + CORCOMPILE_IMPORT_TYPE_STUB_DISPATCH + 8 + 9336 + + + 0 +
6891812037705
+ 10262 + FQQQAQICAn4= +
+
+ 10248 + + 2 + 0 + RT_Object + 0 + 0 + -1 + -1 + -1 + -1 + 4294967295 + 4294967295 + -1 + 0 + 0 + 0 + + + + 0 + 0 + 0 + 0 + + + 22 + 3080 + +
+ + 0 +
6891812037705
+ 10262 + FQQQAQICAn4= +
+
@@ -173,18 +186,18 @@
- - 2 - - + + + Main HelloWorld.HelloWorld.Main(String[]) false HelloWorld.HelloWorld 100663297 + 1 0 - + 1 0 @@ -225,7 +238,7 @@ - + 1 10144 @@ -235,6 +248,7 @@ + 12 1 3 4 @@ -252,19 +266,19 @@ 608370688 - 12 - - + + .ctor HelloWorld.HelloWorld..ctor() false HelloWorld.HelloWorld 100663298 + 2 1 @@ -298,7 +312,7 @@ - + 2 10176 @@ -308,6 +322,7 @@ + 8 1 3 0 @@ -316,7 +331,6 @@ 0 9283 - 8 diff --git a/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x64.Checked/MultipleRuntimeFunctions.xml b/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x64.Checked/MultipleRuntimeFunctions.xml index 2161efe..89916b4 100644 --- a/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x64.Checked/MultipleRuntimeFunctions.xml +++ b/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x64.Checked/MultipleRuntimeFunctions.xml @@ -34,59 +34,67 @@ 20 - - 16 - CORCOMPILE_IMPORT_FLAGS_EAGER - CORCOMPILE_IMPORT_TYPE_UNKNOWN - 0 - 9276 - - - 0 -
0
- GgEagPD/Jbk= -
-
- 0 -
- - 0 -
0
- GgEagPD/Jbk= -
+ + + 4096 + 16 + CORCOMPILE_IMPORT_FLAGS_EAGER + CORCOMPILE_IMPORT_TYPE_UNKNOWN + 0 + 9276 + + + 0 +
0
+ 9284 + GgEagPD/Jbk= +
+
+ 0 +
+ + 0 +
0
+ 9284 + GgEagPD/Jbk= +
+
9296 - 24 + 36 - 0x00002750 - 0x00002756 - 0x0000278C - 0x00002760 - 0x00002766 - 0x0000278C + 0x00002780 + 0x00002786 + 0x000027CC + 0x00002790 + 0x00002796 + 0x000027CC + 0x000027A0 + 0x000027A6 + 0x000027CC
- 10088 - 8 + 10152 + 10
- 10136 - 27 + 10200 + 36
- 10112 + 10176 9 @@ -96,28 +104,28 @@
- 10096 + 10162 3
- 10164 - 13 + 10236 + 22
- - 2 - - - Main - MultipleRuntimeFunctions.MultipleRuntimeFunctions.Main(String[]) + + + + MethodWithMultipleRuntimeFunctions + MultipleRuntimeFunctions.MultipleRuntimeFunctions.MethodWithMultipleRuntimeFunctions() false MultipleRuntimeFunctions.MultipleRuntimeFunctions 100663297 + 1 0 @@ -147,20 +155,21 @@ 22 - 2964 + 3028 - + 1 - 10064 + 10112 6 - 10124 + 10188 0 + 8 1 3 0 @@ -169,19 +178,19 @@ 0 9289 - 8 - - - .ctor - MultipleRuntimeFunctions.MultipleRuntimeFunctions..ctor() + + + Main + MultipleRuntimeFunctions.MultipleRuntimeFunctions.Main(String[]) false MultipleRuntimeFunctions.MultipleRuntimeFunctions 100663298 + 2 1 @@ -211,20 +220,21 @@ 22 - 2964 + 3028 - + 2 - 10080 + 10128 6 - 10124 + 10188 0 + 8 1 3 0 @@ -233,7 +243,71 @@ 0 9289 + + + + + + + + .ctor + MultipleRuntimeFunctions.MultipleRuntimeFunctions..ctor() + false + MultipleRuntimeFunctions.MultipleRuntimeFunctions + 100663299 + 3 + 2 + + + + 2 + 6 + RT_Scalar + 0 + 0 + -1 + -1 + -1 + -1 + 4294967295 + 4294967295 + -1 + 0 + 0 + 0 + + + + 0 + 0 + 0 + 0 + + + 22 + 3028 + + + + + 3 + + 10144 + 6 + 10188 + 0 + + + 8 + 1 + 3 + 0 + 0 + EAX + 0 + + 9289 diff --git a/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Checked/GcInfoTransitions.xml b/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Checked/GcInfoTransitions.xml index eb2dc12..775e25e 100644 --- a/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Checked/GcInfoTransitions.xml +++ b/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Checked/GcInfoTransitions.xml @@ -34,74 +34,84 @@ 40 - - 8 - CORCOMPILE_IMPORT_FLAGS_EAGER - CORCOMPILE_IMPORT_TYPE_UNKNOWN - 0 - 9276 - - - 0 -
0
- GgEaCDPAagE= -
-
- 0 -
- - 0 -
0
- GgEaCDPAagE= -
- - 4 - CORCOMPILE_IMPORT_FLAGS_PCODE - CORCOMPILE_IMPORT_TYPE_STUB_DISPATCH - 4 - 9304 - - - 0 -
268510280
- FQQAAP////8= -
-
- 10412 - - 2 - 0 - RT_Object - 0 - 0 - -1 - -1 - -1 - -1 - 4294967295 - 4294967295 - -1 - 0 - 0 - 0 - - - - 0 - 0 - 0 - 0 - - - 22 - 3244 - -
- - 0 -
268510280
- FQQAAP////8= -
+ + + 4096 + 8 + CORCOMPILE_IMPORT_FLAGS_EAGER + CORCOMPILE_IMPORT_TYPE_UNKNOWN + 0 + 9276 + + + 0 +
0
+ 9284 + GgEaCDPAagE= +
+
+ 0 +
+ + 0 +
0
+ 9284 + GgEaCDPAagE= +
+
+ + + 4104 + 4 + CORCOMPILE_IMPORT_FLAGS_PCODE + CORCOMPILE_IMPORT_TYPE_STUB_DISPATCH + 4 + 9304 + + + 0 +
268510280
+ 10432 + FQQAAP////8= +
+
+ 10412 + + 2 + 0 + RT_Object + 0 + 0 + -1 + -1 + -1 + -1 + 4294967295 + 4294967295 + -1 + 0 + 0 + 0 + + + + 0 + 0 + 0 + 0 + + + 22 + 3244 + +
+ + 0 +
268510280
+ 10432 + FQQAAP////8= +
+
@@ -164,19 +174,19 @@
- - 3 - - + + + abc GcInfoTransitions.GcInfoTransitions.abc(String) false GcInfoTransitions.GcInfoTransitions 100663297 + 1 0 - + 1 10200 @@ -193,17 +203,18 @@ - - + + Main GcInfoTransitions.GcInfoTransitions.Main(String[]) false GcInfoTransitions.GcInfoTransitions 100663298 + 2 1 - + 2 10208 @@ -220,17 +231,18 @@ - - + + .ctor GcInfoTransitions.GcInfoTransitions..ctor() false GcInfoTransitions.GcInfoTransitions 100663299 + 3 2 - + 3 10336 diff --git a/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Checked/GenericFunctions.xml b/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Checked/GenericFunctions.xml index 119e0c4..0e3554e 100644 --- a/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Checked/GenericFunctions.xml +++ b/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Checked/GenericFunctions.xml @@ -34,55 +34,68 @@ 60 - - 8 - CORCOMPILE_IMPORT_FLAGS_EAGER - CORCOMPILE_IMPORT_TYPE_UNKNOWN - 0 - 9284 - - - 0 -
0
- GgEaEDPAagE= -
-
- 0 -
- - 0 -
0
- GgEaEDPAagE= -
- - 4 - CORCOMPILE_IMPORT_FLAGS_PCODE - CORCOMPILE_IMPORT_TYPE_UNKNOWN - 4 - 9312 - - - 0 -
268510288
- HBIMEBEIAAA= -
-
- 0 -
- - 0 -
268510288
- HBIMEBEIAAA= -
- - 4 - CORCOMPILE_IMPORT_FLAGS_UNKNOWN - CORCOMPILE_IMPORT_TYPE_UNKNOWN - 0 - 10552 - - 0 - + + + 4096 + 8 + CORCOMPILE_IMPORT_FLAGS_EAGER + CORCOMPILE_IMPORT_TYPE_UNKNOWN + 0 + 9284 + + + 0 +
0
+ 9292 + GgEaEDPAagE= +
+
+ 0 +
+ + 0 +
0
+ 9292 + GgEaEDPAagE= +
+
+ + + 4104 + 4 + CORCOMPILE_IMPORT_FLAGS_PCODE + CORCOMPILE_IMPORT_TYPE_UNKNOWN + 4 + 9312 + + + 0 +
268510288
+ 10556 + HBIMEBEIAAA= +
+
+ 0 +
+ + 0 +
268510288
+ 10556 + HBIMEBEIAAA= +
+
+ + + 4108 + 4 + CORCOMPILE_IMPORT_FLAGS_UNKNOWN + CORCOMPILE_IMPORT_TYPE_UNKNOWN + 0 + 10552 + + 0 + +
@@ -144,19 +157,19 @@
- - 5 - - + + + .ctor GenericFunctions.UserDefinedStruct..ctor(Int32) false GenericFunctions.UserDefinedStruct 100663297 + 1 0 - + 1 10380 @@ -173,17 +186,18 @@ - - + + .ctor GenericFunctions.UserDefinedClass..ctor(Int32) false GenericFunctions.UserDefinedClass 100663298 + 2 1 - + 2 10388 @@ -200,23 +214,24 @@ - - + + Main GenericFunctions.GenericFunctions.Main(String[]) false GenericFunctions.GenericFunctions 100663300 + 4 3 - + 2 0 - + 4 10412 @@ -233,17 +248,18 @@ - - + + .ctor GenericFunctions.GenericFunctions..ctor() false GenericFunctions.GenericFunctions 100663301 + 5 4 - + 5 10432 @@ -260,17 +276,18 @@ - - + + GenericFunction GenericFunctions.GenericFunctions.GenericFunction<__Canon, __Canon>(__Canon, __Canon) true GenericFunctions.GenericFunctions 100663299 + 3 2 - + 3 10400 diff --git a/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Checked/HelloWorld.xml b/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Checked/HelloWorld.xml index 88feff4..5e02d87 100644 --- a/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Checked/HelloWorld.xml +++ b/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Checked/HelloWorld.xml @@ -34,83 +34,96 @@ 60 - - 8 - CORCOMPILE_IMPORT_FLAGS_EAGER - CORCOMPILE_IMPORT_TYPE_UNKNOWN - 0 - 9264 - - - 0 -
0
- GgEaCDPAagI= -
-
- 0 -
- - 0 -
0
- GgEaCDPAagI= -
- - 4 - CORCOMPILE_IMPORT_FLAGS_UNKNOWN - CORCOMPILE_IMPORT_TYPE_STRING_HANDLE - 4 - 10188 - - 0 - - - 4 - CORCOMPILE_IMPORT_FLAGS_PCODE - CORCOMPILE_IMPORT_TYPE_STUB_DISPATCH - 4 - 9292 - - - 0 -
268510268
- FQT/////EAE= -
-
- 10172 - - 2 - 0 - RT_Object - 0 - 0 - -1 - -1 - -1 - -1 - 4294967295 - 4294967295 - -1 - 0 - 0 - 0 - - - - 0 - 0 - 0 - 0 - - - 22 - 3004 - -
- - 0 -
268510268
- FQT/////EAE= -
+ + + 4096 + 8 + CORCOMPILE_IMPORT_FLAGS_EAGER + CORCOMPILE_IMPORT_TYPE_UNKNOWN + 0 + 9264 + + + 0 +
0
+ 9272 + GgEaCDPAagI= +
+
+ 0 +
+ + 0 +
0
+ 9272 + GgEaCDPAagI= +
+
+ + + 4108 + 4 + CORCOMPILE_IMPORT_FLAGS_UNKNOWN + CORCOMPILE_IMPORT_TYPE_STRING_HANDLE + 4 + 10188 + + 0 + + + + + 4104 + 4 + CORCOMPILE_IMPORT_FLAGS_PCODE + CORCOMPILE_IMPORT_TYPE_STUB_DISPATCH + 4 + 9292 + + + 0 +
268510268
+ 10194 + FQT/////EAE= +
+
+ 10172 + + 2 + 0 + RT_Object + 0 + 0 + -1 + -1 + -1 + -1 + 4294967295 + 4294967295 + -1 + 0 + 0 + 0 + + + + 0 + 0 + 0 + 0 + + + 22 + 3004 + +
+ + 0 +
268510268
+ 10194 + FQT/////EAE= +
+
@@ -171,25 +184,25 @@
- - 2 - - + + + Main HelloWorld.HelloWorld.Main(String[]) false HelloWorld.HelloWorld 100663297 + 1 0 - + 1 0 - + 1 10096 @@ -206,17 +219,18 @@ - - + + .ctor HelloWorld.HelloWorld..ctor() false HelloWorld.HelloWorld 100663298 + 2 1 - + 2 10116 diff --git a/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Checked/MultipleRuntimeFunctions.xml b/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Checked/MultipleRuntimeFunctions.xml index 44d42f4..28b0870 100644 --- a/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Checked/MultipleRuntimeFunctions.xml +++ b/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Checked/MultipleRuntimeFunctions.xml @@ -34,57 +34,64 @@ 20 - - 4 - CORCOMPILE_IMPORT_FLAGS_EAGER - CORCOMPILE_IMPORT_TYPE_UNKNOWN - 0 - 9276 - - - 0 -
0
- GgEAAP////8= -
-
- 0 -
- - 0 -
0
- GgEAAP////8= -
+ + + 4096 + 4 + CORCOMPILE_IMPORT_FLAGS_EAGER + CORCOMPILE_IMPORT_TYPE_UNKNOWN + 0 + 9276 + + + 0 +
0
+ 9280 + GgEAAP////8= +
+
+ 0 +
+ + 0 +
0
+ 9280 + GgEAAP////8= +
+
- 10032 - 16 + 10076 + 24 - 0x00002720 - 0x0000275C - 0x00002728 - 0x0000275C + 0x00002744 + 0x0000279C + 0x0000274C + 0x0000279C + 0x00002754 + 0x0000279C
- 10052 - 8 + 10104 + 10
- 10084 - 27 + 10148 + 36
- 10064 + 10128 9 @@ -94,37 +101,37 @@
- 10060 + 10114 3
- 10112 - 13 + 10184 + 22
- - 2 - - - Main - MultipleRuntimeFunctions.MultipleRuntimeFunctions.Main(String[]) + + + + MethodWithMultipleRuntimeFunctions + MultipleRuntimeFunctions.MultipleRuntimeFunctions.MethodWithMultipleRuntimeFunctions() false MultipleRuntimeFunctions.MultipleRuntimeFunctions 100663297 + 1 0 - + 1 - 10016 + 10052 6 - 10076 + 10140 0 @@ -136,22 +143,51 @@ - - - .ctor - MultipleRuntimeFunctions.MultipleRuntimeFunctions..ctor() + + + Main + MultipleRuntimeFunctions.MultipleRuntimeFunctions.Main(String[]) false MultipleRuntimeFunctions.MultipleRuntimeFunctions 100663298 + 2 1 - + 2 - 10024 + 10060 + 6 + 10140 + 0 + + + + 4 + 6 + + + + + + + + .ctor + MultipleRuntimeFunctions.MultipleRuntimeFunctions..ctor() + false + MultipleRuntimeFunctions.MultipleRuntimeFunctions + 100663299 + 3 + 2 + + + + 3 + + 10068 6 - 10076 + 10140 0 diff --git a/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Release/GcInfoTransitions.xml b/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Release/GcInfoTransitions.xml index eb2dc12..775e25e 100644 --- a/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Release/GcInfoTransitions.xml +++ b/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Release/GcInfoTransitions.xml @@ -34,74 +34,84 @@ 40 - - 8 - CORCOMPILE_IMPORT_FLAGS_EAGER - CORCOMPILE_IMPORT_TYPE_UNKNOWN - 0 - 9276 - - - 0 -
0
- GgEaCDPAagE= -
-
- 0 -
- - 0 -
0
- GgEaCDPAagE= -
- - 4 - CORCOMPILE_IMPORT_FLAGS_PCODE - CORCOMPILE_IMPORT_TYPE_STUB_DISPATCH - 4 - 9304 - - - 0 -
268510280
- FQQAAP////8= -
-
- 10412 - - 2 - 0 - RT_Object - 0 - 0 - -1 - -1 - -1 - -1 - 4294967295 - 4294967295 - -1 - 0 - 0 - 0 - - - - 0 - 0 - 0 - 0 - - - 22 - 3244 - -
- - 0 -
268510280
- FQQAAP////8= -
+ + + 4096 + 8 + CORCOMPILE_IMPORT_FLAGS_EAGER + CORCOMPILE_IMPORT_TYPE_UNKNOWN + 0 + 9276 + + + 0 +
0
+ 9284 + GgEaCDPAagE= +
+
+ 0 +
+ + 0 +
0
+ 9284 + GgEaCDPAagE= +
+
+ + + 4104 + 4 + CORCOMPILE_IMPORT_FLAGS_PCODE + CORCOMPILE_IMPORT_TYPE_STUB_DISPATCH + 4 + 9304 + + + 0 +
268510280
+ 10432 + FQQAAP////8= +
+
+ 10412 + + 2 + 0 + RT_Object + 0 + 0 + -1 + -1 + -1 + -1 + 4294967295 + 4294967295 + -1 + 0 + 0 + 0 + + + + 0 + 0 + 0 + 0 + + + 22 + 3244 + +
+ + 0 +
268510280
+ 10432 + FQQAAP////8= +
+
@@ -164,19 +174,19 @@
- - 3 - - + + + abc GcInfoTransitions.GcInfoTransitions.abc(String) false GcInfoTransitions.GcInfoTransitions 100663297 + 1 0 - + 1 10200 @@ -193,17 +203,18 @@ - - + + Main GcInfoTransitions.GcInfoTransitions.Main(String[]) false GcInfoTransitions.GcInfoTransitions 100663298 + 2 1 - + 2 10208 @@ -220,17 +231,18 @@ - - + + .ctor GcInfoTransitions.GcInfoTransitions..ctor() false GcInfoTransitions.GcInfoTransitions 100663299 + 3 2 - + 3 10336 diff --git a/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Release/GenericFunctions.xml b/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Release/GenericFunctions.xml index 119e0c4..0e3554e 100644 --- a/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Release/GenericFunctions.xml +++ b/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Release/GenericFunctions.xml @@ -34,55 +34,68 @@ 60 - - 8 - CORCOMPILE_IMPORT_FLAGS_EAGER - CORCOMPILE_IMPORT_TYPE_UNKNOWN - 0 - 9284 - - - 0 -
0
- GgEaEDPAagE= -
-
- 0 -
- - 0 -
0
- GgEaEDPAagE= -
- - 4 - CORCOMPILE_IMPORT_FLAGS_PCODE - CORCOMPILE_IMPORT_TYPE_UNKNOWN - 4 - 9312 - - - 0 -
268510288
- HBIMEBEIAAA= -
-
- 0 -
- - 0 -
268510288
- HBIMEBEIAAA= -
- - 4 - CORCOMPILE_IMPORT_FLAGS_UNKNOWN - CORCOMPILE_IMPORT_TYPE_UNKNOWN - 0 - 10552 - - 0 - + + + 4096 + 8 + CORCOMPILE_IMPORT_FLAGS_EAGER + CORCOMPILE_IMPORT_TYPE_UNKNOWN + 0 + 9284 + + + 0 +
0
+ 9292 + GgEaEDPAagE= +
+
+ 0 +
+ + 0 +
0
+ 9292 + GgEaEDPAagE= +
+
+ + + 4104 + 4 + CORCOMPILE_IMPORT_FLAGS_PCODE + CORCOMPILE_IMPORT_TYPE_UNKNOWN + 4 + 9312 + + + 0 +
268510288
+ 10556 + HBIMEBEIAAA= +
+
+ 0 +
+ + 0 +
268510288
+ 10556 + HBIMEBEIAAA= +
+
+ + + 4108 + 4 + CORCOMPILE_IMPORT_FLAGS_UNKNOWN + CORCOMPILE_IMPORT_TYPE_UNKNOWN + 0 + 10552 + + 0 + +
@@ -144,19 +157,19 @@
- - 5 - - + + + .ctor GenericFunctions.UserDefinedStruct..ctor(Int32) false GenericFunctions.UserDefinedStruct 100663297 + 1 0 - + 1 10380 @@ -173,17 +186,18 @@ - - + + .ctor GenericFunctions.UserDefinedClass..ctor(Int32) false GenericFunctions.UserDefinedClass 100663298 + 2 1 - + 2 10388 @@ -200,23 +214,24 @@ - - + + Main GenericFunctions.GenericFunctions.Main(String[]) false GenericFunctions.GenericFunctions 100663300 + 4 3 - + 2 0 - + 4 10412 @@ -233,17 +248,18 @@ - - + + .ctor GenericFunctions.GenericFunctions..ctor() false GenericFunctions.GenericFunctions 100663301 + 5 4 - + 5 10432 @@ -260,17 +276,18 @@ - - + + GenericFunction GenericFunctions.GenericFunctions.GenericFunction<__Canon, __Canon>(__Canon, __Canon) true GenericFunctions.GenericFunctions 100663299 + 3 2 - + 3 10400 diff --git a/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Release/HelloWorld.xml b/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Release/HelloWorld.xml index 88feff4..5e02d87 100644 --- a/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Release/HelloWorld.xml +++ b/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Release/HelloWorld.xml @@ -34,83 +34,96 @@ 60 - - 8 - CORCOMPILE_IMPORT_FLAGS_EAGER - CORCOMPILE_IMPORT_TYPE_UNKNOWN - 0 - 9264 - - - 0 -
0
- GgEaCDPAagI= -
-
- 0 -
- - 0 -
0
- GgEaCDPAagI= -
- - 4 - CORCOMPILE_IMPORT_FLAGS_UNKNOWN - CORCOMPILE_IMPORT_TYPE_STRING_HANDLE - 4 - 10188 - - 0 - - - 4 - CORCOMPILE_IMPORT_FLAGS_PCODE - CORCOMPILE_IMPORT_TYPE_STUB_DISPATCH - 4 - 9292 - - - 0 -
268510268
- FQT/////EAE= -
-
- 10172 - - 2 - 0 - RT_Object - 0 - 0 - -1 - -1 - -1 - -1 - 4294967295 - 4294967295 - -1 - 0 - 0 - 0 - - - - 0 - 0 - 0 - 0 - - - 22 - 3004 - -
- - 0 -
268510268
- FQT/////EAE= -
+ + + 4096 + 8 + CORCOMPILE_IMPORT_FLAGS_EAGER + CORCOMPILE_IMPORT_TYPE_UNKNOWN + 0 + 9264 + + + 0 +
0
+ 9272 + GgEaCDPAagI= +
+
+ 0 +
+ + 0 +
0
+ 9272 + GgEaCDPAagI= +
+
+ + + 4108 + 4 + CORCOMPILE_IMPORT_FLAGS_UNKNOWN + CORCOMPILE_IMPORT_TYPE_STRING_HANDLE + 4 + 10188 + + 0 + + + + + 4104 + 4 + CORCOMPILE_IMPORT_FLAGS_PCODE + CORCOMPILE_IMPORT_TYPE_STUB_DISPATCH + 4 + 9292 + + + 0 +
268510268
+ 10194 + FQT/////EAE= +
+
+ 10172 + + 2 + 0 + RT_Object + 0 + 0 + -1 + -1 + -1 + -1 + 4294967295 + 4294967295 + -1 + 0 + 0 + 0 + + + + 0 + 0 + 0 + 0 + + + 22 + 3004 + +
+ + 0 +
268510268
+ 10194 + FQT/////EAE= +
+
@@ -171,25 +184,25 @@
- - 2 - - + + + Main HelloWorld.HelloWorld.Main(String[]) false HelloWorld.HelloWorld 100663297 + 1 0 - + 1 0 - + 1 10096 @@ -206,17 +219,18 @@ - - + + .ctor HelloWorld.HelloWorld..ctor() false HelloWorld.HelloWorld 100663298 + 2 1 - + 2 10116 diff --git a/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Release/MultipleRuntimeFunctions.xml b/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Release/MultipleRuntimeFunctions.xml index 44d42f4..28b0870 100644 --- a/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Release/MultipleRuntimeFunctions.xml +++ b/src/coreclr/tests/src/readytorun/r2rdump/files/Windows_NT.x86.Release/MultipleRuntimeFunctions.xml @@ -34,57 +34,64 @@ 20 - - 4 - CORCOMPILE_IMPORT_FLAGS_EAGER - CORCOMPILE_IMPORT_TYPE_UNKNOWN - 0 - 9276 - - - 0 -
0
- GgEAAP////8= -
-
- 0 -
- - 0 -
0
- GgEAAP////8= -
+ + + 4096 + 4 + CORCOMPILE_IMPORT_FLAGS_EAGER + CORCOMPILE_IMPORT_TYPE_UNKNOWN + 0 + 9276 + + + 0 +
0
+ 9280 + GgEAAP////8= +
+
+ 0 +
+ + 0 +
0
+ 9280 + GgEAAP////8= +
+
- 10032 - 16 + 10076 + 24 - 0x00002720 - 0x0000275C - 0x00002728 - 0x0000275C + 0x00002744 + 0x0000279C + 0x0000274C + 0x0000279C + 0x00002754 + 0x0000279C
- 10052 - 8 + 10104 + 10
- 10084 - 27 + 10148 + 36
- 10064 + 10128 9 @@ -94,37 +101,37 @@
- 10060 + 10114 3
- 10112 - 13 + 10184 + 22
- - 2 - - - Main - MultipleRuntimeFunctions.MultipleRuntimeFunctions.Main(String[]) + + + + MethodWithMultipleRuntimeFunctions + MultipleRuntimeFunctions.MultipleRuntimeFunctions.MethodWithMultipleRuntimeFunctions() false MultipleRuntimeFunctions.MultipleRuntimeFunctions 100663297 + 1 0 - + 1 - 10016 + 10052 6 - 10076 + 10140 0 @@ -136,22 +143,51 @@ - - - .ctor - MultipleRuntimeFunctions.MultipleRuntimeFunctions..ctor() + + + Main + MultipleRuntimeFunctions.MultipleRuntimeFunctions.Main(String[]) false MultipleRuntimeFunctions.MultipleRuntimeFunctions 100663298 + 2 1 - + 2 - 10024 + 10060 + 6 + 10140 + 0 + + + + 4 + 6 + + + + + + + + .ctor + MultipleRuntimeFunctions.MultipleRuntimeFunctions..ctor() + false + MultipleRuntimeFunctions.MultipleRuntimeFunctions + 100663299 + 3 + 2 + + + + 3 + + 10068 6 - 10076 + 10140 0 diff --git a/src/coreclr/tests/src/readytorun/r2rdump/rebaseline.cmd b/src/coreclr/tests/src/readytorun/r2rdump/rebaseline.cmd new file mode 100644 index 0000000..cd7526e --- /dev/null +++ b/src/coreclr/tests/src/readytorun/r2rdump/rebaseline.cmd @@ -0,0 +1,21 @@ +set CurrentDir=%~dp0 +set ProjectDir=%CurrentDir%..\..\..\..\ + +"%ProjectDir%Tools\dotnetcli\dotnet.exe" build /p:__BuildArch=x64 /p:__BuildOS=Windows_NT /p:__BuildType=Checked %ProjectDir%src\tools\r2rdump\R2RDump.csproj +"%ProjectDir%Tools\dotnetcli\dotnet.exe" build /p:__BuildArch=x86 /p:__BuildOS=Windows_NT /p:__BuildType=Release %ProjectDir%src\tools\r2rdump\R2RDump.csproj + +set tests=HelloWorld GcInfoTransitions GenericFunctions MultipleRuntimeFunctions + +(for %%a in (%tests%) do ( + "%ProjectDir%Tools\dotnetcli\dotnet.exe" build /p:__BuildArch=x64 /p:__BuildOS=Windows_NT /p:__BuildType=Checked "%ProjectDir%tests\src\readytorun\r2rdump\files\%%a.csproj" + %ProjectDir%bin\tests\Windows_NT.x64.Checked\Tests\Core_Root\crossgen /readytorun /platform_assemblies_paths %ProjectDir%bin\tests\Windows_NT.x64.Checked\Tests\Core_Root /out %%a.ni.dll %ProjectDir%bin\tests\Windows_NT.x64.Checked\readytorun\r2rdump\files\%%a\%%a.dll + "%ProjectDir%Tools\dotnetcli\dotnet.exe" %ProjectDir%bin\Product\Windows_NT.x64.Checked\netcoreapp2.0\R2RDump.dll --in %%a.ni.dll --out %ProjectDir%tests\src\readytorun\r2rdump\files\Windows_NT.x64.Checked\%%a.xml -x -v +)) + +(for %%a in (%tests%) do ( + "%ProjectDir%Tools\dotnetcli\dotnet.exe" build /p:__BuildArch=x86 /p:__BuildOS=Windows_NT /p:__BuildType=Release "%ProjectDir%tests\src\readytorun\r2rdump\files\%%a.csproj" + %ProjectDir%bin\tests\Windows_NT.x86.Release\Tests\Core_Root\crossgen /readytorun /platform_assemblies_paths %ProjectDir%bin\tests\Windows_NT.x86.Release\Tests\Core_Root /out %%a.ni.dll %ProjectDir%bin\tests\Windows_NT.x86.Release\readytorun\r2rdump\files\%%a\%%a.dll + "%ProjectDir%Tools\dotnetcli\dotnet.exe" %ProjectDir%bin\Product\Windows_NT.x86.Release\netcoreapp2.0\R2RDump.dll --in %%a.ni.dll --out %ProjectDir%tests\src\readytorun\r2rdump\files\Windows_NT.x86.Release\%%a.xml -x -v +)) + +COPY /Y %ProjectDir%tests\src\readytorun\r2rdump\files\Windows_NT.x86.Release\*.xml %ProjectDir%tests\src\readytorun\r2rdump\files\Windows_NT.x86.Checked -- 2.7.4