-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[move-vm] Make bytecode version v7 the default (#14876)
We could not do that before because mainnet did not support v7 yet, but that has changed now.
- Loading branch information
Showing
34 changed files
with
131 additions
and
134 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
api/goldens/aptos_api__tests__state_test__test_get_account_module.json
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
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
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
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
65 changes: 32 additions & 33 deletions
65
...-compiler-v2/transactional-tests/tests/misc/bug_14243_stack_size.optimize-no-simplify.exp
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,32 @@ | ||
comparison between v1 and v2 failed: | ||
= processed 1 task | ||
= | ||
= task 0 'print-bytecode'. lines 2-14: | ||
- // Move bytecode v6 | ||
+ // Move bytecode v7 | ||
= module c0ffee.m { | ||
= | ||
= | ||
= id_mut<Ty0>(Arg0: &mut Ty0): &mut Ty0 /* def_idx: 0 */ { | ||
= B0: | ||
= 0: MoveLoc[0](Arg0: &mut Ty0) | ||
= 1: Ret | ||
= } | ||
= t0() /* def_idx: 1 */ { | ||
= L0: loc0: u64 | ||
= L1: loc1: &mut u64 | ||
= B0: | ||
= 0: LdU64(0) | ||
= 1: StLoc[0](loc0: u64) | ||
= 2: MutBorrowLoc[0](loc0: u64) | ||
= 3: StLoc[1](loc1: &mut u64) | ||
= 4: CopyLoc[1](loc1: &mut u64) | ||
= 5: Call id_mut<u64>(&mut u64): &mut u64 | ||
= 6: ReadRef | ||
= 7: Pop | ||
= 8: MoveLoc[1](loc1: &mut u64) | ||
= 9: ReadRef | ||
= 10: Pop | ||
= 11: Ret | ||
= } | ||
= } | ||
= | ||
processed 1 task | ||
|
||
task 0 'print-bytecode'. lines 2-14: | ||
// Move bytecode v7 | ||
module c0ffee.m { | ||
|
||
|
||
id_mut<Ty0>(Arg0: &mut Ty0): &mut Ty0 /* def_idx: 0 */ { | ||
B0: | ||
0: MoveLoc[0](Arg0: &mut Ty0) | ||
1: Ret | ||
} | ||
t0() /* def_idx: 1 */ { | ||
L0: loc0: u64 | ||
L1: loc1: &mut u64 | ||
B0: | ||
0: LdU64(0) | ||
1: StLoc[0](loc0: u64) | ||
2: MutBorrowLoc[0](loc0: u64) | ||
3: StLoc[1](loc1: &mut u64) | ||
4: CopyLoc[1](loc1: &mut u64) | ||
5: Call id_mut<u64>(&mut u64): &mut u64 | ||
6: ReadRef | ||
7: Pop | ||
8: MoveLoc[1](loc1: &mut u64) | ||
9: ReadRef | ||
10: Pop | ||
11: Ret | ||
} | ||
} | ||
|
||
==> Compiler v2 delivered same results! |
65 changes: 32 additions & 33 deletions
65
...ty/move/move-compiler-v2/transactional-tests/tests/misc/bug_14243_stack_size.optimize.exp
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,32 @@ | ||
comparison between v1 and v2 failed: | ||
= processed 1 task | ||
= | ||
= task 0 'print-bytecode'. lines 2-14: | ||
- // Move bytecode v6 | ||
+ // Move bytecode v7 | ||
= module c0ffee.m { | ||
= | ||
= | ||
= id_mut<Ty0>(Arg0: &mut Ty0): &mut Ty0 /* def_idx: 0 */ { | ||
= B0: | ||
= 0: MoveLoc[0](Arg0: &mut Ty0) | ||
= 1: Ret | ||
= } | ||
= t0() /* def_idx: 1 */ { | ||
= L0: loc0: u64 | ||
= L1: loc1: &mut u64 | ||
= B0: | ||
= 0: LdU64(0) | ||
= 1: StLoc[0](loc0: u64) | ||
= 2: MutBorrowLoc[0](loc0: u64) | ||
= 3: StLoc[1](loc1: &mut u64) | ||
= 4: CopyLoc[1](loc1: &mut u64) | ||
= 5: Call id_mut<u64>(&mut u64): &mut u64 | ||
= 6: ReadRef | ||
= 7: Pop | ||
= 8: MoveLoc[1](loc1: &mut u64) | ||
= 9: ReadRef | ||
= 10: Pop | ||
= 11: Ret | ||
= } | ||
= } | ||
= | ||
processed 1 task | ||
|
||
task 0 'print-bytecode'. lines 2-14: | ||
// Move bytecode v7 | ||
module c0ffee.m { | ||
|
||
|
||
id_mut<Ty0>(Arg0: &mut Ty0): &mut Ty0 /* def_idx: 0 */ { | ||
B0: | ||
0: MoveLoc[0](Arg0: &mut Ty0) | ||
1: Ret | ||
} | ||
t0() /* def_idx: 1 */ { | ||
L0: loc0: u64 | ||
L1: loc1: &mut u64 | ||
B0: | ||
0: LdU64(0) | ||
1: StLoc[0](loc0: u64) | ||
2: MutBorrowLoc[0](loc0: u64) | ||
3: StLoc[1](loc1: &mut u64) | ||
4: CopyLoc[1](loc1: &mut u64) | ||
5: Call id_mut<u64>(&mut u64): &mut u64 | ||
6: ReadRef | ||
7: Pop | ||
8: MoveLoc[1](loc1: &mut u64) | ||
9: ReadRef | ||
10: Pop | ||
11: Ret | ||
} | ||
} | ||
|
||
==> Compiler v2 delivered same results! |
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
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
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
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
2 changes: 1 addition & 1 deletion
2
.../move/move-ir-compiler/transactional-tests/tests/bytecode-generation/declarations/let.exp
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
processed 2 tasks | ||
|
||
task 0 'print-bytecode'. lines 1-7: | ||
// Move bytecode v6 | ||
// Move bytecode v7 | ||
script { | ||
|
||
|
||
|
2 changes: 1 addition & 1 deletion
2
...move-ir-compiler/transactional-tests/tests/bytecode-generation/expressions/binary_add.exp
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
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
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
2 changes: 1 addition & 1 deletion
2
...iler/transactional-tests/tests/bytecode-generation/expressions/builtins/borrow_global.exp
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
2 changes: 1 addition & 1 deletion
2
.../transactional-tests/tests/bytecode-generation/expressions/builtins/borrow_global_mut.exp
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
2 changes: 1 addition & 1 deletion
2
...ir-compiler/transactional-tests/tests/bytecode-generation/expressions/builtins/exists.exp
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
2 changes: 1 addition & 1 deletion
2
...r-compiler/transactional-tests/tests/bytecode-generation/expressions/builtins/move_to.exp
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
2 changes: 1 addition & 1 deletion
2
...ir-compiler/transactional-tests/tests/bytecode-generation/expressions/builtins/vector.exp
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
processed 1 task | ||
|
||
task 0 'print-bytecode'. lines 1-31: | ||
// Move bytecode v6 | ||
// Move bytecode v7 | ||
script { | ||
|
||
|
||
|
Oops, something went wrong.