-
Notifications
You must be signed in to change notification settings - Fork 813
Re-Implemented ILBinaryReader with System.Reflection.Metadata #8081
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
Closed
Closed
Changes from all commits
Commits
Show all changes
76 commits
Select commit
Hold shift + click to select a range
382aabf
Initial SRM impl commit
TIHan 538ef81
Fixing up generic arg
TIHan 5c0c719
TODOs are finished, minus the original reader TODOs
TIHan 960fef7
No asserts but still does not work
TIHan 57cebd5
Fixed some crashes. Still crashing on parameters
TIHan 6808a97
Still not working
TIHan 0a54fa7
Fixed getter/setter
TIHan 8b20a8c
Added isCachingEnabled
TIHan ecf7f29
Use GenericParameterCount for sanity
TIHan ed9a03e
make error msg better
TIHan 2b3cb2a
Hopefully making a better decoder
TIHan 87696ec
Fixing build
TIHan 5eb0bac
Fixing build again
TIHan d89ae96
Resovling signature type kind for typeref
TIHan 44d95c1
Assume boxed is an enum for decoding
TIHan 1bfa452
Fixed resources
TIHan 90dae83
Fixing up resource reading
TIHan f5ab26a
Fixing variance
TIHan 813f986
Trying to fix generics
TIHan 34287c0
Use mkILCallingConv
TIHan b47f250
Use scope local
TIHan 1a80436
Determine typar count
TIHan 4d42ab0
Using rawTypeKind
TIHan b15bf73
We have a type var offset issue
TIHan 87e9322
Still trying to fix some generics
TIHan 046e5dd
Still trying to fix type params
TIHan abd6387
Fixed native type
TIHan 03cb359
Type params not working
TIHan 1fe4ede
Some refactoring
TIHan c6e0c91
Fixed more issues with generic params
TIHan de65691
Fixed type ref enclosing name
TIHan daa3601
Fixed calling convention
TIHan f451c6f
Remove LRU cache
TIHan be0c4c1
Added copyright
TIHan 41f38f8
Fixed property conv
TIHan aa42a48
Fixing value type in sigs
TIHan e1ed686
Caching more and reducing some allocations
TIHan b2fd7df
Merge remote-tracking branch 'upstream/master' into refactor/srm
TIHan 085944e
Trying to fix labels
TIHan 8a24885
Trying to fix stuff
TIHan 33e7589
Hopefully fixes build
TIHan 4d9e65d
Fixes on member reference
TIHan a3db32e
Fixed methspec reading
TIHan 84a8012
Merge remote-tracking branch 'upstream/master' into refactor/srm
TIHan 7b59f3f
Merge branch 'refactor/srm' of github.com:tihan/visualfsharp into ref…
TIHan 9583050
Trying to get the mapping right for code labels
TIHan 9dbf866
Merge remote-tracking branch 'upstream/master' into refactor/srm
TIHan 12f34b4
Cleaning up diff
TIHan 3da029f
Fixed bug where we read box instructions as unbox instructions
TIHan d50ff30
We need to recreate a type spec
TIHan 7854df2
Merge remote-tracking branch 'upstream/master' into refactor/srm
TIHan 6e09637
Merging with master
TIHan 3b3cfcc
Merged with main
TIHan 5dddde2
Fixing type parameters
TIHan 0db824e
Fixed type parameters part 2
TIHan df33012
Remove cache
TIHan dab14ab
Trying to fix it
TIHan f991b73
Temporarily turn off caching
TIHan 6e9b04d
Trying to get tests to pass
TIHan 76ad9a3
Trying to get tests to pass
TIHan a9ed47a
Trying to get tests to pass
TIHan a916c30
Trying to get tests to pass
TIHan 8d12107
Trying to get tests to pass
TIHan a5a91ab
remove comment
TIHan c074515
enabling cache
TIHan 33be155
Trying to pass tests
TIHan 98cb388
Fixing a few things
TIHan 2a4c49a
better
TIHan a7ac632
Fixing stuff
TIHan 67bbf6a
Revert
TIHan e45ec06
Fixed a minor issue
TIHan 1ed43f4
Trying to fix it
TIHan 982385f
Prefetching image
TIHan 9d0758d
Remove that
TIHan 204486b
Fixing tests
TIHan a49d436
Faster
TIHan 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
This file contains 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 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 |
---|---|---|
|
@@ -279,6 +279,8 @@ and | |
|
||
member QualifiedName: string | ||
|
||
static member Parse: assemblyQualifiedName: string -> ILType | ||
|
||
and [<StructuralEquality; StructuralComparison>] | ||
ILCallingSignature = | ||
{ CallingConv: ILCallingConv | ||
|
@@ -1838,6 +1840,7 @@ val mkILCustomAttrsFromArray: ILAttribute[] -> ILAttributes | |
val storeILCustomAttrs: ILAttributes -> ILAttributesStored | ||
val mkILCustomAttrsReader: (int32 -> ILAttribute[]) -> ILAttributesStored | ||
val emptyILCustomAttrs: ILAttributes | ||
val emptyILCustomAttrsStored: ILAttributesStored | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Might be good to put all these smaller changes in a separate PR There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yea that makes sense. Less changes outside |
||
|
||
val mkILSecurityDecls: ILSecurityDecl list -> ILSecurityDecls | ||
val emptyILSecurityDecls: ILSecurityDecls | ||
|
@@ -1981,6 +1984,7 @@ val isILIntPtrTy: ILGlobals -> ILType -> bool | |
val isILUIntPtrTy: ILGlobals -> ILType -> bool | ||
val isILBoolTy: ILGlobals -> ILType -> bool | ||
val isILCharTy: ILGlobals -> ILType -> bool | ||
val isILTypeTy: ILGlobals -> ILType -> bool | ||
val isILTypedReferenceTy: ILGlobals -> ILType -> bool | ||
val isILDoubleTy: ILGlobals -> ILType -> bool | ||
val isILSingleTy: ILGlobals -> ILType -> bool | ||
|
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably remove this since I might have fixed it.