Skip to content

Return generalized side table from validation#720

Merged
ia0 merged 8 commits into
google:dev/fast-interpfrom
zhouwfang:fill-side-table
Jan 15, 2025
Merged

Return generalized side table from validation#720
ia0 merged 8 commits into
google:dev/fast-interpfrom
zhouwfang:fill-side-table

Conversation

@zhouwfang

Copy link
Copy Markdown
Contributor

#46

@zhouwfang
zhouwfang requested a review from ia0 as a code owner January 13, 2025 04:02

@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.

Thanks! The main issue is that I don't think Expr should care about FuncMeta (type index and parser range). We should build a FuncMeta from the BranchTable returned by check_body() while validating the code section (where we are within the context of a function, so FuncMeta makes sense).

Comment thread crates/interpreter/src/module.rs
Comment thread crates/interpreter/src/valid.rs Outdated
Comment thread crates/interpreter/src/valid.rs Outdated
Comment thread crates/interpreter/src/valid.rs Outdated
Comment thread crates/interpreter/src/valid.rs Outdated
@zhouwfang
zhouwfang requested a review from ia0 January 14, 2025 06:43
Comment thread crates/interpreter/src/valid.rs
@zhouwfang zhouwfang changed the title Add type_idx and parser_range in SideTable during validation Return generalized side table from validation Jan 14, 2025

@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.

Thanks! LGTM except for the offset part.

Comment thread crates/interpreter/src/module.rs Outdated
Comment thread crates/interpreter/src/module.rs
Comment thread crates/interpreter/src/valid.rs Outdated
Comment thread crates/interpreter/src/valid.rs Outdated
Comment thread crates/interpreter/src/valid.rs
@zhouwfang
zhouwfang requested a review from ia0 January 15, 2025 02:53
@zhouwfang

Copy link
Copy Markdown
Contributor Author

Could you take a look at the follow-up PR? Thanks.

@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.

Thanks! Pushing a small review commit and merging.

Comment thread crates/interpreter/src/valid.rs Outdated
Comment thread crates/interpreter/src/valid.rs
@ia0
ia0 merged commit 7e5355d into google:dev/fast-interp Jan 15, 2025
@ia0

ia0 commented Jan 15, 2025

Copy link
Copy Markdown
Member

I'm merging main into dev/fast-interp after this commit. So when pulling, you'll get new submodules and new rust toolchain. You just need to run git submodules update. The toolchain is automatic with rustup.

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.

2 participants