Skip to content

Commit

Permalink
Merge pull request ikvmnet#577 from ikvmnet/codedecoder
Browse files Browse the repository at this point in the history
IKVM.ByteCode.Decoding.CodeDecoder
  • Loading branch information
wasabii authored Aug 19, 2024
2 parents 55e17a5 + f9de90a commit f380509
Show file tree
Hide file tree
Showing 8 changed files with 795 additions and 337 deletions.
2 changes: 1 addition & 1 deletion IKVM.deps.targets
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>

<ItemGroup>
<PackageReference Include="IKVM.ByteCode" Version="9.0.0" />
<PackageReference Include="IKVM.ByteCode" Version="9.1.0" />
</ItemGroup>

<Choose>
Expand Down
342 changes: 188 additions & 154 deletions src/IKVM.Runtime/ClassFile.Method.Code.cs

Large diffs are not rendered by default.

769 changes: 597 additions & 172 deletions src/IKVM.Runtime/ClassFile.Method.Instruction.cs

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/IKVM.Runtime/System/Index.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if NETSTANDARD2_1
#if NETSTANDARD2_1 || NET
using System.Runtime.CompilerServices;

[assembly: TypeForwardedTo(typeof(System.Index))]
#else
using System.Runtime.CompilerServices;
Expand Down
6 changes: 4 additions & 2 deletions src/IKVM.Runtime/System/Range.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if NETSTANDARD2_1
[assembly: TypeForwardedTo(typeof(System.Range))]
#if NETSTANDARD2_1 || NET
using System.Runtime.CompilerServices;

[assembly: TypeForwardedTo(typeof(global::System.Range))]
#else
using System.Runtime.CompilerServices;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +0,0 @@
#if NETFRAMEWORK



#endif
2 changes: 1 addition & 1 deletion src/IKVM.Util/IKVM.Util.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<PackageReference Include="System.IO.Compression" Version="4.3.0" />
<PackageReference Include="System.Memory" Version="4.5.5" />
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
<PackageReference Include="IKVM.ByteCode" Version="9.0.0" />
<PackageReference Include="IKVM.ByteCode" Version="9.1.0" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/IKVM.Util/Jar/JarFileExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ static ModuleInfo GetModuleInfoFromClass(JarFile jar)

using var s = e.Open();
using var c = ClassFile.Read(s);
if ((c.AccessFlags & AccessFlag.ACC_MODULE) != 0)
if ((c.AccessFlags & AccessFlag.Module) != 0)
{
var a = c.Attributes.FirstOrDefault(i => i.IsNotNil && i.Name.IsNotNil && c.Constants.Get(i.Name).Value == AttributeName.Module);
if (a.IsNotNil)
Expand Down

0 comments on commit f380509

Please sign in to comment.