-
Notifications
You must be signed in to change notification settings - Fork 3.9k
[vm] New bytecode for aborting with message #18347
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
+924
−585
Merged
Changes from 46 commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
f071757
[vm] New VM instruction for aborting with message
calintat 61f3fae
Merge branch 'main' into calin/vm-abort-message
calintat 632f176
Fix hashing
calintat 24b0e46
Add type checks for Abort/AbortMsg
calintat c14d6cb
Add comment
calintat 02904e7
Merge branch 'main' into calin/vm-abort-message
calintat 5cfee84
Do not change `ExecutionStatus`
calintat 63d94a9
Merge branch 'main' into calin/vm-abort-message
calintat 4f9bfb3
Revert changes
calintat 86045a6
Cursor feedback
calintat 0befc1d
Merge branch 'main' into calin/vm-abort-message
calintat 2998bb5
Fix formatting
calintat 052585f
Fix macro
calintat 4071ee7
Return error on message type mismatch
calintat 57a3903
Include abort message in prologue/epilogue for debugging
calintat 1af6390
[vm] New bytecode for aborting with message
calintat ad54d9f
Cursor feedback
calintat 062615e
Rustfmt
calintat 28128aa
More cursor feedback
calintat f3437ed
More places to handle `AbortMsg` variant
calintat a7c3e59
Merge branch 'main' into calin/vm-abort-message
calintat f35c1b7
Merge branch 'calin/vm-abort-message' into calin/vm-abort-message-2
calintat cb3601b
Feature gate abort messages
calintat 0629b08
Merge branch 'calin/vm-abort-message' into calin/vm-abort-message-2
calintat aceb1f6
Use feature flag to enable abort messages in VM
calintat 1aeeb54
Add comment
calintat dba84cd
Replace `&vector<u8>` with `vector<u8>`
calintat f311fb2
Merge branch 'calin/vm-abort-message' into calin/vm-abort-message-2
calintat 572af72
Replace `&vector<u8>` with `vector<u8>`
calintat ee2a504
Merge branch 'main' into calin/vm-abort-message
calintat 3b919c3
Fix error for invalid abort messages
calintat 2109790
Merge branch 'calin/vm-abort-message' into calin/vm-abort-message-2
calintat 2d7df56
Merge branch 'main' into calin/vm-abort-message-2
calintat 4b4ed18
Merge branch 'main' into calin/vm-abort-message-2
calintat 37b17cd
Combine `Abort` and `AbortMsg` in stackless buytecode
calintat f78fb2f
Wolfgang feedback
calintat 709dede
George feedback
calintat 289bf35
Add test for invalid message
calintat 4ddc0fb
Charge gas per byte
calintat 40c8528
Clippy
calintat 7063878
Merge branch 'main' into calin/vm-abort-message-2
calintat 7c8cc41
Add to default features
calintat cfae669
Merge branch 'main' into calin/vm-abort-message-2
calintat 26d4771
Update tests
calintat ebfaca7
Fix gas profiler
calintat 50e630f
Simplify gas model
calintat 62a093e
Fix sourcifier
calintat 830d2df
Cap length of abort message
calintat a1a59c2
Update limit
calintat 907cb44
Update abort_msg_per_byte
calintat df32ae4
Merge branch 'main' into calin/vm-abort-message-2
calintat b287a30
Merge branch 'main' into calin/vm-abort-message-2
calintat cd2c1c1
Feature gate new gas params
calintat fa4225f
Merge branch 'main' into calin/vm-abort-message-2
calintat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
aptos-move/aptos-transactional-test-harness/tests/aptos_test_harness/diamond_clicker.exp
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -376,6 +376,7 @@ impl BinaryComplexityMeter<'_> { | |
| | MoveTo(_) | ||
| | MoveFrom(_) | ||
| | Abort | ||
| | AbortMsg | ||
| | Nop => (), | ||
| } | ||
| } | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.