Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
kekyo committed May 1, 2024
1 parent 8a60a17 commit f3de083
Show file tree
Hide file tree
Showing 13 changed files with 279 additions and 279 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,21 @@
.field public int32 c
} // end of class C.type.foo

.class public abstract auto ansi sealed C.text
extends [mscorlib]System.Object
{
.method public static void main() cil managed
{
// Code size 11 (0xb)
.maxstack 1
.locals (valuetype C.type.foo V_0)
IL_0000: ldloca V_0
IL_0004: initobj C.type.foo
IL_000a: ret
} // end of method text::main

} // end of class C.text

.class public sequential ansi sealed System.SByte_len4
extends [mscorlib]System.ValueType
{
Expand Down Expand Up @@ -106,21 +121,6 @@
} // end of property SByte_len4::Item
} // end of class System.SByte_len4

.class public abstract auto ansi sealed C.text
extends [mscorlib]System.Object
{
.method public static void main() cil managed
{
// Code size 11 (0xb)
.maxstack 1
.locals (valuetype C.type.foo V_0)
IL_0000: ldloca V_0
IL_0004: initobj C.type.foo
IL_000a: ret
} // end of method text::main

} // end of class C.text


// =============================================================

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,21 @@
.field public int32 c
} // end of class C.type.foo

.class public abstract auto ansi sealed C.text
extends [mscorlib]System.Object
{
.method public static void main() cil managed
{
// Code size 11 (0xb)
.maxstack 1
.locals (valuetype C.type.foo V_0)
IL_0000: ldloca V_0
IL_0004: initobj C.type.foo
IL_000a: ret
} // end of method text::main

} // end of class C.text

.class public sequential ansi sealed System.SByte_len4
extends [mscorlib]System.ValueType
{
Expand Down Expand Up @@ -183,21 +198,6 @@
} // end of property SByte_len4_len3::Item
} // end of class System.SByte_len4_len3

.class public abstract auto ansi sealed C.text
extends [mscorlib]System.Object
{
.method public static void main() cil managed
{
// Code size 11 (0xb)
.maxstack 1
.locals (valuetype C.type.foo V_0)
IL_0000: ldloca V_0
IL_0004: initobj C.type.foo
IL_000a: ret
} // end of method text::main

} // end of class C.text


// =============================================================

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,79 +41,6 @@
.field public int32 c
} // end of class C.type.bar

.class public sequential ansi sealed System.SByte_len4
extends [mscorlib]System.ValueType
{
.custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = ( 01 00 04 49 74 65 6D 00 00 ) // ...Item..
.field private int8 item0
.field private int8 item1
.field private int8 item2
.field private int8 item3
.method public hidebysig specialname instance int32
get_Length() cil managed
{
// Code size 6 (0x6)
.maxstack 8
IL_0000: ldc.i4 0x4
IL_0005: ret
} // end of method SByte_len4::get_Length

.method public hidebysig specialname instance int8
get_Item(int32 index) cil managed
{
// Code size 22 (0x16)
.maxstack 8
IL_0000: ldarg.1
IL_0001: ldc.i4 0x4
IL_0006: clt
IL_0008: brtrue.s IL_0010

IL_000a: newobj instance void [mscorlib]System.IndexOutOfRangeException::.ctor()
IL_000f: throw

IL_0010: ldarg.1
IL_0011: ldarg.0
IL_0012: conv.u
IL_0013: add
IL_0014: ldind.i1
IL_0015: ret
} // end of method SByte_len4::get_Item

.method public hidebysig specialname instance void
set_Item(int32 index,
int8 'value') cil managed
{
// Code size 23 (0x17)
.maxstack 8
IL_0000: ldarg.1
IL_0001: ldc.i4 0x4
IL_0006: clt
IL_0008: brtrue.s IL_0010

IL_000a: newobj instance void [mscorlib]System.IndexOutOfRangeException::.ctor()
IL_000f: throw

IL_0010: ldarg.1
IL_0011: ldarg.0
IL_0012: conv.u
IL_0013: add
IL_0014: ldarg.2
IL_0015: stind.i1
IL_0016: ret
} // end of method SByte_len4::set_Item

.property instance callconv(8) int32 Length()
{
.get instance int32 System.SByte_len4::get_Length()
} // end of property SByte_len4::Length
.property instance callconv(8) int8 Item(int32)
{
.get instance int8 System.SByte_len4::get_Item(int32)
.set instance void System.SByte_len4::set_Item(int32,
int8)
} // end of property SByte_len4::Item
} // end of class System.SByte_len4

.class public abstract auto ansi sealed C.text
extends [mscorlib]System.Object
{
Expand Down Expand Up @@ -206,6 +133,79 @@
} // end of property bar_len3::Item
} // end of class C.type.bar_len3

