-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[move-cm][closures] Refactor: Move type conversions out of Loader
into a trait
#15669
Open
wrwg
wants to merge
1
commit into
wrwg/clos_ability_move
Choose a base branch
from
wrwg/clos_type_conv
base: wrwg/clos_ability_move
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
⏱️ 50m total CI duration on this PR
|
16 tasks
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Jan 4, 2025
wrwg
force-pushed
the
wrwg/clos_ability_move
branch
from
January 5, 2025 05:50
34517a1
to
7862e77
Compare
wrwg
force-pushed
the
wrwg/clos_type_conv
branch
from
January 5, 2025 05:50
4972a5c
to
2fed681
Compare
wrwg
force-pushed
the
wrwg/clos_ability_move
branch
from
January 5, 2025 23:50
7862e77
to
ee49138
Compare
wrwg
force-pushed
the
wrwg/clos_type_conv
branch
from
January 6, 2025 02:47
2fed681
to
9c0814c
Compare
wrwg
force-pushed
the
wrwg/clos_ability_move
branch
from
January 6, 2025 02:47
ee49138
to
9fbe74f
Compare
wrwg
force-pushed
the
wrwg/clos_type_conv
branch
2 times, most recently
from
January 6, 2025 03:25
8b11451
to
dcb6bc5
Compare
wrwg
requested review from
georgemitenkov,
runtian-zhou,
vgao1996,
vineethk and
ziaptos
January 8, 2025 06:17
wrwg
force-pushed
the
wrwg/clos_ability_move
branch
from
January 13, 2025 07:08
9fbe74f
to
a79fde9
Compare
wrwg
requested review from
davidiw,
movekevin,
banool,
gregnazario and
0xmaayan
as code owners
January 13, 2025 07:08
wrwg
force-pushed
the
wrwg/clos_type_conv
branch
from
January 13, 2025 07:08
dcb6bc5
to
bfc6f4c
Compare
wrwg
force-pushed
the
wrwg/clos_ability_move
branch
from
January 14, 2025 02:32
a79fde9
to
719f728
Compare
wrwg
force-pushed
the
wrwg/clos_type_conv
branch
from
January 14, 2025 02:32
bfc6f4c
to
355525d
Compare
wrwg
force-pushed
the
wrwg/clos_ability_move
branch
from
January 16, 2025 06:43
719f728
to
41d027e
Compare
wrwg
force-pushed
the
wrwg/clos_type_conv
branch
from
January 16, 2025 06:43
355525d
to
13dfe03
Compare
wrwg
force-pushed
the
wrwg/clos_ability_move
branch
from
January 16, 2025 06:44
41d027e
to
8e5b22c
Compare
wrwg
force-pushed
the
wrwg/clos_type_conv
branch
from
January 16, 2025 06:45
13dfe03
to
92f22e0
Compare
wrwg
force-pushed
the
wrwg/clos_ability_move
branch
from
January 17, 2025 06:10
8e5b22c
to
6aa1fbf
Compare
wrwg
force-pushed
the
wrwg/clos_type_conv
branch
from
January 17, 2025 06:11
92f22e0
to
23f4130
Compare
wrwg
force-pushed
the
wrwg/clos_ability_move
branch
3 times, most recently
from
January 18, 2025 04:37
da757e8
to
c078929
Compare
This was referenced Jan 21, 2025
…nto a trait Type conversions from runtime types to `MoveTypeLayout` and `TypeTag` currently are associated with the `Loader` type. However, they are needed for the `FunctionValueExtension` trait which needs to be constructed in contexts where no loader but only `ModuleStorage` exists. This PR moves the conversion functions into a new trait `TypeConverter`. The trait is then implemented two times based on `ModuleStorage` only and based on the existing `Loader`, for downwards compatibility.
wrwg
force-pushed
the
wrwg/clos_ability_move
branch
from
January 21, 2025 05:09
c078929
to
8140006
Compare
wrwg
force-pushed
the
wrwg/clos_type_conv
branch
from
January 21, 2025 05:09
23f4130
to
1c9f941
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
[PR 3/n vm closures]
Type conversions from runtime types to
MoveTypeLayout
andTypeTag
currently are associated with theLoader
type. However, they are needed for theFunctionValueExtension
trait which needs to be constructed in contexts where no loader but onlyModuleStorage
exists.This PR moves the conversion functions into a new trait
TypeConverter
. The trait is then implemented two times, once based onModuleStorage
only and once based on the existingLoader
, for downwards compatibility.How Has This Been Tested?
Refactoring only, existing tests
Type of Change
Which Components or Systems Does This Change Impact?