-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/354.wide-arch
# Conflicts: # Cesium.Runtime/StdIoFunctions.cs
- Loading branch information
Showing
48 changed files
with
989 additions
and
261 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
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
2 changes: 1 addition & 1 deletion
2
Cesium.CodeGen.Tests/verified/CodeGenArrayTests.ArrayInitialization.verified.txt
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
System.Int32 <Module>::main() | ||
System.Int32 <Module>::main() | ||
Locals: | ||
System.Int32* V_0 | ||
IL_0000: ldc.i4.s 16 | ||
|
2 changes: 1 addition & 1 deletion
2
Cesium.CodeGen.Tests/verified/CodeGenArrayTests.ArrayInitializationWithoutSize.verified.txt
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
System.Int32 <Module>::main() | ||
System.Int32 <Module>::main() | ||
Locals: | ||
System.Int32* V_0 | ||
System.Int32* V_1 | ||
|
63 changes: 63 additions & 0 deletions
63
Cesium.CodeGen.Tests/verified/CodeGenArrayTests.ArrayOverPointer.verified.txt
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,63 @@ | ||
System.Int32 <Module>::main(System.Int32 argc, System.Byte** argv) | ||
Locals: | ||
System.Byte V_0 | ||
IL_0000: ldarg.1 | ||
IL_0001: ldc.i4.0 | ||
IL_0002: conv.i | ||
IL_0003: ldc.i4 1 | ||
IL_0008: mul | ||
IL_0009: add | ||
IL_000a: ldind.i1 | ||
IL_000b: sizeof System.Byte* | ||
IL_0011: ldc.i4.0 | ||
IL_0012: mul | ||
IL_0013: add | ||
IL_0014: ldind.i | ||
IL_0015: stloc.0 | ||
IL_0016: ldarg.1 | ||
IL_0017: sizeof System.Byte* | ||
IL_001d: ldc.i4.1 | ||
IL_001e: mul | ||
IL_001f: add | ||
IL_0020: ldind.i | ||
IL_0021: ret | ||
|
||
System.Int32 <Module>::<SyntheticEntrypoint>(System.String[] args) | ||
Locals: | ||
System.Int32 V_0 | ||
System.Byte*[] V_1 | ||
System.Byte*[] V_2 | ||
System.Byte*[] (pinned) V_3 | ||
System.Int32 V_4 | ||
IL_0000: ldarg.0 | ||
IL_0001: ldlen | ||
IL_0002: ldc.i4.1 | ||
IL_0003: add | ||
IL_0004: stloc.0 | ||
IL_0005: ldarg.0 | ||
IL_0006: call System.Byte*[] Cesium.Runtime.RuntimeHelpers::ArgsToArgv(System.String[]) | ||
IL_000b: stloc.1 | ||
IL_000c: ldloc.1 | ||
IL_000d: ldlen | ||
IL_000e: newarr System.Byte* | ||
IL_0013: stloc.2 | ||
IL_0014: ldloc.1 | ||
IL_0015: ldloc.2 | ||
IL_0016: ldc.i4.0 | ||
IL_0017: call System.Void System.Array::CopyTo(System.Array,System.Int32) | ||
IL_001c: ldloc.0 | ||
IL_001d: ldloc.2 | ||
IL_001e: stloc.3 | ||
IL_001f: ldloc.3 | ||
IL_0020: ldc.i4.0 | ||
IL_0021: ldelema System.Byte* | ||
IL_0026: call System.Int32 <Module>::main(System.Int32,System.Byte**) | ||
IL_002b: stloc.s V_4 | ||
IL_002d: ldnull | ||
IL_002e: stloc.3 | ||
IL_002f: ldloc.1 | ||
IL_0030: call System.Void Cesium.Runtime.RuntimeHelpers::FreeArgv(System.Byte*[]) | ||
IL_0035: ldloc.s V_4 | ||
IL_0037: call System.Void Cesium.Runtime.RuntimeHelpers::Exit(System.Int32) | ||
IL_003c: ldloc.s V_4 | ||
IL_003e: ret |
2 changes: 1 addition & 1 deletion
2
Cesium.CodeGen.Tests/verified/CodeGenArrayTests.GlobalArrayInitialization.verified.txt
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
2 changes: 1 addition & 1 deletion
2
...odeGen.Tests/verified/CodeGenArrayTests.GlobalArrayInitializationWithoutSize.verified.txt
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
37 changes: 37 additions & 0 deletions
37
Cesium.CodeGen.Tests/verified/CodeGenArrayTests.PointerArrayIndexing.verified.txt
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,37 @@ | ||
System.Int32 <Module>::f(System.Byte*** t) | ||
Locals: | ||
System.Byte* V_0 | ||
IL_0000: ldarg.0 | ||
IL_0001: ldc.i4.2 | ||
IL_0002: conv.i | ||
IL_0003: sizeof System.IntPtr | ||
IL_0009: mul | ||
IL_000a: add | ||
IL_000b: ldind.i | ||
IL_000c: sizeof System.Byte** | ||
IL_0012: ldc.i4.3 | ||
IL_0013: mul | ||
IL_0014: add | ||
IL_0015: ldind.i | ||
IL_0016: stloc.0 | ||
IL_0017: ldloc.0 | ||
IL_0018: ldc.i4.1 | ||
IL_0019: ldc.i4.1 | ||
IL_001a: mul | ||
IL_001b: add | ||
IL_001c: ldind.i1 | ||
IL_001d: ret | ||
|
||
System.Int32 <Module>::main() | ||
IL_0000: ldc.i4.s 42 | ||
IL_0002: ret | ||
|
||
System.Int32 <Module>::<SyntheticEntrypoint>() | ||
Locals: | ||
System.Int32 V_0 | ||
IL_0000: call System.Int32 <Module>::main() | ||
IL_0005: stloc.s V_0 | ||
IL_0007: ldloc.s V_0 | ||
IL_0009: call System.Void Cesium.Runtime.RuntimeHelpers::Exit(System.Int32) | ||
IL_000e: ldloc.s V_0 | ||
IL_0010: ret |
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
3 changes: 3 additions & 0 deletions
3
...CodeGenMethodTests.CanHaveTwoFunctionDeclarationsWithDifferentParameterNames.verified.txt
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,3 @@ | ||
System.Int32 <Module>::console_read(System.Int32 argc) | ||
IL_0000: ldc.i4.0 | ||
IL_0001: ret |
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
11 changes: 11 additions & 0 deletions
11
Cesium.CodeGen.Tests/verified/CodeGenPointersTests.CanSubtractPointerTypes.verified.txt
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,11 @@ | ||
System.Void <Module>::foo(System.Int32* x, System.Int32* y) | ||
Locals: | ||
System.Int32 V_0 | ||
IL_0000: ldarg.0 | ||
IL_0001: ldarg.1 | ||
IL_0002: sub | ||
IL_0003: ldc.i4.4 | ||
IL_0004: div | ||
IL_0005: conv.i4 | ||
IL_0006: stloc.0 | ||
IL_0007: ret |
11 changes: 11 additions & 0 deletions
11
...CodeGen.Tests/verified/CodeGenPointersTests.CanSubtractPointerWithConstTypes.verified.txt
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,11 @@ | ||
System.Void <Module>::foo(System.Int32* x, System.Int32* y) | ||
Locals: | ||
System.Int32 V_0 | ||
IL_0000: ldarg.0 | ||
IL_0001: ldarg.1 | ||
IL_0002: sub | ||
IL_0003: ldc.i4.4 | ||
IL_0004: div | ||
IL_0005: conv.i4 | ||
IL_0006: stloc.0 | ||
IL_0007: ret |
24 changes: 24 additions & 0 deletions
24
Cesium.CodeGen.Tests/verified/CodeGenSizeofTests.ArraySizeofLong.verified.txt
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,24 @@ | ||
System.Int32 <Module>::main() | ||
Locals: | ||
System.Int64* V_0 | ||
IL_0000: ldc.i4.s 40 | ||
IL_0002: conv.u | ||
IL_0003: localloc | ||
IL_0005: stloc.0 | ||
IL_0006: ldsflda <ConstantPool>/<ConstantPoolItemType40> <ConstantPool>::ConstDataBuffer0 | ||
IL_000b: ldloc V_0 | ||
IL_000f: ldc.i4.s 40 | ||
IL_0011: conv.u | ||
IL_0012: call System.Void Cesium.Runtime.RuntimeHelpers::InitializeCompound(System.Void*,System.Void*,System.UInt32) | ||
IL_0017: ldc.i4.s 40 | ||
IL_0019: ret | ||
|
||
System.Int32 <Module>::<SyntheticEntrypoint>() | ||
Locals: | ||
System.Int32 V_0 | ||
IL_0000: call System.Int32 <Module>::main() | ||
IL_0005: stloc.s V_0 | ||
IL_0007: ldloc.s V_0 | ||
IL_0009: call System.Void Cesium.Runtime.RuntimeHelpers::Exit(System.Int32) | ||
IL_000e: ldloc.s V_0 | ||
IL_0010: ret |
Oops, something went wrong.