Skip to content

[Async CC] Resolve metadata from class instances. #34740

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

nate-chandler
Copy link
Contributor

Metadata for an instance of a type is resolved by extracting it from an instance of the class. When doing method lookup for an instance method of a resilient class, the lowered self value was being obtained from the list of arguments directly by indexing. That does not apply to async functions where self is embedded within the async context. Here, the self parameter is extracted from the async context so that the metadata can in turn be extracted from it.

rdar://problem/71260862

@nate-chandler
Copy link
Contributor Author

@swift-ci please test

@nate-chandler nate-chandler changed the title [AsyncCC] Resolve metadata from class instances. [Async CC] Resolve metadata from class instances. Nov 14, 2020
@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 907f17e4dace5afba950d074798721352a5cb236

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 907f17e4dace5afba950d074798721352a5cb236

@nate-chandler
Copy link
Contributor Author

@swift-ci please clean test linux

@nate-chandler
Copy link
Contributor Author

@swift-ci please clean test macos

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 907f17e4dace5afba950d074798721352a5cb236

@nate-chandler
Copy link
Contributor Author

@swift-ci please clean test linux

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 907f17e4dace5afba950d074798721352a5cb236

@nate-chandler
Copy link
Contributor Author

@swift-ci please clean test macos

@nate-chandler nate-chandler force-pushed the concurrency/irgen/rdar71260862 branch from 907f17e to 2dde2e7 Compare November 14, 2020 21:25
@nate-chandler
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 2dde2e7d102aff715d019939bcd9214bd8dac0da

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 2dde2e7d102aff715d019939bcd9214bd8dac0da

Metadata for an instance of a type is resolved by extracting it from an
instance of the class.  When doing method lookup for an instance method
of a resilient class, the lowered self value was being obtained from the
list of arguments directly by indexing.  That does not apply to async
functions where self is embedded within the async context.  Here, the
self parameter is extracted from the async context so that the metadata
can in turn be extracted from it.

rdar://problem/71260862
@nate-chandler nate-chandler force-pushed the concurrency/irgen/rdar71260862 branch from 2dde2e7 to e276472 Compare November 14, 2020 23:15
@nate-chandler
Copy link
Contributor Author

@swift-ci please test

@DougGregor DougGregor merged commit 390dd28 into swiftlang:main Nov 15, 2020
@nate-chandler nate-chandler deleted the concurrency/irgen/rdar71260862 branch July 5, 2023 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants