Skip to content

Commit 3f08bda

Browse files
committed
wip
1 parent 9eb9a2e commit 3f08bda

File tree

3 files changed

+38
-31
lines changed

3 files changed

+38
-31
lines changed

lib/IRGen/GenDistributed.cpp

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -230,14 +230,14 @@ static CanSILFunctionType getAccessorType(IRGenModule &IGM,
230230

231231
// actor
232232

233-
auto actorTypeParam =
234-
GenericTypeParamType::get(/*isParameterPack=*/false,
235-
/*depth=*/0, /*index=*/1, Context);
236-
parameters.push_back(
237-
GenericFunctionType::Param(actorTypeParam));
238-
auto distributedActorTy =
239-
Context.getDistributedActorDecl()
240-
->getDeclaredInterfaceType();
233+
// auto actorTypeParam =
234+
// GenericTypeParamType::get(/*isParameterPack=*/false,
235+
// /*depth=*/0, /*index=*/1, Context);
236+
// parameters.push_back(
237+
// GenericFunctionType::Param(actorTypeParam));
238+
// auto distributedActorTy =
239+
// Context.getDistributedActorDecl()
240+
// ->getDeclaredInterfaceType();
241241

242242
auto decoderProtocolTy =
243243
Context
@@ -260,10 +260,10 @@ static CanSILFunctionType getAccessorType(IRGenModule &IGM,
260260
genericRequirements.push_back(
261261
{RequirementKind::Conformance, decoderType, decoderProtocolTy});
262262

263-
genericRequirements.push_back(
264-
{RequirementKind::Conformance, actorTypeParam, distributedActorTy});
265-
266-
genericParams.push_back(actorTypeParam);
263+
// genericRequirements.push_back(
264+
// {RequirementKind::Conformance, actorTypeParam, distributedActorTy});
265+
//
266+
// genericParams.push_back(actorTypeParam);
267267

268268
signature = buildGenericSignature(Context, GenericSignature(),
269269
std::move(genericParams),
@@ -603,14 +603,14 @@ void DistributedAccessor::emit() {
603603
// Metadata that represents passed in the invocation decoder.
604604
auto *decoderType = params.claimNext();
605605

606-
// Metadata that represents the actor the invocation is on.
607-
auto *actorType = params.claimNext();
608-
(void)actorType;
606+
// // Metadata that represents the actor the invocation is on.
607+
// auto *actorType = params.claimNext();
608+
// (void)actorType;
609609

610610
// Witness table for decoder conformance to DistributedTargetInvocationDecoder
611611
auto *decoderProtocolWitness = params.claimNext();
612-
auto *distributedActorWitness = params.claimNext();
613-
(void)distributedActorWitness;
612+
// auto *distributedActorWitness = params.claimNext();
613+
// (void)distributedActorWitness;
614614

615615
// Preliminary: Setup async context for this accessor.
616616
{

stdlib/public/Distributed/DistributedActor.cpp

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,10 @@ using TargetExecutorSignature =
6161
/*witnessTables=*/void **,
6262
/*numWitnessTables=*/size_t,
6363
/*decoderType=*/Metadata *,
64-
/*actorType=*/Metadata *,
65-
/*decoderWitnessTable=*/void **,
66-
/*distributedActorWitnessTable=*/void **
64+
// /*actorType=*/Metadata *,
65+
/*decoderWitnessTable=*/void **
66+
// ,
67+
// /*distributedActorWitnessTable=*/void **
6768
),
6869
/*throws=*/true>;
6970

@@ -91,9 +92,11 @@ using DistributedAccessorSignature =
9192
/*numWitnessTables=*/size_t,
9293
/*actor=*/HeapObject *,
9394
/*decoderType=*/Metadata *,
94-
/*actorType=*/Metadata *,
95-
/*decoderWitnessTable=*/void **,
96-
/*actorWitnessTable=*/void **),
95+
// /*actorType=*/Metadata *,
96+
/*decoderWitnessTable=*/void **
97+
// ,
98+
// /*actorWitnessTable=*/void **
99+
),
97100
/*throws=*/true>;
98101

99102
SWIFT_CC(swiftasync)
@@ -129,9 +132,11 @@ void swift_distributed_execute_target(
129132
void **witnessTables,
130133
size_t numWitnessTables,
131134
Metadata *decoderType,
132-
Metadata *actorType,
133-
void **decoderWitnessTable,
134-
void **actorWitnessTable) {
135+
// Metadata *actorType,
136+
void **decoderWitnessTable
137+
// ,
138+
// void **actorWitnessTable
139+
) {
135140
auto *accessor = findDistributedAccessor(targetNameStart, targetNameLength);
136141
if (!accessor) {
137142
SwiftError *error =
@@ -166,7 +171,9 @@ void swift_distributed_execute_target(
166171
numWitnessTables,
167172
actor,
168173
decoderType,
169-
actorType,
170-
decoderWitnessTable,
171-
actorWitnessTable);
174+
// actorType,
175+
decoderWitnessTable
176+
// ,
177+
// actorWitnessTable
178+
);
172179
}

stdlib/public/Distributed/DistributedActorSystem.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,8 +652,8 @@ public struct RemoteCallTarget: CustomStringConvertible, Hashable {
652652

653653
@available(SwiftStdlib 5.7, *)
654654
@_silgen_name("swift_distributed_execute_target")
655-
func _executeDistributedTarget<D: DistributedTargetInvocationDecoder, DA: DistributedActor>(
656-
on actor: DA, // DistributedActor
655+
func _executeDistributedTarget<D: DistributedTargetInvocationDecoder>(
656+
on actor: AnyObject, // : DistributedActor
657657
_ targetName: UnsafePointer<UInt8>, _ targetNameLength: UInt,
658658
argumentDecoder: inout D,
659659
argumentTypes: Builtin.RawPointer,

0 commit comments

Comments
 (0)