Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTanner Gooding <tagoo@outlook.com>2018-08-02 19:16:11 +0300
committerdotnet-bot <dotnet-bot@microsoft.com>2018-08-02 23:58:02 +0300
commit27e61c91f170eb08059afb3b121e4e5a6cd5a939 (patch)
treeb88af335847244fc9b0c07c0a3be95c2d2fa8c63 /src
parenteaf1f5a80cd38850bb5974ddc4055fea67405274 (diff)
Make `Vector64<T>`, `Vector128<T>`, and `Vector256<T>` readonly
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Diffstat (limited to 'src')
-rw-r--r--src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector128.cs6
-rw-r--r--src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector128DebugView.cs4
-rw-r--r--src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector256.cs10
-rw-r--r--src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector256DebugView.cs4
-rw-r--r--src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector64.cs4
-rw-r--r--src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector64DebugView.cs4
6 files changed, 16 insertions, 16 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector128.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector128.cs
index f61310e4e..b2e72ddf8 100644
--- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector128.cs
+++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector128.cs
@@ -13,12 +13,12 @@ namespace System.Runtime.Intrinsics
[DebuggerDisplay("{DisplayString,nq}")]
[DebuggerTypeProxy(typeof(Vector128DebugView<>))]
[StructLayout(LayoutKind.Sequential, Size = 16)]
- public struct Vector128<T> where T : struct
+ public readonly struct Vector128<T> where T : struct
{
// These fields exist to ensure the alignment is 8, rather than 1.
// This also allows the debug view to work https://github.com/dotnet/coreclr/issues/15694)
- private ulong _00;
- private ulong _01;
+ private readonly ulong _00;
+ private readonly ulong _01;
private unsafe string DisplayString
{
diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector128DebugView.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector128DebugView.cs
index 7119757b7..ccdc65594 100644
--- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector128DebugView.cs
+++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector128DebugView.cs
@@ -6,9 +6,9 @@ using Internal.Runtime.CompilerServices;
namespace System.Runtime.Intrinsics
{
- internal struct Vector128DebugView<T> where T : struct
+ internal readonly struct Vector128DebugView<T> where T : struct
{
- private Vector128<T> _value;
+ private readonly Vector128<T> _value;
public Vector128DebugView(Vector128<T> value)
{
diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector256.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector256.cs
index 88fd9973e..48744bb5e 100644
--- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector256.cs
+++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector256.cs
@@ -13,14 +13,14 @@ namespace System.Runtime.Intrinsics
[DebuggerDisplay("{DisplayString,nq}")]
[DebuggerTypeProxy(typeof(Vector256DebugView<>))]
[StructLayout(LayoutKind.Sequential, Size = 32)]
- public struct Vector256<T> where T : struct
+ public readonly struct Vector256<T> where T : struct
{
// These fields exist to ensure the alignment is 8, rather than 1.
// This also allows the debug view to work https://github.com/dotnet/coreclr/issues/15694)
- private ulong _00;
- private ulong _01;
- private ulong _02;
- private ulong _03;
+ private readonly ulong _00;
+ private readonly ulong _01;
+ private readonly ulong _02;
+ private readonly ulong _03;
private unsafe string DisplayString
{
diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector256DebugView.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector256DebugView.cs
index f07277604..5131341ad 100644
--- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector256DebugView.cs
+++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector256DebugView.cs
@@ -6,9 +6,9 @@ using Internal.Runtime.CompilerServices;
namespace System.Runtime.Intrinsics
{
- internal struct Vector256DebugView<T> where T : struct
+ internal readonly struct Vector256DebugView<T> where T : struct
{
- private Vector256<T> _value;
+ private readonly Vector256<T> _value;
public Vector256DebugView(Vector256<T> value)
{
diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector64.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector64.cs
index 776fe2017..8ce90b9d0 100644
--- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector64.cs
+++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector64.cs
@@ -13,11 +13,11 @@ namespace System.Runtime.Intrinsics
[DebuggerDisplay("{DisplayString,nq}")]
[DebuggerTypeProxy(typeof(Vector64DebugView<>))]
[StructLayout(LayoutKind.Sequential, Size = 8)]
- public struct Vector64<T> where T : struct
+ public readonly struct Vector64<T> where T : struct
{
// These fields exist to ensure the alignment is 8, rather than 1.
// This also allows the debug view to work https://github.com/dotnet/coreclr/issues/15694)
- private ulong _00;
+ private readonly ulong _00;
private unsafe string DisplayString
{
diff --git a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector64DebugView.cs b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector64DebugView.cs
index 129832a3c..878e29949 100644
--- a/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector64DebugView.cs
+++ b/src/System.Private.CoreLib/shared/System/Runtime/Intrinsics/Vector64DebugView.cs
@@ -6,9 +6,9 @@ using Internal.Runtime.CompilerServices;
namespace System.Runtime.Intrinsics
{
- internal struct Vector64DebugView<T> where T : struct
+ internal readonly struct Vector64DebugView<T> where T : struct
{
- private Vector64<T> _value;
+ private readonly Vector64<T> _value;
public Vector64DebugView(Vector64<T> value)
{