Skip to content

Commit

Permalink
Merge branch '507-GC' into 508-GC
Browse files Browse the repository at this point in the history
  • Loading branch information
tgiphil committed Oct 20, 2024
2 parents 726cf59 + 5ab8bcc commit e4a7a72
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Source/Data/IR-Instructions.json
Original file line number Diff line number Diff line change
Expand Up @@ -1494,7 +1494,7 @@
"IgnoreInstructionBasicBlockTargets": "true"
},
{
"Name": "GCPoint",
"Name": "SafePoint",
"FamilyName": "IR",
"ResultCount": 0,
"OperandCount": 0,
Expand Down
2 changes: 1 addition & 1 deletion Source/Mosa.Compiler.Framework/Compiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public sealed class Compiler
new DeadBlockStage(),
new AdvancedBlockOrderingStage(),

//new PreciseGCStage(),
new SafePointStage(),

new CodeGenerationStage(),
mosaSettings.EmitBinary ? new ProtectedRegionLayoutStage() : null,
Expand Down
2 changes: 1 addition & 1 deletion Source/Mosa.Compiler.Framework/IR.cs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ public static class IR
public static readonly BaseInstruction Truncate64x32 = new Truncate64x32();
public static readonly BaseInstruction TryEnd = new TryEnd();
public static readonly BaseInstruction TryStart = new TryStart();
public static readonly BaseInstruction GCPoint = new GCPoint();
public static readonly BaseInstruction SafePoint = new SafePoint();
public static readonly BaseInstruction Rethrow = new Rethrow();
public static readonly BaseInstruction GetVirtualFunctionPtr = new GetVirtualFunctionPtr();
public static readonly BaseInstruction MemoryCopy = new MemoryCopy();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
namespace Mosa.Compiler.Framework.Instructions;

/// <summary>
/// GCPoint
/// SafePoint
/// </summary>
public sealed class GCPoint : BaseIRInstruction
public sealed class SafePoint : BaseIRInstruction
{
public GCPoint()
public SafePoint()
: base(0, 0)
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace Mosa.Compiler.Framework.Stages;

/// <summary>
/// This stage determines were object references are located in code.
/// This stage inserts the GC safe points.
/// </summary>
public class PreciseGCStage : BaseMethodCompilerStage
public class SafePointStage : BaseMethodCompilerStage
{
private TraceLog trace;

Expand Down

0 comments on commit e4a7a72

Please sign in to comment.