-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Fix NeedsAlignedBaseOffset for composite R2R #35231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
davidwrighton
merged 14 commits into
dotnet:master
from
davidwrighton:fix_cg2_composite
Apr 29, 2020
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
984b2a8
Interesting type layout test cases
davidwrighton ec46f20
Add tests for cases involving inheritance in a single module
davidwrighton b1d4305
Syncronize and correct NeedsAlignedBaseOffset
davidwrighton 9d247de
Add testing for 45 different variations of compiling the tests with
davidwrighton 26ea12d
Use new layout algorithm
davidwrighton c94a078
Make test crashes more diagnosable
davidwrighton a59000b
Passing Current Test Suite
davidwrighton bdc07b4
Remove halt from test
davidwrighton 39d28b2
Expand testing to cover more complex cases and in more thoroughness
davidwrighton c7f997a
Field layout static-ness is entirely dependent on the instance layout,
davidwrighton 2cd3f3b
Rework of algorithm
davidwrighton 5a856dd
Fix the tests to match the requirement that all dependencies of an in…
davidwrighton c61651b
Address code review feedback
davidwrighton d1d0155
Update src/coreclr/src/tools/crossgen2/ILCompiler.ReadyToRun/Compiler…
davidwrighton File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
...clr/src/tools/crossgen2/ILCompiler.ReadyToRun/Compiler/NoMethodsCompilationModuleGroup.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
| // See the LICENSE file in the project root for more information. | ||
|
|
||
| using System.Collections.Generic; | ||
| using Internal.ReadyToRunConstants; | ||
| using Internal.TypeSystem; | ||
| using Internal.TypeSystem.Ecma; | ||
|
|
||
| namespace ILCompiler | ||
| { | ||
| /// <summary> | ||
| /// A compilation group that only contains no methods. Used for creating an R2R image without | ||
| /// any method compiled into it. Needed for handling inputbubble scenarios where a dependent | ||
| /// assembly should not be R2R'd. | ||
| /// </summary> | ||
| public class NoMethodsCompilationModuleGroup : ReadyToRunCompilationModuleGroupBase | ||
| { | ||
| public NoMethodsCompilationModuleGroup( | ||
| TypeSystemContext context, | ||
| bool isCompositeBuildMode, | ||
| bool isInputBubble, | ||
| IEnumerable<EcmaModule> compilationModuleSet, | ||
| IEnumerable<ModuleDesc> versionBubbleModuleSet, | ||
| bool compileGenericDependenciesFromVersionBubbleModuleSet) : | ||
| base(context, | ||
| isCompositeBuildMode, | ||
| isInputBubble, | ||
| compilationModuleSet, | ||
| versionBubbleModuleSet, | ||
| compileGenericDependenciesFromVersionBubbleModuleSet) | ||
| { | ||
| } | ||
|
|
||
| public override bool ContainsMethodBody(MethodDesc method, bool unboxingStub) | ||
| { | ||
| return false; | ||
| } | ||
|
|
||
| public override void ApplyProfilerGuidedCompilationRestriction(ProfileDataManager profileGuidedCompileRestriction) | ||
| { | ||
| return; | ||
| } | ||
|
|
||
| public override ReadyToRunFlags GetReadyToRunFlags() | ||
| { | ||
| // Partial by definition. | ||
| return ReadyToRunFlags.READYTORUN_FLAG_Partial; | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.