Commit 49e73b0
authored
[vm] New bytecode for aborting with message (#18347)
* [vm] New VM instruction for aborting with message
* Fix hashing
* Add type checks for Abort/AbortMsg
* Add comment
* Do not change `ExecutionStatus`
* Revert changes
* Cursor feedback
* Fix formatting
* Fix macro
* Return error on message type mismatch
* Include abort message in prologue/epilogue for debugging
* [vm] New bytecode for aborting with message
* Cursor feedback
* Rustfmt
* More cursor feedback
* More places to handle `AbortMsg` variant
* Feature gate abort messages
* Use feature flag to enable abort messages in VM
* Add comment
* Replace `&vector<u8>` with `vector<u8>`
* Replace `&vector<u8>` with `vector<u8>`
* Fix error for invalid abort messages
* Combine `Abort` and `AbortMsg` in stackless buytecode
* Wolfgang feedback
* George feedback
* Add test for invalid message
* Charge gas per byte
* Clippy
* Add to default features
* Update tests
* Fix gas profiler
* Simplify gas model
* Fix sourcifier
* Cap length of abort message
* Update limit
* Update abort_msg_per_byte1 parent 99d5c8d commit 49e73b0
File tree
480 files changed
+924
-585
lines changed- aptos-move
- aptos-gas-meter/src
- aptos-gas-profiling/src
- aptos-gas-schedule/src/gas_schedule
- aptos-memory-usage-tracker/src
- aptos-release-builder/src/components
- aptos-transactional-test-harness/tests/aptos_test_harness
- aptos-vm/src/verifier
- third_party/move
- move-binary-format/src
- move-bytecode-verifier
- invalid-mutations/src/bounds
- src
- locals_safety
- reference_safety
- move-compiler-v2
- src
- file_format_generator
- pipeline
- tests
- ability-transform
- bytecode-generator
- checking-lang-v2.4
- control-flow-simplification
- eager-pushes
- file-format-generator
- structs_visibility
- flush-writes
- inlining-optimization
- integers/signed
- lambda-spec
- live-var
- op-equal
- uninit-use-checker
- unreachable-code-remover
- variable-coalescing
- transactional-tests/tests
- inlining
- round-trip
- misc
- round-trip
- no-v1-comparison
- round-trip
- testing-constant
- move-core/types/src
- move-model
- bytecode/src
- src
- move-prover
- boogie-backend/src
- bytecode-pipeline/src
- move-vm
- runtime/src
- test-utils/src
- transactional-tests/tests/tracing/simple
- types/src
- values
- testing-infra/transactional-test-runner/tests/vm_test_harness
- round-trip
- tools
- move-asm/src
- move-cli/tests/build_tests
- build_with_warnings
- disassemble_script
- types/src
- on_chain_config
- transaction
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
480 files changed
+924
-585
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
550 | 556 | | |
551 | 557 | | |
552 | 558 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
370 | 373 | | |
371 | 374 | | |
372 | 375 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
346 | 357 | | |
347 | 358 | | |
348 | 359 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
| |||
413 | 414 | | |
414 | 415 | | |
415 | 416 | | |
| 417 | + | |
416 | 418 | | |
417 | 419 | | |
418 | 420 | | |
| |||
596 | 598 | | |
597 | 599 | | |
598 | 600 | | |
| 601 | + | |
599 | 602 | | |
600 | 603 | | |
601 | 604 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| 238 | + | |
238 | 239 | | |
239 | 240 | | |
240 | 241 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
673 | 673 | | |
674 | 674 | | |
675 | 675 | | |
676 | | - | |
677 | | - | |
| 676 | + | |
| 677 | + | |
678 | 678 | | |
679 | 679 | | |
680 | 680 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
| 379 | + | |
379 | 380 | | |
380 | 381 | | |
381 | 382 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1831 | 1831 | | |
1832 | 1832 | | |
1833 | 1833 | | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
1834 | 1842 | | |
1835 | 1843 | | |
1836 | 1844 | | |
| |||
1943 | 1951 | | |
1944 | 1952 | | |
1945 | 1953 | | |
| 1954 | + | |
1946 | 1955 | | |
1947 | 1956 | | |
1948 | 1957 | | |
| |||
2226 | 2235 | | |
2227 | 2236 | | |
2228 | 2237 | | |
| 2238 | + | |
| 2239 | + | |
2229 | 2240 | | |
2230 | 2241 | | |
2231 | 2242 | | |
| |||
0 commit comments