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

Uma opcodes #35

Merged
merged 40 commits into from
Jun 27, 2024
Merged

Uma opcodes #35

merged 40 commits into from
Jun 27, 2024

Conversation

gianbelinche
Copy link
Contributor

@gianbelinche gianbelinche commented Jun 18, 2024

Closes #12
This PR add the opcodes related to UMA, ld, st, ld.1, ld.2, st.1, st.2 as well as .incvariants
It builds on top of #30 so that one needs to be merged first

@gianbelinche gianbelinche changed the base branch from main to pointer-instructions June 24, 2024 14:12
@gianbelinche gianbelinche marked this pull request as ready for review June 24, 2024 14:15
Base automatically changed from pointer-instructions to main June 25, 2024 13:55
src/lib.rs Show resolved Hide resolved
Copy link
Contributor

@fkrause98 fkrause98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, let's discuss the comments I've made before merging.

Great job with the generated tests and the feature.🚀

}
let addr = src0.value.low_u32();

vm.current_frame.aux_heap.expand_memory(addr + 32); // TODO: Handle ergs cost
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add this with the new gas tracking changes? Or would it be too far fetched from the scope of this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

src/op_handlers/heap_read.rs Show resolved Hide resolved
src/state.rs Outdated Show resolved Hide resolved
src/state.rs Show resolved Hide resolved
Copy link
Contributor

@fkrause98 fkrause98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job!

Copy link
Contributor

@juan518munoz juan518munoz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@juan518munoz juan518munoz merged commit 8e396f2 into main Jun 27, 2024
3 checks passed
@juan518munoz juan518munoz deleted the uma-opcodes branch June 27, 2024 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UMA
4 participants