-
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
Merged
+635
−521
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
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 21, 2025 16:56
8140006
to
40f54be
Compare
wrwg
force-pushed
the
wrwg/clos_type_conv
branch
from
January 21, 2025 16:56
1c9f941
to
5393a01
Compare
wrwg
force-pushed
the
wrwg/clos_ability_move
branch
from
January 22, 2025 03:19
40f54be
to
691dc6e
Compare
wrwg
force-pushed
the
wrwg/clos_type_conv
branch
from
January 22, 2025 03:19
5393a01
to
d4d5803
Compare
wrwg
force-pushed
the
wrwg/clos_ability_move
branch
from
January 22, 2025 06:23
691dc6e
to
14e0465
Compare
wrwg
force-pushed
the
wrwg/clos_type_conv
branch
from
January 22, 2025 06:23
d4d5803
to
892bc51
Compare
wrwg
force-pushed
the
wrwg/clos_ability_move
branch
from
January 22, 2025 06:52
14e0465
to
75db034
Compare
wrwg
force-pushed
the
wrwg/clos_type_conv
branch
from
January 22, 2025 06:52
892bc51
to
bf07d31
Compare
runtian-zhou
approved these changes
Jan 22, 2025
runtian-zhou
approved these changes
Jan 22, 2025
wrwg
force-pushed
the
wrwg/clos_ability_move
branch
from
January 23, 2025 03:59
75db034
to
6dd70e7
Compare
wrwg
force-pushed
the
wrwg/clos_type_conv
branch
from
January 23, 2025 03:59
bf07d31
to
1513955
Compare
wrwg
force-pushed
the
wrwg/clos_ability_move
branch
from
January 23, 2025 04:06
6dd70e7
to
cb81217
Compare
wrwg
force-pushed
the
wrwg/clos_type_conv
branch
from
January 23, 2025 04:06
1513955
to
4022451
Compare
wrwg
force-pushed
the
wrwg/clos_ability_move
branch
from
January 24, 2025 06:03
cb81217
to
86223e7
Compare
wrwg
force-pushed
the
wrwg/clos_type_conv
branch
from
January 24, 2025 06:03
4022451
to
6f6afe3
Compare
wrwg
force-pushed
the
wrwg/clos_ability_move
branch
from
January 25, 2025 01:06
86223e7
to
41d50fa
Compare
wrwg
force-pushed
the
wrwg/clos_type_conv
branch
from
January 25, 2025 01:07
6f6afe3
to
f178823
Compare
wrwg
force-pushed
the
wrwg/clos_ability_move
branch
from
January 25, 2025 02:56
41d50fa
to
76701d8
Compare
…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_type_conv
branch
from
January 25, 2025 06:40
f178823
to
2707a22
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ Forge suite
|
✅ Forge suite
|
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?