Skip to content
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

[copybara] Sync recent changes from aptos-core #3

Open
wants to merge 230 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
230 commits
Select commit Hold shift + click to select a range
7b0e23c
[move-vm]Fix error reporting (#13134)
runtian-zhou May 1, 2024
a7ee64b
make sure all compiler tests are run with VM in paranoid mode (#13051)
brmataptos May 1, 2024
aba15f5
[compiler-v2] Fix evaluation order to be consistent in language versi…
vineethk May 2, 2024
737bee1
migrate tests (#13150)
rahxephon89 May 2, 2024
4e9e1e5
[trivial] error message for struct depth calculation (#13056)
georgemitenkov May 2, 2024
89e4617
Run tests only on primary targets. (#13184)
brmataptos May 4, 2024
d7548cc
Add the missing single quota mark in words (#12963)
findnature May 6, 2024
0490e00
fix bug 13201 by emitting an empty vector constant load as a VecPack …
brmataptos May 6, 2024
fc4565a
[compiler-v2] Add type information to cons_to_idx (#13232)
rahxephon89 May 10, 2024
b35c57a
[framework] A few minor fix for dispatchable token (#13181)
runtian-zhou May 14, 2024
dbafc6d
fix prover test (#13270)
rahxephon89 May 14, 2024
e0371ec
[trivial] minor naming fixes (#13029)
georgemitenkov May 15, 2024
2744ed2
[move] View APIs instead of Move resolvers (#13233)
georgemitenkov May 16, 2024
12a0bb3
use is_primary for docgen and abigen (#13239)
rahxephon89 May 16, 2024
9e1f561
add extended_checks to aptos-transactional-test-harness (#13337)
brmataptos May 21, 2024
bee4b14
fix (#13346)
rahxephon89 May 21, 2024
1ab4f94
Run MOVE_COMPILER_V2 with more tests and record outputs in .v2_exp fi…
brmataptos May 21, 2024
fe10ffe
remove dep counts (#13356)
georgemitenkov May 22, 2024
7696adf
[compiler v2] Simulating some unexpected v1 borrow behavior (#13314)
wrwg May 22, 2024
1a9c3be
[vm] Use prod configs for aptos (#13317)
georgemitenkov May 23, 2024
11eb3e9
Fix abigen test by fixing dep path to avoid catching built files if p…
brmataptos May 24, 2024
5c91ee4
[move][cli] Remove Movey and sandbox from CLI (#13401)
georgemitenkov May 24, 2024
fd8a00d
[extended checker] Add checks for safe randomness usage (#13294)
wrwg May 25, 2024
6d22ced
fix abigen testsuite to notice missing or extra output files (#13428)
brmataptos May 27, 2024
fdccd4e
[Compiler-v2] handle the case Seq(exp) iteratively in translate_seq_r…
rahxephon89 May 29, 2024
43bab68
[compiler-v2] Fixes bug in reference safety regards weak borrow relat…
wrwg May 29, 2024
4595f26
[move] Update `move_pr.sh` to run more tests (#13461)
wrwg May 29, 2024
b432874
[compiler-v2] Add access specifier check to reference safety (#13484)
wrwg May 30, 2024
0f30151
[compiler-v2] Bytecode verification failure error message (#13469)
wrwg May 30, 2024
f5bfbec
Support generation of mdx-compatible docs in docgen (#13368)
rahxephon89 May 31, 2024
4211a13
[Compiler-v2] migrate V1 tests and check in some problematic tests (#…
rahxephon89 May 31, 2024
a267569
[move] Ensure loading function first before execution (#13425)
georgemitenkov May 31, 2024
e40557b
[Prover] Added DeFi examples (#13281)
junkil-park Jun 3, 2024
37a1381
fix warning (#13520)
rahxephon89 Jun 4, 2024
a1d309b
Constant-fold vectors of things other than numbers (#13628)
brmataptos Jun 12, 2024
ea022d6
[Feature] [Package System] Add option to override standard library ve…
fEst1ck Jun 12, 2024
31db3af
[move] Type builder & fix calculation of node count in types (#13028)
georgemitenkov Jun 12, 2024
0bc0bdc
[move] Fix gas traversal for special addresses (#13639)
georgemitenkov Jun 12, 2024
fda0dac
Fails the multisig transaction upon the mismatch between provided and…
junkil-park Jun 12, 2024
b15e79c
Add BlockEpilogue transaction to the API (#13471)
igor-aptos Jun 13, 2024
03cca7c
[cargo] Upgrade Rust to v1.78.0 (#13701)
ibalajiarun Jun 15, 2024
5a575ac
add perf improvment to unblock
areshand Jun 17, 2024
83e431c
[compiler-v2] Enum types frontend (#13577)
wrwg Jun 19, 2024
95fde2c
[move-2] Fix breaking change in variant names in prover (#13780)
wrwg Jun 21, 2024
f3aeaa2
[compiler-v2] Pattern matching for struct variants (aka enum types) (…
wrwg Jun 24, 2024
536c6e3
fix (#13616)
rahxephon89 Jun 24, 2024
c7087a2
[vm] Introduce runtime environment outside of the VM (#13463)
georgemitenkov Jun 25, 2024
8e92965
[move] introduce bytecode specification (#13514)
vgao1996 Jun 25, 2024
ba90061
[Compiler-V2] Check Unused Assignments (#13543)
fEst1ck Jun 28, 2024
9e13838
Honor `#[verify_only]` in move-compiler-v2. Add relevant tests from …
brmataptos Jun 29, 2024
f9989be
[Compiler-v2] Raise error when entry and inline both appear in a func…
rahxephon89 Jul 1, 2024
88fbc78
[Compiler-v2] Fix native struct (#13835)
rahxephon89 Jul 1, 2024
88a20fe
Type tag construction (#13884)
georgemitenkov Jul 2, 2024
a596c6e
cleanup move_pr.sh to make it suitable for CI for v2 (#13652)
brmataptos Jul 3, 2024
f00165b
[Feature] [Compiler-V2] Package Visibility (#13680)
fEst1ck Jul 3, 2024
dc93371
disallow dispatching on custom native (#13916)
runtian-zhou Jul 4, 2024
abfb62c
fix (#13907)
rahxephon89 Jul 6, 2024
cc5a17d
cherry-pick: remove usage of normalized types and improve module comp…
vgao1996 Jul 8, 2024
896e789
[Compiler-v2][Feature] Index notation (#13695)
rahxephon89 Jul 9, 2024
88df5a2
Use cargo deny to prevent onboarding certain crates (#13938)
banool Jul 9, 2024
5b180b6
[aptos-vm] Add a feature flag to disallow user published natives (#13…
runtian-zhou Jul 9, 2024
026b286
fix unnecessary aptos-vm dependence in third-party/.../transactional-…
brmataptos Jul 11, 2024
2bdb1a9
[aptos-vm] Remove charging gas for module bundle from loader (#13811)
georgemitenkov Jul 12, 2024
a85f304
[move] Minor improvements for code storage (#13892)
georgemitenkov Jul 14, 2024
f6cc182
[move] Remove legacy type builder (#14002)
georgemitenkov Jul 17, 2024
6db49c2
[move-2] Allow variables and functions be called `match` in Move-2 (#…
wrwg Jul 19, 2024
8313d72
[Bugfix] [Compiler-V2] Check Incompatibility of Package Visibility an…
fEst1ck Jul 22, 2024
18e0333
[compiler-v2] Enum types in the VM (#13812)
wrwg Jul 23, 2024
7517007
[aptos-vm] Allowing raw bytes for script argument (#14097)
runtian-zhou Jul 25, 2024
51db9de
[move] remove enabled flag for type tag construction (#14093)
georgemitenkov Jul 26, 2024
58f168f
[move-2] Making enum types ready for prod (#14124)
wrwg Jul 27, 2024
e47ec82
[move-2] Decorated values and resource viewer for enum types (#14144)
wrwg Jul 30, 2024
700d522
[framework] Add serialized_size to bcs (#14172)
georgemitenkov Jul 31, 2024
f8a707c
[move 2] Synchronize Move and Rust enum serialization (#14174)
wrwg Jul 31, 2024
dc2940c
[compiler-v2][optimizations] Add some fixed window peephole optimizat…
vineethk Aug 2, 2024
8678ae9
[Compiler-V2] [Feature] Positional Fields (#14000)
fEst1ck Aug 2, 2024
1bfa827
[move] Change interpreter to use loaded func and improve scoping (#14…
georgemitenkov Aug 3, 2024
db28c7d
[move-prover] Fix specification functions referring to generic type i…
wrwg Aug 5, 2024
07b99b8
[compiler-v2] Complete implementation of enum field selection (#14237)
wrwg Aug 10, 2024
a44c8dd
[move-compiler-v2] Restrict usage of mutably borrowed locals in branc…
wrwg Aug 10, 2024
e750db6
[compiler-v2] Add test cases for a number of reference safety bugs (#…
wrwg Aug 10, 2024
f8d2d00
[compiler-v2] Implements `x is Foo::Variant` feature (#14238)
wrwg Aug 10, 2024
226c64c
fix (#13948)
rahxephon89 Aug 10, 2024
62e0083
Add is_event field to MoveStruct in JSON representation of Move modul…
banool Aug 12, 2024
d86f26e
comments (#14248)
rahxephon89 Aug 12, 2024
e2a4f9b
Add and implement an option to print total instructions in disassembl…
vineethk Aug 12, 2024
ecd7001
chore(doc): fix the grammar comments
ArArgon Aug 5, 2024
9ff8e81
fix: revert the grammar for script functions
ArArgon Aug 6, 2024
622873b
fix: append the grammar of `CallArgs`
ArArgon Aug 9, 2024
ac99cad
add tests (#14284)
rahxephon89 Aug 15, 2024
e6f3608
[Compiler-V2] Test case for a bug in the exhaustiveness checker (#14297)
fEst1ck Aug 16, 2024
f59d302
[compiler-v2] New reference safety analysis (#14276)
wrwg Aug 17, 2024
cf7a700
[compiler-v2] Emitting missing FreezeRef in bytecode_generator (#14280)
wrwg Aug 17, 2024
1baa737
[compiler-v2] Auto-freeze arguments of relational operators (#14282)
wrwg Aug 17, 2024
18e1f46
[compiler-v2] Revise copy creation in ability processor (#14292)
wrwg Aug 17, 2024
9932ce4
[compiler-v2] Fix bug with repeated arguments in file format generato…
wrwg Aug 18, 2024
2279243
[compiler-v2] Fixing bug in stack balancing of file-format generator …
wrwg Aug 19, 2024
35e4be9
[compiler-v2] Fix issue with autoref of variant field selection (#14312)
wrwg Aug 19, 2024
250b652
Add script for comparing two move build directories for number of byt…
vineethk Aug 19, 2024
d85f696
[compiler-v2] Adding and verifying some missing v1 tests (#14316)
wrwg Aug 19, 2024
8f69f87
[compiler-v2] Do not pop non-droppables on stack flush (#14321)
wrwg Aug 19, 2024
f89f2d7
add self support to struct invariants (#14265)
rahxephon89 Aug 19, 2024
29d370f
[move-compiler-v2] Add enum scoping test and enhance match arm rewrit…
brmataptos Aug 19, 2024
6d22056
[Bugfix] [Compiler-V2] Fix spurious warnings on inline functions from…
fEst1ck Aug 20, 2024
6d642be
[Feature] [Compiler-V2] Dotdot Syntax (#14165)
fEst1ck Aug 20, 2024
226ac78
Basic block merging peephole optimization (#14342)
vineethk Aug 20, 2024
12fef3c
Getting started with a compiler-v2-integrated linter (#14302)
vineethk Aug 20, 2024
49e2c7b
[compiler-v1] Omit warning for unused `self` parameter (#14368)
wrwg Aug 21, 2024
7a9ce81
temp (#14270)
rahxephon89 Aug 21, 2024
0d2de3d
[move-compiler-v2] Fix #14329: Make code optional in `assert!(cond, c…
brmataptos Aug 22, 2024
4218bfe
Flushing writes optimization (#14394)
vineethk Aug 23, 2024
50f9706
[move-package]: change function visibility (#14385)
Rqnsom Aug 23, 2024
2e2118d
[compiler-v2] Add `--move-2` flag to CLI (#14369)
brmataptos Aug 23, 2024
381a863
add a test to illustrate #11964 and show it doesn't happen for compil…
brmataptos Aug 23, 2024
7e7417e
set bytecode version (#14403)
rahxephon89 Aug 24, 2024
c161465
Attributes to suppress lint warnings (#14362)
vineethk Aug 24, 2024
aad840c
unused enum (#14407)
rahxephon89 Aug 24, 2024
8251a5f
support bv for enum (#14392)
rahxephon89 Aug 25, 2024
3086fd0
[compiler-v2] More concise visibility declarations (#14417)
wrwg Aug 27, 2024
b985d3e
[compiler-v2] Some fixes to enum variant type checking (#14411)
wrwg Aug 27, 2024
9275f6b
[compiler-v2] Relax syntax for `as` and `is` operators (#14420)
wrwg Aug 27, 2024
e473bb3
fix aptos move disassemble CLI to accept all known bytecode versions …
brmataptos Aug 27, 2024
ce31926
[compiler-v2] Enable empty field list (#14415)
wrwg Aug 27, 2024
54c2a9d
Avoid copy on identity comparison lint check (#14418)
vineethk Aug 28, 2024
1518176
Needless boolean and Simpler numerical expressions lint (#14440)
vineethk Aug 28, 2024
8e6bc2c
[move-compiler-v2] reorganize/simplify options in aptos-move CLI, add…
brmataptos Aug 28, 2024
6a6cce2
[bug-fix] Use the built release binary instead of debug (#14464)
vineethk Aug 29, 2024
6903592
[compiler-v2] Change compiler abort codes to confirm with std::errors…
wrwg Aug 29, 2024
91013c5
[Compiler V2] Control flow graph simplification (#11725)
fEst1ck Aug 29, 2024
b07a09f
[move-compiler] Fix panic in coverage for inlined code, add controls …
brmataptos Aug 29, 2024
b3ca9c1
[compiler-v2] Fix a bug in receiver type inference (#14475)
wrwg Aug 30, 2024
8afae4b
[cli] Preparing release 4.1.0 (#14462)
wrwg Aug 30, 2024
305c7e5
Improvements to flush writes processor (#14413)
vineethk Sep 2, 2024
858d19d
Stop stackless bytecode pipeline when errors are found by a processor
vineethk Sep 5, 2024
ad4a2de
[move-compiler] Add the name of the file if there is an error during …
brmataptos Sep 5, 2024
9934404
[move][unit-test] allow to use custom test gas-meter at unit test (#1…
vgao1996 Sep 5, 2024
59ed851
[compiler-v2][lint] Needless reference in field access (#14542)
vineethk Sep 6, 2024
648ee41
[Prover] Upgrade the Boogie version from 3.0.9 to 3.2.4 (#14487)
rahxephon89 Sep 6, 2024
1a8a730
[Prover] Bitwise operation in aborts_if condition (#14552)
rahxephon89 Sep 9, 2024
0a13744
[doc] support enum in docgen (#14562)
rahxephon89 Sep 10, 2024
d3940a1
[compiler-v2][lint] Needless ref deref pairs (#14581)
vineethk Sep 10, 2024
55525b7
[compiler-v2][lint] Extend the needless ref in field access lint chec…
vineethk Sep 12, 2024
cf83541
[Compiler-v2] Fix bugs in index notation for vector type (#14609)
rahxephon89 Sep 12, 2024
1afc17e
[Bugfix] [Compiler-V2] Fix a bug in control flow simplification (#14536)
fEst1ck Sep 13, 2024
8f6242f
[compiler-v2] Make flush writes optimization a default optimization (…
vineethk Sep 13, 2024
724cac2
[move-vm] Fixes to enum type implementation (#14657)
wrwg Sep 17, 2024
1309bbc
[compiler-v2] Disallow empty enum types (#14658)
wrwg Sep 17, 2024
6b5f613
Remove an unnecessary clone. (#14659)
grao1991 Sep 18, 2024
3f2edad
[compiler-v2][lint] Needless mutable reference (#14651)
vineethk Sep 19, 2024
5e4e7fc
[move-compiler-v2] Add all remaining V1 tests to V2, except evm/async…
brmataptos Sep 19, 2024
c0f3121
[move-compiler-v2] fix issue 6922 by allowing type annotations for la…
brmataptos Sep 20, 2024
a9bf1a9
[move-compiler-v2] Print a better error message for a string without …
brmataptos Sep 23, 2024
d65d2e9
[compiler-v2][decompiler] Pulling fat-loop algorithm out of the prove…
wrwg Sep 23, 2024
0858535
[Compiler-v2] Check recursive definition for constants (#14741)
rahxephon89 Sep 26, 2024
bd83223
cargo machete remove
areshand Sep 27, 2024
af6b3e7
[move-vm] Fix a bug in order of bounds checking (#14821)
wrwg Oct 1, 2024
2a2468d
[CLI] Add a CLI command to install prover dependencies (#14683)
rahxephon89 Oct 2, 2024
3d4e321
[move-vm] Check for empty field variant list (#14841)
wrwg Oct 2, 2024
edb3359
DeltaApplicationError & predicted value fixes, error fallbacks (#14422)
gelash Oct 2, 2024
46c4ccc
[Feature] [Compiler-V2] += and the like (#14583)
fEst1ck Oct 3, 2024
2f79dcf
[move-coverage]: change visibility for uncovered locations (#14845)
Rqnsom Oct 3, 2024
b417fbc
[move-vm] Make bytecode version v7 the default (#14876)
wrwg Oct 6, 2024
de35503
[compiler-v2] Extends existing v1/v2 commparsion process description …
wrwg Oct 8, 2024
9a0f7ff
[compiler-v2] Ast generator from stackless bytecode, Source Gen from …
wrwg Oct 9, 2024
5715d30
add option (#14900)
rahxephon89 Oct 9, 2024
f1d0bc7
add support of vector[] to spec (#14893)
rahxephon89 Oct 10, 2024
8b214c6
[move-compiler-v2] fix #14633: fix error messages for lambdas, identi…
brmataptos Oct 10, 2024
7b7c067
ok_or and map_or audit (#14764)
gelash Oct 11, 2024
9fde167
[compiler-v2] Add loop labels to the language (#14868)
wrwg Oct 11, 2024
d553450
[compiler-v2] Variable window peephole optimization (#14796)
vineethk Oct 12, 2024
84ba3b9
add tests (#14943)
rahxephon89 Oct 13, 2024
1ac2b0f
[Spec] add boogie native for aggregator_v2 (#14881)
rahxephon89 Oct 14, 2024
fee9853
check use of variable in spec by default in live analysis (#14890)
rahxephon89 Oct 15, 2024
0b639b4
[Prover] add support of abort in spec function (#14939)
rahxephon89 Oct 16, 2024
1877ca6
fix check_variant (#14952)
rahxephon89 Oct 16, 2024
5a99aa6
[compiler-v2] Avoid infinite recursion showing types with receiver fu…
brmataptos Oct 17, 2024
55e6ee4
treat _ as a wildcard, not a var, in function parameter in Move Lang …
brmataptos Oct 18, 2024
52230f6
[compiler-v2] Revise ability checking for type parameters (#15006)
wrwg Oct 18, 2024
6961111
[compiler-v2] Add missing ability check of receiver function type pa…
wrwg Oct 18, 2024
facdf80
[Prover] Use compiler V2 by default in Move prover (#14948)
rahxephon89 Oct 18, 2024
ce7571b
[compiler-v2] add test cases for lambda (#14791)
brmataptos Oct 21, 2024
4590abf
[Compiler V2] Turn on CFG simplification as default optimization (#14…
fEst1ck Oct 22, 2024
1cbee1f
[compiler-v2] Turns on critical edge elimination since it is needed b…
wrwg Oct 22, 2024
253f582
[cli 4.2.4] Preparing for CLI release (#15027)
wrwg Oct 22, 2024
855be5b
[move] Remove legacy AsyncVM implementation (#15045)
georgemitenkov Oct 23, 2024
baf1977
[cli] Bumping to 4.2.6 to fix in issue with `--move-2` flag (#15064)
wrwg Oct 23, 2024
669a89c
[compiler-v2] Test cases reduced from the framework showcasing need f…
vineethk Oct 28, 2024
f56efd3
[move-decompiler] Model import from binary and basic decompiler setup…
wrwg Oct 29, 2024
7617e7d
Introduce code cache and loader V2 (#14184)
georgemitenkov Oct 29, 2024
af36e7c
[Bugfix] Fix broken bytecode dependency (#14929)
fEst1ck Oct 30, 2024
3435e53
[move-vm][aptos-vm] Basic execution counters (#15086)
georgemitenkov Oct 30, 2024
72fb473
Core Script Builder Codegen Logic (#14168)
runtian-zhou Oct 30, 2024
fa34c99
cleanup trace file after coverage map is generated successfully (#15153)
brmataptos Nov 2, 2024
0b7129d
[move-decompiler] Improvements to the astifier (#15026)
wrwg Nov 3, 2024
373f34c
[Compiler-v2][trivial] fix error handling for `match` in expansion ph…
rahxephon89 Nov 4, 2024
36889fb
[Prover] Fix bug in loop unrolling (#15136)
rahxephon89 Nov 5, 2024
268b260
Externalize the linter architecture (#15138)
vineethk Nov 5, 2024
e3652f5
change feature gating for `_` to 2.1 (#15199)
rahxephon89 Nov 5, 2024
50a1f7e
[Move Prover][trivial] Eliminate reference in parameters and result t…
rahxephon89 Nov 6, 2024
3562c40
aptos-framework repo migration: aptos-cli [2/n] (#15209)
vgao1996 Nov 6, 2024
9ea1ab3
[move] Remove SignatureTokenKind (#15211)
georgemitenkov Nov 6, 2024
90f88cf
aptos-framework repo migration: move-examples [1/n] (#15208)
vgao1996 Nov 6, 2024
633e8d4
[compiler-v2] Use `latest_stable()` versions of compiler and language…
vineethk Nov 7, 2024
d2e26e0
[Linter] Reduce perceived false positives and have links to linter do…
vineethk Nov 13, 2024
5f2f3a1
[FUZZER] Multiple utils and library refactor, fuzzers (#15176)
zi0Black Nov 13, 2024
bf56240
update the baseline for move_pr.sh -2 (#15259)
brmataptos Nov 13, 2024
a1bdfe4
[move] Implement generic comparison method in move - rust part (#14714)
igor-aptos Nov 13, 2024
3f20280
[move-stdlib] Add vector::move_range native function (#14863)
igor-aptos Nov 13, 2024
507eccc
[Compiler-v2] fix receiver call with index notation (#15239)
rahxephon89 Nov 13, 2024
0d20601
[loader] Global caches for execution (#15192)
georgemitenkov Nov 13, 2024
a7213f2
[loader-v2] Remove extra hash calculation from runtime environment (#…
georgemitenkov Nov 14, 2024
40b3d56
[move][stdlib] Implement mem::swap native move call (#14786)
igor-aptos Nov 14, 2024
c99222f
[move] Enable V2 loader (#15155)
georgemitenkov Nov 14, 2024
db952a3
[cli] Improve span merging in the coverage tool (#15120)
Rqnsom Nov 14, 2024
8b043de
fix resource index (#15281)
rahxephon89 Nov 15, 2024
bcd618a
add flag (#15309)
rahxephon89 Nov 19, 2024
1e02339
[Compiler-v2] Fix parsing of `location` in plan_builder of compiler v…
rahxephon89 Nov 19, 2024
3a09882
Cherrypick #280 (#282) (#15258) (#15319)
runtian-zhou Nov 20, 2024
49e7639
[loader-v2] Small cleanups & tests (#15279)
georgemitenkov Nov 20, 2024
f247728
[loader-v2] Addressing TODOs (#15316)
georgemitenkov Nov 20, 2024
5ec82c5
Same limit for serializing and deserializing type tags when in releas…
ziaptos Nov 21, 2024
31bf891
remove obsolete crate testing-infra/test-generation to simplify funci…
brmataptos Nov 22, 2024
8b4ad90
[Compiler-v2] Add ability check on number constraint (#15346)
rahxephon89 Nov 25, 2024
a8008af
[compiler-v2] Test case reduced from move-stdlib showing opportunity …
vineethk Nov 25, 2024
fa22f83
fix move-unit-test (#15388)
rahxephon89 Nov 25, 2024
fd59083
Fixing source map locations when peephole optimizations are applied. …
vineethk Nov 26, 2024
ce683dd
fix enum bug (#15403)
rahxephon89 Nov 26, 2024
1071a24
Refactoring interpreter and paranoid mode, introducing traits to allo…
ziaptos Nov 28, 2024
e8b8360
[move-compiler-v2] add parser code for lambda types (#14792)
brmataptos Dec 1, 2024
af6e4b3
Continued re-design of paranoid mode (now called Runtime Type Check) …
ziaptos Dec 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
13 changes: 0 additions & 13 deletions language/evm/hardhat-examples/contracts/AsyncEvent/Move.toml

This file was deleted.

This file was deleted.

22 changes: 0 additions & 22 deletions language/evm/hardhat-examples/test/AsyncEvent.test.js

This file was deleted.

4 changes: 2 additions & 2 deletions language/evm/move-to-yul/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ impl<'a> Context<'a> {
pipeline.add_processor(ReachingDefProcessor::new());
pipeline.add_processor(LiveVarAnalysisProcessor::new());
if options.dump_bytecode {
pipeline.run_with_dump(env, &mut targets, &options.output, false, &|_| {})
pipeline.run_with_dump(env, &mut targets, &options.output, false, &|_| {}, || true)
} else {
pipeline.run(env, &mut targets);
}
Expand Down Expand Up @@ -784,7 +784,7 @@ impl<'a> Context<'a> {
Tuple(_)
| TypeParameter(_)
| Reference(_, _)
| Fun(_, _)
| Fun(..)
| TypeDomain(_)
| ResourceDomain(_, _, _)
| Error
Expand Down
8 changes: 4 additions & 4 deletions language/evm/move-to-yul/src/dispatcher_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl Generator {
) {
emitln!(ctx.writer, "if iszero(lt(calldatasize(), 4))");
let mut selectors = BTreeMap::new();
let para_vec = vec!["calldataload(0)".to_string(), "224".to_string()];
let para_vec = ["calldataload(0)".to_string(), "224".to_string()];
let shr224 = self.call_builtin_str(ctx, YulFunction::Shr, para_vec.iter().cloned());
ctx.emit_block(|| {
emitln!(ctx.writer, "let selector := {}", shr224);
Expand Down Expand Up @@ -528,7 +528,7 @@ impl Generator {
.enumerate()
{
let is_static = ty.is_static();
let local_typ_var = vec![ret_var[stack_pos].clone()];
let local_typ_var = [ret_var[stack_pos].clone()];
let abi_decode_type =
gen.generate_abi_decoding_type(ctx, ty, move_ty, from_memory);
ctx.emit_block(|| {
Expand Down Expand Up @@ -631,7 +631,7 @@ impl Generator {
{
let is_static = ty.is_static();
// TODO: consider the case size_on_stack is not 1
let local_typ_var = vec![ret_var[stack_pos].clone()];
let local_typ_var = [ret_var[stack_pos].clone()];
let abi_decode_type =
gen.generate_abi_decoding_type(ctx, ty, move_ty, from_memory);
ctx.emit_block(|| {
Expand Down Expand Up @@ -1453,7 +1453,7 @@ impl Generator {
.enumerate()
{
let is_static = ty.is_static();
let local_typ_var = vec![ret_var[stack_pos].clone()];
let local_typ_var = [ret_var[stack_pos].clone()];
let memory_func = ctx.memory_load_builtin_fun(move_ty);
if local_typ_var.len() == 1 {
emitln!(
Expand Down
2 changes: 1 addition & 1 deletion language/evm/move-to-yul/src/external_functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ impl NativeFunctions {
let fun_sig = format!("{}", sig);
let function_selector =
format!("0x{:x}", Keccak256::digest(fun_sig.as_bytes()))[..10].to_string();
let para_vec = vec![function_selector, "224".to_string()];
let para_vec = [function_selector, "224".to_string()];
let shl224 =
gen.parent
.call_builtin_str(ctx, YulFunction::Shl, para_vec.iter().cloned());
Expand Down
7 changes: 7 additions & 0 deletions language/evm/move-to-yul/src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -548,10 +548,17 @@ impl<'a> FunctionGenerator<'a> {

// Unimplemented
Vector => unimplemented!("vector"),
TestVariant(..)
| PackVariant(..)
| UnpackVariant(..)
| BorrowVariantField(..) => {
unimplemented!("variants")
},

// Specification or other operations which can be ignored here
Release
| GetField(_, _, _, _)
| GetVariantField(_, _, _, _, _)
| GetGlobal(_, _, _)
| IsParent(_, _)
| WriteBack(_, _)
Expand Down
6 changes: 4 additions & 2 deletions language/evm/move-to-yul/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,15 @@ pub fn run_to_yul_errors_to_stderr(options: Options) -> anyhow::Result<()> {
pub fn run_to_yul<W: WriteColor>(error_writer: &mut W, mut options: Options) -> anyhow::Result<()> {
// Run the model builder.
let addrs = parse_addresses_from_options(options.named_address_mapping.clone())?;
let flags = Flags::empty().set_flavor("async");
let flags = Flags::empty().set_flavor("evm");
let known_attributes = get_known_attributes_for_flavor(&flags);
let env = run_model_builder_with_options_and_compilation_flags(
vec![PackagePaths {
name: None,
paths: options.sources.clone(),
named_address_map: addrs.clone(),
}],
vec![],
vec![PackagePaths {
name: None,
paths: options.dependencies.clone(),
Expand Down Expand Up @@ -107,14 +108,15 @@ pub fn run_to_abi_metadata<W: WriteColor>(
) -> anyhow::Result<Vec<Metadata>> {
// Run the model builder.
let addrs = parse_addresses_from_options(options.named_address_mapping.clone())?;
let flags = Flags::empty().set_flavor("async");
let flags = Flags::empty().set_flavor("evm");
let known_attributes = get_known_attributes_for_flavor(&flags);
let env = run_model_builder_with_options_and_compilation_flags(
vec![PackagePaths {
name: None,
paths: options.sources.clone(),
named_address_map: addrs.clone(),
}],
vec![],
vec![PackagePaths {
name: None,
paths: options.dependencies.clone(),
Expand Down
2 changes: 1 addition & 1 deletion language/evm/move-to-yul/src/solidity_ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ impl SolidityType {
},
TypeParameter(_)
| Reference(_, _)
| Fun(_, _)
| Fun(..)
| TypeDomain(_)
| ResourceDomain(_, _, _)
| Error
Expand Down
Loading
Loading