.class public sequential ansi sealed System.SByte_len4
extends [mscorlib]System.ValueType
{
.custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = ( 01 00 04 49 74 65 6D 00 00 ) // ...Item..
.field private int8 item0
.field private int8 item1
.field private int8 item2
.field private int8 item3
.method public hidebysig specialname instance int32
get_Length() cil managed
{
// Code size 6 (0x6)
.maxstack 8
IL_0000: ldc.i4 0x4
IL_0005: ret
} // end of method SByte_len4::get_Length

.method public hidebysig specialname instance int8
get_Item(int32 index) cil managed
{
// Code size 22 (0x16)
.maxstack 8
IL_0000: ldarg.1
IL_0001: ldc.i4 0x4
IL_0006: clt
IL_0008: brtrue.s IL_0010

IL_000a: newobj instance void [mscorlib]System.IndexOutOfRangeException::.ctor()
IL_000f: throw

IL_0010: ldarg.1
IL_0011: ldarg.0
IL_0012: conv.u
IL_0013: add
IL_0014: ldind.i1
IL_0015: ret
} // end of method SByte_len4::get_Item

.method public hidebysig specialname instance void
set_Item(int32 index,
int8 'value') cil managed
{
// Code size 23 (0x17)
.maxstack 8
IL_0000: ldarg.1
IL_0001: ldc.i4 0x4
IL_0006: clt
IL_0008: brtrue.s IL_0010

IL_000a: newobj instance void [mscorlib]System.IndexOutOfRangeException::.ctor()
IL_000f: throw

IL_0010: ldarg.1
IL_0011: ldarg.0
IL_0012: conv.u
IL_0013: add
IL_0014: ldarg.2
IL_0015: stind.i1
IL_0016: ret
} // end of method SByte_len4::set_Item

.property instance callconv(8) int32 Length()
{
.get instance int32 System.SByte_len4::get_Length()
} // end of property SByte_len4::Length
.property instance callconv(8) int8 Item(int32)
{
.get instance int8 System.SByte_len4::get_Item(int32)
.set instance void System.SByte_len4::set_Item(int32,
int8)
} // end of property SByte_len4::Item
} // end of class System.SByte_len4


// =============================================================

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,21 @@
.field public valuetype System.Int32_flex c
} // end of class C.type.foo

.class public abstract auto ansi sealed C.text
extends [mscorlib]System.Object
{
.method public static void main() cil managed
{
// Code size 6 (0x6)
.maxstack 1
.locals (valuetype C.type.foo* V_0)
IL_0000: ldc.i4.0
IL_0001: stloc V_0
IL_0005: ret
} // end of method text::main

} // end of class C.text

.class public sequential ansi sealed System.Int32_flex
extends [mscorlib]System.ValueType
{
Expand Down Expand Up @@ -79,21 +94,6 @@
} // end of property Int32_flex::Item
} // end of class System.Int32_flex

.class public abstract auto ansi sealed C.text
extends [mscorlib]System.Object
{
.method public static void main() cil managed
{
// Code size 6 (0x6)
.maxstack 1
.locals (valuetype C.type.foo* V_0)
IL_0000: ldc.i4.0
IL_0001: stloc V_0
IL_0005: ret
} // end of method text::main

} // end of class C.text


// =============================================================

Expand Down
40 changes: 20 additions & 20 deletions chibild/chibild.core.Tests/LinkerTests.ValueArray1.verified.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,26 @@

// =============== CLASS MEMBERS DECLARATION ===================

.class public abstract auto ansi sealed C.text
extends [mscorlib]System.Object
{
.method public static valuetype System.SByte_len6
foo() cil managed
{
// Code size 6 (0x6)
.maxstack 8
IL_0000: ldsfld valuetype System.SByte_len6 C.data::bar
IL_0005: ret
} // end of method text::foo

} // end of class C.text

.class public abstract auto ansi sealed beforefieldinit C.data
extends [mscorlib]System.Object
{
.field public static initonly valuetype System.SByte_len6 bar at I_00002090
} // end of class C.data

.class public sequential ansi sealed System.SByte_len6
extends [mscorlib]System.ValueType
{
Expand Down Expand Up @@ -100,26 +120,6 @@
} // end of property SByte_len6::Item
} // end of class System.SByte_len6

.class public abstract auto ansi sealed C.text
extends [mscorlib]System.Object
{
.method public static valuetype System.SByte_len6
foo() cil managed
{
// Code size 6 (0x6)
.maxstack 8
IL_0000: ldsfld valuetype System.SByte_len6 C.data::bar
IL_0005: ret
} // end of method text::foo

} // end of class C.text

.class public abstract auto ansi sealed beforefieldinit C.data
extends [mscorlib]System.Object
{
.field public static initonly valuetype System.SByte_len6 bar at I_00002090
} // end of class C.data


// =============================================================

Expand Down
40 changes: 20 additions & 20 deletions chibild/chibild.core.Tests/LinkerTests.ValueArray2.verified.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,26 @@

// =============== CLASS MEMBERS DECLARATION ===================

.class public abstract auto ansi sealed C.text
extends [mscorlib]System.Object
{
.method public static valuetype System.Byte_len6*
foo() cil managed
{
// Code size 6 (0x6)
.maxstack 8
IL_0000: ldsfld valuetype System.Byte_len6* C.data::bar
IL_0005: ret
} // end of method text::foo

} // end of class C.text

.class public abstract auto ansi sealed beforefieldinit C.data
extends [mscorlib]System.Object
{
.field public static valuetype System.Byte_len6* bar
} // end of class C.data

.class public sequential ansi sealed System.Byte_len6
extends [mscorlib]System.ValueType
{
Expand Down Expand Up @@ -100,26 +120,6 @@
} // end of property Byte_len6::Item
} // end of class System.Byte_len6

.class public abstract auto ansi sealed C.text
extends [mscorlib]System.Object
{
.method public static valuetype System.Byte_len6*
foo() cil managed
{
// Code size 6 (0x6)
.maxstack 8
IL_0000: ldsfld valuetype System.Byte_len6* C.data::bar
IL_0005: ret
} // end of method text::foo

} // end of class C.text

.class public abstract auto ansi sealed beforefieldinit C.data
extends [mscorlib]System.Object
{
.field public static valuetype System.Byte_len6* bar
} // end of class C.data


// =============================================================

Expand Down
Loading

0 comments on commit f3de083

Please sign in to comment.