refactor(levm): moved retdata from vm to callframe#2694
Merged
Conversation
Lines of code reportTotal lines added: Detailed view |
Benchmark Results ComparisonPR ResultsBenchmark Results: Factorial
Benchmark Results: Factorial - Recursive
Benchmark Results: Fibonacci
Benchmark Results: ManyHashes
Benchmark Results: BubbleSort
Benchmark Results: ERC20 - Transfer
Benchmark Results: ERC20 - Mint
Benchmark Results: ERC20 - Approval
Main ResultsBenchmark Results: Factorial
Benchmark Results: Factorial - Recursive
Benchmark Results: Fibonacci
Benchmark Results: ManyHashes
Benchmark Results: BubbleSort
Benchmark Results: ERC20 - Transfer
Benchmark Results: ERC20 - Mint
Benchmark Results: ERC20 - Approval
|
3164e05 to
d6b70c2
Compare
JereSalo
approved these changes
May 12, 2025
JereSalo
left a comment
Contributor
There was a problem hiding this comment.
I like that we don't need RetData anymore
rodrigo-o
approved these changes
May 13, 2025
rodrigo-o
left a comment
Contributor
There was a problem hiding this comment.
Looking good! Just a small nit
fmoletta
pushed a commit
that referenced
this pull request
May 15, 2025
**Motivation** Make code more readable by coupling related behaviour. **Description** Some fields in retdata were repeated in the callframe, and the retdata was always being popped alongside the current call frame. This PR deletes the retdata struct, and moves the fields that weren't redundant to the call frame, refactoring the code where appropriate. It also removes `gas_used` from `CallFrame::new()` because we were always setting it to zero. Closes #2571, Closes #2720 --------- Co-authored-by: JereSalo <jeresalo17@gmail.com> Co-authored-by: Jeremías Salomón <48994069+JereSalo@users.noreply.github.com>
pedrobergamini
pushed a commit
to pedrobergamini/ethrex
that referenced
this pull request
Aug 24, 2025
**Motivation** Make code more readable by coupling related behaviour. **Description** Some fields in retdata were repeated in the callframe, and the retdata was always being popped alongside the current call frame. This PR deletes the retdata struct, and moves the fields that weren't redundant to the call frame, refactoring the code where appropriate. It also removes `gas_used` from `CallFrame::new()` because we were always setting it to zero. Closes lambdaclass#2571, Closes lambdaclass#2720 --------- Co-authored-by: JereSalo <jeresalo17@gmail.com> Co-authored-by: Jeremías Salomón <48994069+JereSalo@users.noreply.github.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Motivation
Make code more readable by coupling related behaviour.
Description
Some fields in retdata were repeated in the callframe, and the retdata was always being popped alongside the current call frame. This PR deletes the retdata struct, and moves the fields that weren't redundant to the call frame, refactoring the code where appropriate.
It also removes
gas_usedfromCallFrame::new()because we were always setting it to zero.Closes #2571, Closes #2720