Skip to content

Commit

Permalink
- Remember Explorer Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
tgiphil committed Nov 12, 2023
1 parent 39fb699 commit e1d63ce
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
4 changes: 0 additions & 4 deletions Source/Mosa.Compiler.Framework/Stages/BaseTransformStage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,6 @@ private void SortByPriority()
SortedByPriority = true;
}

protected virtual void Setup()
{
}

protected virtual bool SetupPhase(int phase)
{
return phase == 0;
Expand Down
10 changes: 5 additions & 5 deletions Source/Mosa.Tool.Launcher/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public partial class MainWindow : Window
private readonly CompilerHooks compilerHooks;
private readonly DispatcherTimer timer;

private Builder? builder;
private Builder builder;
private int totalMethods;
private int completedMethods;

Expand Down Expand Up @@ -425,7 +425,7 @@ private void CompileCompleted()
stopwatch.Stop();
}

private void LnchBtn_OnClick(object? sender, RoutedEventArgs e)
private void LnchBtn_OnClick(object sender, RoutedEventArgs e)
{
Tabs.SelectedIndex = 4;
UpdateSettings();
Expand All @@ -436,7 +436,7 @@ private void LnchBtn_OnClick(object? sender, RoutedEventArgs e)
else OutputStatus($"ERROR: {result}");
}

private async void SrcBtn_OnClick(object? sender, RoutedEventArgs e)
private async void SrcBtn_OnClick(object sender, RoutedEventArgs e)
{
var files = await StorageProvider.OpenFilePickerAsync(new FilePickerOpenOptions
{
Expand All @@ -449,7 +449,7 @@ private async void SrcBtn_OnClick(object? sender, RoutedEventArgs e)
SrcLbl.Content = files[0].Path.LocalPath;
}

private async void DstBtn_OnClick(object? sender, RoutedEventArgs e)
private async void DstBtn_OnClick(object sender, RoutedEventArgs e)
{
var folders = await StorageProvider.OpenFolderPickerAsync(new FolderPickerOpenOptions
{
Expand All @@ -462,7 +462,7 @@ private async void DstBtn_OnClick(object? sender, RoutedEventArgs e)
DstLbl.Content = folders[0].Path.LocalPath;
}

private async void IncBtn_OnClick(object? sender, RoutedEventArgs e)
private async void IncBtn_OnClick(object sender, RoutedEventArgs e)
{
var folders = await StorageProvider.OpenFolderPickerAsync(new FolderPickerOpenOptions
{
Expand Down
10 changes: 6 additions & 4 deletions Source/Mosa.UnitTests/Optimization/SpecificTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,12 @@ public static bool CompareLessAddU8(ulong v)
public static bool CompareLessAddI8(long v)
{
var a = v & 0xFFFF;
var c1 = 10l;
var v2 = 100l;
var c1 = 10L;
var v2 = 100L;

return a + c1 < v2;
}

[MosaUnitTest(Series = "U4")]
public static bool CompareEqualAddU4(uint v)
{
Expand All @@ -224,6 +225,7 @@ public static bool CompareEqualAddI4(int v)

return a + c1 == v2;
}

[MosaUnitTest(Series = "U8")]
public static bool CompareEqualAddU8(ulong v)
{
Expand All @@ -238,8 +240,8 @@ public static bool CompareEqualAddU8(ulong v)
public static bool CompareEqualAddI8(long v)
{
var a = v & 0xFFFF;
var c1 = 10l;
var v2 = 100l;
var c1 = 10L;
var v2 = 100L;

return a + c1 == v2;
}
Expand Down

0 comments on commit e1d63ce

Please sign in to comment.