Skip to content

Make validation return side tables#616

Merged
ia0 merged 5 commits into
google:dev/fast-interpfrom
zhouwfang:build-side-table
Sep 27, 2024
Merged

Make validation return side tables#616
ia0 merged 5 commits into
google:dev/fast-interpfrom
zhouwfang:build-side-table

Conversation

@zhouwfang

@zhouwfang zhouwfang commented Sep 26, 2024

Copy link
Copy Markdown
Contributor

Make validation return side tables, and store them in module.

#46

@zhouwfang
zhouwfang requested a review from ia0 as a code owner September 26, 2024 04:59
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/module.rs Outdated
@zhouwfang
zhouwfang requested a review from ia0 September 27, 2024 03:03
validate(binary)?;
Ok(unsafe { Self::new_unchecked(binary) })
let side_tables = validate(binary)?;
let mut module = unsafe { Self::new_unchecked(binary) };

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.

Ideally new_unchecked should take the side tables, but this will break the scheduler. But this issue is temporary until we persist the side tables.

@ia0
ia0 merged commit 52f5998 into google:dev/fast-interp Sep 27, 2024
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