Skip to content

LEVM: Simplify RetData and move it to CallFrame #2720

@JereSalo

Description

@JereSalo

I'd move RetData inside of CallFrame and leave only ret_offset, ret_size and should_transfer_value. The rest of the actual attributes we are using are already in CallFrame so there's no need for duplicating those.
I would create a default() for RetData (if it doesn't exist already) that can be used for initializing the first callframe of all, because that one doesn't need RetData.

Note: Maybe there's a reason behind this thing that I'm criticizing that I don't know of, so check if the refactor I suggest is adequate.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions