Skip to content
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

feat(runtime) Get ready for tiering #257

Merged
merged 8 commits into from
Mar 8, 2019

Conversation

lachlansneff
Copy link
Contributor

This PR adds various fixes and runtime changes in order to be ready to support compiler tiering.

@lachlansneff lachlansneff added 🎉 enhancement New feature! 📦 lib-compiler-cranelift About wasmer-compiler-cranelift 📦 lib-deprecated About the deprecated crates 📦 lib-compiler-llvm About wasmer-compiler-llvm labels Mar 8, 2019
@lachlansneff lachlansneff changed the title Get ready for tiering. feat(runtime) Get ready for tiering Mar 8, 2019
@xmclark xmclark self-requested a review March 8, 2019 22:48
}
}

fn generate_local_functions(module: &ModuleInner) -> BoxedMap<LocalFuncIndex, *const vm::Func> {
(0..module.info.func_assoc.len() - module.info.imported_functions.len())
Copy link
Contributor

Choose a reason for hiding this comment

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

is this constructing a range? do we have confidence this will always result in a positive set of numbers?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I do. The total number of functions will always be greater than or equal to the number of imported functions.

@lachlansneff lachlansneff merged commit 17eada5 into master Mar 8, 2019
@lachlansneff lachlansneff deleted the feature/get-ready-for-tiering branch March 8, 2019 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎉 enhancement New feature! 📦 lib-compiler-cranelift About wasmer-compiler-cranelift 📦 lib-compiler-llvm About wasmer-compiler-llvm 📦 lib-deprecated About the deprecated crates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants