-
Notifications
You must be signed in to change notification settings - Fork 85
Allow merging modules and skipping DWARF reading on load #257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 7 commits
ec5ac3c
66b1c0e
3fe6cb9
8ecb9fd
2bff359
94ec3c5
5276c4a
24ddee4
6c6d070
ee4cc5c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -350,7 +350,7 @@ impl Module { | |
| // necessary and it's a bottleneck! | ||
| let mut bodies = Vec::with_capacity(functions.len()); | ||
| for (i, (body, mut validator)) in functions.into_iter().enumerate() { | ||
| let index = (num_imports + i) as u32; | ||
| let index = (indices.num_fun_imports + i) as u32; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd be curious to know the reason this is necessary - which is incorrect above -
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did this because
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for clarifying. Are there any other cases where imports being added later might affect indexing, or do you feel pretty confident this is the only one? |
||
| let id = indices.get_func(index)?; | ||
| let ty = match self.funcs.arena[id].kind { | ||
| FunctionKind::Uninitialized(ty) => ty, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.