Skip to content

Commit 4ca10ac

Browse files
[master] Update dependencies from mono/linker (#47857)
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: Marek Safar <[email protected]>
1 parent 0f055ba commit 4ca10ac

File tree

5 files changed

+31
-28
lines changed

5 files changed

+31
-28
lines changed

eng/Version.Details.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,9 @@
194194
<Uri>https://github.com/dotnet/runtime</Uri>
195195
<Sha>0b23cdb2a6047f08966c3c033d028ed34d106cd8</Sha>
196196
</Dependency>
197-
<Dependency Name="Microsoft.NET.ILLink.Tasks" Version="6.0.0-alpha.1.21103.1">
197+
<Dependency Name="Microsoft.NET.ILLink.Tasks" Version="6.0.0-alpha.1.21105.1">
198198
<Uri>https://github.com/mono/linker</Uri>
199-
<Sha>faf9cc056e4c6481ba3c061521477185e37a1fce</Sha>
199+
<Sha>319ed02ed9a25ec3800f723ff72a1eb92ef050c7</Sha>
200200
</Dependency>
201201
<Dependency Name="Microsoft.DotNet.XHarness.TestRunners.Xunit" Version="1.0.0-prerelease.21103.1">
202202
<Uri>https://github.com/dotnet/xharness</Uri>

eng/Versions.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
<!-- Docs -->
155155
<MicrosoftPrivateIntellisenseVersion>5.0.0-preview-20201009.2</MicrosoftPrivateIntellisenseVersion>
156156
<!-- ILLink -->
157-
<MicrosoftNETILLinkTasksVersion>6.0.0-alpha.1.21103.1</MicrosoftNETILLinkTasksVersion>
157+
<MicrosoftNETILLinkTasksVersion>6.0.0-alpha.1.21105.1</MicrosoftNETILLinkTasksVersion>
158158
<!-- ICU -->
159159
<MicrosoftNETCoreRuntimeICUTransportVersion>6.0.0-preview.2.21101.12</MicrosoftNETCoreRuntimeICUTransportVersion>
160160
<!-- Mono LLVM -->

src/libraries/System.Private.Runtime.InteropServices.JavaScript/src/ILLink/ILLinkTrim.xml

-5
This file was deleted.

src/libraries/System.Private.Runtime.InteropServices.JavaScript/src/System/Runtime/InteropServices/JavaScript/Runtime.cs

+20-20
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public static void DumpAotProfileData (ref byte buf, int len, string extraArg)
7575
Interop.Runtime.DumpAotProfileData(ref buf, len, extraArg);
7676
}
7777

78-
private static int BindJSObject(int jsId, bool ownsHandle, int mappedType)
78+
public static int BindJSObject(int jsId, bool ownsHandle, int mappedType)
7979
{
8080
WeakReference? reference;
8181
lock (_boundObjects)
@@ -99,7 +99,7 @@ private static int BindJSObject(int jsId, bool ownsHandle, int mappedType)
9999
return reference.Target is JSObject target ? target.Int32Handle : 0;
100100
}
101101

102-
private static int BindCoreCLRObject(int jsId, int gcHandle)
102+
public static int BindCoreCLRObject(int jsId, int gcHandle)
103103
{
104104
GCHandle h = (GCHandle)(IntPtr)gcHandle;
105105
JSObject? obj;
@@ -157,7 +157,7 @@ internal static bool ReleaseJSObject(JSObject objToRelease)
157157
return true;
158158
}
159159

160-
private static void UnBindRawJSObjectAndFree(int gcHandle)
160+
public static void UnBindRawJSObjectAndFree(int gcHandle)
161161
{
162162
GCHandle h = (GCHandle)(IntPtr)gcHandle;
163163
JSObject? obj = h.Target as JSObject;
@@ -171,27 +171,27 @@ private static void UnBindRawJSObjectAndFree(int gcHandle)
171171
}
172172
}
173173

174-
private static object CreateTaskSource(int jsId)
174+
public static object CreateTaskSource(int jsId)
175175
{
176176
return new TaskCompletionSource<object>();
177177
}
178178

179-
private static void SetTaskSourceResult(TaskCompletionSource<object> tcs, object result)
179+
public static void SetTaskSourceResult(TaskCompletionSource<object> tcs, object result)
180180
{
181181
tcs.SetResult(result);
182182
}
183183

184-
private static void SetTaskSourceFailure(TaskCompletionSource<object> tcs, string reason)
184+
public static void SetTaskSourceFailure(TaskCompletionSource<object> tcs, string reason)
185185
{
186186
tcs.SetException(new JSException(reason));
187187
}
188188

189-
private static int GetTaskAndBind(TaskCompletionSource<object> tcs, int jsId)
189+
public static int GetTaskAndBind(TaskCompletionSource<object> tcs, int jsId)
190190
{
191191
return BindExistingObject(tcs.Task, jsId);
192192
}
193193

