-
-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace IssueMessage with various versions of Report. It's still a bi…
…t weird how there are special calls for CompilerClassLoader. This is because its the only thing that holds the options. Problem is not all Types are part of a ClassLoader. Some are shared between class loaders. Maybe it makes sense to have some fundamental class loader for them.
- Loading branch information
Showing
33 changed files
with
348 additions
and
984 deletions.
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
6 changes: 2 additions & 4 deletions
6
src/IKVM.Runtime/IDiagnosticHandler.cs → ...CoreLib/Diagnostics/IDiagnosticHandler.cs
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
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
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
using IKVM.CoreLib.Diagnostics; | ||
|
||
namespace IKVM.Runtime | ||
{ | ||
|
||
#if FIRST_PASS == false && IMPORTER == false && EXPORTER == false | ||
|
||
static partial class JVM | ||
{ | ||
|
||
/// <summary> | ||
/// Handles diagnostic events during runtime. | ||
/// </summary> | ||
class DiagnosticHandler : IDiagnosticHandler | ||
{ | ||
|
||
public void Report(in DiagnosticEvent evnt) | ||
{ | ||
switch (evnt.Diagnostic.Level) | ||
{ | ||
case DiagnosticLevel.Trace: | ||
break; | ||
case DiagnosticLevel.Informational: | ||
break; | ||
case DiagnosticLevel.Warning: | ||
break; | ||
case DiagnosticLevel.Error: | ||
break; | ||
case DiagnosticLevel.Fatal: | ||
break; | ||
} | ||
} | ||
|
||
} | ||
|
||
/// <summary> | ||
/// Gets the JVM diagnostic handler. | ||
/// </summary> | ||
static IDiagnosticHandler Diagnostics { get; } = new DiagnosticHandler(); | ||
|
||
} | ||
|
||
#endif | ||
|
||
} |
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
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
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
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
Oops, something went wrong.