Skip to content

Combine Label values in Frame#598

Merged
ia0 merged 18 commits into
google:dev/fast-interpfrom
zhouwfang:dev/fast-interp
Sep 6, 2024
Merged

Combine Label values in Frame#598
ia0 merged 18 commits into
google:dev/fast-interpfrom
zhouwfang:dev/fast-interp

Conversation

@zhouwfang

@zhouwfang zhouwfang commented Sep 2, 2024

Copy link
Copy Markdown
Contributor

This is the first step towards adding a value stack in Thread. The next step is to merge locals and labels_values in Frame. After that, we can create a value stack in Thread by combining the values from the Frame's.

#46

@zhouwfang
zhouwfang requested a review from ia0 as a code owner September 2, 2024 22:56
@zhouwfang zhouwfang changed the title Move Label::values to Frame Add Label values in Frame Sep 2, 2024
@zhouwfang zhouwfang changed the title Add Label values in Frame Combine Label values in Frame Sep 2, 2024

@ia0 ia0 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yes, I think the overall plan looks good.

Comment thread crates/interpreter/src/exec.rs Outdated
Comment thread crates/interpreter/src/exec.rs Outdated
Comment thread crates/interpreter/src/exec.rs
Comment thread crates/interpreter/src/exec.rs Outdated
Comment thread crates/interpreter/src/exec.rs Outdated
Comment thread crates/interpreter/src/exec.rs Outdated
Comment thread crates/interpreter/src/exec.rs Outdated
Comment thread crates/interpreter/src/exec.rs
failures:
    br
    br_if
    br_table
    if_
    labels
    loop_
    switch
    unreachable
    unwind

test result: FAILED. 79 passed; 9 failed; 2 ignored; 0 measured; 0 filtered out; finished in 5.16s
Comment thread crates/interpreter/src/exec.rs Outdated
Comment thread crates/interpreter/src/exec.rs Outdated
Comment thread crates/interpreter/src/exec.rs Outdated
@zhouwfang
zhouwfang requested a review from ia0 September 6, 2024 06:55

@ia0 ia0 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'll be pushing the changes. It's faster than iterate. Feel free to try to rediscover them on your own.

Comment thread crates/interpreter/src/exec.rs Outdated
Comment thread crates/interpreter/src/exec.rs Outdated
@ia0
ia0 merged commit 1b79dae into google:dev/fast-interp Sep 6, 2024
ia0 added a commit that referenced this pull request Sep 11, 2024
Continuation of #598 towards adding a value stack in `Thread`.

#46

---------

Co-authored-by: Zhou Fang <[email protected]>
Co-authored-by: Julien Cretin <[email protected]>
Co-authored-by: Julien Cretin <[email protected]>
@ia0 ia0 linked an issue Sep 19, 2024 that may be closed by this pull request
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.

Interpreter performance and footprint

2 participants