Skip to content

Commit 118e368

Browse files
committed
Delete ShadowConcreteUnboxingThunkNode
1 parent 8a730b5 commit 118e368

File tree

2 files changed

+7
-99
lines changed

2 files changed

+7
-99
lines changed

src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/NodeFactory.cs

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -410,12 +410,6 @@ private void CreateNodeCaches()
410410

411411
_shadowConcreteMethods = new ShadowConcreteMethodHashtable(this);
412412

413-
_shadowConcreteUnboxingMethods = new NodeCache<MethodDesc, ShadowConcreteUnboxingThunkNode>(method =>
414-
{
415-
MethodDesc canonMethod = method.GetCanonMethodTarget(CanonicalFormKind.Specific);
416-
return new ShadowConcreteUnboxingThunkNode(method, MethodEntrypoint(canonMethod, true));
417-
});
418-
419413
_virtMethods = new VirtualMethodUseHashtable(this);
420414

421415
_variantMethods = new NodeCache<MethodDesc, VariantInterfaceMethodUseNode>((MethodDesc method) =>
@@ -1159,13 +1153,14 @@ public IMethodNode ExactCallableAddressTakenAddress(MethodDesc method, bool isUn
11591153
return AddressTakenMethodEntrypoint(method, isUnboxingStub);
11601154
}
11611155

1162-
public IMethodNode CanonicalEntrypoint(MethodDesc method, bool isUnboxingStub = false)
1156+
public IMethodNode CanonicalEntrypoint(MethodDesc method)
11631157
{
11641158
MethodDesc canonMethod = method.GetCanonMethodTarget(CanonicalFormKind.Specific);
1165-
if (method != canonMethod)
1166-
return ShadowConcreteMethod(method, isUnboxingStub);
1159+
if (method != canonMethod) {
1160+
return ShadowConcreteMethod(method);
1161+
}
11671162
else
1168-
return MethodEntrypoint(method, isUnboxingStub);
1163+
return MethodEntrypoint(method);
11691164
}
11701165

11711166
private NodeCache<MethodDesc, GVMDependenciesNode> _gvmDependenciesNode;
@@ -1284,13 +1279,9 @@ protected override ShadowConcreteMethodNode CreateValueFromKey(MethodDesc key) =
12841279
}
12851280

12861281
private ShadowConcreteMethodHashtable _shadowConcreteMethods;
1287-
private NodeCache<MethodDesc, ShadowConcreteUnboxingThunkNode> _shadowConcreteUnboxingMethods;
1288-
public IMethodNode ShadowConcreteMethod(MethodDesc method, bool isUnboxingStub = false)
1282+
public IMethodNode ShadowConcreteMethod(MethodDesc method)
12891283
{
1290-
if (isUnboxingStub)
1291-
return _shadowConcreteUnboxingMethods.GetOrAdd(method);
1292-
else
1293-
return _shadowConcreteMethods.GetOrCreateValue(method);
1284+
return _shadowConcreteMethods.GetOrCreateValue(method);
12941285
}
12951286

12961287
private static readonly string[][] s_helperEntrypointNames = new string[][] {

src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/ShadowConcreteUnboxingThunkNode.cs

Lines changed: 0 additions & 83 deletions
This file was deleted.

0 commit comments

Comments
 (0)