194-
private static int BindExistingObject(object rawObj, int jsId)
194+
public static int BindExistingObject(object rawObj, int jsId)
195195
{
196196
JSObject? jsObject;
197197
if (rawObj is Delegate dele)
@@ -219,7 +219,7 @@ private static int BindExistingObject(object rawObj, int jsId)
219219
return jsObject.Int32Handle;
220220
}
221221

222-
private static int GetJSObjectId(object rawObj)
222+
public static int GetJSObjectId(object rawObj)
223223
{
224224
JSObject? jsObject;
225225
if (rawObj is Delegate dele)
@@ -239,15 +239,15 @@ private static int GetJSObjectId(object rawObj)
239239
return jsObject?.JSHandle ?? -1;
240240
}
241241

242-
private static object? GetDotNetObject(int gcHandle)
242+
public static object? GetDotNetObject(int gcHandle)
243243
{
244244
GCHandle h = (GCHandle)(IntPtr)gcHandle;
245245

246246
return h.Target is JSObject js ?
247247
js.GetWrappedObject() ?? h.Target : h.Target;
248248
}
249249

250-
private static bool IsSimpleArray(object a)
250+
public static bool IsSimpleArray(object a)
251251
{
252252
return a is System.Array arr && arr.Rank == 1 && arr.GetLowerBound(0) == 0;
253253
}
@@ -262,7 +262,7 @@ private struct IntPtrAndHandle
262262
internal RuntimeMethodHandle handle;
263263
}
264264

265-
private static string GetCallSignature(IntPtr methodHandle)
265+
public static string GetCallSignature(IntPtr methodHandle)
266266
{
267267
IntPtrAndHandle tmp = default(IntPtrAndHandle);
268268
tmp.ptr = methodHandle;
@@ -338,7 +338,7 @@ private static string GetCallSignature(IntPtr methodHandle)
338338
return new string(res);
339339
}
340340

341-
private static void SetupJSContinuation(Task task, JSObject continuationObj)
341+
public static void SetupJSContinuation(Task task, JSObject continuationObj)
342342
{
343343
if (task.IsCompleted)
344344
Complete();
@@ -405,12 +405,12 @@ void Complete()
405405
return null;
406406
}
407407

408-
private static string ObjectToString(object o)
408+
public static string ObjectToString(object o)
409409
{
410410
return o.ToString() ?? string.Empty;
411411
}
412412

413-
private static double GetDateValue(object dtv)
413+
public static double GetDateValue(object dtv)
414414
{
415415
if (dtv == null)
416416
throw new ArgumentNullException(nameof(dtv));
@@ -423,18 +423,18 @@ private static double GetDateValue(object dtv)
423423
return new DateTimeOffset(dt).ToUnixTimeMilliseconds();
424424
}
425425

426-
private static DateTime CreateDateTime(double ticks)
426+
public static DateTime CreateDateTime(double ticks)
427427
{
428428
DateTimeOffset unixTime = DateTimeOffset.FromUnixTimeMilliseconds((long)ticks);
429429
return unixTime.DateTime;
430430
}
431431

432-
private static Uri CreateUri(string uri)
432+
public static Uri CreateUri(string uri)
433433
{
434434
return new Uri(uri);
435435
}
436436

437-
private static bool SafeHandleAddRef(SafeHandle safeHandle)
437+
public static bool SafeHandleAddRef(SafeHandle safeHandle)
438438
{
439439
bool _addRefSucceeded = false;
440440
#if DEBUG_HANDLE
@@ -466,7 +466,7 @@ private static bool SafeHandleAddRef(SafeHandle safeHandle)
466466
return _addRefSucceeded;
467467
}
468468

469-
private static void SafeHandleRelease(SafeHandle safeHandle)
469+
public static void SafeHandleRelease(SafeHandle safeHandle)
470470
{
471471
safeHandle.DangerousRelease();
472472
#if DEBUG_HANDLE
@@ -479,7 +479,7 @@ private static void SafeHandleRelease(SafeHandle safeHandle)
479479
#endif
480480
}
481481

482-
private static void SafeHandleReleaseByHandle(int jsId)
482+
public static void SafeHandleReleaseByHandle(int jsId)
483483
{
484484
#if DEBUG_HANDLE
485485
Debug.WriteLine($"SafeHandleReleaseByHandle: {jsId}");

src/mono/System.Private.CoreLib/src/System/ValueType.cs

+8
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ namespace System
1010
[System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
1111
public abstract class ValueType
1212
{
13+
#if TARGET_BROWSER
14+
// Tracking issue https://github.com/dotnet/runtime/issues/47909
15+
[DynamicDependency(DynamicallyAccessedMemberTypes.PublicMethods, "System.Runtime.InteropServices.JavaScript.Runtime", "System.Private.Runtime.InteropServices.JavaScript")]
16+
#endif
17+
protected ValueType()
18+
{
19+
}
20+
1321
// This is also used by RuntimeHelpers
1422
internal static bool DefaultEquals(object o1, object o2)
1523
{

0 commit comments

Comments
 (0)