* Update conversion code fix to offer multiple fixes for appending each previously probed entry-point suffix when ExactSpelling is false.
* Remove ExactSpelling property and move properties that were relying on ExactSpelling = false to use explicit entrypoint names.
* Emit ExactSpelling = true for all of our emitted target DllImports.
* Fix a few entry points
* Add a comment around CharSet.Auto
* Update compatibility doc.
* Update docs/design/libraries/DllImportGenerator/Compatibility.md
Co-authored-by: Elinor Fung <[email protected]>
Co-authored-by: Elinor Fung <[email protected]>
* [LoongArch64] add ToolBox directory about jitinterace for getting ABI-info. (#59561)
Co-authored-by: Loongson's .NET-teams
* [LoongArch64] add new interace for getting ABI-info. (#59561)
* [LoongArch64] add the linking page for LoongArch64 ABI-info. (#59561)
* [LoongArch64] moved ThunkInput.txt to #62885.
* [LoongArch64] moved vm/jitinterface.cpp to #62885.
* remove the JIT/EE interface back from #62885..
* [LoongArch64] Fix the compiling error after merge.
* [LoongArch64] add comments for the returned value of `getFieldTypeByHnd`.
* [LoongArch64] rename getFieldTypeByHnd to getFieldSizeClassificationByHnd.
Also add macro define for returned value of `getFieldSizeClassificationByHnd`.
* [LoongArch64] Delete the interface `getArgType2`.
And refactor the returned values of `getFieldSizeClassificationByHnd`.
* [LoongArch64] delete `GetArgType` within `ToolBox/superpmi`.
* [LoongArch64] rename `getFieldSizeClassificationByHnd` to
`getLoongArch64PassStructInRegisterFlags`.
* [LoongArch64] amend the floating-ABI for native-struct.
* [LoongArch64] update all related `GetFieldSizeClassificationByHnd`
by `GetLoongArch64PassStructInRegisterFlags` and amend some comments.
* [LoongArch64] replace `LookupApproxFieldTypeHandle()`
by `GetFieldTypeHandleThrowing()`.
* [LoongArch64] implements the crossgen2 for LoongArch64.
* Revert "[LoongArch64] implements the crossgen2 for LoongArch64."
This reverts commit b05a2b90e8d8a2f6d1cf7f101ddfc9d4ed8d984e.
The crossgen2 for LoongArch64 will be submitted by a new PR.
* [LoongArch64] update the `GUID JITEEVersionIdentifier`.
Also delete some unused comments.
Co-authored-by: qiaopengcheng <[email protected]>
- The preview feature version of virtual statics implemented for .NET 6 does not allow for the interface methods to have a default implementation.
- With this change, we add support for the interface method having an actual implementation to CoreCLR. From what I can tell the Mono runtime already had such support
- There are some small ECMA spec updates to allow this change that are also included
In addition, I've taken the liberty to enable running the coreclr test suite on Mono on Windows. It needed a small amount of fixup.
Add support for generating control-flow guard checks. The support is enabled by a JIT flag or by setting COMPlus_JitForceControlFlowGuard=1.
Co-authored-by: Michal Strehovský <[email protected]>
- Make sure FieldRVA pointers remain aligned as required by the code generator
- Use the same Packing Size approach as the IL Linker will use (See jbevain/cecil#817 for details)
- Compilers that generate CreateSpan will need to follow that trick to be compatible with rewriters.
- Provide ECMA spec augment describing packing size detail
This separation only existed because of Razzle build sequencing of desktop CLR. It doesn't make sense for CoreCLR. The only thing the extra directory is doing now is that it breaks tab completion when navigating the CoreCLR source tree because ToolBox comes before tools alphabetically and most things live in tools.
* Description of DebuggerBrowsable behavior.
* Added test for browse attributes.
* Corrected typos in the doc.
* Added Browse Never feature. Corrected Collapse test. ToDo: RootHidden.
* Draft of RootHidden solution.
* Added Array to test cases as it behaves differently than Collection.
* Added name concatenation to make array/list elemetns in debug window unique.
* Update docs/design/mono/debugger.md
Co-authored-by: Ankit Jain <[email protected]>
* Applied PR review suggestions.
* Added a reference to regular Browsable attribute behavior in .net.
* Applied most of review suggestions.
* Stopping GetFieldsValue early.
* Remove unintentional change to the original code.
* Do not skip fields that don't have browsable attributes.
* Changing the expected behavior to match Console Application. EventHandlers are Browsable.Never by default.
* Changed the place of checking if objetc is an array.
* Update src/mono/wasm/debugger/DebuggerTestSuite/EvaluateOnCallFrameTests.cs
Co-authored-by: Ankit Jain <[email protected]>
* Removed unused variables.
* Removing space and unused import.
* Partially addressed @radical comments.
* Addressed the comment about extension instead of Union.
* Removed string cultural vunerability.
* Added Properties dictionary, the same as for fields.
* Fixed the bug I made by using dynamc.
* Applying @radical comments about refactoring.
* Corrected typo.
* Added tests for properties.
* Draft of changes for properties handling - never and root hidden failing.
* Fix for RootHidden properties.
* Added tests for static fields decorated with Browsable.
* Correct a typo.
* Undo merge unintentional changes.
* Changing expected behavior for MulticastDelegateTest - in Console Application EventHandler is Browsable.Never by default so we should not expect it to be visible in the debug window.
* Removing not relevant changes created after merge with main.
* Remove file added in merge with main.
* Revert "Removing not relevant changes created after merge with main."
This reverts commit b1acf8b546d1b95bea101290c25ec7f15cb78799.
* Revert.
* Revert revert.
* One broken test for custom getter.
* Ugly fix to make all the tests work.
* Refactored JArray aggregation to Dictionary.
* Better naming.
* Remove not connected to PR file.
* Applied @thaystg suggestions.
* Removed comments.
Co-authored-by: Ankit Jain <[email protected]>
* Convert some old style intrinsics to NamedIntrinsic
* Delete GetStubContextAddr and related code
* More cleanups
Co-authored-by: EgorBo <[email protected]>
Co-authored-by: Jan Kotas <[email protected]>
* Update GetPinnableReference() usage in multi-step custom tyep marshalling
Change GetPinnableReference() on a marshaller type to be used as a side effect when marshalling in all cases when a fixed() statement is usable.
Use the Value property getter to get the value to pass to native in all cases.
Update our marshallers and tests to follow this design update.
* Apply suggestions from code review
Co-authored-by: Aaron Robinson <[email protected]>
* Don't emit the assingment to the Value property in the Unmarshal stage when using [Out]
* Fix the unmarshalling conditions
* Fix Utf16StringMarshaller to correctly handle the "null pointer" case now that we're using spans internally for storage in all cases.
Co-authored-by: Aaron Robinson <[email protected]>
* Add TFM and version support query to marshaller interface.
* If any marshaller fails to support the current tfm version, fallback
to using the built-in DllImport attribute.
* Add tests for fallback generation on downlevel or generation if marshallers
are supported on the target framework.
* Convert CreateCompilationWithReferenceAssemblies to CreateCompilation overload.
Co-authored-by: Elinor Fung <[email protected]>
We plan to gradually open up portions of historical documents that seem
relevant to our current work on the JIT.
This PR includes a writeup that is the inspiration for the current SSA
and Value Numbering designs.
* Build one MonoTargetsTasks assembly for Mono.NET.Runtime.MonoTargets.Sdk pack
Instead of 3 assemblies for some tiny tasks.
Building a single assembly also ensures that everything in the pack depends on and bundles identical versions of dependent assemblies. For example on net472, a single version of System.Text.Json with a single fixed version shared by both the JsonToItemsTaskFactory task factory and the RuntimeConfigParser task.
Related to https://github.com/dotnet/runtime/issues/59619
* Update testing and wasm to use MonoTargetsTasks.dll
* Move assembly stripper to a separate assembly
Build it with nullability checking disabled.
Build the main MonoTargetsTasks assembly with nullability enabled
* Don't include msbuild assemblies in MonoTargets package
* re-enable analyzers for the MonoTargetsTasks assembly
* Include *.dll in the MonoTargetsTasks nupkg
In particular, pick up all the dependent assemblies for the net472 build
* Update various READMEs
* remove unneeded target
* Switch ILStrip to use the same Parallel.ForEach logic as MonoAOTCompiler
* Remove unneeded NoWarn warnings
* rearrange package references in MonoTargetsTask.csproj for readabilty
* More ItemGroup reformatting
* fix nits
* Use SystemThreadingTasksExtensionsVersion instead of hardcoding
Co-authored-by: Ankit Jain <[email protected]>
* Only pass perfmap argument for Linux
* Enhance CrossGen2 to emit PerfMap debug directory entry
This is used to correlate PE's with their corresponding PerfMaps. For example the header in the perfmap could be:
```
FFFFFFFF 00 026D4D21B3EE3D93843FF7A964235822
FFFFFFFE 00 1
FFFFFFFD 00 1
FFFFFFFC 00 3
FFFFFFFB 00 1
```
And the PE will have the corresponding entries in the PE as:
```
PerfMap (Type 21):
System.Private.CoreLib.ni.r2rmap, Signature = 026d4d21b3ee3d93843ff7a964235822, Version = 1
```
* Emit headers for debug directory entries from the nodes themselves.
* Add PerfMap Debug Directory Entry spec
* Extend perfmap and r2r documentation